dto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeptIdList

type DeptIdList struct {
	DeptId int `json:"DeptId"`
}

type DeptJoin

type DeptJoin struct {
	DeptId string `search:"type:contains;column:dept_path;table:sys_dept" form:"deptId"`
}

type DeptLabel

type DeptLabel struct {
	Id       int         `gorm:"-" json:"id"`
	Label    string      `gorm:"-" json:"label"`
	Children []DeptLabel `gorm:"-" json:"children"`
}

type GetSetSysConfigReq

type GetSetSysConfigReq struct {
	ConfigKey   string `json:"configKey" comment:""`
	ConfigValue string `json:"configValue" comment:""`
}

GetSetSysConfigReq 增、改使用的结构体

func (*GetSetSysConfigReq) Generate

func (s *GetSetSysConfigReq) Generate(model *models.SysConfig)

Generate 结构体数据转化 从 SysConfigControl 至 system.SysConfig 对应的模型

type GetSysConfigByKEYForServiceResp

type GetSysConfigByKEYForServiceResp struct {
	ConfigKey   string `json:"configKey" comment:""`
	ConfigValue string `json:"configValue" comment:""`
}
type MenuLabel struct {
	Id       int         `json:"id,omitempty" gorm:"-"`
	Label    string      `json:"label,omitempty" gorm:"-"`
	Children []MenuLabel `json:"children,omitempty" gorm:"-"`
}
type MenuRole struct {
	models.SysMenu
	IsSelect bool `json:"is_select" gorm:"-"`
}

type PassWord

type PassWord struct {
	NewPassword string `json:"newPassword" vd:"len($)>0"`
	OldPassword string `json:"oldPassword" vd:"len($)>0"`
}

PassWord 密码

type ResetSysUserPwdReq

type ResetSysUserPwdReq struct {
	UserId   int    `json:"userId" comment:"用户ID" binding:"required"` // 用户ID
	Password string `json:"password" comment:"密码" binding:"required"`
}

func (*ResetSysUserPwdReq) Generate

func (s *ResetSysUserPwdReq) Generate(model *models.SysUser)

func (*ResetSysUserPwdReq) GetId

func (s *ResetSysUserPwdReq) GetId() interface{}

type RoleDataScopeReq

type RoleDataScopeReq struct {
	RoleId    int    `json:"roleId" binding:"required"`
	DataScope string `json:"dataScope" binding:"required"`
	DeptIds   []int  `json:"deptIds"`
}

RoleDataScopeReq 角色数据权限修改

func (*RoleDataScopeReq) Generate

func (s *RoleDataScopeReq) Generate(model *models.SysRole)

type SelectRole

type SelectRole struct {
	RoleId int `uri:"roleId"`
}

type SysApiDeleteReq

type SysApiDeleteReq struct {
	Ids []int `json:"ids"`
}

SysApiDeleteReq 功能删除请求参数

func (*SysApiDeleteReq) GetId

func (s *SysApiDeleteReq) GetId() interface{}

type SysApiGetPageReq

type SysApiGetPageReq struct {
	dto.Pagination `search:"-"`
	Title          string `form:"title"  search:"type:contains;column:title;table:sys_api" comment:"标题"`
	Path           string `form:"path"  search:"type:contains;column:path;table:sys_api" comment:"地址"`
	Action         string `form:"action"  search:"type:exact;column:action;table:sys_api" comment:"类型"`
	Type           string `form:"type" search:"type:exact;column:type;table:sys_api" comment:"类别"`
	SysApiOrder
}

SysApiGetPageReq 功能列表请求参数

func (*SysApiGetPageReq) GetNeedSearch

func (m *SysApiGetPageReq) GetNeedSearch() interface{}

type SysApiGetReq

type SysApiGetReq struct {
	Id int `uri:"id"`
}

SysApiGetReq 功能获取请求参数

func (*SysApiGetReq) GetId

func (s *SysApiGetReq) GetId() interface{}

type SysApiInsertReq

type SysApiInsertReq struct {
	Id     int    `json:"-" comment:"编码"` // 编码
	Handle string `json:"handle" comment:"handle"`
	Title  string `json:"title" comment:"标题"`
	Path   string `json:"path" comment:"地址"`
	Type   string `json:"type" comment:""`
	Action string `json:"action" comment:"类型"`
}

SysApiInsertReq 功能创建请求参数

func (*SysApiInsertReq) Generate

func (s *SysApiInsertReq) Generate(model *models.SysApi)

func (*SysApiInsertReq) GetId

func (s *SysApiInsertReq) GetId() interface{}

type SysApiOrder

type SysApiOrder struct {
	TitleOrder     string `search:"type:order;column:title;table:sys_api" form:"titleOrder"`
	PathOrder      string `search:"type:order;column:path;table:sys_api" form:"pathOrder"`
	CreatedAtOrder string `search:"type:order;column:created_at;table:sys_api" form:"createdAtOrder"`
}

type SysApiUpdateReq

type SysApiUpdateReq struct {
	Id     int    `uri:"id" comment:"编码"` // 编码
	Handle string `json:"handle" comment:"handle"`
	Title  string `json:"title" comment:"标题"`
	Path   string `json:"path" comment:"地址"`
	Type   string `json:"type" comment:""`
	Action string `json:"action" comment:"类型"`
}

SysApiUpdateReq 功能更新请求参数

func (*SysApiUpdateReq) Generate

func (s *SysApiUpdateReq) Generate(model *models.SysApi)

func (*SysApiUpdateReq) GetId

func (s *SysApiUpdateReq) GetId() interface{}

type SysConfigByKeyReq

type SysConfigByKeyReq struct {
	ConfigKey string `uri:"configKey" search:"type:contains;column:config_key;table:sys_config"`
}

SysConfigByKeyReq 根据Key获取配置

func (*SysConfigByKeyReq) GetNeedSearch

func (m *SysConfigByKeyReq) GetNeedSearch() interface{}

type SysConfigControl

type SysConfigControl struct {
	Id          int    `uri:"Id" comment:"编码"` // 编码
	ConfigName  string `json:"configName" comment:""`
	ConfigKey   string `uri:"configKey" json:"configKey" comment:""`
	ConfigValue string `json:"configValue" comment:""`
	ConfigType  string `json:"configType" comment:""`
	IsFrontend  int    `json:"isFrontend"`
	Remark      string `json:"remark" comment:""`
}

SysConfigControl 增、改使用的结构体

func (*SysConfigControl) Generate

func (s *SysConfigControl) Generate(model *models.SysConfig)

Generate 结构体数据转化 从 SysConfigControl 至 system.SysConfig 对应的模型

func (*SysConfigControl) GetId

func (s *SysConfigControl) GetId() interface{}

GetId 获取数据对应的ID

type SysConfigDeleteReq

type SysConfigDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysConfigDeleteReq) GetId

func (s *SysConfigDeleteReq) GetId() interface{}

type SysConfigGetPageReq

type SysConfigGetPageReq struct {
	dto.Pagination `search:"-"`
	ConfigName     string `form:"configName" search:"type:contains;column:config_name;table:sys_config"`
	ConfigKey      string `form:"configKey" search:"type:contains;column:config_key;table:sys_config"`
	ConfigType     string `form:"configType" search:"type:exact;column:config_type;table:sys_config"`
	IsFrontend     int    `form:"isFrontend" search:"type:exact;column:is_frontend;table:sys_config"`
	SysConfigOrder
}

SysConfigGetPageReq 列表或者搜索使用结构体

func (*SysConfigGetPageReq) GetNeedSearch

func (m *SysConfigGetPageReq) GetNeedSearch() interface{}

type SysConfigGetReq

type SysConfigGetReq struct {
	Id int `uri:"id"`
}

func (*SysConfigGetReq) GetId

func (s *SysConfigGetReq) GetId() interface{}

type SysConfigGetToSysAppReq

type SysConfigGetToSysAppReq struct {
	IsFrontend int `form:"isFrontend" search:"type:exact;column:is_frontend;table:sys_config"`
}

func (*SysConfigGetToSysAppReq) GetNeedSearch

func (m *SysConfigGetToSysAppReq) GetNeedSearch() interface{}

type SysConfigOrder

type SysConfigOrder struct {
	IdOrder         string `search:"type:order;column:id;table:sys_config" form:"idOrder"`
	ConfigNameOrder string `search:"type:order;column:config_name;table:sys_config" form:"configNameOrder"`
	ConfigKeyOrder  string `search:"type:order;column:config_key;table:sys_config" form:"configKeyOrder"`
	ConfigTypeOrder string `search:"type:order;column:config_type;table:sys_config" form:"configTypeOrder"`
	CreatedAtOrder  string `search:"type:order;column:created_at;table:sys_config" form:"createdAtOrder"`
}

type SysDeptDeleteReq

type SysDeptDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysDeptDeleteReq) GetId

func (s *SysDeptDeleteReq) GetId() interface{}

type SysDeptGetPageReq

type SysDeptGetPageReq struct {
	DeptId   int    `form:"deptId" search:"type:exact;column:dept_id;table:sys_dept" comment:"id"`       //id
	ParentId int    `form:"parentId" search:"type:exact;column:parent_id;table:sys_dept" comment:"上级部门"` //上级部门
	DeptPath string `form:"deptPath" search:"type:exact;column:dept_path;table:sys_dept" comment:""`     //路径
	DeptName string `form:"deptName" search:"type:exact;column:dept_name;table:sys_dept" comment:"部门名称"` //部门名称
	Sort     int    `form:"sort" search:"type:exact;column:sort;table:sys_dept" comment:"排序"`            //排序
	Leader   string `form:"leader" search:"type:exact;column:leader;table:sys_dept" comment:"负责人"`       //负责人
	Phone    string `form:"phone" search:"type:exact;column:phone;table:sys_dept" comment:"手机"`          //手机
	Email    string `form:"email" search:"type:exact;column:email;table:sys_dept" comment:"邮箱"`          //邮箱
	Status   string `form:"status" search:"type:exact;column:status;table:sys_dept" comment:"状态"`        //状态
}

SysDeptGetPageReq 列表或者搜索使用结构体

func (*SysDeptGetPageReq) GetNeedSearch

func (m *SysDeptGetPageReq) GetNeedSearch() interface{}

type SysDeptGetReq

type SysDeptGetReq struct {
	Id int `uri:"id"`
}

func (*SysDeptGetReq) GetId

func (s *SysDeptGetReq) GetId() interface{}

type SysDeptInsertReq

type SysDeptInsertReq struct {
	DeptId   int    `uri:"id" comment:"编码"`                                         // 编码
	ParentId int    `json:"parentId" comment:"上级部门" vd:"?"`                         //上级部门
	DeptPath string `json:"deptPath" comment:""`                                    //路径
	DeptName string `json:"deptName" comment:"部门名称" vd:"len($)>0"`                  //部门名称
	Sort     int    `json:"sort" comment:"排序" vd:"?"`                               //排序
	Leader   string `json:"leader" comment:"负责人" vd:"@:len($)>0; msg:'leader不能为空'"` //负责人
	Phone    string `json:"phone" comment:"手机" vd:"?"`                              //手机
	Email    string `json:"email" comment:"邮箱" vd:"?"`                              //邮箱
	Status   int    `json:"status" comment:"状态" vd:"$>0"`                           //状态
}

func (*SysDeptInsertReq) Generate

func (s *SysDeptInsertReq) Generate(model *models.SysDept)

func (*SysDeptInsertReq) GetId

func (s *SysDeptInsertReq) GetId() interface{}

GetId 获取数据对应的ID

type SysDeptUpdateReq

type SysDeptUpdateReq struct {
	DeptId   int    `uri:"id" comment:"编码"`                                         // 编码
	ParentId int    `json:"parentId" comment:"上级部门" vd:"?"`                         //上级部门
	DeptPath string `json:"deptPath" comment:""`                                    //路径
	DeptName string `json:"deptName" comment:"部门名称" vd:"len($)>0"`                  //部门名称
	Sort     int    `json:"sort" comment:"排序" vd:"?"`                               //排序
	Leader   string `json:"leader" comment:"负责人" vd:"@:len($)>0; msg:'leader不能为空'"` //负责人
	Phone    string `json:"phone" comment:"手机" vd:"?"`                              //手机
	Email    string `json:"email" comment:"邮箱" vd:"?"`                              //邮箱
	Status   int    `json:"status" comment:"状态" vd:"$>0"`                           //状态
}

func (*SysDeptUpdateReq) Generate

func (s *SysDeptUpdateReq) Generate(model *models.SysDept)

Generate 结构体数据转化 从 SysDeptControl 至 SysDept 对应的模型

func (*SysDeptUpdateReq) GetId

func (s *SysDeptUpdateReq) GetId() interface{}

GetId 获取数据对应的ID

type SysDictDataDeleteReq

type SysDictDataDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysDictDataDeleteReq) GetId

func (s *SysDictDataDeleteReq) GetId() interface{}

type SysDictDataGetAllResp

type SysDictDataGetAllResp struct {
	DictLabel string `json:"label"`
	DictValue string `json:"value"`
}

type SysDictDataGetPageReq

type SysDictDataGetPageReq struct {
	dto.Pagination `search:"-"`
	Id             int    `form:"id" search:"type:exact;column:dict_code;table:sys_dict_data" comment:""`
	DictLabel      string `form:"dictLabel" search:"type:contains;column:dict_label;table:sys_dict_data" comment:""`
	DictValue      string `form:"dictValue" search:"type:contains;column:dict_value;table:sys_dict_data" comment:""`
	DictType       string `form:"dictType" search:"type:contains;column:dict_type;table:sys_dict_data" comment:""`
	Status         string `form:"status" search:"type:exact;column:status;table:sys_dict_data" comment:""`
}

func (*SysDictDataGetPageReq) GetNeedSearch

func (m *SysDictDataGetPageReq) GetNeedSearch() interface{}

type SysDictDataGetReq

type SysDictDataGetReq struct {
	Id int `uri:"dictCode"`
}

func (*SysDictDataGetReq) GetId

func (s *SysDictDataGetReq) GetId() interface{}

type SysDictDataInsertReq

type SysDictDataInsertReq struct {
	Id        int    `json:"-" comment:""`
	DictSort  int    `json:"dictSort" comment:""`
	DictLabel string `json:"dictLabel" comment:""`
	DictValue string `json:"dictValue" comment:""`
	DictType  string `json:"dictType" comment:""`
	CssClass  string `json:"cssClass" comment:""`
	ListClass string `json:"listClass" comment:""`
	IsDefault string `json:"isDefault" comment:""`
	Status    int    `json:"status" comment:""`
	Default   string `json:"default" comment:""`
	Remark    string `json:"remark" comment:""`
}

func (*SysDictDataInsertReq) Generate

func (s *SysDictDataInsertReq) Generate(model *models.SysDictData)

func (*SysDictDataInsertReq) GetId

func (s *SysDictDataInsertReq) GetId() interface{}

type SysDictDataUpdateReq

type SysDictDataUpdateReq struct {
	Id        int    `uri:"dictCode" comment:""`
	DictSort  int    `json:"dictSort" comment:""`
	DictLabel string `json:"dictLabel" comment:""`
	DictValue string `json:"dictValue" comment:""`
	DictType  string `json:"dictType" comment:""`
	CssClass  string `json:"cssClass" comment:""`
	ListClass string `json:"listClass" comment:""`
	IsDefault string `json:"isDefault" comment:""`
	Status    int    `json:"status" comment:""`
	Default   string `json:"default" comment:""`
	Remark    string `json:"remark" comment:""`
}

func (*SysDictDataUpdateReq) Generate

func (s *SysDictDataUpdateReq) Generate(model *models.SysDictData)

func (*SysDictDataUpdateReq) GetId

func (s *SysDictDataUpdateReq) GetId() interface{}

type SysDictTypeDeleteReq

type SysDictTypeDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysDictTypeDeleteReq) GetId

func (s *SysDictTypeDeleteReq) GetId() interface{}

type SysDictTypeGetPageReq

type SysDictTypeGetPageReq struct {
	dto.Pagination `search:"-"`
	DictId         []int  `form:"dictId" search:"type:in;column:dict_id;table:sys_dict_type"`
	DictName       string `form:"dictName" search:"type:icontains;column:dict_name;table:sys_dict_type"`
	DictType       string `form:"dictType" search:"type:icontains;column:dict_type;table:sys_dict_type"`
	Status         int    `form:"status" search:"type:exact;column:status;table:sys_dict_type"`
}

func (*SysDictTypeGetPageReq) GetNeedSearch

func (m *SysDictTypeGetPageReq) GetNeedSearch() interface{}

type SysDictTypeGetReq

type SysDictTypeGetReq struct {
	Id int `uri:"id"`
}

func (*SysDictTypeGetReq) GetId

func (s *SysDictTypeGetReq) GetId() interface{}

type SysDictTypeInsertReq

type SysDictTypeInsertReq struct {
	Id       int    `uri:"id"`
	DictName string `json:"dictName"`
	DictType string `json:"dictType"`
	Status   int    `json:"status"`
	Remark   string `json:"remark"`
}

func (*SysDictTypeInsertReq) Generate

func (s *SysDictTypeInsertReq) Generate(model *models.SysDictType)

func (*SysDictTypeInsertReq) GetId

func (s *SysDictTypeInsertReq) GetId() interface{}

type SysDictTypeOrder

type SysDictTypeOrder struct {
	DictIdOrder string `search:"type:order;column:dict_id;table:sys_dict_type" form:"dictIdOrder"`
}

type SysDictTypeUpdateReq

type SysDictTypeUpdateReq struct {
	Id       int    `uri:"id"`
	DictName string `json:"dictName"`
	DictType string `json:"dictType"`
	Status   int    `json:"status"`
	Remark   string `json:"remark"`
}

func (*SysDictTypeUpdateReq) Generate

func (s *SysDictTypeUpdateReq) Generate(model *models.SysDictType)

func (*SysDictTypeUpdateReq) GetId

func (s *SysDictTypeUpdateReq) GetId() interface{}

type SysLoginLogControl

type SysLoginLogControl struct {
	ID            int       `uri:"Id" comment:"主键"` // 主键
	Username      string    `json:"username" comment:"用户名"`
	Status        string    `json:"status" comment:"状态"`
	Ipaddr        string    `json:"ipaddr" comment:"ip地址"`
	LoginLocation string    `json:"loginLocation" comment:"归属地"`
	Browser       string    `json:"browser" comment:"浏览器"`
	Os            string    `json:"os" comment:"系统"`
	Platform      string    `json:"platform" comment:"固件"`
	LoginTime     time.Time `json:"loginTime" comment:"登录时间"`
	Remark        string    `json:"remark" comment:"备注"`
	Msg           string    `json:"msg" comment:"信息"`
}

type SysLoginLogDeleteReq

type SysLoginLogDeleteReq struct {
	Ids []int `json:"ids"`
}

SysLoginLogDeleteReq 功能删除请求参数

func (*SysLoginLogDeleteReq) GetId

func (s *SysLoginLogDeleteReq) GetId() interface{}

type SysLoginLogGetPageReq

type SysLoginLogGetPageReq struct {
	dto.Pagination `search:"-"`
	Username       string `form:"username" search:"type:exact;column:username;table:sys_login_log" comment:"用户名"`
	Status         string `form:"status" search:"type:exact;column:status;table:sys_login_log" comment:"状态"`
	Ipaddr         string `form:"ipaddr" search:"type:exact;column:ipaddr;table:sys_login_log" comment:"ip地址"`
	LoginLocation  string `form:"loginLocation" search:"type:exact;column:login_location;table:sys_login_log" comment:"归属地"`
	BeginTime      string `form:"beginTime" search:"type:gte;column:ctime;table:sys_login_log" comment:"创建时间"`
	EndTime        string `form:"endTime" search:"type:lte;column:ctime;table:sys_login_log" comment:"创建时间"`
	SysLoginLogOrder
}

func (*SysLoginLogGetPageReq) GetNeedSearch

func (m *SysLoginLogGetPageReq) GetNeedSearch() interface{}

type SysLoginLogGetReq

type SysLoginLogGetReq struct {
	Id int `uri:"id"`
}

func (*SysLoginLogGetReq) GetId

func (s *SysLoginLogGetReq) GetId() interface{}

type SysLoginLogOrder

type SysLoginLogOrder struct {
	CreatedAtOrder string `search:"type:order;column:created_at;table:sys_login_log" form:"createdAtOrder"`
}

type SysMenuDeleteReq

type SysMenuDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysMenuDeleteReq) GetId

func (s *SysMenuDeleteReq) GetId() interface{}

type SysMenuGetPageReq

type SysMenuGetPageReq struct {
	dto.Pagination `search:"-"`
	Title          string `form:"title" search:"type:contains;column:title;table:sys_menu" comment:"菜单名称"`  // 菜单名称
	Visible        int    `form:"visible" search:"type:exact;column:visible;table:sys_menu" comment:"显示状态"` // 显示状态
}

SysMenuGetPageReq 列表或者搜索使用结构体

func (*SysMenuGetPageReq) GetNeedSearch

func (m *SysMenuGetPageReq) GetNeedSearch() interface{}

type SysMenuGetReq

type SysMenuGetReq struct {
	Id int `uri:"id"`
}

func (*SysMenuGetReq) GetId

func (s *SysMenuGetReq) GetId() interface{}

type SysMenuInsertReq

type SysMenuInsertReq struct {
	MenuId     int             `uri:"id" comment:"编码"`            // 编码
	MenuName   string          `form:"menuName" comment:"菜单name"` //菜单name
	Title      string          `form:"title" comment:"显示名称"`      //显示名称
	Icon       string          `form:"icon" comment:"图标"`         //图标
	Path       string          `form:"path" comment:"路径"`         //路径
	Paths      string          `form:"paths" comment:"id路径"`      //id路径
	MenuType   string          `form:"menuType" comment:"菜单类型"`   //菜单类型
	SysApi     []models.SysApi `form:"sysApi"`
	Apis       []int           `form:"apis"`
	Action     string          `form:"action" comment:"请求方式"`      //请求方式
	Permission string          `form:"permission" comment:"权限编码"`  //权限编码
	ParentId   int             `form:"parentId" comment:"上级菜单"`    //上级菜单
	NoCache    bool            `form:"noCache" comment:"是否缓存"`     //是否缓存
	Breadcrumb string          `form:"breadcrumb" comment:"是否面包屑"` //是否面包屑
	Component  string          `form:"component" comment:"组件"`     //组件
	Sort       int             `form:"sort" comment:"排序"`          //排序
	Visible    string          `form:"visible" comment:"是否显示"`     //是否显示
	IsFrame    string          `form:"isFrame" comment:"是否frame"`  //是否frame
}

func (*SysMenuInsertReq) Generate

func (s *SysMenuInsertReq) Generate(model *models.SysMenu)

func (*SysMenuInsertReq) GetId

func (s *SysMenuInsertReq) GetId() interface{}

type SysMenuUpdateReq

type SysMenuUpdateReq struct {
	MenuId     int             `uri:"id" comment:"编码"`            // 编码
	MenuName   string          `form:"menuName" comment:"菜单name"` //菜单name
	Title      string          `form:"title" comment:"显示名称"`      //显示名称
	Icon       string          `form:"icon" comment:"图标"`         //图标
	Path       string          `form:"path" comment:"路径"`         //路径
	Paths      string          `form:"paths" comment:"id路径"`      //id路径
	MenuType   string          `form:"menuType" comment:"菜单类型"`   //菜单类型
	SysApi     []models.SysApi `form:"sysApi"`
	Apis       []int           `form:"apis"`
	Action     string          `form:"action" comment:"请求方式"`      //请求方式
	Permission string          `form:"permission" comment:"权限编码"`  //权限编码
	ParentId   int             `form:"parentId" comment:"上级菜单"`    //上级菜单
	NoCache    bool            `form:"noCache" comment:"是否缓存"`     //是否缓存
	Breadcrumb string          `form:"breadcrumb" comment:"是否面包屑"` //是否面包屑
	Component  string          `form:"component" comment:"组件"`     //组件
	Sort       int             `form:"sort" comment:"排序"`          //排序
	Visible    string          `form:"visible" comment:"是否显示"`     //是否显示
	IsFrame    string          `form:"isFrame" comment:"是否frame"`  //是否frame
}

func (*SysMenuUpdateReq) Generate

func (s *SysMenuUpdateReq) Generate(model *models.SysMenu)

func (*SysMenuUpdateReq) GetId

func (s *SysMenuUpdateReq) GetId() interface{}

type SysOperaLogControl

type SysOperaLogControl struct {
	ID            int       `uri:"Id" comment:"编码"` // 编码
	Title         string    `json:"title" comment:"操作模块"`
	BusinessType  string    `json:"businessType" comment:"操作类型"`
	BusinessTypes string    `json:"businessTypes" comment:""`
	Method        string    `json:"method" comment:"函数"`
	RequestMethod string    `json:"requestMethod" comment:"请求方式"`
	OperatorType  string    `json:"operatorType" comment:"操作类型"`
	OperName      string    `json:"operName" comment:"操作者"`
	DeptName      string    `json:"deptName" comment:"部门名称"`
	OperUrl       string    `json:"operUrl" comment:"访问地址"`
	OperIp        string    `json:"operIp" comment:"客户端ip"`
	OperLocation  string    `json:"operLocation" comment:"访问位置"`
	OperParam     string    `json:"operParam" comment:"请求参数"`
	Status        string    `json:"status" comment:"操作状态"`
	OperTime      time.Time `json:"operTime" comment:"操作时间"`
	JsonResult    string    `json:"jsonResult" comment:"返回数据"`
	Remark        string    `json:"remark" comment:"备注"`
	LatencyTime   string    `json:"latencyTime" comment:"耗时"`
	UserAgent     string    `json:"userAgent" comment:"ua"`
}

func (*SysOperaLogControl) Generate

func (s *SysOperaLogControl) Generate() (*models.SysOperaLog, error)

func (*SysOperaLogControl) GetId

func (s *SysOperaLogControl) GetId() interface{}

type SysOperaLogDeleteReq

type SysOperaLogDeleteReq struct {
	Ids []int `json:"ids"`
}

SysOperaLogDeleteReq 功能删除请求参数

func (*SysOperaLogDeleteReq) GetId

func (s *SysOperaLogDeleteReq) GetId() interface{}

type SysOperaLogGetPageReq

type SysOperaLogGetPageReq struct {
	dto.Pagination `search:"-"`
	Title          string `form:"title" search:"type:contains;column:title;table:sys_opera_log" comment:"操作模块"`
	Method         string `form:"method" search:"type:contains;column:method;table:sys_opera_log" comment:"函数"`
	RequestMethod  string `form:"requestMethod" search:"type:contains;column:request_method;table:sys_opera_log" comment:"请求方式"`
	OperUrl        string `form:"operUrl" search:"type:contains;column:oper_url;table:sys_opera_log" comment:"访问地址"`
	OperIp         string `form:"operIp" search:"type:exact;column:oper_ip;table:sys_opera_log" comment:"客户端ip"`
	Status         int    `form:"status" search:"type:exact;column:status;table:sys_opera_log" comment:"状态"`
	BeginTime      string `form:"beginTime" search:"type:gte;column:ctime;table:sys_opera_log" comment:"创建时间"`
	EndTime        string `form:"endTime" search:"type:lte;column:ctime;table:sys_opera_log" comment:"创建时间"`
	SysOperaLogOrder
}

func (*SysOperaLogGetPageReq) GetNeedSearch

func (m *SysOperaLogGetPageReq) GetNeedSearch() interface{}

type SysOperaLogGetReq

type SysOperaLogGetReq struct {
	Id int `uri:"id"`
}

func (*SysOperaLogGetReq) GetId

func (s *SysOperaLogGetReq) GetId() interface{}

type SysOperaLogOrder

type SysOperaLogOrder struct {
	CreatedAtOrder string `search:"type:order;column:created_at;table:sys_opera_log" form:"createdAtOrder"`
}

type SysPostDeleteReq

type SysPostDeleteReq struct {
	Ids []int `json:"ids"`
}

SysPostDeleteReq 删除的结构体

func (*SysPostDeleteReq) GetId

func (s *SysPostDeleteReq) GetId() interface{}

type SysPostGetReq

type SysPostGetReq struct {
	Id int `uri:"id"`
}

SysPostGetReq 获取单个的结构体

func (*SysPostGetReq) GetId

func (s *SysPostGetReq) GetId() interface{}

type SysPostInsertReq

type SysPostInsertReq struct {
	PostId   int    `uri:"id"  comment:"id"`
	PostName string `form:"postName"  comment:"名称"`
	PostCode string `form:"postCode" comment:"编码"`
	Sort     int    `form:"sort" comment:"排序"`
	Status   int    `form:"status"   comment:"状态"`
	Remark   string `form:"remark"   comment:"备注"`
}

SysPostInsertReq 增使用的结构体

func (*SysPostInsertReq) Generate

func (s *SysPostInsertReq) Generate(model *models.SysPost)

func (*SysPostInsertReq) GetId

func (s *SysPostInsertReq) GetId() interface{}

GetId 获取数据对应的ID

type SysPostPageReq

type SysPostPageReq struct {
	dto.Pagination `search:"-"`
	PostId         int    `form:"postId" search:"type:exact;column:post_id;table:sys_post" comment:"id"`        // id
	PostName       string `form:"postName" search:"type:contains;column:post_name;table:sys_post" comment:"名称"` // 名称
	PostCode       string `form:"postCode" search:"type:contains;column:post_code;table:sys_post" comment:"编码"` // 编码
	Sort           int    `form:"sort" search:"type:exact;column:sort;table:sys_post" comment:"排序"`             // 排序
	Status         int    `form:"status" search:"type:exact;column:status;table:sys_post" comment:"状态"`         // 状态
	Remark         string `form:"remark" search:"type:exact;column:remark;table:sys_post" comment:"备注"`         // 备注
}

SysPostPageReq 列表或者搜索使用结构体

func (*SysPostPageReq) GetNeedSearch

func (m *SysPostPageReq) GetNeedSearch() interface{}

type SysPostUpdateReq

type SysPostUpdateReq struct {
	PostId   int    `uri:"id"  comment:"id"`
	PostName string `form:"postName"  comment:"名称"`
	PostCode string `form:"postCode" comment:"编码"`
	Sort     int    `form:"sort" comment:"排序"`
	Status   int    `form:"status"   comment:"状态"`
	Remark   string `form:"remark"   comment:"备注"`
}

SysPostUpdateReq 改使用的结构体

func (*SysPostUpdateReq) Generate

func (s *SysPostUpdateReq) Generate(model *models.SysPost)

func (*SysPostUpdateReq) GetId

func (s *SysPostUpdateReq) GetId() interface{}

type SysRoleByName

type SysRoleByName struct {
	RoleName string `form:"role"` // 角色编码
}

type SysRoleDeleteReq

type SysRoleDeleteReq struct {
	Ids []int `json:"ids"`
}

func (*SysRoleDeleteReq) GetId

func (s *SysRoleDeleteReq) GetId() interface{}

type SysRoleGetPageReq

type SysRoleGetPageReq struct {
	dto.Pagination `search:"-"`

	RoleId   int    `form:"roleId" search:"type:exact;column:role_id;table:sys_role" comment:"角色编码"`     // 角色编码
	RoleName string `form:"roleName" search:"type:exact;column:role_name;table:sys_role" comment:"角色名称"` // 角色名称
	Status   string `form:"status" search:"type:exact;column:status;table:sys_role" comment:"状态"`        // 状态
	RoleKey  string `form:"roleKey" search:"type:exact;column:role_key;table:sys_role" comment:"角色代码"`   // 角色代码
	RoleSort int    `form:"roleSort" search:"type:exact;column:role_sort;table:sys_role" comment:"角色排序"` // 角色排序
	Flag     string `form:"flag" search:"type:exact;column:flag;table:sys_role" comment:"标记"`            // 标记
	Remark   string `form:"remark" search:"type:exact;column:remark;table:sys_role" comment:"备注"`        // 备注
	Admin    bool   `form:"admin" search:"type:exact;column:admin;table:sys_role" comment:"是否管理员"`
}

func (*SysRoleGetPageReq) GetNeedSearch

func (m *SysRoleGetPageReq) GetNeedSearch() interface{}

type SysRoleGetReq

type SysRoleGetReq struct {
	Id int `uri:"id"`
}

func (*SysRoleGetReq) GetId

func (s *SysRoleGetReq) GetId() interface{}

type SysRoleInsertReq

type SysRoleInsertReq struct {
	RoleId    int              `uri:"id" comment:"角色编码"`        // 角色编码
	RoleName  string           `form:"roleName" comment:"角色名称"` // 角色名称
	Status    string           `form:"status" comment:"状态"`     // 状态
	RoleKey   string           `form:"roleKey" comment:"角色代码"`  // 角色代码
	RoleSort  int              `form:"roleSort" comment:"角色排序"` // 角色排序
	Flag      string           `form:"flag" comment:"标记"`       // 标记
	Remark    string           `form:"remark" comment:"备注"`     // 备注
	Admin     bool             `form:"admin" comment:"是否管理员"`
	DataScope string           `form:"dataScope"`
	SysMenu   []models.SysMenu `form:"sysMenu"`
	MenuIds   []int            `form:"menuIds"`
	SysDept   []models.SysDept `form:"sysDept"`
	DeptIds   []int            `form:"deptIds"`
}

func (*SysRoleInsertReq) Generate

func (s *SysRoleInsertReq) Generate(model *models.SysRole)

func (*SysRoleInsertReq) GetId

func (s *SysRoleInsertReq) GetId() interface{}

type SysRoleOrder

type SysRoleOrder struct {
	RoleIdOrder    string `search:"type:order;column:role_id;table:sys_role" form:"roleIdOrder"`
	RoleNameOrder  string `search:"type:order;column:role_name;table:sys_role" form:"roleNameOrder"`
	RoleSortOrder  string `search:"type:order;column:role_sort;table:sys_role" form:"usernameOrder"`
	StatusOrder    string `search:"type:order;column:status;table:sys_role" form:"statusOrder"`
	CreatedAtOrder string `search:"type:order;column:created_at;table:sys_role" form:"createdAtOrder"`
}

type SysRoleUpdateReq

type SysRoleUpdateReq struct {
	RoleId    int              `uri:"id" comment:"角色编码"`        // 角色编码
	RoleName  string           `form:"roleName" comment:"角色名称"` // 角色名称
	Status    string           `form:"status" comment:"状态"`     // 状态
	RoleKey   string           `form:"roleKey" comment:"角色代码"`  // 角色代码
	RoleSort  int              `form:"roleSort" comment:"角色排序"` // 角色排序
	Flag      string           `form:"flag" comment:"标记"`       // 标记
	Remark    string           `form:"remark" comment:"备注"`     // 备注
	Admin     bool             `form:"admin" comment:"是否管理员"`
	DataScope string           `form:"dataScope" comment:"数据权限"`
	SysMenu   []models.SysMenu `form:"sysMenu"`
	MenuIds   []int            `form:"menuIds"`
	SysDept   []models.SysDept `form:"sysDept"`
	DeptIds   []int            `form:"deptIds"`
}

func (*SysRoleUpdateReq) Generate

func (s *SysRoleUpdateReq) Generate(model *models.SysRole)

func (*SysRoleUpdateReq) GetId

func (s *SysRoleUpdateReq) GetId() interface{}

type SysUserById

type SysUserById struct {
	dto.ObjectById
}

func (*SysUserById) GetId

func (s *SysUserById) GetId() interface{}

type SysUserGetPageReq

type SysUserGetPageReq struct {
	dto.Pagination `search:"-"`
	UserId         int    `form:"userId" search:"type:exact;column:user_id;table:sys_user" comment:"用户ID"`
	Username       string `form:"username" search:"type:contains;column:username;table:sys_user" comment:"用户名"`
	NickName       string `form:"nickName" search:"type:contains;column:nick_name;table:sys_user" comment:"昵称"`
	Phone          string `form:"phone" search:"type:contains;column:phone;table:sys_user" comment:"手机号"`
	RoleId         string `form:"roleId" search:"type:exact;column:role_id;table:sys_user" comment:"角色ID"`
	Sex            string `form:"sex" search:"type:exact;column:sex;table:sys_user" comment:"性别"`
	Email          string `form:"email" search:"type:contains;column:email;table:sys_user" comment:"邮箱"`
	PostId         string `form:"postId" search:"type:exact;column:post_id;table:sys_user" comment:"岗位"`
	Status         string `form:"status" search:"type:exact;column:status;table:sys_user" comment:"状态"`
	DeptJoin       `search:"type:left;on:dept_id:dept_id;table:sys_user;join:sys_dept"`
	SysUserOrder
}

func (*SysUserGetPageReq) GetNeedSearch

func (m *SysUserGetPageReq) GetNeedSearch() interface{}

type SysUserInsertReq

type SysUserInsertReq struct {
	UserId   int    `json:"userId" comment:"用户ID"` // 用户ID
	Username string `json:"username" comment:"用户名" vd:"len($)>0"`
	Password string `json:"password" comment:"密码"`
	NickName string `json:"nickName" comment:"昵称" vd:"len($)>0"`
	Phone    string `json:"phone" comment:"手机号" vd:"len($)>0"`
	RoleId   int    `json:"roleId" comment:"角色ID"`
	Avatar   string `json:"avatar" comment:"头像"`
	Sex      string `json:"sex" comment:"性别"`
	Email    string `json:"email" comment:"邮箱" vd:"len($)>0,email"`
	DeptId   int    `json:"deptId" comment:"部门" vd:"$>0"`
	PostId   int    `json:"postId" comment:"岗位"`
	Remark   string `json:"remark" comment:"备注"`
	Status   string `json:"status" comment:"状态" vd:"len($)>0" default:"1"`
}

func (*SysUserInsertReq) Generate

func (s *SysUserInsertReq) Generate(model *models.SysUser)

func (*SysUserInsertReq) GetId

func (s *SysUserInsertReq) GetId() interface{}

type SysUserOrder

type SysUserOrder struct {
	UserIdOrder    string `search:"type:order;column:user_id;table:sys_user" form:"userIdOrder"`
	UsernameOrder  string `search:"type:order;column:username;table:sys_user" form:"usernameOrder"`
	StatusOrder    string `search:"type:order;column:status;table:sys_user" form:"statusOrder"`
	CreatedAtOrder string `search:"type:order;column:created_at;table:sys_user" form:"createdAtOrder"`
}

type SysUserUpdateReq

type SysUserUpdateReq struct {
	UserId   int    `json:"userId" comment:"用户ID"` // 用户ID
	Username string `json:"username" comment:"用户名" vd:"len($)>0"`
	NickName string `json:"nickName" comment:"昵称" vd:"len($)>0"`
	Phone    string `json:"phone" comment:"手机号" vd:"len($)>0"`
	RoleId   int    `json:"roleId" comment:"角色ID"`
	Avatar   string `json:"avatar" comment:"头像"`
	Sex      string `json:"sex" comment:"性别"`
	Email    string `json:"email" comment:"邮箱" vd:"len($)>0,email"`
	DeptId   int    `json:"deptId" comment:"部门" vd:"$>0"`
	PostId   int    `json:"postId" comment:"岗位"`
	Remark   string `json:"remark" comment:"备注"`
	Status   string `json:"status" comment:"状态" default:"1"`
}

func (*SysUserUpdateReq) Generate

func (s *SysUserUpdateReq) Generate(model *models.SysUser)

func (*SysUserUpdateReq) GetId

func (s *SysUserUpdateReq) GetId() interface{}

type TbxCountryDeleteReq

type TbxCountryDeleteReq struct {
	Ids []string `json:"ids"`
}

TbxCountryDeleteReq 功能删除请求参数

func (*TbxCountryDeleteReq) GetId

func (s *TbxCountryDeleteReq) GetId() interface{}

type TbxCountryGetPageReq

type TbxCountryGetPageReq struct {
	dto.Pagination `search:"-"`
	Code           string `form:"code"  search:"type:exact;column:code;table:tbx_country" comment:"编码"`
	CName          string `form:"cName"  search:"type:contains;column:c_name;table:tbx_country" comment:"中文名称"`
	EName          string `form:"eName"  search:"type:contains;column:e_name;table:tbx_country" comment:"English Name"`
	TbxCountryOrder
}

func (*TbxCountryGetPageReq) GetNeedSearch

func (m *TbxCountryGetPageReq) GetNeedSearch() interface{}

type TbxCountryGetReq

type TbxCountryGetReq struct {
	Code string `uri:"code"`
}

TbxCountryGetReq 功能获取请求参数

func (*TbxCountryGetReq) GetId

func (s *TbxCountryGetReq) GetId() interface{}

type TbxCountryInsertReq

type TbxCountryInsertReq struct {
	Code   string `json:"code" comment:"编码"`
	CName  string `json:"cName" comment:"中文名称" vd:"@:len($)>0; msg:'中文名不能为空'"`
	EName  string `json:"eName" comment:"English Name" vd:"@:len($)>0; msg:'English Name is empty'"`
	EName2 string `json:"eName2" comment:"English Name 2"`
	Code2  string `json:"code2" comment:"编码2"`
	Code3  string `json:"code3" comment:"编码3"`
}

func (*TbxCountryInsertReq) Generate

func (s *TbxCountryInsertReq) Generate(model *models.TbxCountry)

func (*TbxCountryInsertReq) GetId

func (s *TbxCountryInsertReq) GetId() interface{}

type TbxCountryOrder

type TbxCountryOrder struct {
	Code  string `form:"codeOrder"  search:"type:order;column:code;table:tbx_country"`
	CName string `form:"cNameOrder"  search:"type:order;column:c_name;table:tbx_country"`
	EName string `form:"eNameOrder"  search:"type:order;column:e_name;table:tbx_country"`
}

type TbxCountryUpdateReq

type TbxCountryUpdateReq struct {
	Code   string `uri:"code" comment:"编码"`
	CName  string `json:"cName" comment:"中文名称" vd:"@:len($)>0; msg:'中文名不能为空'"`
	EName  string `json:"eName" comment:"English Name" vd:"@:len($)>0; msg:'English Name is empty'"`
	EName2 string `json:"eName2" comment:"English Name 2"`
	Code2  string `json:"code2" comment:"编码2"`
	Code3  string `json:"code3" comment:"编码3"`
}

func (*TbxCountryUpdateReq) Generate

func (s *TbxCountryUpdateReq) Generate(model *models.TbxCountry)

func (*TbxCountryUpdateReq) GetId

func (s *TbxCountryUpdateReq) GetId() interface{}

type UpdateSetSysConfigReq

type UpdateSetSysConfigReq map[string]string

type UpdateStatusReq

type UpdateStatusReq struct {
	RoleId int    `form:"roleId" comment:"角色编码"` // 角色编码
	Status string `form:"status" comment:"状态"`   // 状态
}

func (*UpdateStatusReq) Generate

func (s *UpdateStatusReq) Generate(model *models.SysRole)

func (*UpdateStatusReq) GetId

func (s *UpdateStatusReq) GetId() interface{}

type UpdateSysUserAvatarReq

type UpdateSysUserAvatarReq struct {
	UserId int    `json:"userId" comment:"用户ID" vd:"len($)>0"` // 用户ID
	Avatar string `json:"avatar" comment:"头像" vd:"len($)>0"`
}

func (*UpdateSysUserAvatarReq) Generate

func (s *UpdateSysUserAvatarReq) Generate(model *models.SysUser)

func (*UpdateSysUserAvatarReq) GetId

func (s *UpdateSysUserAvatarReq) GetId() interface{}

type UpdateSysUserStatusReq

type UpdateSysUserStatusReq struct {
	UserId int    `json:"userId" comment:"用户ID" vd:"$>0"` // 用户ID
	Status string `json:"status" comment:"状态" vd:"len($)>0"`
}

func (*UpdateSysUserStatusReq) Generate

func (s *UpdateSysUserStatusReq) Generate(model *models.SysUser)

func (*UpdateSysUserStatusReq) GetId

func (s *UpdateSysUserStatusReq) GetId() interface{}

Jump to

Keyboard shortcuts

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