42 lines
1.5 KiB
Go
42 lines
1.5 KiB
Go
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"server/internal/model"
|
|
)
|
|
|
|
type (
|
|
IUser interface {
|
|
Login(ctx context.Context, in *model.UserLoginIn) (out *model.UserLoginOut, err error)
|
|
WeChatLogin(ctx context.Context, in *model.WeChatLogin) (out *model.WeChatLoginOut, err error)
|
|
Info(ctx context.Context, in *model.UserInfoIn) (out *model.UserInfoOut, err error)
|
|
Code(ctx context.Context, in *model.GetPhoneCodeIn) (out *model.GetPhoneCodeOut, err error)
|
|
Update(ctx context.Context, in *model.UserUpdateIn) (out *model.UpdateOut, err error)
|
|
BindPhone(ctx context.Context, in *model.UserBindPhoneIn) (out *model.UserBindPhoneOut, err error)
|
|
List(ctx context.Context, in *model.UserListIn) (out *model.UserListOut, err error)
|
|
BoundUrl(ctx context.Context, in *model.UserBoundUrlIn) (out *model.UserBoundUrlOut, err error)
|
|
UnBoundUrl(ctx context.Context, in *model.UserBoundUrlIn) (out *model.UserUnBoundUrlOut, err error)
|
|
BoundInfo(ctx context.Context, in *model.UserBoundInfoIn) (out *model.UserBoundInfoOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localUser IUser
|
|
)
|
|
|
|
func User() IUser {
|
|
if localUser == nil {
|
|
panic("implement not found for interface IUser, forgot register?")
|
|
}
|
|
return localUser
|
|
}
|
|
|
|
func RegisterUser(i IUser) {
|
|
localUser = i
|
|
}
|