Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDTO ¶
type UserDTO struct { ID int32 `json:"id"` Mobile string `json:"mobile"` NickName string `json:"nick_name"` Birthday time.Time `gorm:"type:datetime"` Gender string `json:"gender"` Role int32 `json:"role"` PassWord string `json:"password"` Token string `json:"token"` ExpiresAt int64 `json:"expires_at"` }
type UserSrv ¶
type UserSrv interface { MobileLogin(ctx context.Context, mobile, password string) (*UserDTO, error) Register(ctx context.Context, userDTO *UserDTO, codes string) (*UserDTO, error) Update(ctx context.Context, userDTO *UserDTO) error Get(ctx context.Context, userID int32) (*UserDTO, error) GetByMobile(ctx context.Context, mobile string) (*UserDTO, error) CheckPassWord(ctx context.Context, password, EncryptedPassword string) (bool, error) }
func NewUser ¶
func NewUser(data data.DataFactory, jwtOpts *options.JwtOptions) UserSrv
Click to show internal directories.
Click to hide internal directories.