Documentation
¶
Index ¶
Constants ¶
View Source
const CodeSuccess = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
AuthMiddleware(eng gin.IRouter, config *MiddlewareConfig) gin.IRouter
UserOperation
}
type MiddlewareConfig ¶
type UserOperation ¶
type UserOperation interface {
GetRegisterCode(phoneNumber string) (string, error)
RegisterUser(phoneNumber string, code string, data repo.User) (repo.User, error)
GetUserById(id string) (repo.User, error)
GetUserByPhoneNumber(phoneNumber string) (repo.User, error)
UpdateUserById(id string, data repo.User) error
DeleteUserById(id string) error
}
Click to show internal directories.
Click to hide internal directories.