初始
This commit is contained in:
40
internal/app/system/service/user_registration.go
Normal file
40
internal/app/system/service/user_registration.go
Normal file
@ -0,0 +1,40 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2024-07-26 15:32:12
|
||||
// 生成路径: internal/app/system/service/user_registration.go
|
||||
// 生成人:gfast
|
||||
// desc:极光推送
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type IUserRegistration interface {
|
||||
List(ctx context.Context, req *system.UserRegistrationSearchReq) (res *system.UserRegistrationSearchRes, err error)
|
||||
GetById(ctx context.Context, Id uint) (res *model.UserRegistrationInfoRes, err error)
|
||||
Add(ctx context.Context, req *system.UserRegistrationAddReq) (err error)
|
||||
Edit(ctx context.Context, req *system.UserRegistrationEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []uint) (err error)
|
||||
// 是否已经绑定
|
||||
IsBind(ctx context.Context, userID int) bool
|
||||
}
|
||||
|
||||
var localUserRegistration IUserRegistration
|
||||
|
||||
func UserRegistration() IUserRegistration {
|
||||
if localUserRegistration == nil {
|
||||
panic("implement not found for interface IUserRegistration, forgot register?")
|
||||
}
|
||||
return localUserRegistration
|
||||
}
|
||||
|
||||
func RegisterUserRegistration(i IUserRegistration) {
|
||||
localUserRegistration = i
|
||||
}
|
||||
Reference in New Issue
Block a user