36 lines
982 B
Go
36 lines
982 B
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)
|
|
Info(ctx context.Context, in *model.UserInfoIn) (out *model.UserInfoOut, err error)
|
|
Update(ctx context.Context, in *model.UserUpdateIn) (out *model.UpdateOut, err error)
|
|
BindPhone(ctx context.Context, in *model.UserBindPhoneIn) (out *model.UpdateOut, 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
|
|
}
|