Documentation
¶
Index ¶
- Variables
- func GetPageAndSize(ctx *gin.Context) (page int, size int, err error)
- type ApiResp
- type BindEmailReq
- type CreateUserReq
- type DeviceIDReq
- type GetDeviceDetailReq
- type GetDeviceDetailResp
- type ListUserReq
- type LoginUserReq
- type SendBindEmailCaptchaReq
- type SendBindEmailCaptchaResp
- type SetUserPasswordReq
- type SetUsernameReq
- type UserIDReq
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyPassword = errors.New("empty password") ErrPasswordTooLong = errors.New("password too long") ErrPasswordHasInvalidChar = errors.New("password has invalid char") ErrEmptyUserId = errors.New("empty user id") ErrEmptyUsername = errors.New("empty username") ErrUsernameTooLong = errors.New("username too long") ErrUsernameHasInvalidChar = errors.New("username has invalid char") )
Functions ¶
Types ¶
type BindEmailReq ¶ added in v0.3.0
type CreateUserReq ¶
type CreateUserReq user.CreateUserReq
func (*CreateUserReq) Validate ¶
func (r *CreateUserReq) Validate() error
type DeviceIDReq ¶ added in v0.3.0
type DeviceIDReq struct {
DeviceID uint64 `json:"deviceId" binding:"required"`
}
type GetDeviceDetailReq ¶ added in v0.2.1
type GetDeviceDetailReq struct {
ID uint64 `form:"id" binding:"required"`
}
type GetDeviceDetailResp ¶ added in v0.2.1
type GetDeviceDetailResp struct { *device.DeviceInfo *device.DeviceLastSeen *collection.CollectionRecord }
type ListUserReq ¶
type ListUserReq user.ListUserReq
func (*ListUserReq) Validate ¶
func (r *ListUserReq) Validate() error
type LoginUserReq ¶
func (*LoginUserReq) Validate ¶
func (l *LoginUserReq) Validate() error
type SendBindEmailCaptchaReq ¶ added in v0.3.0
type SendBindEmailCaptchaReq struct {
Email string `json:"email" binding:"required"`
}
type SendBindEmailCaptchaResp ¶ added in v0.3.0
type SendBindEmailCaptchaResp struct {
Captcha string `json:"captcha"`
}
type SetUserPasswordReq ¶
type SetUserPasswordReq struct {
Password string `json:"password"`
}
func (*SetUserPasswordReq) Validate ¶
func (s *SetUserPasswordReq) Validate() error
type SetUsernameReq ¶
type SetUsernameReq struct {
Username string `json:"username"`
}
func (*SetUsernameReq) Validate ¶
func (s *SetUsernameReq) Validate() error
Click to show internal directories.
Click to hide internal directories.