Documentation ¶
Index ¶
- type AddBaseDbLinkReq
- type AddBaseDbLinkRes
- type AddCityReq
- type AddCityRes
- type BaseDbLinkDoReq
- type BaseDbLinkDoRes
- type CityTreeReq
- type CityTreeRes
- type ConfigAddReq
- type ConfigAddRes
- type ConfigDeleteReq
- type ConfigDeleteRes
- type ConfigEditReq
- type ConfigEditRes
- type ConfigGetReq
- type ConfigGetRes
- type ConfigSearchReq
- type ConfigSearchRes
- type DelBaseDbLinkReq
- type DelBaseDbLinkRes
- type DelCityByIdReq
- type DelCityByIdRes
- type DetailBaseDbLinkReq
- type DetailBaseDbLinkRes
- type DictDataAddReq
- type DictDataAddRes
- type DictDataDeleteReq
- type DictDataDeleteRes
- type DictDataEditReq
- type DictDataEditRes
- type DictDataGetReq
- type DictDataGetRes
- type DictDataSearchReq
- type DictDataSearchRes
- type DictTypeAddReq
- type DictTypeAddRes
- type DictTypeDeleteReq
- type DictTypeDeleteRes
- type DictTypeEditReq
- type DictTypeEditRes
- type DictTypeGetReq
- type DictTypeGetRes
- type DictTypeSearchReq
- type DictTypeSearchRes
- type EditBaseDbLinkReq
- type EditBaseDbLinkRes
- type EditCityReq
- type EditCityRes
- type GetCityByIdReq
- type GetCityByIdRes
- type GetDictReq
- type GetDictRes
- type GetNotice2Req
- type GetNotice2Res
- type GetNoticeReq
- type GetNoticeRes
- type GetSysInfoReq
- type GetSysInfoRes
- type IsTokenReq
- type IsTokenRes
- type PaginationReq
- type PaginationRes
- type UploadMultipleFileReq
- type UploadMultipleImgReq
- type UploadMultipleRes
- type UploadResponse
- type UploadSingleFileReq
- type UploadSingleImgReq
- type UploadSingleRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBaseDbLinkReq ¶
type AddBaseDbLinkReq struct { g.Meta `path:"/base/db/add" tags:"数据源管理" method:"post" summary:"添加数据源"` Name string `json:"name" description:"名称" v:"required#请输入数据源名称"` Types string `json:"types" description:"驱动类型 mysql或oracle" v:"required#请输入数据源驱动类型"` Host string `json:"host" description:"主机地址" v:"required#请输入数据源主机地址"` Port int `json:"port" description:"端口号" v:"required#请输入数据源端口号"` UserName string `json:"userName" description:"用户名称" v:"required#请输入数据源用户名称"` Password string `json:"password" description:"密码" v:"required#请输入数据源密码"` Description string `json:"description" description:"描述"` Status int `json:"status" description:"状态 0 停用 1启用"` }
type AddBaseDbLinkRes ¶
type AddBaseDbLinkRes struct { }
type AddCityReq ¶
type AddCityReq struct { g.Meta `path:"/city/add" method:"post" summary:"添加城市" tags:"城市管理"` *model.AddCityReq }
type AddCityRes ¶
type AddCityRes struct { }
type BaseDbLinkDoReq ¶
type BaseDbLinkDoReq struct { g.Meta `path:"/base/db/list" tags:"数据源管理" method:"get" summary:"数据源列表"` Name string `p:"name" description:"数据源名称"` Types string `p:"types" description:"驱动类型 mysql或oracle"` Host string `p:"host" description:"主机地址"` Port string `p:"port" description:"端口"` UserName string `p:"user_name" description:"用户名称"` Status int `p:"status" description:"状态:-1为全部,0为正常,1为停用"` *PaginationReq }
type BaseDbLinkDoRes ¶
type BaseDbLinkDoRes struct { Data []*model.BaseDbLinkRes PaginationRes }
type CityTreeReq ¶
type CityTreeRes ¶
type CityTreeRes struct {
Data []*model.CityTreeRes
}
type ConfigAddReq ¶
type ConfigAddReq struct { g.Meta `path:"/config/add" tags:"系统参数管理" method:"post" summary:"添加系统参数"` ConfigName string `p:"configName" v:"required#参数名称不能为空"` ConfigKey string `p:"configKey" v:"required#参数键名不能为空"` ConfigValue string `p:"configValue" v:"required#参数键值不能为空"` ConfigType int `p:"configType" v:"required|in:0,1#系统内置不能为空|系统内置类型只能为0或1"` Remark string `p:"remark"` }
type ConfigAddRes ¶
type ConfigAddRes struct { }
type ConfigDeleteReq ¶
type ConfigDeleteRes ¶
type ConfigDeleteRes struct { }
type ConfigEditReq ¶
type ConfigEditReq struct { g.Meta `path:"/config/edit" tags:"系统参数管理" method:"put" summary:"修改系统参数"` ConfigId int `p:"configId" v:"required|min:1#主键ID不能为空|主键ID参数错误"` ConfigName string `p:"configName" v:"required#参数名称不能为空"` ConfigKey string `p:"configKey" v:"required#参数键名不能为空"` ConfigValue string `p:"configValue" v:"required#参数键值不能为空"` ConfigType int `p:"configType" v:"required|in:0,1#系统内置不能为空|系统内置类型只能为0或1"` Remark string `p:"remark"` }
type ConfigEditRes ¶
type ConfigEditRes struct { }
type ConfigGetReq ¶
type ConfigGetRes ¶
type ConfigGetRes struct { g.Meta `mime:"application/json"` Data *model.SysConfigRes `json:"data"` }
type ConfigSearchReq ¶
type ConfigSearchRes ¶
type ConfigSearchRes struct { g.Meta `mime:"application/json"` List []*model.SysConfigRes `json:"list"` PaginationRes }
type DelBaseDbLinkReq ¶
type DelBaseDbLinkRes ¶
type DelBaseDbLinkRes struct { }
type DelCityByIdReq ¶
type DelCityByIdRes ¶
type DelCityByIdRes struct { }
type DetailBaseDbLinkReq ¶
type DetailBaseDbLinkRes ¶
type DetailBaseDbLinkRes struct {
Data *model.DetailBaseDbLinkRes
}
type DictDataAddReq ¶
type DictDataAddReq struct { g.Meta `path:"/dict/data/add" tags:"字典管理" method:"post" summary:"添加字典数据"` DictLabel string `p:"dictLabel" v:"required#字典标签不能为空"` DictValue string `p:"dictValue" v:"required#字典键值不能为空"` DictType string `p:"dictType" v:"required#字典类型不能为空"` DictSort int `p:"dictSort" v:"integer#排序只能为整数"` CssClass string `p:"cssClass"` ListClass string `p:"listClass"` IsDefault int `p:"isDefault" v:"required|in:0,1#系统默认不能为空|默认值只能为0或1"` Status int `p:"status" v:"required|in:0,1#状态不能为空|状态只能为0或1"` Remark string `p:"remark"` }
type DictDataAddRes ¶
type DictDataAddRes struct { }
type DictDataDeleteReq ¶
type DictDataDeleteRes ¶
type DictDataDeleteRes struct { }
type DictDataEditReq ¶
type DictDataEditReq struct { g.Meta `path:"/dict/data/edit" tags:"字典管理" method:"put" summary:"修改字典数据"` DictCode int `p:"dictCode" v:"required|min:1#主键ID不能为空|主键ID不能小于1"` DictLabel string `p:"dictLabel" v:"required#字典标签不能为空"` DictValue string `p:"dictValue" v:"required#字典键值不能为空"` DictType string `p:"dictType" v:"required#字典类型不能为空"` DictSort int `p:"dictSort" v:"integer#排序只能为整数"` CssClass string `p:"cssClass"` ListClass string `p:"listClass"` IsDefault int `p:"isDefault" v:"required|in:0,1#系统默认不能为空|默认值只能为0或1"` Status int `p:"status" v:"required|in:0,1#状态不能为空|状态只能为0或1"` Remark string `p:"remark"` }
type DictDataEditRes ¶
type DictDataEditRes struct { }
type DictDataGetReq ¶
type DictDataGetRes ¶
type DictDataGetRes struct { g.Meta `mime:"application/json"` Dict *model.SysDictDataRes `json:"dict"` }
type DictDataSearchReq ¶
type DictDataSearchReq struct { g.Meta `path:"/dict/data/list" tags:"字典管理" method:"get" summary:"字典数据列表"` DictType string `p:"dictType"` //字典类型 DictLabel string `p:"dictLabel"` //字典标签 Status string `p:"status"` //状态 PaginationReq }
DictDataSearchReq 分页请求参数
type DictDataSearchRes ¶
type DictDataSearchRes struct { g.Meta `mime:"application/json"` List []*model.SysDictDataRes `json:"list"` PaginationRes }
DictDataSearchRes 字典数据结果
type DictTypeAddReq ¶
type DictTypeAddRes ¶
type DictTypeAddRes struct { }
type DictTypeDeleteReq ¶
type DictTypeDeleteRes ¶
type DictTypeDeleteRes struct { }
type DictTypeEditReq ¶
type DictTypeEditReq struct { g.Meta `path:"/dict/type/edit" tags:"字典管理" method:"put" summary:"修改字典类型"` DictId int `p:"dictId" v:"required|min:1#主键ID不能为空|主键ID必须为大于0的值"` DictName string `p:"dictName" v:"required#字典名称不能为空"` DictType string `p:"dictType" v:"required#字典类型不能为空"` Status uint `p:"status" v:"required|in:0,1#状态不能为空|状态只能为0或1"` Remark string `p:"remark"` }
type DictTypeEditRes ¶
type DictTypeEditRes struct { }
type DictTypeGetReq ¶
type DictTypeGetRes ¶
type DictTypeGetRes struct { g.Meta `mime:"application/json"` DictType *model.SysDictTypeRes `json:"dictType"` }
type DictTypeSearchReq ¶
type DictTypeSearchRes ¶
type DictTypeSearchRes struct { g.Meta `mime:"application/json"` DictTypeList []*model.SysDictTypeInfoRes `json:"dictTypeList"` PaginationRes }
type EditBaseDbLinkReq ¶
type EditBaseDbLinkReq struct { g.Meta `path:"/base/db/edit" method:"put" summary:"编辑数据源" tags:"数据源管理"` Id int `json:"id" description:"" v:"required#请输入数据源ID"` Name string `json:"name" description:"名称" v:"required#请输入数据源名称"` Types string `json:"types" description:"驱动类型 mysql或oracle" v:"required#请输入数据源驱动类型"` Host string `json:"host" description:"主机地址" v:"required#请输入数据源主机地址"` Port int `json:"port" description:"端口号" v:"required#请输入数据源端口号"` UserName string `json:"userName" description:"用户名称" v:"required#请输入数据源用户名称"` Password string `json:"password" description:"密码" v:"required#请输入数据源密码"` Description string `json:"description" description:"描述"` Status int `json:"status" description:"状态 0 停用 1启用"` }
type EditBaseDbLinkRes ¶
type EditBaseDbLinkRes struct { }
type EditCityReq ¶
type EditCityReq struct { g.Meta `path:"/city/edit" method:"put" summary:"编辑城市" tags:"城市管理"` *model.EditCityReq }
type EditCityRes ¶
type EditCityRes struct { }
type GetCityByIdReq ¶
type GetCityByIdRes ¶
type GetDictReq ¶
type GetDictReq struct { g.Meta `path:"/dict/data/getDictData" tags:"字典管理" method:"get" summary:"获取字典数据公共方法"` Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"` DictType string `p:"dictType" v:"required#字典类型不能为空"` DefaultValue string `p:"defaultValue"` }
GetDictReq 获取字典信息请求参数
type GetDictRes ¶
type GetDictRes struct { g.Meta `mime:"application/json"` Data *model.DictTypeRes `json:"info"` Values []*model.DictDataRes `json:"values"` }
GetDictRes 完整的一个字典信息
type GetNotice2Req ¶
type GetNotice2Res ¶
type GetNoticeReq ¶
type GetNoticeRes ¶
type GetSysInfoReq ¶
type GetSysInfoRes ¶
type IsTokenReq ¶
type IsTokenRes ¶
type PaginationReq ¶
type PaginationReq struct { KeyWord string `json:"keyWord" dc:"搜索关键字"` //搜索关键字 DateRange []string `p:"dateRange"` //日期范围 OrderBy string //排序方式 PageNum int `json:"pageNum" in:"query" d:"1" v:"min:0#分页号码错误" dc:"分页号码,默认1"` PageSize int `json:"PageSize" in:"query" d:"10" v:"max:50#分页数量最大50条" dc:"分页数量,最大50"` }
type PaginationRes ¶
type UploadMultipleFileReq ¶
type UploadMultipleImgReq ¶
type UploadMultipleRes ¶
type UploadMultipleRes []*UploadResponse
type UploadResponse ¶
type UploadSingleFileReq ¶
type UploadSingleImgReq ¶
type UploadSingleRes ¶
type UploadSingleRes struct { g.Meta `mime:"application/json"` UploadResponse }
Click to show internal directories.
Click to hide internal directories.