Documentation
¶
Index ¶
- Constants
- Variables
- type AddApiInput
- type AddBaseDbLinkInput
- type AddCityReq
- type AddConfigInput
- type AddDeptInput
- type AddDeviceInput
- type AddDictDataInput
- type AddDictTypeInput
- type AddMenuApiReq
- type AddMenuButtonInput
- type AddMenuColumnInput
- type AddMenuInput
- type AddOrganizationInput
- type AddPostInput
- type AddProductCategoryInput
- type AddProductInput
- type AddRoleInput
- type AddTagDeviceInput
- type AddUserInput
- type AlarmAction
- type AlarmCondition
- type AlarmFilters
- type AlarmLevel
- type AlarmLevelEditInput
- type AlarmLevelListOutput
- type AlarmLevelOutput
- type AlarmLogAddInput
- type AlarmLogHandleInput
- type AlarmLogLevelTotal
- type AlarmLogListInput
- type AlarmLogListOutput
- type AlarmLogOutput
- type AlarmPerformAction
- type AlarmRuleAddInput
- type AlarmRuleEditInput
- type AlarmRuleListInput
- type AlarmRuleListOutput
- type AlarmRuleOutput
- type AlarmTriggerCondition
- type AllSourceOut
- type AllTemplateOut
- type AuthorizeQueryApiOut
- type AuthorizeQueryApiRes
- type AuthorizeQueryTreeOut
- type AuthorizeQueryTreeRes
- type BaseDbLinkDoInput
- type BaseDbLinkOut
- type BaseDbLinkRes
- type BrokenLineChildRes
- type CityRes
- type CityTreeRes
- type CityWeatherEchartOut
- type CityWeatherEchartRes
- type CityWeatherListOut
- type CityWeatherListRes
- type ConfigDoInput
- type Context
- type ContextUser
- type DataNodeAddInput
- type DataNodeEditInput
- type DataNodeOutput
- type DataSource
- type DataSourceApiAddInput
- type DataSourceApiEditInput
- type DataSourceApiRequestParam
- type DataSourceConfigApi
- type DataSourceConfigDb
- type DataSourceConfigDevice
- type DataSourceDataInput
- type DataSourceDataOutput
- type DataSourceDbAddInput
- type DataSourceDbEditInput
- type DataSourceDeviceAddInput
- type DataSourceDeviceEditInput
- type DataSourceOutput
- type DataSourceRule
- type DataSourceSearchInput
- type DataSourceSearchOutput
- type DataTemplate
- type DataTemplateAddInput
- type DataTemplateBusi
- type DataTemplateBusiAddInput
- type DataTemplateDataInput
- type DataTemplateDataOutput
- type DataTemplateEditInput
- type DataTemplateNodeAddInput
- type DataTemplateNodeEditInput
- type DataTemplateNodeOutput
- type DataTemplateOutput
- type DataTemplateSearchInput
- type DataTemplateSearchOutput
- type DataTypeOutput
- type DataTypeValueBase
- type DataTypeValueExtension
- type DelTSLEventInput
- type DelTSLFunctionInput
- type DelTSLPropertyInput
- type DelTSLTagInput
- type DeptOut
- type DeptRes
- type DetailBaseDbLinkRes
- type DetailDeptRes
- type DetailMenuButtonRes
- type DetailMenuColumnRes
- type DetailMenuRes
- type DetailOrganizationRes
- type DetailPostRes
- type DetailProductOutput
- type DevDevice
- type DevDeviceTag
- type DevProduct
- type DevProductCategory
- type DevProductWithName
- type DeviceGetPropertyInput
- type DeviceGetPropertyListInput
- type DeviceGetPropertyListOutput
- type DeviceInput
- type DeviceLogSearchInput
- type DeviceLogSearchOutput
- type DeviceOutput
- type DevicePropertiy
- type DevicePropertiyOut
- type DeviceRunStatusOutput
- type DeviceTotalOutput
- type DictDataOut
- type DictDataRes
- type DictTypeDoInput
- type DictTypeOut
- type DictTypeRes
- type EditApiInput
- type EditBaseDbLinkInput
- type EditCityReq
- type EditConfigInput
- type EditDeptInput
- type EditDeviceInput
- type EditDictDataInput
- type EditDictTypeInput
- type EditMenuButtonInput
- type EditMenuColumnInput
- type EditMenuInput
- type EditOrganizationInput
- type EditPostInput
- type EditProductCategoryInput
- type EditProductInput
- type EditRoleInput
- type EditTagDeviceInput
- type EditUserInput
- type GetDictInput
- type GetDictOut
- type GetDictRes
- type GetJobListInput
- type GetNetworkServerListInput
- type GetNetworkTunnelListInput
- type GetNoticeConfigListInput
- type GetNoticeInfoListInput
- type GetNoticeTemplateListInput
- type GetNotificationsListInput
- type GetPluginsConfigListInput
- type GetSysPluginsListInput
- type ListDeviceForPageInput
- type ListDeviceForPageOutput
- type ListDeviceInput
- type ListForPageInput
- type ListForPageOutput
- type ListTSLEventInput
- type ListTSLEventOutput
- type ListTSLFunctionInput
- type ListTSLFunctionOutput
- type ListTSLPropertyInput
- type ListTSLPropertyOutput
- type ListTSLTagInput
- type ListTSLTagOutput
- type LoginLogParams
- type LoginUserOut
- type LoginUserRes
- type MenuColumnDoInput
- type MenuJoinRes
- type MenuMeta
- type MessageProtocolRes
- type NetworkServerAddInput
- type NetworkServerEditInput
- type NetworkServerOut
- type NetworkServerRes
- type NetworkTunnelAddInput
- type NetworkTunnelEditInput
- type NetworkTunnelOut
- type NetworkTunnelRes
- type NoticeConfigAddInput
- type NoticeConfigEditInput
- type NoticeConfigListOutput
- type NoticeConfigOutput
- type NoticeInfoAddInput
- type NoticeInfoEditInput
- type NoticeInfoListOutput
- type NoticeInfoOutput
- type NoticeLogAddInput
- type NoticeLogList
- type NoticeLogSearchInput
- type NoticeLogSearchOutput
- type NoticeTemplateAddInput
- type NoticeTemplateEditInput
- type NoticeTemplateListOutput
- type NoticeTemplateOutput
- type NotificationsAddInput
- type NotificationsEditInput
- type NotificationsOut
- type NotificationsRes
- type OperatorOutput
- type OrganizationOut
- type OrganizationRes
- type PaginationInput
- type PaginationOutput
- type PluginsConfigAddInput
- type PluginsConfigData
- type PluginsConfigEditInput
- type PluginsConfigListOutput
- type PluginsConfigOutput
- type PostOut
- type PostRes
- type ProductCategoryOutput
- type ProductCategoryTreeOutput
- type ProductInput
- type ProductOutput
- type RoleInfoRes
- type RoleTreeOut
- type RoleTreeRes
- type SessionNotice
- type SourceDataAllInput
- type SourceDataAllOutput
- type SysApiAllRes
- type SysApiOut
- type SysApiRes
- type SysApiTreeOut
- type SysApiTreeRes
- type SysConfigOut
- type SysConfigRes
- type SysDept
- type SysDictDataOut
- type SysDictDataRes
- type SysDictSearchInput
- type SysDictTypeInfoOut
- type SysDictTypeInfoRes
- type SysDictTypeOut
- type SysDictTypeRes
- type SysJobAddInput
- type SysJobEditInput
- type SysJobOut
- type SysJobRes
- type SysLoginLogInput
- type SysLoginLogListOut
- type SysLoginLogOut
- type SysMenuApiRes
- type SysMenuOut
- type SysMenuRes
- type SysMenuTreeRes
- type SysOperLogDoInput
- type SysOperLogOut
- type SysOperLogRes
- type SysPluginsAddInput
- type SysPluginsEditInput
- type SysPluginsOutput
- type TArray
- type TBoolean
- type TDEngineTableInfo
- type TDEngineTablesList
- type TDate
- type TDouble
- type TEnum
- type TFloat
- type TInt
- type TLong
- type TObject
- type TSL
- type TSLArrayType
- type TSLEnumType
- type TSLEvent
- type TSLEventInput
- type TSLFunction
- type TSLFunctionAddInput
- type TSLFunctionInput
- type TSLObjectType
- type TSLParam
- type TSLParamBase
- type TSLParamExtension
- type TSLProperty
- type TSLPropertyInput
- type TSLTag
- type TSLTagInput
- type TSLValueType
- type TText
- type TableDataInfo
- type TdLog
- type TdLogAddInput
- type TemperingRatioRes
- type TemplateDataAllInput
- type TemplateDataAllOutput
- type TemplateDataLastInput
- type TemplateDataLastOutput
- type TemplateDataRelationInput
- type ThingDevice
- type ThingOverviewOutput
- type TokenOptions
- type Transfer
- type TriggerParamOutput
- type TriggerTypeOutput
- type TrunsportProtocolRes
- type UserApiOut
- type UserApiRes
- type UserInfoOut
- type UserInfoRes
- type UserListDoInput
- type UserListOut
- type UserListRes
- type UserMenu
- type UserMenuButtonOut
- type UserMenuButtonRes
- type UserMenuColumnOut
- type UserMenuColumnRes
- type UserMenuTreeOut
- type UserMenuTreeRes
- type UserMenus
- type UserOnlineDoListInput
- type UserOnlineListOut
- type UserOnlineListRes
- type UserRes
- type WithNode
- type WithSource
Constants ¶
View Source
const ( AlarmLogStatusUnhandle int = iota // 告警日志状态:未处理 AlarmLogStatusHandle // 告警日志状态:已处理 AlarmLogStatusIgnore // 告警日志状态:忽略 )
View Source
const ( AlarmTriggerTypeOnline = iota + 1 // 触发类型:设备上线 AlarmTriggerTypeOffline // 触发类型:设备离线 AlarmTriggerTypeProperty // 触发类型:属性上报 AlarmTriggerTypeEvent // 触发类型:事件上报 )
View Source
const ( OperatorEq = "eq" // 操作符:等于 OperatorNe = "ne" // 操作符:不等于 OperatorGt = "gt" // 操作符:大于 OperatorGte = "gte" // 操作符:大于等于 OperatorLt = "lt" // 操作符:小于 OperatorLte = "lte" // 操作符:小于等于 OperatorBet = "bet" // 操作符:在...之间 OperatorNbet = "nbet" // 操作符:不在...之间 )
View Source
const ( AlarmRuleStatusOff int = iota // 告警规则状态:未启用 AlarmRuleStatusOn // 告警规则状态:已启用 )
View Source
const ( DataSourceFromApi = iota + 1 // api数据源 DataSourceFromDb // 数据库数据源 DataSourceFromFile // 文件数据源 DataSourceFromDevice // 设备数据源 )
View Source
const ( DataSourceStatusOff int = iota // 数据源未发布 DataSourceStatusOn // 数据源已发布 )
View Source
const ( DataSourceDbQueryType = "tableName" // 数据库源获取数据方式:表 DataSourceDbQueryTypeSql = "sql" // 数据库源获取数据方式:sql )
View Source
const ( DataTemplateStatusOff int = iota // 数据模型未发布 DataTemplateStatusOn // 数据模型已发布 )
View Source
const ( DeviceStatusNoEnable int = iota // 设备未启用 DeviceStatusOff // 设备离线 DeviceStatusOn // 设备在线 )
View Source
const ( ProductStatusOff int = iota // 产品未发布 ProductStatusOn // 产品已发布 )
View Source
const ( TSLAccessModeDefault int = iota // 访问类型:读写 TSLAccessModeReadOnly // 访问类型:只读 )
View Source
const ( TSLEventLevelDefault int = iota // 事件级别:普通 TSLEventLevelWarn // 事件级别:警告 TSLEventLevelUrgen // 事件级别:紧急 )
Variables ¶
View Source
var AlarmTriggerType = map[int]string{ AlarmTriggerTypeOnline: "设备上线", AlarmTriggerTypeOffline: "设备离线", AlarmTriggerTypeProperty: "属性上报", AlarmTriggerTypeEvent: "事件上报", }
Functions ¶
This section is empty.
Types ¶
type AddApiInput ¶
type AddApiInput struct {
ParentId int `json:"parentId"`
Name string `json:"name"`
Types int `json:"types"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address"`
Remark string `json:"remark"`
Status int `json:"status"`
Sort int `json:"sort"`
MenuIds []int `json:"menuIds"`
}
type AddBaseDbLinkInput ¶
type AddBaseDbLinkInput struct {
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 AddCityReq ¶
type AddConfigInput ¶
type AddDeptInput ¶
type AddDeviceInput ¶
type AddDeviceInput struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"设备名称" v:"required#请输入设备名称"`
ProductId uint `json:"productId" dc:"所属产品" v:"required#请选择所属产品"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Certificate string `json:"certificate" dc:"设备证书"`
SecureKey string `json:"secureKey" dc:"设备密钥"`
Version string `json:"version" dc:"固件版本号"`
}
type AddDictDataInput ¶
type AddDictDataInput struct {
DictLabel string `p:"dictLabel"`
DictValue string `p:"dictValue"`
DictType string `p:"dictType"`
DictSort int `p:"dictSort"`
CssClass string `p:"cssClass"`
ListClass string `p:"listClass"`
IsDefault int `p:"isDefault"`
Status int `p:"status"`
Remark string `p:"remark"`
}
type AddDictTypeInput ¶
type AddMenuApiReq ¶
type AddMenuButtonInput ¶
type AddMenuColumnInput ¶
type AddMenuColumnInput struct {
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Code string `json:"code" description:"代表列表"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
}
type AddMenuInput ¶
type AddMenuInput struct {
MenuType uint `p:"menuType"`
ParentId int `p:"parentId"`
Name string `p:"name"`
Title string `p:"title"`
Icon string `p:"icon"`
Weigh int `p:"weigh"`
Condition string `p:"condition"`
Remark string `p:"remark"`
IsHide uint `p:"isHide"`
Path string `p:"path"`
Component string `p:"component"`
IsLink uint `p:"isLink"`
IsIframe uint `p:"isIframe"`
IsCached uint `p:"isKeepAlive"`
IsAffix uint `p:"isAffix"`
LinkUrl string `p:"linkUrl"`
Status int `p:"status"`
ModuleType string `p:"moduleType"`
}
type AddOrganizationInput ¶
type AddOrganizationInput struct {
ParentId int64 `json:"parentId" description:"父组织id"`
Name string `json:"name" description:"组织名称"`
OrderNum int `json:"orderNum" description:"排序"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
}
type AddPostInput ¶
type AddPostInput struct {
ParentId int64 `json:"parentId" description:"父ID" v:"required#请输入选择上级"`
PostName string `json:"postName" description:"岗位名称" v:"required#请输入岗位名称"`
PostSort int `json:"postSort" description:"显示顺序"`
Status uint `json:"status" description:"状态(0正常 1停用)" v:"required#请选择状态"`
Remark string `json:"remark" description:"备注"`
}
type AddProductCategoryInput ¶
type AddProductInput ¶
type AddProductInput struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"产品名称" v:"required#请输入产品名称"`
CategoryId uint `json:"categoryId" dc:"所属品类" v:"required#请选择所属品类"`
MessageProtocol string `json:"messageProtocol" dc:"消息协议" v:"required#请选择消息协议"`
TransportProtocol string `json:"transportProtocol" dc:"传输协议: MQTT,COAP,UDP" v:"required#请选择传输协议"`
DeviceType string `json:"deviceType" dc:"设备类型:网关、设备" v:"required#请选择设备类型"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Icon string `json:"icon" dc:"图片地址"`
}
type AddRoleInput ¶
type AddTagDeviceInput ¶
type AddTagDeviceInput struct {
DeviceId uint `json:"deviceId" dc:"设备ID" v:"required#设备ID不能为空"`
DeviceKey string `` /* 162-byte string literal not displayed */
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"标签名称" v:"required#请输入标签名称"`
Value string `json:"value" dc:"标签值" v:"required#请输入标签值"`
}
type AddUserInput ¶
type AddUserInput struct {
UserName string `json:"userName" description:"用户名" v:"required#用户名不能为空"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `` /* 152-byte string literal not displayed */
UserNickname string `json:"userNickname" description:"用户昵称" v:"required#用户昵称不能为空"`
Birthday int `json:"birthday" description:"生日"`
UserPassword string `json:"userPassword" description:"登录密码;cmf_password加密"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId uint64 `json:"deptId" description:"部门id" v:"required#部门不能为空"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
RoleIds []int `json:"roleIds" description:"角色ID数组" v:"required#角色不能为空"`
PostIds []int `json:"postIds" description:"岗位ID数组" v:"required#岗位不能为空"`
}
type AlarmAction ¶
type AlarmCondition ¶
type AlarmCondition struct {
Filters []AlarmFilters `json:"filters" dc:"条件参数"`
AndOr int `json:"andOr" dc:"多个条件组的关系:0=无,1=并且,2=或"`
}
type AlarmFilters ¶
type AlarmLevel ¶
type AlarmLevel struct {
*entity.AlarmLevel
}
type AlarmLevelEditInput ¶
type AlarmLevelListOutput ¶
type AlarmLevelListOutput struct {
List []*entity.AlarmLevel `json:"list"`
}
type AlarmLevelOutput ¶
type AlarmLevelOutput struct {
*entity.AlarmLevel
}
type AlarmLogAddInput ¶
type AlarmLogAddInput struct {
Type uint `json:"type" d:"1" dc:"告警类型:1=规则告警,2=设备自主告警"`
RuleId uint64 `json:"ruleId" dc:"规则id,type=2时为0"`
RuleName string `json:"ruleName" dc:"规则名称"`
Level uint `json:"level" dc:"告警级别"`
Data string `json:"data" dc:"触发告警的数据"`
ProductKey string `json:"productKey" dc:"产品标识"`
DeviceKey string `json:"deviceKey" dc:"设备标识"`
}
告警日志写入
type AlarmLogHandleInput ¶
type AlarmLogHandleInput struct {
Id uint64 `json:"id" dc:"告警日志ID" v:"required#告警日志ID不能为空"`
Status int `json:"status" d:"1" dc:"处理状态" v:"required|in:1,2#请选择处理状态|未知的处理状态,请正确选择"`
Content string `json:"content" dc:"处理意见"`
}
告警处理
type AlarmLogLevelTotal ¶
type AlarmLogLevelTotal struct {
Level uint `json:"level" dc:"告警级别"`
Name string `json:"name" dc:"告警名称"`
Num int `json:"num" dc:"该级别日志数量"`
Ratio float64 `json:"ratio" dc:"该级别日志数量占比(百分比)"`
}
日志级别统计
type AlarmLogListOutput ¶
type AlarmLogListOutput struct {
List []AlarmLogOutput `json:"list" dc:"告警日志"`
PaginationOutput
}
type AlarmLogOutput ¶
type AlarmLogOutput struct {
*entity.AlarmLog
AlarmLevel *AlarmLevel `json:"alarmLevel" orm:"with:level"`
Product *DevProductWithName `json:"product" orm:"with:key=product_key"`
Device *DevDevice `json:"devcie" orm:"with:key=device_key"`
}
告警日志
type AlarmPerformAction ¶
type AlarmPerformAction struct {
Action []AlarmAction `json:"action" dc:"执行动作" v:"required#请添加执行动作"`
}
type AlarmRuleAddInput ¶
type AlarmRuleAddInput struct {
Name string `json:"name" dc:"告警规则名称" v:"required#请输入告警规则名称"`
Level uint `json:"level" dc:"告警级别" v:"required#请选择告警级别"`
ProductKey string `json:"productKey" dc:"产品标识" v:"required#请选择产品"`
DeviceKey string `json:"deviceKey" dc:"设备标识"`
TriggerType int `json:"triggerType" dc:"触发类型:1=上线,2=离线,3=属性上报" v:"required#请选择触发类型"`
AlarmTriggerCondition
AlarmPerformAction
}
type AlarmRuleEditInput ¶
type AlarmRuleEditInput struct {
Id uint64 `json:"id" dc:"告警规则ID" v:"required#告警规则ID不能为空"`
AlarmRuleAddInput
}
type AlarmRuleListInput ¶
type AlarmRuleListInput struct {
PaginationInput
}
type AlarmRuleListOutput ¶
type AlarmRuleListOutput struct {
List []AlarmRuleOutput `json:"list" dc:"告警规则列表"`
PaginationOutput
}
type AlarmRuleOutput ¶
type AlarmRuleOutput struct {
*entity.AlarmRule
TriggerTypeName string `json:"triggerTypeName" dc:"触发类型"`
Condition AlarmTriggerCondition `json:"condition" dc:"触发条件"`
PerformAction AlarmPerformAction `json:"performAction" dc:"执行动作"`
AlarmLevel AlarmLevel `json:"alarmLevel" orm:"with:level" dc:"告警级别"`
}
type AlarmTriggerCondition ¶
type AlarmTriggerCondition struct {
TriggerCondition []AlarmCondition `json:"triggerCondition" dc:"触发条件" v:"required#请添加触发条件"`
}
type AllSourceOut ¶
type AllSourceOut struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID"`
Name string `json:"name" dc:"数据源名称"`
Path string `json:"path" dc:"接口地址"`
}
数据源获取数据的内网方法列表,供大屏使用
type AllTemplateOut ¶
type AllTemplateOut struct {
Id uint64 `json:"id" dc:"数据模型ID"`
Name string `json:"name" dc:"数据模型名称"`
Path string `json:"path" dc:"接口地址"`
}
数据模型获取数据的内网方法列表,供大屏使用
type AuthorizeQueryApiOut ¶
type AuthorizeQueryApiOut struct {
Id int `json:"id" description:"此ID为菜单与API的关联ID"`
ApiId int `json:"apiId" description:"接口ID"`
ParentId int `json:"parentId" description:""`
Title string `json:"title" description:"标题"`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
}
type AuthorizeQueryApiRes ¶
type AuthorizeQueryApiRes struct {
Id int `json:"id" description:"此ID为菜单与API的关联ID"`
ApiId int `json:"apiId" description:"接口ID"`
ParentId int `json:"parentId" description:""`
Title string `json:"title" description:"标题"`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
}
type AuthorizeQueryTreeOut ¶
type AuthorizeQueryTreeOut struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"菜单名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType uint `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide uint `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink uint `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId uint `json:"modelId" description:"模型ID"`
IsIframe uint `json:"isIframe" description:"是否内嵌iframe"`
IsCached uint `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix uint `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []g.Map `json:"children" description:"子集 菜单,按钮,列表,接口API"`
}
type AuthorizeQueryTreeRes ¶
type AuthorizeQueryTreeRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType uint `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide uint `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink uint `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId uint `json:"modelId" description:"模型ID"`
IsIframe uint `json:"isIframe" description:"是否内嵌iframe"`
IsCached uint `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix uint `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []g.Map `json:"children" description:"子集 菜单,按钮,列表,接口API"`
}
type BaseDbLinkDoInput ¶
type BaseDbLinkDoInput struct {
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为停用"`
*PaginationInput
}
type BaseDbLinkOut ¶
type BaseDbLinkOut struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名称"`
Types string `json:"types" description:"驱动类型 mysql或oracle"`
Host string `json:"host" description:"主机地址"`
Port int `json:"port" description:"端口号"`
UserName string `json:"userName" description:"用户名称"`
Password string `json:"password" description:"密码"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type BaseDbLinkRes ¶
type BaseDbLinkRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名称"`
Types string `json:"types" description:"驱动类型 mysql或oracle"`
Host string `json:"host" description:"主机地址"`
Port int `json:"port" description:"端口号"`
UserName string `json:"userName" description:"用户名称"`
Password string `json:"password" description:"密码"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
BaseDbLinkRes 数据源列表返回字段
type BrokenLineChildRes ¶
type CityRes ¶
type CityRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名字"`
Code string `json:"code" description:"编码"`
ParentId int `json:"parentId" description:"父ID"`
Sort int `json:"sort" description:"排序"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
DeletedBy int `json:"deletedBy" description:"删除人"`
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
}
type CityTreeRes ¶
type CityTreeRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名字"`
Code string `json:"code" description:"编码"`
ParentId int `json:"parentId" description:"父ID"`
Sort int `json:"sort" description:"排序"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
DeletedBy int `json:"deletedBy" description:"删除人"`
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
Children []*CityTreeRes `json:"children" description:"子集"`
}
type CityWeatherEchartOut ¶
type CityWeatherEchartRes ¶
type CityWeatherListOut ¶
type CityWeatherListOut struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名字"`
Code string `json:"code" description:"编码"`
Windpower string `json:"windpower" description:"风力级别"`
Sunrise string `json:"sunrise" description:"日出"`
Sunset string `json:"sunset" description:"日落"`
SunshineDuration int `json:"sunshineDuration" description:"日照时长"`
Temperature int `json:"Temperature" description:"气温"`
Weather string `json:"weather" description:"天气现象"`
Winddirection string `json:"winddirection" description:"风向描述"`
Reporttime string `json:"reporttime" description:"发布时间"`
}
type CityWeatherListRes ¶
type CityWeatherListRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名字"`
Code string `json:"code" description:"编码"`
Windpower string `json:"windpower" description:"风力级别"`
Sunrise string `json:"sunrise" description:"日出"`
Sunset string `json:"sunset" description:"日落"`
SunshineDuration int `json:"sunshineDuration" description:"日照时长"`
Temperature int `json:"Temperature" description:"气温"`
Weather string `json:"weather" description:"天气现象"`
Winddirection string `json:"winddirection" description:"风向描述"`
Reporttime string `json:"reporttime" description:"发布时间"`
}
type ConfigDoInput ¶
type ConfigDoInput struct {
ConfigName string `p:"configName"` //参数名称
ConfigKey string `p:"configKey"` //参数键名
ConfigType string `p:"configType"` //状态
*PaginationInput
}
type Context ¶
type Context struct {
Session *ghttp.Session // 当前Session管理对象
User *ContextUser // 上下文用户信息
Data g.Map // 自定KV变量,业务模块根据需要设置,不固定
}
Context 请求上下文结构
type ContextUser ¶
type ContextUser struct {
Id int // 用户ID
Passport string // 用户账号
Nickname string // 用户名称
Avatar string // 用户
IsAdmin bool // 是否是管理员
DeptId int // 部门ID
}
ContextUser 请求上下文中的用户信息
type DataNodeAddInput ¶
type DataNodeAddInput struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required#数据源ID不能为空"`
Key string `` /* 168-byte string literal not displayed */
Name string `json:"name" dc:"数据节点名称" v:"required#请输入数据节点名称"`
DataType string `json:"dataType" dc:"数据类型" v:"required#请选择数据类型"`
Value string `json:"value" dc:"取值项" v:"required#请输入取值项"`
IsPk int `json:"isPk" dc:"是否主键"`
Rule []DataSourceRule `json:"rule" dc:"规则配置"`
}
添加节点
type DataNodeEditInput ¶
type DataNodeEditInput struct {
NodeId uint64 `json:"nodeId" dc:"数据节点ID" v:"required#数据节点ID不能为空"`
Name string `json:"name" dc:"数据节点名称" v:"required#请输入数据节点名称"`
Value string `json:"value" dc:"取值项" v:"required#请输入取值项"`
}
编辑节点
type DataNodeOutput ¶
type DataNodeOutput struct {
*entity.DataNode
NodeRule []*DataSourceRule `json:"nodeRule" dc:"数据节点规则配置"`
}
数据节点
type DataSource ¶
type DataSource struct {
Key string `` /* 162-byte string literal not displayed */
Name string `json:"name" dc:"数据源名称" v:"required#请输入数据源名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
From int `` /* 154-byte string literal not displayed */
Rule []DataSourceRule `json:"rule" dc:"规则配置"`
}
数据源
type DataSourceApiAddInput ¶
type DataSourceApiAddInput struct {
DataSource
Config DataSourceConfigApi `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
添加 api 数据源
type DataSourceApiEditInput ¶
type DataSourceApiEditInput struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required#数据源ID不能为空"`
Name string `json:"name" dc:"数据源名称" v:"required#请输入数据源名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Key string `` /* 128-byte string literal not displayed */
Rule []DataSourceRule `json:"rule" dc:"规则配置"`
Config DataSourceConfigApi `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
编辑 api 数据源
type DataSourceApiRequestParam ¶
type DataSourceApiRequestParam struct {
Type string `` /* 145-byte string literal not displayed */
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"参数标题" v:"required#请输入参数标题"`
Value string `json:"value" dc:"参数值" v:"required#请输入参数值"`
}
api 请求参数
type DataSourceConfigApi ¶
type DataSourceConfigApi struct {
Method string `json:"method" dc:"请求方法(get、post、put)"`
Url string `json:"url" dc:"请求地址" v:"url"`
RequestParams [][]DataSourceApiRequestParam `json:"requestParams" dc:"请求参数"`
// 数据更新间隔,cron 格式
CronExpression string `json:"cronExpression" dc:"任务执行表达式" v:"required#任务表达式不能为空"`
}
api 数据源配置
type DataSourceConfigDb ¶
type DataSourceConfigDb struct {
Type string `json:"type" dc:"数据库类型(mysql/mssql)" v:"required#请配置数据库类型"`
Host string `json:"host" dc:"主机" v:"required#请配置主机地址"`
Port int `json:"port" dc:"端口" v:"required#请配置端口号"`
User string `json:"user" dc:"用户名" v:"required#请配置用户名"`
Passwd string `json:"passwd" dc:"密码" v:"required#请配置密码"`
DbName string `json:"dbName" dc:"数据库名称" v:"required#请配置数据库名称"`
QueryType string `` /* 132-byte string literal not displayed */
TableName string `json:"tableName" dc:"表名称" v:"required#请配置表名称或sql语句"`
Pk string `json:"pk" dc:"主键字段"`
Num int `json:"num" dc:"每次获取数量" d:"100"`
PkMax uint64 `json:"pkmax" dc:"主键最大值"`
// 数据更新间隔,cron 格式
CronExpression string `json:"cronExpression" dc:"任务执行表达式" v:"required#任务表达式不能为空"`
}
数据库 数据源配置
type DataSourceConfigDevice ¶
type DataSourceConfigDevice struct {
ProductKey string `json:"productKey" dc:"产品标识"`
DeviceKey string `json:"deviceKey" dc:"设备标识"`
}
设备 数据源配置
type DataSourceDataInput ¶
type DataSourceDataInput struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required#数据源ID不能为空"`
Param map[string]interface{} `json:"param" dc:"搜索哪些字段的数据"`
PaginationInput
}
type DataSourceDataOutput ¶
type DataSourceDataOutput struct {
List string `json:"data" dc:"源数据记录"`
PaginationOutput
}
type DataSourceDbAddInput ¶
type DataSourceDbAddInput struct {
DataSource
Config DataSourceConfigDb `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
添加 数据库 数据源
type DataSourceDbEditInput ¶
type DataSourceDbEditInput struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required#数据源ID不能为空"`
Name string `json:"name" dc:"数据源名称" v:"required#请输入数据源名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Key string `` /* 128-byte string literal not displayed */
Rule []DataSourceRule `json:"rule" dc:"规则配置"`
Config DataSourceConfigDb `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
编辑 数据库 数据源
type DataSourceDeviceAddInput ¶
type DataSourceDeviceAddInput struct {
DataSource
Config DataSourceConfigDevice `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
添加 设备 数据源
type DataSourceDeviceEditInput ¶
type DataSourceDeviceEditInput struct {
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required#数据源ID不能为空"`
Name string `json:"name" dc:"数据源名称" v:"required#请输入数据源名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Key string `` /* 128-byte string literal not displayed */
Rule []DataSourceRule `json:"rule" dc:"规则配置"`
Config DataSourceConfigDevice `json:"config" dc:"数据源配置" v:"required#请配置数据源"`
}
编辑 设备 数据源
type DataSourceOutput ¶
type DataSourceOutput struct {
*entity.DataSource
SourceRule []*DataSourceRule `json:"sourceRule" dc:"数据源规则配置"`
ApiConfig *DataSourceConfigApi `json:"apiConfig,omitempty" dc:"api配置"`
DeviceConfig *DataSourceConfigDevice `json:"deviceConfig,omitempty" dc:"设备配置"`
DbConfig *DataSourceConfigDb `json:"dbConfig,omitempty" dc:"数据库配置"`
}
数据源详情
type DataSourceRule ¶
type DataSourceRule struct {
Expression string `json:"expression" dc:"正则表达式"`
Replace string `json:"replace" dc:"替换内容"`
}
规则配置
type DataSourceSearchInput ¶
type DataSourceSearchInput struct {
Key string `json:"key" dc:"数据源标识"`
Name string `json:"name" dc:"数据源名称"`
From int `json:"from" dc:"数据来源" d:"1"`
PaginationInput
}
搜索数据源
type DataSourceSearchOutput ¶
type DataSourceSearchOutput struct {
List []entity.DataSource `json:"list" dc:"数据源列表"`
PaginationOutput
}
type DataTemplate ¶
type DataTemplate struct {
*entity.DataTemplate
// 绑定的业务
DataTemplateBusi []DataTemplateBusi `json:"dataTemplateBusi" orm:"with:data_template_id=id" dc:"绑定的业务单元"`
BusiTypes []int `json:"busiTypes" dc:"业务单元"`
}
type DataTemplateAddInput ¶
type DataTemplateAddInput struct {
Key string `` /* 168-byte string literal not displayed */
Name string `json:"name" dc:"数据模型名称" v:"required#请输入数据模型名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
// 数据更新间隔,cron 格式
CronExpression string `json:"cronExpression" dc:"任务执行表达式" v:"required#任务表达式不能为空"`
}
添加数据模型
type DataTemplateBusi ¶
type DataTemplateBusi struct {
DataTemplateId uint64 `json:"dataTemplateId" dc:"数据模型ID"`
BusiTypes int `json:"busiTypes" dc:"业务单元"`
}
绑定业务模型
type DataTemplateBusiAddInput ¶
type DataTemplateBusiAddInput struct {
DataTemplateId uint64 `json:"dataTemplateId" dc:"数据模型ID"`
BusiTypes []int `json:"busiTypes" dc:"业务单元"`
}
绑定业务模型
type DataTemplateDataInput ¶
type DataTemplateDataInput struct {
Id uint64 `json:"id" dc:"数据模型ID" v:"required#数据模型ID不能为空"`
Param map[string]interface{} `json:"param" dc:"搜索哪些字段的数据"`
PaginationInput
}
type DataTemplateDataOutput ¶
type DataTemplateDataOutput struct {
List string `json:"data" dc:"模型数据记录"`
PaginationOutput
}
type DataTemplateEditInput ¶
type DataTemplateEditInput struct {
Id uint64 `json:"id" dc:"数据模型ID" v:"required#数据模型ID不能为空"`
Name string `json:"name" dc:"数据模型名称" v:"required#请输入数据模型名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Key string `` /* 131-byte string literal not displayed */
// 数据更新间隔,cron 格式
CronExpression string `json:"cronExpression" dc:"任务执行表达式" v:"required#任务表达式不能为空"`
// 绑定业务
BusiTypes []int `json:"busiTypes" dc:"业务单元"`
}
编辑数据模型
type DataTemplateNodeAddInput ¶
type DataTemplateNodeAddInput struct {
Tid uint64 `json:"tid" dc:"数据模型ID" v:"required#数据模型ID不能为空"`
From int `` /* 141-byte string literal not displayed */
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required-if:from,2#数据源ID不能为空"`
NodeId uint64 `json:"nodeId" dc:"数据节点ID" v:"required-if:from,2#数据节点ID不能为空"`
Key string `` /* 168-byte string literal not displayed */
Name string `json:"name" dc:"模型节点名称" v:"required#请输入模型节点名称"`
DataType string `json:"dataType" dc:"数据类型" v:"required#请选择数据类型"`
Default string `json:"default" dc:"默认值"`
Method string `json:"method" dc:"数值类型,取值方式:max、min、avg"`
IsPk int `json:"isPk" dc:"是否主键"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
IsSorting int `json:"isSorting" dc:"是否参与排序:0=否,1=是" v:"required|in:0,1#请选择是否参与排序|请正确选择"`
IsDesc int `json:"isDesc" dc:"排序方式:1=倒序,2=正序" v:"required-if:isSorting,1#请选择排序方式"`
}
添加节点
type DataTemplateNodeEditInput ¶
type DataTemplateNodeEditInput struct {
Id uint64 `json:"id" dc:"模型节点ID" v:"required#模型节点ID不能为空"`
From int `` /* 141-byte string literal not displayed */
SourceId uint64 `json:"sourceId" dc:"数据源ID" v:"required-if:from,2#数据源ID不能为空"`
NodeId uint64 `json:"nodeId" dc:"数据节点ID" v:"required-if:from,2#数据节点ID不能为空"`
Name string `json:"name" dc:"模型节点名称" v:"required#请输入模型节点名称"`
Default string `json:"default" dc:"默认值"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
IsSorting int `json:"isSorting" dc:"是否参与排序:0=否,1=是" v:"required|in:0,1#请选择是否参与排序|请正确选择"`
IsDesc int `json:"isDesc" dc:"排序方式:1=倒序,2=正序" v:"required-if:isSorting,1#请选择排序方式"`
}
编辑节点
type DataTemplateNodeOutput ¶
type DataTemplateNodeOutput struct {
*entity.DataTemplateNode
IsSorting int `json:"isSorting" dc:"是否参与排序:0=否,1=是"`
IsDesc int `json:"isDesc" dc:"排序方式:1=倒序,2=正序"`
Source *WithSource `json:"source" orm:"with:source_id, where:source_id>0" dc:"数据源"`
Node *WithNode `json:"node" orm:"with:node_id, where:node_id>0" dc:"数据源节点"`
}
数据模型节点
type DataTemplateSearchInput ¶
type DataTemplateSearchInput struct {
Key string `json:"key" dc:"数据模型标识"`
Name string `json:"name" dc:"数据模型名称"`
PaginationInput
}
搜索数据模型
type DataTemplateSearchOutput ¶
type DataTemplateSearchOutput struct {
List []DataTemplate `json:"list" dc:"数据模型列表"`
PaginationOutput
}
type DataTypeOutput ¶
type DataTypeOutput struct {
BaseType []DataTypeValueBase `json:"baseType" dc:"基础类型"`
ExtensionType []DataTypeValueExtension `json:"extensionType" dc:"扩展类型"`
}
type DataTypeValueBase ¶
type DataTypeValueBase struct {
Title string `json:"title" dc:"类型名称"`
Type string `json:"type" dc:"数据类型"`
TSLParamBase
}
type DataTypeValueExtension ¶
type DataTypeValueExtension struct {
Title string `json:"title" dc:"类型名称"`
Type string `json:"type" dc:"数据类型"`
TSLParamExtension
}
type DelTSLEventInput ¶
type DelTSLEventInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
Key string `json:"key" dc:"事件标识" v:"required#事件标识不能为空"`
}
事件:删除
type DelTSLFunctionInput ¶
type DelTSLFunctionInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
Key string `json:"key" dc:"功能标识" v:"required#功能标识不能为空"`
}
功能:删除
type DelTSLPropertyInput ¶
type DelTSLPropertyInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
Key string `json:"key" dc:"属性标识" v:"required#属性标识不能为空"`
}
删除属性
type DelTSLTagInput ¶
type DelTSLTagInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
Key string `json:"key" dc:"标签标识" v:"required#标签标识不能为空"`
}
删除标签
type DeptOut ¶
type DeptOut struct {
DeptId int64 `json:"deptId" description:"部门id"`
OrganizationId int `json:"organizationId" description:"组织ID"`
ParentId int64 `json:"parentId" description:"父部门id"`
Ancestors string `json:"ancestors" description:"祖级列表"`
DeptName string `json:"deptName" description:"部门名称"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*DeptOut `json:"children" description:"子集"`
}
type DeptRes ¶
type DeptRes struct {
DeptId int64 `json:"deptId" description:"部门id"`
OrganizationId int `json:"organizationId" description:"组织ID"`
ParentId int64 `json:"parentId" description:"父部门id"`
Ancestors string `json:"ancestors" description:"祖级列表"`
DeptName string `json:"deptName" description:"部门名称"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*DeptRes `json:"children" description:"子集"`
}
type DetailBaseDbLinkRes ¶
type DetailBaseDbLinkRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"名称"`
Types string `json:"types" description:"驱动类型 mysql或oracle"`
Host string `json:"host" description:"主机地址"`
Port int `json:"port" description:"端口号"`
UserName string `json:"userName" description:"用户名称"`
Password string `json:"password" description:"密码"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailDeptRes ¶
type DetailDeptRes struct {
DeptId int64 `json:"deptId" description:"部门id"`
ParentId int64 `json:"parentId" description:"父部门id"`
OrganizationId int `json:"organizationId" description:"组织ID"`
Ancestors string `json:"ancestors" description:"祖级列表"`
DeptName string `json:"deptName" description:"部门名称"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailMenuButtonRes ¶
type DetailMenuButtonRes struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Types string `json:"types" description:"类型 自定义 add添加 edit编辑 del 删除"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailMenuColumnRes ¶
type DetailMenuColumnRes struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Code string `json:"code" description:"代表列表"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailMenuRes ¶
type DetailMenuRes struct {
Id int64 `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType int64 `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide int64 `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink int64 `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId int64 `json:"modelId" description:"模型ID"`
IsIframe int64 `json:"isIframe" description:"是否内嵌iframe"`
IsCached int64 `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix int64 `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
}
type DetailOrganizationRes ¶
type DetailOrganizationRes struct {
Id int64 `json:"id" description:"组织id"`
ParentId int64 `json:"parentId" description:"父部门id"`
OrganizationId int `json:"organizationId" description:"组织ID"`
Ancestors string `json:"ancestors" description:"祖级列表"`
Name string `json:"name" description:"组织名称"`
Number string `json:"number" description:"组织编号"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailPostRes ¶
type DetailPostRes struct {
PostId int64 `json:"postId" description:"岗位ID"`
ParentId int64 `json:"parentId" description:"父ID"`
PostCode string `json:"postCode" description:"岗位编码"`
PostName string `json:"postName" description:"岗位名称"`
PostSort int `json:"postSort" description:"显示顺序"`
Status uint `json:"status" description:"状态(0正常 1停用)"`
Remark string `json:"remark" description:"备注"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}
type DetailProductOutput ¶
type DetailProductOutput struct {
*entity.DevProduct
DeviceTotal int `json:"deviceTotal" dc:"设备数量"`
CategoryName string `json:"categoryName" dc:"分类名称"`
Category *DevProductCategory `json:"category" orm:"with:id=category_id" dc:"部门信息"`
TSL *TSL `json:"tsl" dc:"物模型"`
}
type DevDeviceTag ¶
type DevProduct ¶
type DevProductCategory ¶
type DevProductWithName ¶
type DeviceGetPropertyInput ¶
type DeviceGetPropertyListInput ¶
type DeviceGetPropertyListInput struct {
Id uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
PropertyKey string `json:"propertyKey" dc:"属性标识" v:"required#属性标识不能为空"`
PaginationInput
}
type DeviceGetPropertyListOutput ¶
type DeviceGetPropertyListOutput struct {
List []*DevicePropertiyOut
PaginationOutput
}
type DeviceInput ¶
type DeviceLogSearchInput ¶
type DeviceLogSearchInput struct {
DeviceKey string `json:"deviceKey" dc:"设备标识" v:"required#设备标识不能为空"`
Types []string `json:"types" dc:"日志类型"`
PaginationInput
}
type DeviceLogSearchOutput ¶
type DeviceLogSearchOutput struct {
List []TdLog `json:"list" dc:"日志类型列表"`
PaginationOutput
}
type DeviceOutput ¶
type DeviceOutput struct {
*entity.DevDevice
ProductName string `json:"productName" dc:"产品名称"`
TSL *TSL `json:"tsl" dc:"物模型"`
Product *DevProduct `json:"product" orm:"with:id=product_id" dc:"产品信息"`
Tags []*DevDeviceTag `json:"tags" orm:"with:device_id=id" dc:"设备标签"`
}
type DevicePropertiy ¶
type DevicePropertiyOut ¶
type DeviceRunStatusOutput ¶
type DeviceRunStatusOutput struct {
Status int `json:"status" dc:"状态:0=未启用,1=离线,2=在线"`
LastOnlineTime *gtime.Time `json:"lastOnlineTime" dc:"最后上线时间"`
Properties []DevicePropertiy `json:"properties" dc:"属性列表"`
}
设备运行状态
type DeviceTotalOutput ¶
type DeviceTotalOutput struct {
DeviceTotal int `json:"deviceTotal" dc:"设备总量"`
DeviceOffline int `json:"deviceOffline" dc:"离线设备数量"`
ProductTotal int `json:"productTotal" dc:"产品总量"`
ProductAdded int `json:"productAdded" dc:"今日产品增量"`
MsgTotal int `json:"msgTotal" dc:"设备消息总量"`
MsgAdded int `json:"msgAdded" dc:"今日设备消息增量"`
AlarmTotal int `json:"alarmTotal" dc:"设备报警总量"`
AlarmAdded int `json:"alarmAdded" dc:"今日设备报警增量"`
}
type DictDataOut ¶
type DictDataRes ¶
type DictDataRes struct {
DictValue string `json:"key"`
DictLabel string `json:"value"`
IsDefault int `json:"isDefault"`
Remark string `json:"remark"`
}
DictDataRes 字典数据
type DictTypeDoInput ¶
type DictTypeDoInput struct {
DictName string `p:"dictName"` //字典名称
DictType string `p:"dictType"` //字典类型
Status string `p:"status"` //字典状态
*PaginationInput
}
type DictTypeOut ¶
type DictTypeRes ¶
type EditApiInput ¶
type EditApiInput struct {
Id int `json:"id"`
ParentId int `json:"parentId"`
Name string `json:"name"`
Types int `json:"types"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address"`
Remark string `json:"remark"`
Status int `json:"status"`
Sort int `json:"sort"`
MenuIds []int `json:"menuIds"`
}
type EditBaseDbLinkInput ¶
type EditBaseDbLinkInput struct {
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 EditCityReq ¶
type EditConfigInput ¶
type EditDeptInput ¶
type EditDeptInput struct {
DeptId int64 `json:"deptId"`
ParentId int64 `json:"parentId"`
OrganizationId int `json:"organizationId"`
DeptName string `json:"deptName"`
OrderNum int `json:"orderNum"`
Status uint `json:"status"`
Leader string `json:"leader"`
Phone string `json:"phone"`
Email string `json:"email"`
}
type EditDeviceInput ¶
type EditDeviceInput struct {
Id uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
Name string `json:"name" dc:"设备名称" v:"required#请输入设备名称"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Certificate string `json:"certificate" dc:"设备证书"`
SecureKey string `json:"secureKey" dc:"设备密钥"`
Version string `json:"version" dc:"固件版本号"`
}
type EditDictDataInput ¶
type EditDictDataInput struct {
DictCode int `p:"dictCode"`
DictLabel string `p:"dictLabel"`
DictValue string `p:"dictValue"`
DictType string `p:"dictType"`
DictSort int `p:"dictSort"`
CssClass string `p:"cssClass"`
ListClass string `p:"listClass"`
IsDefault int `p:"isDefault"`
Status int `p:"status"`
Remark string `p:"remark"`
}
type EditDictTypeInput ¶
type EditMenuButtonInput ¶
type EditMenuColumnInput ¶
type EditMenuColumnInput struct {
Id int `json:"id" description:"" `
ParentId int `json:"parentId" description:"父ID" `
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Code string `json:"code" description:"代表列表"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
}
type EditMenuInput ¶
type EditMenuInput struct {
Id int64 `json:"id"`
MenuType uint `p:"menuType"`
ParentId int `p:"parentId"`
Name string `p:"name"`
Title string `p:"title"`
Icon string `p:"icon"`
Weigh int `p:"weigh"`
Condition string `p:"condition"`
Remark string `p:"remark"`
IsHide uint `p:"isHide"`
Path string `p:"path"`
Component string `p:"component"`
IsLink uint `p:"isLink"`
IsIframe uint `p:"isIframe"`
IsCached uint `p:"isKeepAlive"`
IsAffix uint `p:"isAffix"`
LinkUrl string `p:"linkUrl"`
Status int `p:"status"`
ModuleType string `p:"moduleType"`
}
type EditOrganizationInput ¶
type EditOrganizationInput struct {
Id int64 `json:"id" description:"组织id"`
ParentId int64 `json:"parentId" description:"父ID" v:"required#请输入选择上级"`
Name string `json:"name" description:"组织名称"`
OrderNum int `json:"orderNum" description:"排序"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
}
type EditPostInput ¶
type EditPostInput struct {
PostId int64 `json:"postId" description:"岗位ID" v:"required#岗位ID不能为空"`
ParentId int64 `json:"parentId" description:"父ID" v:"required#请输入选择上级"`
PostName string `json:"postName" description:"岗位名称" v:"required#请输入岗位名称"`
PostSort int `json:"postSort" description:"显示顺序"`
Status uint `json:"status" description:"状态(0正常 1停用)" v:"required#请选择状态"`
Remark string `json:"remark" description:"备注"`
}
type EditProductCategoryInput ¶
type EditProductCategoryInput struct {
Id uint `json:"id" description:"分类ID" v:"required#分类ID不能为空"`
Key string `json:"key" description:"分类标识" v:"required#请输入标识"`
Name string `json:"name" description:"分类名称" v:"required#请输入名称"`
Desc string `json:"desc" description:"描述" v:"max-length:200#描述长度不能超过200个字符"`
}
type EditProductInput ¶
type EditProductInput struct {
Id uint `json:"id" dc:"产品ID" v:"required#产品ID不能为空"`
Name string `json:"name" dc:"产品名称" v:"required#请输入产品名称"`
CategoryId uint `json:"categoryId" dc:"所属品类" v:"required#请选择所属品类"`
MessageProtocol string `json:"messageProtocol" dc:"消息协议" v:"required#请选择消息协议"`
TransportProtocol string `json:"transportProtocol" dc:"传输协议: MQTT,COAP,UDP" v:"required#请选择传输协议"`
DeviceType string `json:"deviceType" dc:"设备类型:网关、设备" v:"required#请选择设备类型"`
Desc string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
Icon *string `json:"icon" dc:"图片地址"`
}
type EditRoleInput ¶
type EditRoleInput struct {
Id uint `json:"id" description:"ID"`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"角色名称"`
ListOrder uint `json:"listOrder" description:"排序"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
Remark string `json:"remark" description:"备注"`
}
type EditTagDeviceInput ¶
type EditUserInput ¶
type EditUserInput struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名" v:"required#用户名不能为空"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `` /* 152-byte string literal not displayed */
UserNickname string `json:"userNickname" description:"用户昵称" v:"required#用户昵称不能为空"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId uint64 `json:"deptId" description:"部门id" v:"required#部门不能为空"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
RoleIds []int `json:"roleIds" description:"角色ID数组" v:"required#角色不能为空"`
PostIds []int `json:"postIds" description:"岗位ID数组" v:"required#岗位不能为空"`
}
type GetDictInput ¶
type GetDictOut ¶
type GetDictOut struct {
Data *DictTypeOut `json:"info"`
Values []*DictDataOut `json:"values"`
}
type GetDictRes ¶
type GetDictRes struct {
Data *DictTypeRes `json:"info"`
Values []*DictDataRes `json:"values"`
}
type GetJobListInput ¶
type GetJobListInput struct {
JobName string `json:"jobName" description:"任务名称"`
JobGroup string `json:"jobGroup" description:"任务组名"`
Status string `json:"status" description:"状态(0正常 1暂停)"`
*PaginationInput
}
type GetNetworkServerListInput ¶
type GetNetworkServerListInput struct {
PaginationInput
}
type GetNetworkTunnelListInput ¶
type GetNetworkTunnelListInput struct {
ServiceId int `json:"serviceId" dc:"服务ID"`
DeviceKey string `json:"deviceKey" dc:"设备标识"`
*PaginationInput
}
type GetNoticeConfigListInput ¶
type GetNoticeConfigListInput struct {
SendGateway string `json:"sendGateway" description:"sendGateway"`
Types string `json:"types" description:"types"`
PaginationInput
}
type GetNoticeInfoListInput ¶
type GetNoticeInfoListInput struct {
ConfigId string `json:"configId" description:""`
ComeFrom string `json:"comeFrom" description:""`
Method string `json:"method" description:""`
Status int `json:"status" description:""`
PaginationInput
}
type GetNoticeTemplateListInput ¶
type GetNoticeTemplateListInput struct {
ConfigId string `json:"configId" description:""`
SendGateway string `json:"sendGateway" description:""`
Code string `json:"code" description:""`
PaginationInput
}
type GetNotificationsListInput ¶
type GetNotificationsListInput struct {
*PaginationInput
}
type GetPluginsConfigListInput ¶
type GetPluginsConfigListInput struct {
Id int `json:"id" description:"ID"`
PaginationInput
}
type GetSysPluginsListInput ¶
type GetSysPluginsListInput struct {
PaginationInput
}
type ListDeviceForPageInput ¶
type ListDeviceForPageInput struct {
*DeviceInput
PaginationInput
}
type ListDeviceForPageOutput ¶
type ListDeviceForPageOutput struct {
Device []*DeviceOutput `json:"device" dc:"设备列表"`
PaginationOutput
}
type ListDeviceInput ¶
type ListDeviceInput struct {
ProductId uint `json:"productId" dc:"产品ID"`
}
type ListForPageInput ¶
type ListForPageInput struct {
ProductInput
PaginationInput
}
type ListForPageOutput ¶
type ListForPageOutput struct {
Product []*ProductOutput `json:"product" dc:"产品列表"`
PaginationOutput
}
type ListTSLEventInput ¶
type ListTSLEventInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
PaginationInput
}
type ListTSLEventOutput ¶
type ListTSLEventOutput struct {
Data []TSLEvent
PaginationOutput
}
type ListTSLFunctionInput ¶
type ListTSLFunctionInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
PaginationInput
}
type ListTSLFunctionOutput ¶
type ListTSLFunctionOutput struct {
Data []TSLFunction
PaginationOutput
}
type ListTSLPropertyInput ¶
type ListTSLPropertyInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
Name string `json:"name" dc:"属性名称"`
DateType string `json:"dateType" dc:"数据类型"`
PaginationInput
}
type ListTSLPropertyOutput ¶
type ListTSLPropertyOutput struct {
Data []TSLProperty
PaginationOutput
}
type ListTSLTagInput ¶
type ListTSLTagInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
PaginationInput
}
type ListTSLTagOutput ¶
type ListTSLTagOutput struct {
Data []TSLTag
PaginationOutput
}
type LoginLogParams ¶
type LoginUserOut ¶
type LoginUserRes ¶
type LoginUserRes struct {
UserNickname string `orm:"user_nickname" json:"userNickname"` // 用户昵称
Avatar string `orm:"avatar" json:"avatar"` //头像
}
LoginUserRes 登录返回
type MenuColumnDoInput ¶
type MenuJoinRes ¶
type MenuJoinRes struct {
Id int64 `json:"id" description:""`
ParentId int64 `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType int64 `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide int64 `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink int64 `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId int64 `json:"modelId" description:"模型ID"`
IsIframe int64 `json:"isIframe" description:"是否内嵌iframe"`
IsCached int64 `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix int64 `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Button []*UserMenuButtonRes `json:"button" description:"按钮集合"`
Column []*UserMenuColumnRes `json:"column" description:"列表集合"`
Api []*SysMenuApiRes `json:"api" description:"接口API集合"`
}
type MenuMeta ¶
type MenuMeta struct {
Icon string `json:"icon" description:"图标"`
Title string `json:"title" description:"规则名称"`
IsLink string `json:"isLink" description:"是否外链 1是 0否"`
IsHide bool `json:"isHide" description:"显示状态"`
IsAffix bool `json:"isAffix" description:"是否固定"`
IsIframe bool `json:"isIframe" description:"是否内嵌iframe"`
}
type MessageProtocolRes ¶
type MessageProtocolRes struct {
Key string `json:"key" dc:"协议标识"`
Name string `json:"name" dc:"协议名称"`
}
消息协议
type NetworkServerAddInput ¶
type NetworkServerAddInput struct {
Name string `json:"name" description:""`
Types string `json:"types" description:"tcp/udp"`
Addr string `json:"addr" description:""`
Register string `json:"register" description:"注册包"`
Heartbeat string `json:"heartbeat" description:"心跳包"`
Protocol string `json:"protocol" description:"协议"`
Devices string `json:"devices" description:"默认设备"`
Status int `json:"status" description:""`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
CreateBy int `json:"createBy" description:""`
Remark string `json:"remark" description:"备注"`
}
type NetworkServerEditInput ¶
type NetworkServerEditInput struct {
Id int `json:"id" description:"ID"`
NetworkServerAddInput
}
type NetworkServerOut ¶
type NetworkServerOut struct {
Id int `json:"id" description:""`
Name string `json:"name" description:""`
Types string `json:"types" description:"tcp/udp/mqtt"`
Addr string `json:"addr" description:""`
Register string `json:"register" description:"注册包"`
Heartbeat string `json:"heartbeat" description:"心跳包"`
Protocol string `json:"protocol" description:"协议"`
Devices string `json:"devices" description:"默认设备"`
Status int `json:"status" description:""`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
CreateBy int `json:"createBy" description:""`
Remark string `json:"remark" description:"备注"`
}
type NetworkServerRes ¶
type NetworkServerRes struct {
Id int `json:"id" description:""`
Name string `json:"name" description:""`
Types string `json:"types" description:"tcp/udp/mqtt"`
Addr string `json:"addr" description:""`
Register string `json:"register" description:"注册包"`
Heartbeat string `json:"heartbeat" description:"心跳包"`
Protocol string `json:"protocol" description:"协议"`
Devices string `json:"devices" description:"默认设备"`
Status int `json:"status" description:""`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
CreateBy int `json:"createBy" description:""`
Remark string `json:"remark" description:"备注"`
}
type NetworkTunnelAddInput ¶
type NetworkTunnelAddInput struct {
ServerId int `json:"serverId" description:"服务ID"`
Name string `json:"name" description:""`
Types string `json:"types" description:""`
Addr string `json:"addr" description:""`
Remote string `json:"remote" description:""`
Retry string `json:"retry" description:""`
Heartbeat string `json:"heartbeat" description:""`
Serial string `json:"serial" description:""`
Protoccol string `json:"protoccol" description:""`
Status int `json:"status" description:""`
Remark string `json:"remark" description:"备注"`
}
type NetworkTunnelEditInput ¶
type NetworkTunnelEditInput struct {
Id int `json:"id" description:"ID"`
NetworkTunnelAddInput
}
type NetworkTunnelOut ¶
type NetworkTunnelOut struct {
Id int `json:"id" description:"ID"`
ServerId int `json:"serverId" description:"服务ID"`
Name string `json:"name" description:""`
Types string `json:"types" description:""`
Addr string `json:"addr" description:""`
Remote string `json:"remote" description:""`
Retry string `json:"retry" description:""`
Heartbeat string `json:"heartbeat" description:""`
Serial string `json:"serial" description:""`
Protoccol string `json:"protoccol" description:""`
DeviceKey string `json:"deviceKey" description:"设备标识"`
Status int `json:"status" description:""`
Last *gtime.Time `json:"last" description:""`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
Remark string `json:"remark" description:"备注"`
}
type NetworkTunnelRes ¶
type NetworkTunnelRes struct {
Id int `json:"id" description:"ID"`
ServerId int `json:"serverId" description:"服务ID"`
Name string `json:"name" description:""`
Types string `json:"types" description:""`
Addr string `json:"addr" description:""`
Remote string `json:"remote" description:""`
Retry string `json:"retry" description:""`
Heartbeat string `json:"heartbeat" description:""`
Serial string `json:"serial" description:""`
Protoccol string `json:"protoccol" description:""`
DeviceKey string `json:"deviceKey" description:"设备标识"`
Status int `json:"status" description:""`
Last *gtime.Time `json:"last" description:""`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
Remark string `json:"remark" description:"备注"`
}
type NoticeConfigAddInput ¶
type NoticeConfigEditInput ¶
type NoticeConfigEditInput struct {
NoticeConfigAddInput
}
type NoticeConfigListOutput ¶
type NoticeConfigListOutput struct {
Data []NoticeConfigOutput
PaginationOutput
}
type NoticeConfigOutput ¶
type NoticeInfoAddInput ¶
type NoticeInfoAddInput struct {
Totag string `json:"totag" description:""`
Status string `json:"status" description:""`
MethodCron string `json:"methodCron" description:""`
ConfigId string `json:"configId" description:""`
ComeFrom string `json:"comeFrom" description:""`
Method string `json:"method" description:""`
MsgBody string `json:"msgBody" description:""`
MsgUrl string `json:"msgUrl" description:""`
UserIds string `json:"userIds" description:""`
MsgTitle string `json:"msgTitle" description:""`
OrgIds string `json:"orgIds" description:""`
MethodNum string `json:"methodNum" description:""`
CreatedAt string `json:"createdAt" description:""`
}
type NoticeInfoEditInput ¶
type NoticeInfoEditInput struct {
Id int `json:"id" description:"ID"`
NoticeInfoAddInput
}
type NoticeInfoListOutput ¶
type NoticeInfoListOutput struct {
Data []NoticeInfoOutput
PaginationOutput
}
type NoticeInfoOutput ¶
type NoticeInfoOutput struct {
Status string `json:"status" description:""`
MethodCron string `json:"methodCron" description:""`
Id string `json:"id" description:""`
Totag string `json:"totag" description:""`
Method string `json:"method" description:""`
MsgBody string `json:"msgBody" description:""`
MsgUrl string `json:"msgUrl" description:""`
ConfigId string `json:"configId" description:""`
ComeFrom string `json:"comeFrom" description:""`
UserIds string `json:"userIds" description:""`
MethodNum string `json:"methodNum" description:""`
CreatedAt string `json:"createdAt" description:""`
MsgTitle string `json:"msgTitle" description:""`
OrgIds string `json:"orgIds" description:""`
}
type NoticeLogAddInput ¶
type NoticeLogAddInput struct {
TemplateId string `json:"templateId" dc:"通知模板ID"`
SendGateway string `json:"sendGateway" dc:"通知发送通道:sms、work_weixin、dingding"`
Addressee string `json:"addressee" dc:"收信人"`
Title string `json:"title" dc:"通知标题"`
Content string `json:"content" dc:"通知内容"`
Status int `json:"status" dc:"发送状态:0=失败,1=成功"`
FailMsg string `json:"failMsg" dc:"失败信息"`
SendTime string `json:"sendTime" dc:"发送时间"`
}
type NoticeLogList ¶
type NoticeLogSearchInput ¶
type NoticeLogSearchInput struct {
Status int `json:"status" dc:"发送状态:0=失败,1=成功"`
PaginationInput
}
type NoticeLogSearchOutput ¶
type NoticeLogSearchOutput struct {
List []NoticeLogList `json:"list" dc:"通知日志列表"`
PaginationOutput
}
type NoticeTemplateAddInput ¶
type NoticeTemplateAddInput struct {
Id string `json:"id" description:"ID"`
SendGateway string `json:"sendGateway" description:""`
Code string `json:"code" description:""`
Title string `json:"title" description:""`
Content string `json:"content" description:""`
CreatedAt string `json:"createdAt" description:""`
ConfigId string `json:"configId" description:""`
}
type NoticeTemplateEditInput ¶
type NoticeTemplateEditInput struct {
NoticeTemplateAddInput
}
type NoticeTemplateListOutput ¶
type NoticeTemplateListOutput struct {
Data []NoticeTemplateOutput
PaginationOutput
}
type NoticeTemplateOutput ¶
type NoticeTemplateOutput struct {
Id string `json:"id" description:""`
ConfigId string `json:"configId" description:""`
SendGateway string `json:"sendGateway" description:""`
Code string `json:"code" description:""`
Title string `json:"title" description:""`
Content string `json:"content" description:""`
CreatedAt string `json:"createdAt" description:""`
}
type NotificationsAddInput ¶
type NotificationsAddInput struct {
Title string `json:"title" description:"标题"`
Doc string `json:"doc" description:"描述"`
Source string `json:"source" description:"消息来源"`
Types string `json:"types" description:"类型"`
CreatedAt string `json:"createdAt" description:"发送时间"`
Status string `json:"status" description:"0,未读,1,已读"`
}
type NotificationsEditInput ¶
type NotificationsEditInput struct {
Id int `json:"id" description:"ID"`
NotificationsAddInput
}
type NotificationsOut ¶
type NotificationsOut struct {
Id int `json:"id" description:"ID"`
}
type NotificationsRes ¶
type NotificationsRes struct {
Id int `json:"id" description:"ID"`
}
type OperatorOutput ¶
type OrganizationOut ¶
type OrganizationOut struct {
Id int64 `json:"id" description:"组织id"`
ParentId int64 `json:"parentId" description:"父组织id"`
Ancestors string `json:"ancestors" description:"祖级列表"`
Name string `json:"name" description:"组织名称"`
Number string `json:"number" description:"组织编号"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*OrganizationOut `json:"children" description:"子集"`
}
type OrganizationRes ¶
type OrganizationRes struct {
Id int64 `json:"id" description:"组织id"`
ParentId int64 `json:"parentId" description:"父组织id"`
Ancestors string `json:"ancestors" description:"祖级列表"`
Name string `json:"name" description:"组织名称"`
Number string `json:"number" description:"组织编号"`
OrderNum int `json:"orderNum" description:"显示顺序"`
Leader string `json:"leader" description:"负责人"`
Phone string `json:"phone" description:"联系电话"`
Email string `json:"email" description:"邮箱"`
Status uint `json:"status" description:"部门状态(0停用 1正常)"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*OrganizationRes `json:"children" description:"子集"`
}
type PaginationInput ¶
type PaginationInput 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 PaginationOutput ¶
type PluginsConfigAddInput ¶
type PluginsConfigData ¶
type PluginsConfigData struct {
Msg string
Data interface{}
}
type PluginsConfigEditInput ¶
type PluginsConfigEditInput struct {
Id int `json:"id" description:"ID"`
PluginsConfigAddInput
}
type PluginsConfigListOutput ¶
type PluginsConfigListOutput struct {
Data []PluginsConfigOutput
PaginationOutput
}
type PluginsConfigOutput ¶
type PostOut ¶
type PostOut struct {
PostId int64 `json:"postId" description:"岗位ID"`
ParentId int64 `json:"parentId" description:"父ID"`
PostCode string `json:"postCode" description:"岗位编码"`
PostName string `json:"postName" description:"岗位名称"`
PostSort int `json:"postSort" description:"显示顺序"`
Status uint `json:"status" description:"状态(0正常 1停用)"`
Remark string `json:"remark" description:"备注"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*PostOut `json:"children" description:"子集"`
}
type PostRes ¶
type PostRes struct {
PostId int64 `json:"postId" description:"岗位ID"`
ParentId int64 `json:"parentId" description:"父ID"`
PostCode string `json:"postCode" description:"岗位编码"`
PostName string `json:"postName" description:"岗位名称"`
PostSort int `json:"postSort" description:"显示顺序"`
Status uint `json:"status" description:"状态(0正常 1停用)"`
Remark string `json:"remark" description:"备注"`
IsDeleted int `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*PostRes `json:"children" description:"子集"`
}
type ProductCategoryOutput ¶
type ProductCategoryOutput struct {
*entity.DevProductCategory
}
type ProductCategoryTreeOutput ¶
type ProductCategoryTreeOutput struct {
*entity.DevProductCategory
Children []*ProductCategoryTreeOutput `json:"children" description:"子分类"`
}
type ProductInput ¶
type ProductOutput ¶
type ProductOutput struct {
*entity.DevProduct
DeviceTotal int `json:"deviceTotal" dc:"设备数量"`
CategoryName string `json:"categoryName" dc:"分类名称"`
Category *DevProductCategory `json:"category" orm:"with:id=category_id" dc:"分类信息"`
}
type RoleInfoRes ¶
type RoleInfoRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
ListOrder uint `json:"listOrder" description:"排序"`
Name string `json:"name" description:"角色名称"`
DataScope uint `` /* 155-byte string literal not displayed */
DeptIds []int64 `json:"deptIds" description:"数据范围为自定义数据权限时返回部门ID数组"`
Remark string `json:"remark" description:"备注"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
}
type RoleTreeOut ¶
type RoleTreeOut struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
ListOrder uint `json:"listOrder" description:"排序"`
Name string `json:"name" description:"角色名称"`
DataScope uint `` /* 155-byte string literal not displayed */
Remark string `json:"remark" description:"备注"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
Children []*RoleTreeOut `json:"children" description:"子集"`
}
type RoleTreeRes ¶
type RoleTreeRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
ListOrder uint `json:"listOrder" description:"排序"`
Name string `json:"name" description:"角色名称"`
DataScope uint `` /* 155-byte string literal not displayed */
Remark string `json:"remark" description:"备注"`
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
Children []*RoleTreeRes `json:"children" description:"子集"`
}
type SessionNotice ¶
SessionNotice 存放在Session中的提示信息,往往使用后则删除
type SourceDataAllInput ¶
type SourceDataAllOutput ¶
type SourceDataAllOutput struct {
List string `json:"data" dc:"源数据记录"`
}
type SysApiAllRes ¶
type SysApiAllRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
}
type SysApiOut ¶
type SysApiOut struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
MenuIds []int `json:"menuIds" description:"菜单Id数组" v:"required#菜单ID不能为空"`
}
type SysApiRes ¶
type SysApiRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
MenuIds []int `json:"menuIds" description:"菜单Id数组" v:"required#菜单ID不能为空"`
}
type SysApiTreeOut ¶
type SysApiTreeOut struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
Children []*SysApiTreeOut `json:"children" description:"子集"`
}
type SysApiTreeRes ¶
type SysApiTreeRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
Children []*SysApiTreeRes `json:"children" description:"子集"`
}
type SysConfigOut ¶
type SysConfigOut struct {
ConfigId uint `json:"configId" description:"参数主键"`
ConfigName string `json:"configName" description:"参数名称"`
ConfigKey string `json:"configKey" description:"参数键名"`
ConfigValue string `json:"configValue" description:"参数键值"`
ConfigType int `json:"configType" description:"系统内置(Y是 N否)"`
CreateBy uint `json:"createBy" description:"创建者"`
UpdateBy uint `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
}
type SysConfigRes ¶
type SysConfigRes struct {
ConfigId uint `json:"configId" description:"参数主键"`
ConfigName string `json:"configName" description:"参数名称"`
ConfigKey string `json:"configKey" description:"参数键名"`
ConfigValue string `json:"configValue" description:"参数键值"`
ConfigType int `json:"configType" description:"系统内置(Y是 N否)"`
CreateBy uint `json:"createBy" description:"创建者"`
UpdateBy uint `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
}
type SysDictDataOut ¶
type SysDictDataOut struct {
DictCode int64 `json:"dictCode" description:"字典编码"`
DictSort int `json:"dictSort" description:"字典排序"`
DictLabel string `json:"dictLabel" description:"字典标签"`
DictValue string `json:"dictValue" description:"字典键值"`
DictType string `json:"dictType" description:"字典类型"`
CssClass string `json:"cssClass" description:"样式属性(其他样式扩展)"`
ListClass string `json:"listClass" description:"表格回显样式"`
IsDefault int `json:"isDefault" description:"是否默认(1是 0否)"`
Status int `json:"status" description:"状态(0正常 1停用)"`
CreateBy uint64 `json:"createBy" description:"创建者"`
UpdateBy uint64 `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
}
type SysDictDataRes ¶
type SysDictDataRes struct {
DictCode int64 `json:"dictCode" description:"字典编码"`
DictSort int `json:"dictSort" description:"字典排序"`
DictLabel string `json:"dictLabel" description:"字典标签"`
DictValue string `json:"dictValue" description:"字典键值"`
DictType string `json:"dictType" description:"字典类型"`
CssClass string `json:"cssClass" description:"样式属性(其他样式扩展)"`
ListClass string `json:"listClass" description:"表格回显样式"`
IsDefault int `json:"isDefault" description:"是否默认(1是 0否)"`
Status int `json:"status" description:"状态(0正常 1停用)"`
CreateBy uint64 `json:"createBy" description:"创建者"`
UpdateBy uint64 `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
}
type SysDictSearchInput ¶
type SysDictSearchInput struct {
DictType string `p:"dictType"` //字典类型
DictLabel string `p:"dictLabel"` //字典标签
Status string `p:"status"` //状态
PaginationInput
}
type SysDictTypeInfoOut ¶
type SysDictTypeInfoOut struct {
DictId uint64 `orm:"dict_id,primary" json:"dictId"` // 字典主键
DictName string `orm:"dict_name" json:"dictName"` // 字典名称
DictType string `orm:"dict_type,unique" json:"dictType"` // 字典类型
Status uint `orm:"status" json:"status"` // 状态(0正常 1停用)
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建日期
}
type SysDictTypeInfoRes ¶
type SysDictTypeInfoRes struct {
DictId uint64 `orm:"dict_id,primary" json:"dictId"` // 字典主键
DictName string `orm:"dict_name" json:"dictName"` // 字典名称
DictType string `orm:"dict_type,unique" json:"dictType"` // 字典类型
Status uint `orm:"status" json:"status"` // 状态(0正常 1停用)
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建日期
}
type SysDictTypeOut ¶
type SysDictTypeOut struct {
DictId uint64 `json:"dictId" description:"字典主键"`
DictName string `json:"dictName" description:"字典名称"`
DictType string `json:"dictType" description:"字典类型"`
Status uint `json:"status" description:"状态(0正常 1停用)"`
CreateBy uint `json:"createBy" description:"创建者"`
UpdateBy uint `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
}
type SysDictTypeRes ¶
type SysDictTypeRes struct {
DictId uint64 `json:"dictId" description:"字典主键"`
DictName string `json:"dictName" description:"字典名称"`
DictType string `json:"dictType" description:"字典类型"`
Status uint `json:"status" description:"状态(0正常 1停用)"`
CreateBy uint `json:"createBy" description:"创建者"`
UpdateBy uint `json:"updateBy" description:"更新者"`
Remark string `json:"remark" description:"备注"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
}
type SysJobAddInput ¶
type SysJobAddInput struct {
JobName string `json:"jobName" description:"任务名称"`
JobParams string `json:"jobParams" description:"任务参数"`
JobGroup string `json:"jobGroup" description:"分组"`
InvokeTarget string `json:"invokeTarget" description:"执行方法"`
CronExpression string `json:"cronExpression" description:"任务执行表达式" `
MisfirePolicy int `json:"misfirePolicy"`
Concurrent int `json:"concurrent" `
Status int `json:"status" description:"状态" `
Remark string `json:"remark" `
CreateBy uint64
}
SysJobAddInput 添加JOB
type SysJobEditInput ¶
type SysJobEditInput struct {
JobId int64 `json:"job_id" v:"min:1#任务id不能为空"`
JobName string `json:"jobName" description:"任务名称" `
JobParams string `json:"jobParams" description:"任务参数"`
JobGroup string `json:"jobGroup" description:"分组"`
InvokeTarget string `json:"invokeTarget" description:"执行方法" `
CronExpression string `json:"cronExpression" description:"任务执行表达式" `
MisfirePolicy int `json:"misfirePolicy"`
Concurrent int `json:"concurrent" `
Status int `json:"status" description:"状态"`
Remark string `json:"remark" `
CreateBy uint64
UpdateBy uint64
}
SysJobEditInput 修改JOB
type SysJobOut ¶
type SysJobOut struct {
JobId int64 `orm:"job_id,primary" json:"jobId"` // 任务ID
JobName string `orm:"job_name,primary" json:"jobName"` // 任务名称
JobParams string `orm:"job_params" json:"jobParams"` // 参数
JobGroup string `orm:"job_group,primary" json:"jobGroup"` // 任务组名
InvokeTarget string `orm:"invoke_target" json:"invokeTarget"` // 调用目标字符串
CronExpression string `orm:"cron_expression" json:"cronExpression"` // cron执行表达式
MisfirePolicy int `orm:"misfire_policy" json:"misfirePolicy"` // 计划执行策略(1多次执行 2执行一次)
Concurrent int `orm:"concurrent" json:"concurrent"` // 是否并发执行(0允许 1禁止)
Status int `orm:"status" json:"status"` // 状态(0正常 1暂停)
CreateBy uint64 `orm:"create_by" json:"createBy"` // 创建者
UpdateBy uint64 `orm:"update_by" json:"updateBy"` // 更新者
Remark string `orm:"remark" json:"remark"` // 备注信息
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type SysJobRes ¶
type SysJobRes struct {
JobId int64 `orm:"job_id,primary" json:"jobId"` // 任务ID
JobName string `orm:"job_name,primary" json:"jobName"` // 任务名称
JobParams string `orm:"job_params" json:"jobParams"` // 参数
JobGroup string `orm:"job_group,primary" json:"jobGroup"` // 任务组名
InvokeTarget string `orm:"invoke_target" json:"invokeTarget"` // 调用目标字符串
CronExpression string `orm:"cron_expression" json:"cronExpression"` // cron执行表达式
MisfirePolicy int `orm:"misfire_policy" json:"misfirePolicy"` // 计划执行策略(1多次执行 2执行一次)
Concurrent int `orm:"concurrent" json:"concurrent"` // 是否并发执行(0允许 1禁止)
Status int `orm:"status" json:"status"` // 状态(0正常 1暂停)
CreateBy uint64 `orm:"create_by" json:"createBy"` // 创建者
UpdateBy uint64 `orm:"update_by" json:"updateBy"` // 更新者
Remark string `orm:"remark" json:"remark"` // 备注信息
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type SysLoginLogInput ¶
type SysLoginLogInput struct {
LoginName string `json:"loginName" description:"登录账号"`
Ipaddr string `json:"ipaddr" description:"登录IP地址"`
LoginLocation string `json:"loginLocation" description:"登录地点"`
Browser string `json:"browser" description:"浏览器类型"`
Os string `json:"os" description:"操作系统"`
Status int `json:"status" description:"登录状态(0成功 1失败)"`
Msg string `json:"msg" description:"提示消息"`
LoginTime *gtime.Time `json:"loginTime" description:"登录时间"`
Module string `json:"module" description:"登录模块"`
PaginationInput
}
type SysLoginLogListOut ¶
type SysLoginLogListOut struct {
Data []*SysLoginLogOut
PaginationOutput
}
type SysLoginLogOut ¶
type SysLoginLogOut struct {
InfoId int64 `json:"infoId" description:"访问ID"`
LoginName string `json:"loginName" description:"登录账号"`
Ipaddr string `json:"ipaddr" description:"登录IP地址"`
LoginLocation string `json:"loginLocation" description:"登录地点"`
Browser string `json:"browser" description:"浏览器类型"`
Os string `json:"os" description:"操作系统"`
Status int `json:"status" description:"登录状态(0成功 1失败)"`
Msg string `json:"msg" description:"提示消息"`
LoginTime *gtime.Time `json:"loginTime" description:"登录时间"`
Module string `json:"module" description:"登录模块"`
}
type SysMenuApiRes ¶
type SysMenuOut ¶
type SysMenuOut struct {
Id int64 `json:"id" description:""`
ParentId int64 `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType int64 `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide int64 `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink int64 `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId int64 `json:"modelId" description:"模型ID"`
IsIframe int64 `json:"isIframe" description:"是否内嵌iframe"`
IsCached int64 `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix int64 `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []*SysMenuOut `json:"children" description:"子集"`
}
type SysMenuRes ¶
type SysMenuRes struct {
Id int64 `json:"id" description:""`
ParentId int64 `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType int64 `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide int64 `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink int64 `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId int64 `json:"modelId" description:"模型ID"`
IsIframe int64 `json:"isIframe" description:"是否内嵌iframe"`
IsCached int64 `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix int64 `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []*SysMenuRes `json:"children" description:"子集"`
}
SysMenuRes 菜单列表返回字段
type SysMenuTreeRes ¶
type SysMenuTreeRes struct {
*SysMenuRes
Children []*SysMenuTreeRes `json:"children"`
}
SysMenuTreeRes 菜单树形结构
type SysOperLogDoInput ¶
type SysOperLogDoInput struct {
Title string `p:"title" description:"模块标题"`
BusinessType string `p:"business_type" description:"业务类型(0其它 1新增 2修改 3删除)"`
Method string `p:"method" description:"方法名称"`
RequestMethod string `p:"request_method" description:"请求方式"`
OperatorType string `p:"operator_type" description:"操作类别(0其它 1后台用户 2手机端用户)"`
OperName string `p:"oper_name" description:"操作人员"`
DeptName string `p:"dept_name" description:"部门名称"`
OperUrl string `p:"oper_url" description:"请求URL"`
OperIp string `p:"oper_ip" description:"主机地址"`
OperLocation string `p:"oper_location" description:"操作地点"`
Status int `p:"status" description:"状态:-1为全部,0为正常,1为停用"`
*PaginationInput
}
type SysOperLogOut ¶
type SysOperLogOut struct {
OperId uint64 `json:"operId" description:"日志主键"`
Title string `json:"title" description:"模块标题"`
BusinessType int `json:"businessType" description:"业务类型(0其它 1新增 2修改 3删除)"`
Method string `json:"method" description:"方法名称"`
RequestMethod string `json:"requestMethod" description:"请求方式"`
OperatorType int `json:"operatorType" description:"操作类别(0其它 1后台用户 2手机端用户)"`
OperName string `json:"operName" description:"操作人员"`
DeptName string `json:"deptName" description:"部门名称"`
OperUrl string `json:"operUrl" description:"请求URL"`
OperIp string `json:"operIp" description:"主机地址"`
OperLocation string `json:"operLocation" description:"操作地点"`
OperParam string `json:"operParam" description:"请求参数"`
JsonResult string `json:"jsonResult" description:"返回参数"`
Status int `json:"status" description:"操作状态(0正常 1异常)"`
ErrorMsg string `json:"errorMsg" description:"错误消息"`
OperTime *gtime.Time `json:"operTime" description:"操作时间"`
}
type SysOperLogRes ¶
type SysOperLogRes struct {
OperId uint64 `json:"operId" description:"日志主键"`
Title string `json:"title" description:"模块标题"`
BusinessType int `json:"businessType" description:"业务类型(0其它 1新增 2修改 3删除)"`
Method string `json:"method" description:"方法名称"`
RequestMethod string `json:"requestMethod" description:"请求方式"`
OperatorType int `json:"operatorType" description:"操作类别(0其它 1后台用户 2手机端用户)"`
OperName string `json:"operName" description:"操作人员"`
DeptName string `json:"deptName" description:"部门名称"`
OperUrl string `json:"operUrl" description:"请求URL"`
OperIp string `json:"operIp" description:"主机地址"`
OperLocation string `json:"operLocation" description:"操作地点"`
OperParam string `json:"operParam" description:"请求参数"`
JsonResult string `json:"jsonResult" description:"返回参数"`
Status int `json:"status" description:"操作状态(0正常 1异常)"`
ErrorMsg string `json:"errorMsg" description:"错误消息"`
OperTime *gtime.Time `json:"operTime" description:"操作时间"`
}
type SysPluginsAddInput ¶
type SysPluginsAddInput struct {
Version string `json:"version" description:"版本"`
Author string `json:"author" description:""`
Status int `json:"status" description:"状态"`
Types string `json:"types" description:"插件类型"`
StartTime string `json:"startTime" description:""`
Name string `json:"name" description:"名称"`
Title string `json:"title" description:"标题"`
Intro string `json:"intro" description:"介绍"`
}
type SysPluginsEditInput ¶
type SysPluginsEditInput struct {
Id int `json:"id" description:"ID"`
SysPluginsAddInput
}
type SysPluginsOutput ¶
type SysPluginsOutput struct {
Intro string `json:"intro" description:"介绍"`
Status int `json:"status" description:"状态"`
Types string `json:"types" description:"插件类型"`
StartTime string `json:"startTime" description:""`
Id int `json:"id" description:"ID"`
Name string `json:"name" description:"名称"`
Title string `json:"title" description:"标题"`
Version string `json:"version" description:"版本"`
Author string `json:"author" description:""`
}
type TDEngineTableInfo ¶
type TDEngineTablesList ¶
type TSL ¶
type TSL struct {
Key string `json:"key" dc:"产品标识" v:"regex:^[A-Za-z_]+[\\w]*$#标识由字母、数字和下划线组成,且不能以数字开头"`
Name string `json:"name" dc:"产品名称"` // 产品名称
Properties []TSLProperty `json:"properties" dc:"属性"` // 属性
Functions []TSLFunction `json:"functions" dc:"功能"` // 功能
Events []TSLEvent `json:"events" dc:"事件"` // 事件
Tags []TSLTag `json:"tags" dc:"标签"` // 标签
}
物模型
type TSLEnumType ¶
type TSLEnumType struct {
Value string `json:"value" dc:"枚举值"` // 枚举值
Text string `json:"text" dc:"枚举文本"` // 枚举文本
}
扩展类型参数:枚举型
type TSLEvent ¶
type TSLEvent struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"事件名称" v:"required#请输入事件名称"` // 事件名称
Level int `json:"level" dc:"事件级别:0=普通,1=警告,2=紧急" v:"required#请选择事件级别"` // 事件级别
ValueType TSLValueType `json:"valueType" dc:"事件值"` // 事件值
Desc string `json:"desc" dc:"描述"` // 描述
}
事件
type TSLEventInput ¶
type TSLEventInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
TSLEvent
}
事件:添加、编辑
type TSLFunction ¶
type TSLFunction struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"功能名称" v:"required#请输入功能名称"` // 功能名称
Inputs []TSLFunctionInput `json:"inputs" dc:"输入参数"` // 输入参数
Output TSLValueType `json:"output" dc:"输出参数"` // 输出参数
Desc string `json:"desc" dc:"描述"` // 描述
}
功能
type TSLFunctionAddInput ¶
type TSLFunctionAddInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
TSLFunction
}
功能:添加、编辑
type TSLFunctionInput ¶
type TSLFunctionInput struct {
Key string `json:"key" dc:"参数标识" v:"regex:^[A-Za-z_]+[\\w]*$#标识由字母、数字和下划线组成,且不能以数字开头"`
Name string `json:"name" dc:"参数名称"` // 输入参数名称
ValueType TSLValueType `json:"valueType" dc:"参数值"` // 参数值
Desc string `json:"desc" dc:"描述"` // 描述
}
功能:输入参数
type TSLObjectType ¶
type TSLObjectType struct {
Key string `json:"key" dc:"参数标识" v:"regex:^[A-Za-z_]+[\\w]*$#标识由字母、数字和下划线组成,且不能以数字开头"`
Name string `json:"name" dc:"参数名称"` // 参数名称
ValueType TSLValueType `json:"valueType" dc:"参数值"` // 参数值
Desc string `json:"desc" dc:"描述"` // 描述
}
扩展类型参数:对象型
type TSLParamBase ¶
type TSLParamBase struct {
Max *int `json:"max,omitempty" dc:"最大,数字类型:int、long、float、double"` // 最大,数字类型:int、long、float、double
Min *int `json:"min,omitempty" dc:"最小,数字类型:int、long、float、double"` // 最小,数字类型:int、long、float、double
Decimals *int `json:"decimals,omitempty" dc:"小数位数,数字类型:float、double"` // 小数位数,数字类型:float、double
Unit *string `json:"unit,omitempty" dc:"单位,数字类型:int、long、float、double"` // 单位,数字类型:int、long、float、double
TrueText *string `json:"trueText,omitempty" dc:"为true时的文本,默认为'是',布尔类型:bool"` // 为true时的文本,默认为`是`,布尔类型:bool
FalseText *string `json:"falseText,omitempty" dc:"为false时的文本,默认为'否',布尔类型:bool"` // 为false时的文本,默认为`否`,布尔类型:bool
TrueValue *bool `json:"trueValue,omitempty" dc:"为true时的值,默认为'true',布尔类型:bool"` // 为true时的值,默认为`true`,布尔类型:bool
FalseValue *bool `json:"falseValue,omitempty" dc:"为false时的值,默认为'false',布尔类型:bool"` // 为false时的值,默认为`false`,布尔类型:bool
MaxLength *int `json:"maxLength,omitempty" dc:"最大长度,字符类型:string"` // 最大长度,字符类型:string
}
基础类型参数
type TSLParamExtension ¶
type TSLParamExtension struct {
// Format *string `json:"format,omitempty" dc:"时间类型:date,如:yyyy-MM-dd"` // 时间类型:date,如:yyyy-MM-dd
Elements []TSLEnumType `json:"elements,omitempty" dc:"枚举类型:enum"` // 枚举类型:enum
ElementType *TSLArrayType `json:"elementType,omitempty" dc:"数组类型:array"` // 数组类型:array
Properties []TSLObjectType `json:"properties,omitempty" dc:"对象类型:object"` // 对象类型:object
}
扩展类型参数
type TSLProperty ¶
type TSLProperty struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"属性名称" v:"required#请输入属性名称"` // 属性名称
AccessMode int `json:"accessMode" dc:"属性访问类型:0=读写,1=只读" v:"required#请选择是否只读"` // 属性访问类型
ValueType TSLValueType `json:"valueType" dc:"属性值"` // 属性值
Desc string `json:"desc" dc:"描述"` // 描述
}
属性
type TSLPropertyInput ¶
type TSLPropertyInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
TSLProperty
}
添加、编辑属性
type TSLTag ¶
type TSLTag struct {
Key string `` /* 156-byte string literal not displayed */
Name string `json:"name" dc:"标签名称" v:"required#请输入标签名称"` // 标签名称
AccessMode int `json:"accessMode" dc:"标签访问类型:0=读写,1=只读" v:"required#请选择是否只读"` // 标签访问类型
ValueType TSLValueType `json:"valueType" dc:"标签值"` // 标签值
Desc string `json:"desc" dc:"描述"` // 描述
}
标签
type TSLTagInput ¶
type TSLTagInput struct {
ProductId uint `json:"productId" dc:"产品ID" v:"required#产品ID不能为空"`
TSLTag
}
添加、编辑标签
type TSLValueType ¶
type TSLValueType struct {
Type string `json:"type" dc:"数据类型" v:"required#请选择数据类型"` // 类型
TSLParam // 参数
}
参数值(类型、类型参数)
func (TSLValueType) ConvertValue ¶
func (t TSLValueType) ConvertValue(v interface{}) interface{}
type TableDataInfo ¶
type TdLog ¶
type TdLog struct {
Ts *gtime.Time `json:"ts" dc:"时间"`
Device string `json:"device" dc:"设备标识"`
Type string `json:"type" dc:"日志类型"`
Content string `json:"content" dc:"日志内容"`
}
设备日志 TDengine
type TdLogAddInput ¶
type TdLogAddInput struct {
Ts *gtime.Time `json:"ts" dc:"时间"`
Device string `json:"device" dc:"设备标识"`
Type string `json:"type" dc:"日志类型"`
Content string `json:"content" dc:"日志内容"`
}
日志写入
type TemperingRatioRes ¶
type TemplateDataAllInput ¶
type TemplateDataAllOutput ¶
type TemplateDataLastInput ¶
type TemplateDataLastOutput ¶
type TemplateDataRelationInput ¶
type TemplateDataRelationInput struct {
Id uint64 `json:"id" dc:"数据模型ID" v:"required#数据模型ID不能为空"`
MainSourceId uint64 `json:"mainSourceId" dc:"主数据源" v:"required#主数据源ID不能为空"`
SourceNodeKey string `json:"sourceNodeKey" dc:"关联节点" v:"required#关联节点标识不能为空"`
}
数据模型设置主源、关联字段
type ThingDevice ¶
type ThingOverviewOutput ¶
type ThingOverviewOutput struct {
Overview DeviceTotalOutput `json:"overview" dc:"物联概览统计数据"`
Device ThingDevice `json:"device" dc:"设备月度统计"`
AlarmLevel []AlarmLogLevelTotal `json:"alarmLevel" dc:"告警日志级别统计"`
}
物联概览统计数据
type TokenOptions ¶
type TokenOptions struct {
// server name
ServerName string `json:"serverName"`
// 缓存key (每创建一个实例CacheKey必须不相同)
Prefix string `json:"prefix"`
// 超时时间 默认10天(秒)
Timeout int64 `json:"timeout"`
// 缓存刷新时间 默认5天(秒)
// 处理携带token的请求时当前时间大于超时时间并小于缓存刷新时间时token将自动刷新即重置token存活时间
// MaxRefresh值为0时,token将不会自动刷新
MaxRefresh int64 `json:"maxRefresh"`
// 是否允许多点登录
MultiLogin bool `json:"multiLogin"`
// Token加密key 32位
EncryptKey []byte `json:"encryptKey"`
// 拦截排除地址
ExcludePaths g.SliceStr `json:"excludePaths"`
CacheModel string `json:"cacheModel"`
}
type TriggerParamOutput ¶
type TriggerTypeOutput ¶
type TrunsportProtocolRes ¶
type TrunsportProtocolRes struct {
Key string `json:"key" dc:"协议标识"`
Name string `json:"name" dc:"协议名称"`
}
传输协议
type UserApiOut ¶
type UserApiOut struct {
Id int `json:"id" description:""`
MenuApiId int `json:"menuApiId" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
}
type UserApiRes ¶
type UserApiRes struct {
Id int `json:"id" description:""`
MenuApiId int `json:"menuApiId" description:""`
ParentId int `json:"parentId" description:""`
Name string `json:"name" description:"名称"`
Types int `json:"types" description:"1 分类 2接口"`
Method string `json:"method" description:"请求方式(数据字典维护)"`
Address string `json:"address" description:"接口地址"`
Remark string `json:"remark" description:"备注"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Sort int `json:"sort" description:"排序"`
}
type UserInfoOut ¶
type UserInfoOut struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
UserNickname string `json:"userNickname" description:"用户昵称"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId uint64 `json:"deptId" description:"部门id"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
RoleIds []int `json:"roleIds" description:"角色ID数组" v:"required#角色不能为空"`
PostIds []int `json:"postIds" description:"岗位ID数组" v:"required#岗位不能为空"`
}
type UserInfoRes ¶
type UserInfoRes struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
UserNickname string `json:"userNickname" description:"用户昵称"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId uint64 `json:"deptId" description:"部门id"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
RoleIds []int `json:"roleIds" description:"角色ID数组" v:"required#角色不能为空"`
PostIds []int `json:"postIds" description:"岗位ID数组" v:"required#岗位不能为空"`
}
type UserListDoInput ¶
type UserListDoInput struct {
KeyWords string `json:"keyWords" description:"关键词(可根据账号或者用户昵称查询)"`
DeptId int `json:"deptId" description:"部门ID"`
UserName string `json:"userName" description:"用户名"`
Mobile string `json:"mobile" description:"手机号"`
Status int `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
*PaginationInput
}
type UserListOut ¶
type UserListOut struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
UserNickname string `json:"userNickname" description:"用户昵称"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId int64 `json:"deptId" description:"部门id"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
Dept *DetailDeptRes `json:"dept" description:"部门信息"`
RolesNames string `json:"rolesNames" description:"角色信息"`
}
type UserListRes ¶
type UserListRes struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
UserNickname string `json:"userNickname" description:"用户昵称"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId int64 `json:"deptId" description:"部门id"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
Dept *DetailDeptRes `json:"dept" description:"部门信息"`
RolesNames string `json:"rolesNames" description:"角色信息"`
}
type UserMenuButtonOut ¶
type UserMenuButtonOut struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Title string `json:"title" description:"标题"`
Types string `json:"types" description:"类型 自定义 add添加 edit编辑 del 删除"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []*UserMenuButtonOut `json:"children" description:"子集"`
}
type UserMenuButtonRes ¶
type UserMenuButtonRes struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Types string `json:"types" description:"类型 自定义 add添加 edit编辑 del 删除"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Children []*UserMenuButtonRes `json:"children" description:"子集"`
}
type UserMenuColumnOut ¶
type UserMenuColumnOut struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Title string `json:"title" description:"标题"`
Code string `json:"code" description:"代表列表"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*UserMenuColumnOut `json:"children" description:"子集"`
}
type UserMenuColumnRes ¶
type UserMenuColumnRes struct {
Id int `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
MenuId int `json:"menuId" description:"菜单ID"`
Name string `json:"name" description:"名称"`
Code string `json:"code" description:"代表列表"`
Description string `json:"description" description:"描述"`
Status int `json:"status" description:"状态 0 停用 1启用"`
CreatedBy uint `json:"createdBy" description:"创建人"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
Children []*UserMenuColumnRes `json:"children" description:"子集"`
}
type UserMenuTreeOut ¶
type UserMenuTreeOut struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType uint `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide uint `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink uint `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId uint `json:"modelId" description:"模型ID"`
IsIframe uint `json:"isIframe" description:"是否内嵌iframe"`
IsCached uint `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix uint `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Button []*UserMenuButtonOut `json:"button" description:"按钮集合"`
Column []*UserMenuColumnOut `json:"column" description:"列表集合"`
Api []*UserApiOut `json:"api" description:"接口API集合"`
Children []*UserMenuTreeOut `json:"children" description:"子集"`
}
type UserMenuTreeRes ¶
type UserMenuTreeRes struct {
Id uint `json:"id" description:""`
ParentId int `json:"parentId" description:"父ID"`
Name string `json:"name" description:"规则名称"`
Title string `json:"title" description:"规则名称"`
Icon string `json:"icon" description:"图标"`
Condition string `json:"condition" description:"条件"`
Remark string `json:"remark" description:"备注"`
MenuType uint `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
Weigh int `json:"weigh" description:"权重"`
IsHide uint `json:"isHide" description:"显示状态"`
Path string `json:"path" description:"路由地址"`
Component string `json:"component" description:"组件路径"`
IsLink uint `json:"isLink" description:"是否外链 1是 0否"`
ModuleType string `json:"moduleType" description:"所属模块 system 运维 company企业"`
ModelId uint `json:"modelId" description:"模型ID"`
IsIframe uint `json:"isIframe" description:"是否内嵌iframe"`
IsCached uint `json:"isCached" description:"是否缓存"`
Redirect string `json:"redirect" description:"路由重定向地址"`
IsAffix uint `json:"isAffix" description:"是否固定"`
LinkUrl string `json:"linkUrl" description:"链接地址"`
Status int `json:"status" description:"状态 0 停用 1启用"`
Button []*UserMenuButtonRes `json:"button" description:"按钮集合"`
Column []*UserMenuColumnRes `json:"column" description:"列表集合"`
Api []*UserApiRes `json:"api" description:"接口API集合"`
Children []*UserMenuTreeRes `json:"children" description:"子集"`
}
type UserOnlineDoListInput ¶
type UserOnlineDoListInput struct {
*PaginationInput
}
type UserOnlineListOut ¶
type UserOnlineListOut struct {
Id uint `json:"id" description:""`
Uuid string `json:"uuid" description:"用户标识"`
Key string `json:"key" description:""`
Token string `json:"token" description:"用户token"`
CreatedAt *gtime.Time `json:"createdAt" description:"登录时间"`
UserName string `json:"userName" description:"用户名"`
Ip string `json:"ip" description:"登录ip"`
Explorer string `json:"explorer" description:"浏览器"`
Os string `json:"os" description:"操作系统"`
}
type UserOnlineListRes ¶
type UserOnlineListRes struct {
Id uint `json:"id" description:""`
Uuid string `json:"uuid" description:"用户标识"`
Key string `json:"key" description:""`
Token string `json:"token" description:"用户token"`
CreatedAt *gtime.Time `json:"createdAt" description:"登录时间"`
UserName string `json:"userName" description:"用户名"`
Ip string `json:"ip" description:"登录ip"`
Explorer string `json:"explorer" description:"浏览器"`
Os string `json:"os" description:"操作系统"`
}
type UserRes ¶
type UserRes struct {
Id uint64 `json:"id" description:""`
UserName string `json:"userName" description:"用户名"`
UserTypes string `json:"userTypes" description:"系统 system 企业 company"`
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
UserNickname string `json:"userNickname" description:"用户昵称"`
Birthday int `json:"birthday" description:"生日"`
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
Avatar string `json:"avatar" description:"用户头像"`
DeptId int64 `json:"deptId" description:"部门id"`
Remark string `json:"remark" description:"备注"`
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
Address string `json:"address" description:"联系地址"`
Describe string `json:"describe" description:"描述信息"`
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
Status uint `json:"status" description:"用户状态;0:禁用,1:正常,2:未验证"`
CreateBy uint `json:"createBy" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
UpdateBy uint `json:"updateBy" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
Dept *DetailDeptRes `json:"dept" description:"部门信息"`
RolesNames string `json:"rolesNames" description:"角色信息"`
}
Source Files
¶
- alarm_level.go
- alarm_log.go
- alarm_rule.go
- base_db_link.go
- base_model.go
- city_data.go
- config_data.go
- context.go
- data_node.go
- data_source.go
- data_template.go
- data_template_busi.go
- data_template_node.go
- dev_device.go
- dev_device_log.go
- dev_device_tag.go
- dev_product.go
- dev_product_category.go
- dev_protocol.go
- dev_tsl.go
- dev_tsl_data_type.go
- dev_tsl_event.go
- dev_tsl_function.go
- dev_tsl_property.go
- dev_tsl_tag.go
- env_weather.go
- network_server.go
- network_tunnel.go
- notice_config.go
- notice_info.go
- notice_log.go
- notice_template.go
- session.go
- statistics_data_overview.go
- sys_api.go
- sys_dept.go
- sys_dict_data.go
- sys_dict_type.go
- sys_job.go
- sys_login_log.go
- sys_menu.go
- sys_menu_api.go
- sys_menu_button.go
- sys_menu_column.go
- sys_notifications.go
- sys_oper_log.go
- sys_orgainzation.go
- sys_plugins.go
- sys_post.go
- sys_role.go
- sys_token.go
- sys_user.go
- sys_user_online.go
- system_plugins_config.go
- td_engine.go
- td_log_table.go
Click to show internal directories.
Click to hide internal directories.