st

package
v0.0.0-...-cc65f9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateUserForm

type ActivateUserForm struct {
	FormError
	ActivateCode string `form:"s" binding:"Required"`
}

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 EmailForm

type EmailForm struct {
	FormError
	Email string `form:"email" binding:"Required;Email"`
}

EmailForm 邮件表单

type EmptyQuery

type EmptyQuery struct {
	consts.Query
}

EmptyQuery 搜索

type FormError

type FormError struct {
}

FormError .

func (FormError) Error

func (from FormError) Error(mctx *macaron.Context, errs binding.Errors)

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

type LoginWithThirdForm struct {
	FormError
	State string `form:"state"`
}

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

type MobileForm struct {
	FormError
	Mobile string `form:"mobile" binding:"Required;Mobile"`
}

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

type RegisterWithThirdForm struct {
	FormError
	Code string `form:"code" binding:"Required"`
}

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

type ResourceQuery struct {
	consts.Query
	Name string `form:"name"`
}

ResourceQuery 资源搜索

type RoleDto

type RoleDto struct {
	// 编号
	RoleID common.ID `json:"role_id"`
	// 名称
	Name string `json:"name"`
}

RoleDto 角色

type RoleQuery

type RoleQuery struct {
	consts.Query
	Name string `form:"name"`
}

RoleQuery 角色搜索

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 登录信息

type UserQuery

type UserQuery struct {
	consts.Query
	Keyword    string   `form:"keyword"`
	Name       string   `form:"name"`
	Email      string   `form:"email"`
	Mobile     string   `form:"mobile"`
	Genders    []string `form:"gender"`
	Forbiddens []string `form:"forbidden"`
	Activates  []string `form:"activate"`
}

UserQuery 用户搜索

type WeiXinMPForm

type WeiXinMPForm struct {
	FormError
	WeiXinMPKey         string `form:"key" binding:"Required"`
	WeiXinEncryptedData string `form:"encrypted_data" binding:"Required"`
	WeiXinIV            string `form:"iv" binding:"Required"`
}

WeiXinMPForm 微信小程序表单

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL