common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 CityTreeReq struct {
	g.Meta `path:"/city/tree" method:"get" summary:"获取城市列表" tags:"城市管理"`
	Status int    `json:"status" description:"状态:--1为全部,0为禁用,1为正常" `
	Name   string `json:"name" description:"城市名" `
	Code   string `json:"code" description:"城市编码" `
}

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 ConfigDeleteReq struct {
	g.Meta `path:"/config/delete" tags:"系统参数管理" method:"delete" summary:"删除系统参数"`
	Ids    []int `p:"ids"`
}

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 ConfigGetReq struct {
	g.Meta `path:"/config/get" tags:"系统参数管理" method:"get" summary:"获取系统参数"`
	Id     int `p:"id"`
}

type ConfigGetRes

type ConfigGetRes struct {
	g.Meta `mime:"application/json"`
	Data   *model.SysConfigRes `json:"data"`
}

type ConfigSearchReq

type ConfigSearchReq struct {
	g.Meta     `path:"/config/list" tags:"系统参数管理" method:"get" summary:"系统参数列表"`
	ConfigName string `p:"configName"` //参数名称
	ConfigKey  string `p:"configKey"`  //参数键名
	ConfigType string `p:"configType"` //状态
	*PaginationReq
}

type ConfigSearchRes

type ConfigSearchRes struct {
	g.Meta `mime:"application/json"`
	List   []*model.SysConfigRes `json:"list"`
	PaginationRes
}

type DelBaseDbLinkReq

type DelBaseDbLinkReq struct {
	g.Meta `path:"/base/db/del"   method:"delete"     summary:"根据ID删除数据源" tags:"数据源管理"`
	Id     int `p:"id"              description:"数据源ID"  v:"required#ID不能为空"`
}

type DelBaseDbLinkRes

type DelBaseDbLinkRes struct {
}

type DelCityByIdReq

type DelCityByIdReq struct {
	g.Meta `path:"/city/del" method:"delete" summary:"根据ID删除城市信息" tags:"城市管理"`
	Id     int `json:"id"        description:"" v:"required#ID不能为空"`
}

type DelCityByIdRes

type DelCityByIdRes struct {
}

type DetailBaseDbLinkReq

type DetailBaseDbLinkReq struct {
	g.Meta `path:"/base/db/detail" tags:"数据源管理"   method:"get" summary:"根据ID获取数据源详情"`
	Id     int `p:"id"               description:"数据源ID"  v:"required#ID不能为空"`
}

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 DictDataDeleteReq struct {
	g.Meta `path:"/dict/data/delete" tags:"字典管理" method:"delete" summary:"删除字典数据"`
	Ids    []int `p:"ids"`
}

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 DictDataGetReq struct {
	g.Meta   `path:"/dict/data/get" tags:"字典管理" method:"get" summary:"获取字典数据"`
	DictCode uint `p:"dictCode"`
}

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 DictTypeAddReq struct {
	g.Meta   `path:"/dict/type/add" tags:"字典管理" method:"post" summary:"添加字典类型"`
	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 DictTypeAddRes

type DictTypeAddRes struct {
}

type DictTypeDeleteReq

type DictTypeDeleteReq struct {
	g.Meta  `path:"/dict/type/delete" tags:"字典管理" method:"delete" summary:"删除字典类型"`
	DictIds []int `p:"dictIds" v:"required#字典类型id不能为空"`
}

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 DictTypeGetReq struct {
	g.Meta `path:"/dict/type/get" tags:"字典管理" method:"get" summary:"获取字典类型"`
	DictId uint `p:"dictId" v:"required#类型id不能为空"`
}

type DictTypeGetRes

type DictTypeGetRes struct {
	g.Meta   `mime:"application/json"`
	DictType *model.SysDictTypeRes `json:"dictType"`
}

type DictTypeSearchReq

type DictTypeSearchReq struct {
	g.Meta   `path:"/dict/type/list" tags:"字典管理" method:"get" summary:"字典类型列表"`
	DictName string `p:"dictName"` //字典名称
	DictType string `p:"dictType"` //字典类型
	Status   string `p:"status"`   //字典状态
	*PaginationReq
}

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 GetCityByIdReq struct {
	g.Meta `path:"/city/getInfoById" method:"get" summary:"根据ID获取城市信息" tags:"城市管理"`
	Id     int `json:"id"        description:"" v:"required#ID不能为空"`
}

type GetCityByIdRes

type GetCityByIdRes struct {
	Data *model.CityRes
}

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 GetNotice2Req struct {
	g.Meta `path:"/notice/data2" tags:"公共方法" method:"get" summary:"获取实时通知信息"`
	Topic  string `p:"topic" v:"required#订阅主题不能为空"`
}

type GetNotice2Res

type GetNotice2Res struct {
	g.Meta `mime:"application/json"`
}

type GetNoticeReq

type GetNoticeReq struct {
	g.Meta `path:"/notice/data" tags:"公共方法" method:"get" summary:"获取实时通知信息"`
	Topic  string `p:"topic" v:"required#订阅主题不能为空"`
}

type GetNoticeRes

type GetNoticeRes struct {
	g.Meta `mime:"application/json"`
}

type GetSysInfoReq

type GetSysInfoReq struct {
	g.Meta `path:"/sysinfo" tags:"公共方法" method:"get" summary:"获取系统相关的信息"`
}

type GetSysInfoRes

type GetSysInfoRes g.Map

type IsTokenReq

type IsTokenReq struct {
	g.Meta `path:"/isToken" method:"get" summary:"验证token是否正确" tags:"公共方法"`
}

type IsTokenRes

type IsTokenRes struct {
	ExpiresAt int64 `json:"expiresAt"`
	IsToken   bool  `json:"isToken"`
}

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 PaginationRes struct {
	CurrentPage int `json:"currentPage" dc:"当前页"`
	Total       int `dc:"总数"`
}

type UploadMultipleFileReq

type UploadMultipleFileReq struct {
	g.Meta `path:"/multipleFile" tags:"文件上传下载" method:"post" summary:"上传多文件"`
}

type UploadMultipleImgReq

type UploadMultipleImgReq struct {
	g.Meta `path:"/multipleImg" tags:"文件上传下载" method:"post" summary:"上传多图片"`
}

type UploadMultipleRes

type UploadMultipleRes []*UploadResponse

type UploadResponse

type UploadResponse struct {
	Size     int64  `json:"size"`
	Path     string `json:"path"`
	FullPath string `json:"full_path"`
	Name     string `json:"name"`
	Type     string `json:"type"`
}

type UploadSingleFileReq

type UploadSingleFileReq struct {
	g.Meta `path:"/singleFile" tags:"文件上传下载" method:"post" summary:"上传文件"`
}

type UploadSingleImgReq

type UploadSingleImgReq struct {
	g.Meta `path:"/singleImg" tags:"文件上传下载" method:"post" summary:"上传图片"`
}

type UploadSingleRes

type UploadSingleRes struct {
	g.Meta `mime:"application/json"`
	UploadResponse
}

Jump to

Keyboard shortcuts

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