- upd(all): indent spec.json files on all apps - upd(auth): rename auth app to cmd - upd(sam): move orgs, teams to system - upd(system): extend spec.json for check - upd(codegen): include system/ - upd(codegen): always generate spec files - upd(sam): references from auth to system
21 lines
304 B
Go
21 lines
304 B
Go
package service
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
var (
|
|
o sync.Once
|
|
DefaultUser UserService
|
|
DefaultTeam TeamService
|
|
DefaultOrganisation OrganisationService
|
|
)
|
|
|
|
func Init() {
|
|
o.Do(func() {
|
|
DefaultUser = User()
|
|
DefaultTeam = Team()
|
|
DefaultOrganisation = Organisation()
|
|
})
|
|
}
|