Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigResp ¶
type DeleteReq ¶
type DeleteReq struct {
Ids string `json:"ids" comment:"标识符列表" validate:"required,min=1"`
}
type GetCurrentUserResp ¶
type GlobalResp ¶
type GlobalResp struct {
Code uint16 `json:"code"` // 状态码
Message string `json:"message"` // 消息
Data interface{} `json:"data"`
}
所有返回必须包裹一层resp
type UserChangePasswordReq ¶
type UserChangePasswordReq struct {
Id uint64 `json:"id" comment:"id" validate:"required"`
UserName string `json:"user_name" comment:"用户名" validate:"required,max=20,min=3"`
Password string `json:"password" comment:"密码" validate:"required,min=3,max=20"`
}
用户变更密码
type UserChangeRolesReq ¶
type UserChangeRolesReq struct {
Id uint64 `json:"id" comment:"id" validate:"required"`
Role string `json:"role" comment:"群组名" validate:"required"`
Add bool `json:"add" comment:"添加"`
}
admin 变更用户群组
type UserLoginReq ¶
type UserLoginReq struct {
UserName string `json:"user_name" comment:"用户名" validate:"required,max=20,min=3"`
Password string `json:"password" comment:"密码" validate:"required,min=3,max=20"`
}
用户登录
type UserLoginResp ¶
Click to show internal directories.
Click to hide internal directories.