Documentation ¶
Index ¶
- type ActivateUserForm
- type AddressDto
- type DictDto
- type DictForm
- type EmailForm
- type EmptyQuery
- type FormError
- type LoginDto
- type LoginForm
- type LoginWithMobileAndCodeForm
- type LoginWithThirdCodeForm
- type LoginWithThirdForm
- type LoginWithWeiXinMPCodeForm
- type MobileForm
- type RegisterDto
- type RegisterEmailForm
- type RegisterMobileForm
- type RegisterNameForm
- type RegisterWithThirdForm
- type ResetPasswordWithEmailCodeForm
- type ResourceDto
- type ResourceQuery
- type RoleDto
- type RoleQuery
- type RoleResourceDto
- type UpdateEmailWithCodeForm
- type UpdateMobileWithCodeForm
- type UpdatePasswordWithCodeForm
- type UpdatePasswordWithOldPasswordForm
- type UserDto
- type UserInfoDto
- type UserLoginDto
- type UserQuery
- type WeiXinMPForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateUserForm ¶
ActivateUserForm 邮件激活表单
type AddressDto ¶
type AddressDto struct { AddressID common.ID `json:"address_id"` Name string `json:"name"` Mobile string `json:"mobile"` Province string `json:"province"` City string `json:"city"` County string `json:"county"` Address string `json:"address"` Zip string `json:"zip"` Def string `json:"def"` CreateTime common.DateTime `json:"create_time"` UpdateTime common.DateTime `json:"update_time"` }
AddressDto 地址
type DictDto ¶
type DictDto struct { // 字典编号 DictID common.ID `json:"dict_id"` // 类型 Cate string `json:"cate"` // 名称 Name string `json:"name"` // 内容 Value string `json:"value"` // 业务类型 TP string `json:"tp"` }
DictDto 字典
type DictForm ¶
type DictForm struct { FormError Name string `form:"name" binding:"Required"` Cate string `form:"cate" binding:"Required"` Value string `form:"value" binding:"Required"` TP string `form:"tp"` }
DictForm .
type LoginDto ¶
type LoginDto struct { LoginName string Password string Mobile string IP string OpenID string Type string }
LoginDto 登录
type LoginForm ¶
type LoginForm struct { FormError LoginName string `form:"login_name" binding:"Required"` Password string `form:"password" binding:"Required;Password"` }
LoginForm 用户名邮箱手机号和密码登录表单
type LoginWithMobileAndCodeForm ¶
type LoginWithMobileAndCodeForm struct { MobileForm Code string `form:"code" binding:"Required;Size(6)"` }
LoginWithMobileAndCodeForm 手机号验证码登录表单
type LoginWithThirdCodeForm ¶
type LoginWithThirdCodeForm struct { LoginWithThirdForm Code string `form:"code" binding:"Required"` OpenID string Type string }
LoginWithThirdCodeForm 第三方code登录表单
type LoginWithThirdForm ¶
LoginWithThirdForm 第三方code登录表单
type LoginWithWeiXinMPCodeForm ¶
type LoginWithWeiXinMPCodeForm struct { FormError WeiXinMPCode string `form:"code" binding:"Required"` OpenID string Type string OnlySession bool `form:"only_session"` }
LoginWithWeiXinMPCodeForm 小程序code登录表单
type MobileForm ¶
MobileForm 手机号表单
type RegisterDto ¶
type RegisterDto struct { Email string Mobile string `json:"mobile"` LoginName string Password string Nickname string `json:"nickname"` IP string // 三方注册的数据 TP string `json:"tp"` OpenID string `json:"open_id"` Avatar string `json:"avatar"` Gender string `json:"gender"` Province string `json:"province"` City string `json:"city"` }
RegisterDto 注册信息
type RegisterEmailForm ¶
type RegisterEmailForm struct { EmailForm Password string `form:"password" binding:"Required;Password"` }
RegisterEmailForm 邮箱注册表单
type RegisterMobileForm ¶
type RegisterMobileForm struct { MobileForm Password string `form:"password" binding:"Required;Password"` Code string `form:"code" binding:"Required;Size(6)"` }
RegisterMobileForm 手机注册表单
type RegisterNameForm ¶
type RegisterNameForm struct { FormError LoginName string `form:"login_name" binding:"Required"` Password string `form:"password" binding:"Required;Password"` }
RegisterNameForm 用户名注册表单
type RegisterWithThirdForm ¶
RegisterWithThirdForm 三方登录表单
type ResetPasswordWithEmailCodeForm ¶
type ResetPasswordWithEmailCodeForm struct { EmailForm Password string `form:"password" binding:"Required;Password"` Code string `form:"code" binding:"Required;Size(6)"` }
ResetPasswordWithEmailCodeForm 忘记密码邮件验证码修改密码表单
type ResourceDto ¶
type ResourceDto struct { ID string `json:"id"` // 名称 Name string `json:"name"` // 资源 URL string `json:"url"` // 方法 Method string `json:"method"` }
ResourceDto 资源
type ResourceQuery ¶
ResourceQuery 资源搜索
type RoleResourceDto ¶
type RoleResourceDto struct { // 名称 Name string `json:"name"` // 资源 URL string `json:"url"` // 方法 Method string `json:"method"` }
RoleResourceDto 角色资源
type UpdateEmailWithCodeForm ¶
type UpdateEmailWithCodeForm struct { EmailForm Code string `form:"code" binding:"Required;Size(6)"` }
UpdateEmailWithCodeForm 邮件验证码更新邮箱表单
type UpdateMobileWithCodeForm ¶
type UpdateMobileWithCodeForm struct { MobileForm Code string `form:"code" binding:"Required;Size(6)"` }
UpdateMobileWithCodeForm 手机验证码更新手机号表单
type UpdatePasswordWithCodeForm ¶
type UpdatePasswordWithCodeForm struct { FormError Password string `form:"password" binding:"Required;Password"` Code string `form:"code" binding:"Required;Size(6)"` }
UpdatePasswordWithCodeForm 验证码修改密码表单
type UpdatePasswordWithOldPasswordForm ¶
type UpdatePasswordWithOldPasswordForm struct { FormError Password string `form:"password" binding:"Required;Password"` OldPassword string `form:"old_password" binding:"Required;Password"` }
UpdatePasswordWithOldPasswordForm 验证码修改密码表单
type UserDto ¶
type UserDto struct { UserID common.ID `json:"user_id"` Name string `json:"name"` Email string `json:"email"` Mobile string `json:"mobile"` Status consts.Status `json:"status"` Error int `json:"error"` Forbidden consts.Forbidden `json:"forbidden"` Activate consts.Activate `json:"activate"` CreateTime common.DateTime `json:"create_time"` }
UserDto 用户
type UserInfoDto ¶
type UserInfoDto struct { UserID common.ID `json:"user_id"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` Gender consts.Gender `json:"gender"` QQ string `json:"qq"` WeiXin string `json:"weixin"` Province string `json:"province"` City string `json:"city"` County string `json:"county"` }
UserInfoDto 用户详情
type UserLoginDto ¶
type UserLoginDto struct { IP string `json:"ip"` Country string `json:"country"` Province string `json:"province"` Region string `json:"region"` City string `json:"city"` Lat string `json:"lat"` Lng string `json:"lng"` CreateTime common.DateTime `json:"create_time"` }
UserLoginDto 登录信息