mirror of https://github.com/rocboss/paopao-ce
parent
e0d0e254c6
commit
9225485317
@ -0,0 +1,24 @@
|
|||||||
|
// Copyright 2023 ROC. All rights reserved.
|
||||||
|
// Use of this source code is governed by a MIT style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package chain
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sync"
|
||||||
|
|
||||||
|
"github.com/rocboss/paopao-ce/internal/core"
|
||||||
|
"github.com/rocboss/paopao-ce/internal/dao"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
_ums core.UserManageService
|
||||||
|
_onceUms sync.Once
|
||||||
|
)
|
||||||
|
|
||||||
|
func userManageService() core.UserManageService {
|
||||||
|
_onceUms.Do(func() {
|
||||||
|
_ums = dao.DataService()
|
||||||
|
})
|
||||||
|
return _ums
|
||||||
|
}
|
Loading…
Reference in new issue