req

package
v0.0.1-fix Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiUpsertReq

type ApiUpsertReq struct {
	Method      string `json:"method" binding:"required,max=10" label:"请求方式"`
	Name        string `json:"name" binding:"omitempty,max=20" label:"API名称"`
	Path        string `json:"path" binding:"required,max=100" label:"路由路径"`
	Description string `json:"description" binding:"omitempty,max=255" label:"描述信息"`
}

type ChangeMyPasswdReq

type ChangeMyPasswdReq struct {
	OldPassword string `json:"oldPassword" binding:"required,max=30" label:"旧密码"`
	NewPassword string `json:"newPassword" binding:"required,min=6,max=30" label:"新密码"`
}

type ChangePasswdReq

type ChangePasswdReq struct {
	Id          int64  `json:"id" binding:"required,min=1" label:"用户ID"`
	NewPassword string `json:"newPassword" binding:"required,min=6,max=30" label:"新密码"`
}

type DeptUpsertReq

type DeptUpsertReq struct {
	Name     string `json:"name" binding:"required,max=50" label:"部门名称"`
	SortNum  int32  `json:"sortNum" binding:"omitempty" label:"排序"`
	ParentId int64  `json:"parentId" binding:"omitempty,min=0" label:"父级部门"`
}

type JobUpsertReq

type JobUpsertReq struct {
	Name        string `json:"name" binding:"required,max=50" label:"岗位名称"`
	SortNum     int    `json:"sortNum" binding:"omitempty" label:"排序"`
	Description string `json:"description" binding:"omitempty,max=255" label:"岗位名称"`
}

type LoginReq

type LoginReq struct {
	Email    string `json:"email" binding:"required,email" label:"账号"`
	Password string `json:"password" binding:"required,max=30" label:"密码"`
}
type MenuUpsertReq struct {
	Symbol      string `json:"symbol" binding:"omitempty,max=50,regex=^\\w+:\\w+$" label:"权限标识"`
	Name        string `json:"name" binding:"required,max=20" label:"菜单名称"`
	Icon        string `json:"icon" binding:"omitempty,max=50" label:"图标"`
	SortNum     int32  `json:"sortNum" binding:"omitempty" label:"排序"`
	Url         string `json:"url" binding:"omitempty,max=100" label:"菜单URL"`
	Display     int8   `json:"display" binding:"omitempty,oneof=0 1" label:"是否显示"`
	External    int8   `json:"external" binding:"omitempty,oneof=0 1" label:"是否外链"`
	ExternalWay int8   `json:"externalWay" binding:"omitempty,oneof=0 1" label:"打开方式"`
	ParentId    int64  `json:"parentId" binding:"omitempty,min=0" label:"父菜单"`
}

type RoleMenusUpdateReq

type RoleMenusUpdateReq struct {
	Ids []int64 `json:"ids" binding:"required,max=1000" label:"菜单列表"`
}

type RoleUpsertReq

type RoleUpsertReq struct {
	Name    string `json:"name" binding:"required,max=20" label:"角色名称"`
	SortNum int    `json:"sortNum" binding:"omitempty" label:"排序"`
}

type SettingsUpsertReq

type SettingsUpsertReq struct {
	Key   string `json:"key" binding:"required,max=50" label:"键名"`
	Value string `json:"value" binding:"required,max=2048" label:"值"`
}

type UpsertMyInfoReq

type UpsertMyInfoReq struct {
	Cellphone string `json:"cellphone" binding:"omitempty,regex=^1[0-9]{10}$" label:"手机号"`
	Nickname  string `json:"nickname" binding:"required,max=20" label:"昵称"`
}

type UserMenusUpdateReq

type UserMenusUpdateReq struct {
	Ids []int64 `json:"ids" binding:"required,max=1000" label:"菜单列表"`
}

type UserUpsertReq

type UserUpsertReq struct {
	Sex                int8    `json:"sex" binding:"omitempty,oneof=0 1" label:"性别"`
	Birthday           string  `json:"birthday" binding:"omitempty,regex=^[0-9]{4}-[0-9]{2}-[0-9]{2}$" label:"出生日期"`
	Cellphone          string  `json:"cellphone" binding:"omitempty,regex=^1[0-9]{10}$" label:"手机号"`
	Email              string  `json:"email" binding:"required,email,max=50" label:"邮箱"`
	Name               string  `json:"name" binding:"omitempty,max=20" label:"姓名"`
	Nickname           string  `json:"nickname" binding:"required,max=20" label:"昵称"`
	DeptId             int64   `json:"deptId" binding:"required,min=1" label:"部门"`
	RoleIds            []int64 `json:"roleIds" binding:"required,min=1,max=1000" label:"角色列表"`
	JobIds             []int64 `json:"jobIds" binding:"required,min=1,max=1000" label:"岗位列表"`
	ShouldSendPassword bool    `json:"shouldSendPassword" binding:"omitempty" label:"邮件发送标志"` // 仅新增的时候有效
}

Jump to

Keyboard shortcuts

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