model

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlarmLogStatusUnhandle int = iota // 告警日志状态:未处理
	AlarmLogStatusHandle              // 告警日志状态:已处理
	AlarmLogStatusIgnore              // 告警日志状态:忽略
)
View Source
const (
	DeviceStatusNoEnable int = iota // 设备未启用
	DeviceStatusOff                 // 设备离线
	DeviceStatusOn                  // 设备在线
)
View Source
const (
	ProductStatusOff int = iota // 产品未发布
	ProductStatusOn             // 产品已发布
)
View Source
const (
	DeviceTypeDefault string = "设备"
	DeviceTypeGateway string = "网关"
	DeviceTypeSub     string = "子设备"
)
View Source
const (
	TSLAccessModeDefault  int = iota // 访问类型:读写
	TSLAccessModeReadOnly            // 访问类型:只读
)
View Source
const (
	TSLEventLevelDefault int = iota // 事件级别:普通
	TSLEventLevelWarn               // 事件级别:警告
	TSLEventLevelUrgen              // 事件级别:紧急
)

Variables

View Source
var AlarmTriggerType = map[int]string{
	consts.AlarmTriggerTypeOnline:   "设备上线",
	consts.AlarmTriggerTypeOffline:  "设备离线",
	consts.AlarmTriggerTypeProperty: "属性上报",
	consts.AlarmTriggerTypeEvent:    "事件上报",
}

Functions

This section is empty.

Types

type AddApiInput

type AddApiInput struct {
	ParentId int    `json:"parentId"`
	Name     string `json:"name"`
	Types    int    `json:"types"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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 AddConfigInput

type AddConfigInput struct {
	ConfigName     string `p:"configName"`
	ConfigKey      string `p:"configKey"`
	ConfigValue    string `p:"configValue"`
	ConfigType     int    `p:"configType"`
	Remark         string `p:"remark"`
	ModuleClassify string `p:"moduleClassify"`
}

type AddDeptInput

type AddDeptInput struct {
	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 AddDeviceInput

type AddDeviceInput struct {
	Key           string `json:"key" dc:"设备标识" v:"required#请输入设备标识"`
	Name          string `json:"name" dc:"设备名称" v:"required#请输入设备名称"`
	ProductKey    string `json:"productKey" dc:"所属产品" v:"required#请选择所属产品"`
	Desc          string `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
	Version       string `json:"version" dc:"固件版本号"`
	Lng           string `json:"lng" dc:"经度"`
	Lat           string `json:"lat" dc:"纬度"`
	OnlineTimeout int    `json:"online_timeout" dc:"设备超时时间,单位秒"`

	Tags []AddTagInput `json:"tags" dc:"设备标签"`

	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`

	ExtensionInfo string `json:"extensionInfo" dc:"设备扩展信息"`

	Address string `json:"address" dc:"详细地址"`
}

type AddDeviceTreeInfoInput

type AddDeviceTreeInfoInput struct {
	Name      string      `json:"name" dc:"名称" v:"required#请输入名称"`
	Address   string      `json:"address" dc:"地址" v:"required#请输入地址"`
	Lng       string      `json:"lng" dc:"经度"`
	Lat       string      `json:"lat" dc:"纬度"`
	Contact   string      `json:"contact" dc:"联系人"`
	Phone     string      `json:"phone" dc:"联系电话"`
	StartDate *gtime.Time `json:"startDate" dc:"服务周期:开始日期"`
	EndDate   *gtime.Time `json:"endDate" dc:"服务周期:截止日期"`
	Image     string      `json:"image" dc:"图片"`
	DeviceKey string      `json:"deviceKey" dc:"设备标识"`
	Area      string      `json:"area" dc:"区域"`
	Company   string      `json:"company" dc:"所属公司"`
	ParentId  int         `json:"parentId" dc:"父ID"`
	Duration  int         `json:"duration" dc:"时间窗口值"`
	TimeUnit  int         `json:"timeUnit" dc:"时间单位:1=秒,2=分钟,3=小时,4=天"`
	Template  string      `json:"template" dc:"页面模板,默认:default" d:"default"`
	Category  string      `json:"category" dc:"分类"`
	Types     string      `json:"types" 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 AddDictTypeInput struct {
	DictName       string `p:"dictName"`
	DictType       string `p:"dictType"`
	Status         uint   `p:"status"`
	Remark         string `p:"remark"`
	ModuleClassify string `p:"moduleClassify"` //模块分类

}

type AddMenuApiReq

type AddMenuApiReq struct {
	MenuId    int         `json:"menuId"    description:"菜单ID"`
	ApiId     int         `json:"apiId"     description:"apiId"`
	IsDeleted int         `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
	CreatedBy uint        `json:"createdBy" description:"创建人"`
	CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
}

type AddMenuButtonInput

type AddMenuButtonInput struct {
	ParentId    int    `json:"parentId"`
	MenuId      int    `json:"menuId"`
	Name        string `json:"name"`
	Types       string `json:"types"`
	Description string `json:"description"`
	Status      int    `json:"status"`
}

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 AddMessageInput

type AddMessageInput struct {
	Title    string `json:"title"     description:"标题"`
	Types    int    `json:"types"     description:"消息类型 字典表中查询具体消息类型"`
	Scope    int    `json:"scope"     description:"消息范围 字典表中查看具体消息范围"`
	Content  string `json:"content"   description:"内容"`
	ObjectId int    `json:"objectId"   description:"推送对象ID"`
}

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 AddProductCategoryInput struct {
	ParentId uint   `json:"parentId" description:"父级分类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个字符"`
	Sort     int    `json:"sort" dc:"排序"`
}

type AddProductInput

type AddProductInput struct {
	Key               string `json:"key" dc:"产品标识" v:"required#请输入产品标识"`
	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:"图片地址"`
	ScriptInfo        string `json:"scriptInfo" dc:"脚本信息"`

	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
}

type AddRoleInput

type AddRoleInput struct {
	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 AddSysCertificateListInput

type AddSysCertificateListInput struct {
	Name              string `json:"name"              description:"名称"`
	Standard          string `json:"standard"          description:"证书标准"`
	FileContent       string `json:"fileContent"       description:"证书文件内容"`
	PublicKeyContent  string `json:"publicKeyContent"  description:"证书公钥内容"`
	PrivateKeyContent string `json:"privateKeyContent" description:"证书私钥内容"`
	Description       string `json:"description"       description:"说明"`
}

type AddTagDeviceInput

type AddTagDeviceInput struct {
	DeviceId  uint   `json:"deviceId" dc:"设备ID" v:"required#设备ID不能为空"`
	DeviceKey string `json:"deviceKey" dc:"设备标识" v:"required#设备标识不能为空"`
	Key       string `` /* 156-byte string literal not displayed */
	Name      string `json:"name" dc:"标签名称" v:"required#请输入标签名称"`
	Value     string `json:"value" dc:"标签值" v:"required#请输入标签值"`
}

type AddTagInput

type AddTagInput struct {
	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     string `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 AlarmAction struct {
	SendGateway    string   `json:"sendGateway" dc:"通知发送通道:sms、work_weixin、dingding"`
	NoticeConfig   string   `json:"noticeConfig" dc:"通知配置"`
	NoticeTemplate string   `json:"noticeTemplate" dc:"通知模板"`
	Addressee      []string `json:"addressee" dc:"收信人"`
}

type AlarmCondition

type AlarmCondition struct {
	Filters []AlarmFilters `json:"filters" dc:"条件参数"`
	AndOr   int            `json:"andOr"   dc:"多个条件组的关系:0=无,1=并且,2=或"`
}

设备触发条件

type AlarmCronCondition

type AlarmCronCondition struct {
	CronCondition []string `json:"cronCondition" dc:"定时表达式"`
}

定时触发条件

type AlarmCronRuleAddInput

type AlarmCronRuleAddInput 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:"设备标识"`
	AlarmCronCondition
	AlarmPerformAction
}

type AlarmCronRuleEditInput

type AlarmCronRuleEditInput struct {
	Id uint64 `json:"id" dc:"告警规则ID" v:"required#告警规则ID不能为空"`
	AlarmCronRuleAddInput
}

type AlarmFilters

type AlarmFilters struct {
	Key      string   `json:"key"      dc:"条件key"`
	Operator string   `json:"operator" dc:"操作符:eq,ne,gt,lt,gte,lte,bet,nbet"`
	Value    []string `json:"value"    dc:"条件值"`
	AndOr    int      `json:"andOr"    dc:"多个条件参数的关系:0=无,1=并且,2=或"`
}

设备触发条件

type AlarmInput

type AlarmInput struct {
	Status string `p:"status"` //告警状态
}

type AlarmLevel

type AlarmLevel struct {
	*entity.AlarmLevel
}

type AlarmLevelEditInput

type AlarmLevelEditInput struct {
	Level uint   `json:"level" dc:"告警级别" v:"required|in:1,2,3,4,5#告警级别不能为空|告警级别不正确"`
	Name  string `json:"name" dc:"告警名称" v:"required#请输入告警名称"`
}

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:"触发告警的数据"`
	Expression string `json:"expression" 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 AlarmLogListInput

type AlarmLogListInput struct {
	AlarmInput
	PaginationInput
}

日志列表

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=属性上报,4=事件上报" v:"required#请选择触发类型"`
	EventKey    string `json:"eventKey" dc:"事件标识" v:"required-if:triggerType,4#请选择事件"`
	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:"设备触发条件"`
	CronCondition AlarmCronCondition    `json:"cronCondition" 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-unless:triggerType,1,triggerType,2#请添加触发条件"`
}

设备触发条件

type AuthInfoInput

type AuthInfoInput struct {
	DeviceKey  string `json:"deviceKey" dc:"设备标识"`
	ProductKey string `json:"ProductKey" dc:"产品标识"`
}

type AuthInfoOutput

type AuthInfoOutput struct {
	AuthType      int                    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string                 `json:"authUser" dc:"认证用户"`
	AuthPasswd    string                 `json:"authPasswd" dc:"认证密码"`
	AccessToken   string                 `json:"accessToken" dc:"AccessToken"`
	CertificateId int                    `json:"certificateId" dc:"证书ID"`
	Certificate   *entity.SysCertificate `json:"certificate" 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接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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 BarChartRes

type BarChartRes struct {
	HuanLuNo        string  `json:"huanLuNo"              description:"换热站编号"`
	HuanLuName      string  `json:"huanLuName"            description:"换热站名称"`
	InPressure1     float64 `json:"inPressure1"           description:"一网供水压力"`
	InPressure2     float64 `json:"inPressure2"           description:"二网供水压力"`
	InTemperature1  float64 `json:"inTemperature1"        description:"一网供水温度"`
	InTemperature2  float64 `json:"inTemperature2"        description:"二网供水温度"`
	OutPressure1    float64 `json:"outPressure1"          description:"一网回水压力"`
	OutPressure2    float64 `json:"outPressure2"          description:"二网回水压力"`
	OutTemperature1 float64 `json:"outTemperature1"       description:"一网回水温度"`
	OutTemperature2 float64 `json:"outTemperature2"       description:"二网回水温度"`
}

type BindMenusInput

type BindMenusInput struct {
	Id      int   `json:"id" v:"required#API ID不能为空"`
	MenuIds []int `json:"menuIds" v:"required#菜单ID不能为空"`
}

type BindMenusReq

type BindMenusReq struct {
	Id      int   `json:"id"`
	MenuIds []int `json:"menuIds"`
}

type BrokenLineChildRes

type BrokenLineChildRes struct {
	AccessDay string  `json:"accessDay"           description:"日期"`
	Values    float64 `json:"values"              description:"数值"`
}

type BrokenLineRes

type BrokenLineRes struct {
	Calorie  []*BrokenLineChildRes `json:"calorie"   description:"总热耗"`
	Electric []*BrokenLineChildRes `json:"electric"  description:"总电耗"`
	Water    []*BrokenLineChildRes `json:"water"     description:"总水耗"`
}

type CacheConfig

type CacheConfig struct {
	Adapter string `json:"adapter"`
	FileDir string `json:"fileDir"`
}

CacheConfig 缓存配置

type CheckBindInput

type CheckBindInput struct {
	GatewayKey string `json:"gatewayKey" dc:"网关标识" v:"required#网关标识不能为空"`
	SubKey     string `json:"subKey" dc:"子设备标识" v:"required#子设备标识不能为空"`
}

type ConfigDoInput

type ConfigDoInput struct {
	ConfigName     string `p:"configName"`     //参数名称
	ConfigKey      string `p:"configKey"`      //参数键名
	ConfigType     string `p:"configType"`     //状态
	ModuleClassify string `p:"moduleClassify"` //字典分类编码
	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
	UserName       string // 用户账号
	Nickname       string // 用户名称
	Avatar         string // 用户
	IsAdmin        bool   // 是否是管理员
	DeptId         int    // 部门ID
	RequestWay     string // 请求方式
	ChildrenDeptId []int  //子部门ID
}

ContextUser 请求上下文中的用户信息

type CountData

type CountData struct {
	Title string
	Value int64
}

CountData 统计数据

type DataOverviewRes

type DataOverviewRes struct {
	CityNO         string  `json:"cityNO"           description:"城市编号"`
	Area           float64 `json:"area"             description:"供热面积"`
	AllArea        float64 `json:"allArea"          description:"总面积"`
	Calorie        float64 `json:"calorie"          description:"总耗热"`
	SingleCalorie  float64 `json:"singleCalorie"    description:"热总单耗"`
	Electric       float64 `json:"electric"         description:"总耗电"`
	SingleElectric float64 `json:"singleElectric"   description:"电总单耗"`
	Water          float64 `json:"water"            description:"总耗水"`
	SingleWater    float64 `json:"singleWater"      description:"水总单耗"`
}

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 {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	Key        string `json:"key" dc:"事件标识" v:"required#事件标识不能为空"`
}

DelTSLEventInput 事件:删除

type DelTSLFunctionInput

type DelTSLFunctionInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	Key        string `json:"key" dc:"功能标识" v:"required#功能标识不能为空"`
}

功能:删除

type DelTSLPropertyInput

type DelTSLPropertyInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	Key        string `json:"key" dc:"属性标识" v:"required#属性标识不能为空"`
}

删除属性

type DelTSLTagInput

type DelTSLTagInput struct {
	ProductKey string `json:"productKey" dc:"产品标识key" v:"required#产品KEY不能为空"`
	Key        string `json:"key" dc:"标签标识" v:"required#标签标识不能为空"`
}

DelTSLTagInput 删除标签

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 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 DetailDeviceTreeInfoOutput

type DetailDeviceTreeInfoOutput struct {
	entity.DevDeviceTreeInfo
	ParentId int `json:"parentId" dc:"父信息ID"`
}

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 DetailPostOut

type DetailPostOut 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 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 DevDevice

type DevDevice struct {
	Id   uint   `json:"id" dc:"设备ID"`
	Name string `json:"name" dc:"设备名称"`
	Key  string `json:"key" dc:"设备标识"`
}

type DevDeviceTag

type DevDeviceTag struct {
	Id       uint   `json:"id" dc:"标签ID"`
	DeviceId uint   `json:"deviceId" dc:"设备ID"`
	Key      string `json:"key" dc:"标签标识"`
	Name     string `json:"name" dc:"标签名称"`
	Value    string `json:"value" dc:"标签值"`
}

type DevProduct

type DevProduct struct {
	Id         uint   `json:"id" dc:"产品ID"`
	Name       string `json:"name" dc:"产品名称"`
	Key        string `json:"key" dc:"产品标识"`
	Metadata   string `json:"metadata" dc:"物模型"`
	DeviceType string `json:"deviceType" dc:"设备类型"`
}

type DevProductCategory

type DevProductCategory struct {
	Id   uint   `json:"id" dc:"分类ID"`
	Name string `json:"name" dc:"分类名称"`
}

type DevProductWithName

type DevProductWithName struct {
	gmeta.Meta `orm:"table:dev_product"`
	Id         uint   `json:"id" dc:"产品ID"`
	Name       string `json:"name" dc:"产品名称"`
	Key        string `json:"key" dc:"产品标识"`
}

type DeviceBindInput

type DeviceBindInput struct {
	GatewayKey string   `json:"gatewayKey" dc:"网关标识" v:"required#网关标识不能为空"`
	SubKeys    []string `json:"subKeys" dc:"子设备标识列表"`
}

type DeviceBindListInput

type DeviceBindListInput struct {
	GatewayKey string `json:"gatewayKey" dc:"网关标识" v:"required#网关标识不能为空"`
	PaginationInput
}

type DeviceBindListOutput

type DeviceBindListOutput struct {
	List []*DeviceOutput `json:"list" dc:"网关绑定子设备列表"`
	PaginationOutput
}

type DeviceConnectIntroOutput

type DeviceConnectIntroOutput struct {
	Name        string `json:"name" dc:"接入方式"`
	Protocol    string `json:"protocol" dc:"消息协议"`
	Description string `json:"description" dc:"描述"`
	Link        string `json:"link" dc:"连接信息"`
	// 认证信息
	AuthType        int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser        string `json:"authUser" dc:"认证用户"`
	AuthPasswd      string `json:"authPasswd" dc:"认证密码"`
	AccessToken     string `json:"accessToken" dc:"AccessToken"`
	CertificateId   int    `json:"certificateId" dc:"证书ID"`
	CertificateName string `json:"certificateName" dc:"证书名称"`
}

type DeviceDataListInput

type DeviceDataListInput struct {
	DeviceKey string `json:"deviceKey" dc:"设备标识" v:"required#请输入设备标识"`
	Interval  uint   `json:"interval" dc:"聚合时间间隔" v:"required|min:1#请输入时间间隔"`
	TimeUnit  uint   `json:"timeUnit" dc:"时间单位: 1=秒,2=分,3=小时,4=天" v:"in:1,2,3,4#时间单位不正确"`

	PaginationInput
}

type DeviceDataListOutput

type DeviceDataListOutput struct {
	List gdb.Result `json:"list" dc:"设备数据列表"`

	PaginationOutput
}

type DeviceDataReq

type DeviceDataReq struct {
	DeviceKey string `json:"deviceKey" v:"required#设备key不能为空" dc:"设备key"`
	PaginationInput
}

DeviceDataReq 设备数据请求

type DeviceDataRes

type DeviceDataRes struct {
	DeviceKey  string                      `json:"deviceKey"`
	DeviceData iotModel.ReportPropertyData `json:"deviceData"`
}

DeviceDataRes 设备数据响应

type DeviceExport

type DeviceExport struct {
	ProductName string `json:"productName" dc:"产品名称"`
	DeviceName  string `json:"deviceName" dc:"设备名称"`
	DeviceKey   string `json:"deviceKey" dc:"设备标识"`
	DeviceType  string `json:"deviceType" dc:"设备类型"`
	Status      string `json:"status" dc:"状态"`
	Desc        string `json:"desc" dc:"说明" v:"max-length:200#描述长度不能超过200个字符"`
	Version     string `json:"version" dc:"固件版本号"`
}

type DeviceExtendInput

type DeviceExtendInput struct {
	Key           string `json:"key" dc:"设备标识" v:"required#请输入设备标识"`
	OnlineTimeout int    `json:"onlineTimeout" dc:"设备在线超时设置,单位:秒"`
	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
}

type DeviceExtensionInfoInput

type DeviceExtensionInfoInput struct {
	Id            uint   `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
	ExtensionInfo string `json:"extensionInfo" dc:"设备扩展信息"`
}

type DeviceFunctionInput

type DeviceFunctionInput struct {
	DeviceKey string         `json:"deviceKey" dc:"设备标识" v:"required#设备标识不能为空"`
	FuncKey   string         `json:"funcKey" dc:"功能标识" v:"required#功能标识不能为空"`
	Params    map[string]any `json:"params" dc:"功能输入参数"`
}

type DeviceFunctionOutput

type DeviceFunctionOutput struct {
	Data map[string]any `json:"data" dc:"功能输出"`
}

type DeviceGetDataInput

type DeviceGetDataInput struct {
	DeviceKey   string   `json:"device_key" dc:"设备ID" v:"required#设备key不能为空"`
	PropertyKey string   `json:"propertyKey" dc:"属性标识" v:"required#属性标识不能为空"`
	DateRange   []string `json:"dateRange" dc:"日期范围"`
	IsDesc      int      `json:"isDesc" dc:"排序:0=顺序,1=倒序"`
}

type DeviceGetPropertyInput

type DeviceGetPropertyInput struct {
	DeviceKey   string `json:"device_key" dc:"设备ID" v:"required#设备key不能为空"`
	PropertyKey string `json:"propertyKey" dc:"属性标识" v:"required#属性标识不能为空"`
}

type DeviceGetPropertyListInput

type DeviceGetPropertyListInput struct {
	DeviceKey   string `json:"device_key" dc:"设备ID" v:"required#设备key不能为空"`
	PropertyKey string `json:"propertyKey" dc:"属性标识" v:"required#属性标识不能为空"`
	PaginationInput
}

type DeviceGetPropertyListOutput

type DeviceGetPropertyListOutput struct {
	List []*DevicePropertiyOut
	PaginationOutput
}

type DeviceInput

type DeviceInput struct {
	Key        string `json:"key" dc:"设备标识"`
	Name       string `json:"name" dc:"设备名称"`
	ProductKey string `json:"productKey" dc:"所属产品"`
	TunnelId   int    `json:"tunnelId"       description:"tunnelId"`
	Status     string `p:"status"` //设备状态
}

type DeviceLatestProperty

type DeviceLatestProperty struct {
	Key   string    `json:"key" dc:"属性标识"`
	Name  string    `json:"name" dc:"属性名称"`
	Type  string    `json:"type" dc:"属性值类型"`
	Unit  string    `json:"unit" dc:"属性值单位"`
	Value *gvar.Var `json:"value" dc:"属性值"`
}

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 DeviceOnlineOfflineCount

type DeviceOnlineOfflineCount struct {
	Total   int `json:"total"`   // 设备总数
	Online  int `json:"online"`  // 在线设备数
	Offline int `json:"offline"` // 离线设备数
	Disable int `json:"disable"` // 禁用设备数
}

DeviceOnlineOfflineCount 设备在线离线状态统计

type DeviceOutput

type DeviceOutput struct {
	*entity.DevDevice
	ProductName string `json:"productName" dc:"产品名称"`
	TSL         *TSL   `json:"tsl" dc:"物模型"`

	Product *entity.DevProduct `json:"product" orm:"with:key=product_key" dc:"产品信息"`
	Tags    []*DevDeviceTag    `json:"tags" orm:"with:device_id=id" dc:"设备标签"`
}

type DevicePropertiy

type DevicePropertiy struct {
	Key   string      `json:"key" dc:"属性标识"`
	Name  string      `json:"name" dc:"属性名称"`
	Type  string      `json:"type" dc:"属性值类型"`
	Unit  string      `json:"unit" dc:"属性值单位"`
	Value *gvar.Var   `json:"value" dc:"属性值"`
	List  []*gvar.Var `json:"list" dc:"当天属性值列表"`
}

type DevicePropertiyOut

type DevicePropertiyOut struct {
	Ts    *gtime.Time `json:"ts" dc:"时间"`
	Value *gvar.Var   `json:"value" dc:"属性值"`
}

type DevicePropertiyRes

type DevicePropertiyRes struct {
	Ts    *gtime.Time `json:"ts" dc:"时间"`
	Value *gvar.Var   `json:"value" dc:"属性值"`
}

type DevicePropertyInput

type DevicePropertyInput struct {
	DeviceKey string         `json:"deviceKey" dc:"设备标识" v:"required#设备标识不能为空"`
	Params    map[string]any `json:"params" dc:"设备属性设置"`
}

type DevicePropertyOutput

type DevicePropertyOutput struct {
	Data map[string]any `json:"data" dc:"设备属性设置输出"`
}

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:"今日产品增量"`
	ProductActivation   int `json:"productActivation" dc:"产品启用"`
	ProductDeactivation int `json:"productDeactivation" dc:"产品停用"`

	MsgTotal int64 `json:"msgTotal" dc:"设备消息总量"`
	MsgAdded int64 `json:"msgAdded" dc:"今日设备消息增量"`

	AlarmTotal int `json:"alarmTotal" dc:"设备报警总量"`
	AlarmAdded int `json:"alarmAdded" dc:"今日设备报警增量"`
}

type DeviceTree

type DeviceTree struct {
	Id           int    `json:"id" dc:"设备树ID"`
	InfoId       int    `json:"infoId" dc:"信息ID"`
	ParentInfoId int    `json:"parentInfoId" dc:"父信息ID"`
	Name         string `json:"name" dc:"名称"`
}

type DeviceTreeListOutput

type DeviceTreeListOutput struct {
	*DeviceTree
	Children []*DeviceTreeListOutput `json:"children" dc:"子集"`
}

type DictDataOut

type DictDataOut struct {
	DictValue string `json:"key"`
	DictLabel string `json:"value"`
	IsDefault int    `json:"isDefault"`
	Remark    string `json:"remark"`
}

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"`         //字典状态
	ModuleClassify string `p:"moduleClassify"` //模块分类
	*PaginationInput
}

type DictTypeOut

type DictTypeOut struct {
	DictName string `json:"name"`
	Remark   string `json:"remark"`
}

type DictTypeRes

type DictTypeRes struct {
	DictName string `json:"name"`
	Remark   string `json:"remark"`
}

type EditApiInput

type EditApiInput struct {
	Id       int    `json:"id"`
	ParentId int    `json:"parentId"`
	Name     string `json:"name"`
	Types    int    `json:"types"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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 EditConfigInput

type EditConfigInput struct {
	ConfigId       int    `p:"configId"`
	ConfigName     string `p:"configName"`
	ConfigKey      string `p:"configKey"`
	ConfigValue    string `p:"configValue"`
	ConfigType     int    `p:"configType"`
	Remark         string `p:"remark"`
	ModuleClassify string `p:"moduleClassify"`
}

type EditConfigReq

type EditConfigReq struct {
	ConfigId    int    `p:"configId" v:"required#ID不能为空"`
	ConfigKey   string `p:"configKey" v:"required#KEY不能为空"`
	ConfigValue string `p:"configValue" v:"required#值不能为空"`
}

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 {
	Key     string        `json:"key" dc:"设备标识" v:"required#请输入设备标识"`
	Name    string        `json:"name" dc:"设备名称" v:"required#请输入设备名称"`
	Desc    string        `json:"desc" dc:"描述" v:"max-length:200#描述长度不能超过200个字符"`
	Version string        `json:"version" dc:"固件版本号"`
	Lng     string        `json:"lng" dc:"经度"`
	Lat     string        `json:"lat" dc:"纬度"`
	Tags    []AddTagInput `json:"tags" dc:"设备标签"`

	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`

	ExtensionInfo string `json:"extensionInfo" dc:"设备扩展信息"`

	Address string `json:"address" dc:"详细地址"`
}

type EditDeviceTreeInfoInput

type EditDeviceTreeInfoInput struct {
	Id        int         `json:"id" dc:"信息ID" v:"required#信息ID不能为空"`
	Name      string      `json:"name" dc:"名称" v:"required#请输入名称"`
	Address   string      `json:"address" dc:"地址" v:"required#请输入地址"`
	Lng       string      `json:"lng" dc:"经度"`
	Lat       string      `json:"lat" dc:"纬度"`
	Contact   string      `json:"contact" dc:"联系人"`
	Phone     string      `json:"phone" dc:"联系电话"`
	StartDate *gtime.Time `json:"startDate" dc:"服务周期:开始日期"`
	EndDate   *gtime.Time `json:"endDate" dc:"服务周期:截止日期"`
	Image     string      `json:"image" dc:"图片"`
	DeviceKey string      `json:"deviceKey" dc:"设备标识"`
	Area      string      `json:"area" dc:"区域"`
	Company   string      `json:"company" dc:"所属公司"`
	ParentId  int         `json:"parentId" dc:"父ID"`
	Duration  int         `json:"duration" dc:"时间窗口值"`
	TimeUnit  int         `json:"timeUnit" dc:"时间单位:1=秒,2=分钟,3=小时,4=天"`
	Template  string      `json:"template" dc:"页面模板,默认:default" d:"default"`
	Category  string      `json:"category" dc:"分类"`
	Types     string      `json:"types" 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 EditDictTypeInput struct {
	DictId         int    `p:"dictId"`
	DictName       string `p:"dictName"`
	DictType       string `p:"dictType"`
	Status         uint   `p:"status"`
	Remark         string `p:"remark"`
	ModuleClassify string `p:"moduleClassify"` //模块分类

}

type EditMenuButtonInput

type EditMenuButtonInput struct {
	Id          int    `json:"id"`
	ParentId    int    `json:"parentId"`
	MenuId      int    `json:"menuId"`
	Name        string `json:"name"`
	Types       string `json:"types"`
	Description string `json:"description"`
	Status      int    `json:"status"`
}

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不能为空"`
	ParentId uint   `json:"parentId" description:"父级分类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个字符"`
	Sort     int    `json:"sort" dc:"排序"`
}

type EditProductInput

type EditProductInput struct {
	Key               string  `json:"key" dc:"产品标识" v:"required#请输入产品标识"`
	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:"图片地址"`
	ScriptInfo        string  `json:"scriptInfo" dc:"脚本信息"`

	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
}

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 EditSysCertificateListInput

type EditSysCertificateListInput struct {
	Id                int    `json:"id"                description:""`
	Name              string `json:"name"              description:"名称"`
	Standard          string `json:"standard"          description:"证书标准"`
	FileContent       string `json:"fileContent"       description:"证书文件内容"`
	PublicKeyContent  string `json:"publicKeyContent"  description:"证书公钥内容"`
	PrivateKeyContent string `json:"privateKeyContent" description:"证书私钥内容"`
	Description       string `json:"description"       description:"说明"`
}

type EditTagDeviceInput

type EditTagDeviceInput struct {
	Id    uint   `json:"id" dc:"标签ID" v:"required#标签ID不能为空"`
	Name  string `json:"name" dc:"标签名称" v:"required#请输入标签名称"`
	Value string `json:"value" dc:"标签值" v:"required#请输入标签值"`
}

type EditUserInfoInput

type EditUserInfoInput struct {
	Id           uint64 `json:"id"            description:""`
	Mobile       string `json:"mobile"        description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
	UserNickname string `json:"userNickname"  description:"用户昵称"`
	Birthday     string `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:"用户头像"`
	Address      string `json:"address"       description:"联系地址"`
	Describe     string `json:"describe"      description:"描述信息"`
}

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     string `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 ExtendInput

type ExtendInput struct {
	Key string `json:"key" dc:"产品标识" v:"required#请输入产品标识"`
	// 认证信息
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
}

type GenTableAddInput

type GenTableAddInput struct {
	TableName      string `json:"tableName"      description:"表名称"`
	TableComment   string `json:"tableComment"   description:"表描述"`
	ClassName      string `json:"className"      description:"实体类名称"`
	TplCategory    string `json:"tplCategory"    description:"使用的模板(crud单表操作 tree树表操作)"`
	PackageName    string `json:"packageName"    description:"生成包路径"`
	ModuleName     string `json:"moduleName"     description:"生成模块名"`
	BusinessName   string `json:"businessName"   description:"生成业务名"`
	FunctionName   string `json:"functionName"   description:"生成功能名"`
	FunctionAuthor string `json:"functionAuthor" description:"生成功能作者"`
	Options        string `json:"options"        description:"其它生成选项"`
	Remark         string `json:"remark"         description:"备注"`
	CreatedBy      int    `json:"createdBy"      description:"创建人"`
	UpdatedBy      int    `json:"updatedBy"      description:"修改人"`
}

type GenTableAndColumnsRes

type GenTableAndColumnsRes struct {
	TableInfo *GenTableRes
	Columns   []*GenTableColumnRes `json:"columns"`
}

GenTableAndColumnsRes 表与字段组合数据

type GenTableColumnAddInput

type GenTableColumnAddInput struct {
	TableId          int64       `json:"tableId"          description:"归属表编号"`
	ColumnName       string      `json:"columnName"       description:"列名称"`
	ColumnComment    string      `json:"columnComment"    description:"列描述"`
	ColumnType       string      `json:"columnType"       description:"列类型"`
	GoType           string      `json:"goType"           description:"Go类型"`
	GoField          string      `json:"goField"          description:"Go字段名"`
	HtmlField        string      `json:"htmlField"        description:"html字段名"`
	IsPk             string      `json:"isPk"             description:"是否主键(1是)"`
	IsIncrement      string      `json:"isIncrement"      description:"是否自增(1是)"`
	IsRequired       string      `json:"isRequired"       description:"是否必填(1是)"`
	IsInsert         string      `json:"isInsert"         description:"是否为插入字段(1是)"`
	IsEdit           string      `json:"isEdit"           description:"是否编辑字段(1是)"`
	IsList           string      `json:"isList"           description:"是否列表字段(1是)"`
	IsQuery          string      `json:"isQuery"          description:"是否查询字段(1是)"`
	QueryType        string      `json:"queryType"        description:"查询方式(等于、不等于、大于、小于、范围)"`
	HtmlType         string      `` /* 128-byte string literal not displayed */
	DictType         string      `json:"dictType"         description:"字典类型"`
	Sort             int         `json:"sort"             description:"排序"`
	LinkTableName    string      `json:"linkTableName"    description:"关联表名"`
	LinkTableClass   string      `json:"linkTableClass"   description:"关联表类名"`
	LinkTablePackage string      `json:"linkTablePackage" description:"关联表包名"`
	LinkLabelId      string      `json:"linkLabelId"      description:"关联表键名"`
	LinkLabelName    string      `json:"linkLabelName"    description:"关联表字段值"`
	CreateBy         int         `json:"createBy"         description:"创建者"`
	UpdateBy         int         `json:"updateBy"         description:"更新者"`
	CreatedAt        *gtime.Time `json:"createdAt"        description:"创建时间"`
	UpdatedAt        *gtime.Time `json:"updatedAt"        description:"更新时间"`
}

type GenTableColumnEditInput

type GenTableColumnEditInput struct {
	Id int `json:"id"          description:"ID"`
	GenTableColumnAddInput
}

type GenTableColumnRes

type GenTableColumnRes struct {
	Id               int64       `json:"id"               description:"编号"`
	TableId          int64       `json:"tableId"          description:"归属表编号"`
	ColumnName       string      `json:"columnName"       description:"列名称"`
	ColumnComment    string      `json:"columnComment"    description:"列描述"`
	ColumnType       string      `json:"columnType"       description:"列类型"`
	GoType           string      `json:"goType"           description:"Go类型"`
	GoField          string      `json:"goField"          description:"Go字段名"`
	HtmlField        string      `json:"htmlField"        description:"html字段名"`
	IsPk             string      `json:"isPk"             description:"是否主键(1是)"`
	IsIncrement      string      `json:"isIncrement"      description:"是否自增(1是)"`
	IsRequired       string      `json:"isRequired"       description:"是否必填(1是)"`
	IsInsert         string      `json:"isInsert"         description:"是否为插入字段(1是)"`
	IsEdit           string      `json:"isEdit"           description:"是否编辑字段(1是)"`
	IsList           string      `json:"isList"           description:"是否列表字段(1是)"`
	IsQuery          string      `json:"isQuery"          description:"是否查询字段(1是)"`
	QueryType        string      `json:"queryType"        description:"查询方式(等于、不等于、大于、小于、范围)"`
	HtmlType         string      `` /* 128-byte string literal not displayed */
	DictType         string      `json:"dictType"         description:"字典类型"`
	Sort             int         `json:"sort"             description:"排序"`
	LinkTableName    string      `json:"linkTableName"    description:"关联表名"`
	LinkTableClass   string      `json:"linkTableClass"   description:"关联表类名"`
	LinkTablePackage string      `json:"linkTablePackage" description:"关联表包名"`
	LinkLabelId      string      `json:"linkLabelId"      description:"关联表键名"`
	LinkLabelName    string      `json:"linkLabelName"    description:"关联表字段值"`
	CreateBy         int         `json:"createBy"         description:"创建者"`
	UpdateBy         int         `json:"updateBy"         description:"更新者"`
	CreatedAt        *gtime.Time `json:"createdAt"        description:"创建时间"`
	UpdatedAt        *gtime.Time `json:"updatedAt"        description:"更新时间"`
}

type GenTableEditInput

type GenTableEditInput struct {
	Id int `json:"id"          description:"ID"`
	GenTableAddInput
}

type GenTableExtend

type GenTableExtend struct {
	TableId        int64                `orm:"table_id,primary" json:"table_id"`        // 编号
	TableName      string               `orm:"table_name"       json:"table_name"`      // 表名称
	TableComment   string               `orm:"table_comment"    json:"table_comment"`   // 表描述
	ClassName      string               `orm:"class_name"       json:"class_name"`      // 实体类名称
	TplCategory    string               `orm:"tpl_category"     json:"tpl_category"`    // 使用的模板(crud单表操作 tree树表操作)
	PackageName    string               `orm:"package_name"     json:"package_name"`    // 生成包路径
	ModuleName     string               `orm:"module_name"      json:"module_name"`     // 生成模块名
	BusinessName   string               `orm:"business_name"    json:"business_name"`   // 生成业务名
	FunctionName   string               `orm:"function_name"    json:"function_name"`   // 生成功能名
	FunctionAuthor string               `orm:"function_author"  json:"function_author"` // 生成功能作者
	Options        string               `orm:"options"          json:"options"`         // 其它生成选项
	CreateBy       string               `orm:"create_by"        json:"create_by"`       // 创建者
	CreateTime     *gtime.Time          `orm:"create_time"      json:"create_time"`     // 创建时间
	UpdateBy       string               `orm:"update_by"        json:"update_by"`       // 更新者
	UpdateTime     *gtime.Time          `orm:"update_time"      json:"update_time"`     // 更新时间
	Remark         string               `orm:"remark"           json:"remark"`          // 备注
	TreeCode       string               `json:"tree_code"`                              // 树编码字段
	TreeParentCode string               `json:"tree_parent_code"`                       // 树父编码字段
	TreeName       string               `json:"tree_name"`                              // 树名称字段
	Columns        []*GenTableColumnRes `json:"columns"`                                // 表列信息
	PkColumn       *GenTableColumnRes   `json:"pkColumn"`                               // 主键列信息
}

GenTableExtend 实体扩展

type GenTableRes

type GenTableRes struct {
	Id             int64       `json:"id"             description:"编号"`
	TableName      string      `json:"tableName"      description:"表名称"`
	TableComment   string      `json:"tableComment"   description:"表描述"`
	ClassName      string      `json:"className"      description:"实体类名称"`
	TplCategory    string      `json:"tplCategory"    description:"使用的模板(crud单表操作 tree树表操作)"`
	PackageName    string      `json:"packageName"    description:"生成包路径"`
	ModuleName     string      `json:"moduleName"     description:"生成模块名"`
	BusinessName   string      `json:"businessName"   description:"生成业务名"`
	FunctionName   string      `json:"functionName"   description:"生成功能名"`
	FunctionAuthor string      `json:"functionAuthor" description:"生成功能作者"`
	Options        string      `json:"options"        description:"其它生成选项"`
	CreatedAt      *gtime.Time `json:"createdAt"      description:""`
	UpdatedAt      *gtime.Time `json:"updatedAt"      description:""`
	Remark         string      `json:"remark"         description:"备注"`
	CreatedBy      int         `json:"createdBy"      description:"创建人"`
	UpdatedBy      int         `json:"updatedBy"      description:"修改人"`
}

type GetDictInput

type GetDictInput struct {
	Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
	DictType      string `p:"dictType" v:"required#字典类型不能为空"`
	DefaultValue  string `p:"defaultValue"`
}

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 GetRuleInstanceListInput

type GetRuleInstanceListInput struct {
	Types int `json:"types"        description:"规则实例类型"`
	*PaginationInput
}

type GetSysPluginsListInput

type GetSysPluginsListInput struct {
	Status int `json:"status"                description:"状态"`
	PaginationInput
}

type GetSysPluginsListOut

type GetSysPluginsListOut struct {
	Id                    int         `json:"id"                    description:"ID"`
	Types                 string      `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType            string      `json:"handleType"            description:"功能类型"`
	Name                  string      `json:"name"                  description:"名称"`
	Title                 string      `json:"title"                 description:"标题"`
	Description           string      `json:"description"           description:"介绍"`
	Version               string      `json:"version"               description:"版本"`
	Author                string      `json:"author"                description:"作者"`
	Icon                  string      `json:"icon"                  description:"插件图标"`
	Link                  string      `` /* 126-byte string literal not displayed */
	Command               string      `json:"command"               description:"插件的运行指令"`
	Args                  string      `json:"args"                  description:"插件的指令参数"`
	Status                int         `json:"status"                description:"状态"`
	FrontendUi            int         `json:"frontendUi"            description:"是否有插件页面"`
	FrontendUrl           string      `json:"frontendUrl"           description:"插件页面地址"`
	FrontendConfiguration int         `json:"frontendConfiguration" description:"是否显示配置页面"`
	StartTime             *gtime.Time `json:"startTime"             description:"启动时间"`
	IsDeleted             int         `json:"isDeleted"             description:"是否删除 0未删除 1已删除"`
	CreatedBy             uint        `json:"createdBy"             description:"创建者"`
	CreatedAt             *gtime.Time `json:"createdAt"             description:"创建日期"`
	UpdatedBy             int         `json:"updatedBy"             description:"修改人"`
	UpdatedAt             *gtime.Time `json:"updatedAt"             description:"更新时间"`
	DeletedBy             int         `json:"deletedBy"             description:"删除人"`
	DeletedAt             *gtime.Time `json:"deletedAt"             description:"删除时间"`
}

type GetSysPluginsListRes

type GetSysPluginsListRes struct {
	Id                    int         `json:"id"                    description:"ID"`
	Types                 string      `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType            string      `json:"handleType"            description:"功能类型"`
	Name                  string      `json:"name"                  description:"名称"`
	Title                 string      `json:"title"                 description:"标题"`
	Description           string      `json:"description"           description:"介绍"`
	Version               string      `json:"version"               description:"版本"`
	Author                string      `json:"author"                description:"作者"`
	Icon                  string      `json:"icon"                  description:"插件图标"`
	Link                  string      `` /* 126-byte string literal not displayed */
	Command               string      `json:"command"               description:"插件的运行指令"`
	Args                  string      `json:"args"                  description:"插件的指令参数"`
	Status                int         `json:"status"                description:"状态"`
	FrontendUi            int         `json:"frontendUi"            description:"是否有插件页面"`
	FrontendUrl           string      `json:"frontendUrl"           description:"插件页面地址"`
	FrontendConfiguration int         `json:"frontendConfiguration" description:"是否显示配置页面"`
	StartTime             *gtime.Time `json:"startTime"             description:"启动时间"`
	IsDeleted             int         `json:"isDeleted"             description:"是否删除 0未删除 1已删除"`
	CreatedBy             uint        `json:"createdBy"             description:"创建者"`
	CreatedAt             *gtime.Time `json:"createdAt"             description:"创建日期"`
	UpdatedBy             int         `json:"updatedBy"             description:"修改人"`
	UpdatedAt             *gtime.Time `json:"updatedAt"             description:"更新时间"`
	DeletedBy             int         `json:"deletedBy"             description:"删除人"`
	DeletedAt             *gtime.Time `json:"deletedAt"             description:"删除时间"`
}

type GetTableListInput

type GetTableListInput struct {
	PaginationInput
}

获取列表api

type ListDeviceForPageInput

type ListDeviceForPageInput struct {
	*DeviceInput
	PaginationInput
}

type ListDeviceForPageOutput

type ListDeviceForPageOutput struct {
	Device []*DeviceOutput `json:"device" dc:"设备列表"`
	PaginationOutput
}

type ListDeviceInput

type ListDeviceInput struct {
	ProductKey string `json:"productKey" dc:"产品ID"`
}

type ListForPageInput

type ListForPageInput struct {
	ProductInput
	PaginationInput
}

type ListForPageOutput

type ListForPageOutput struct {
	Product []*ProductOutput `json:"product" dc:"产品列表"`
	PaginationOutput
}

type ListForSubInput

type ListForSubInput struct {
	ProductKey string `json:"productKey" dc:"产品标识" v:"required#产品KEY不能为空"`
	GatewayKey string `json:"gatewayKey" dc:"网关标识"`
	PaginationInput
}

type ListTSLEventInput

type ListTSLEventInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	PaginationInput
}

type ListTSLEventOutput

type ListTSLEventOutput struct {
	Data []TSLEvent
	PaginationOutput
}

type ListTSLFunctionInput

type ListTSLFunctionInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	PaginationInput
}

type ListTSLFunctionOutput

type ListTSLFunctionOutput struct {
	Data []TSLFunction
	PaginationOutput
}

type ListTSLPropertyInput

type ListTSLPropertyInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	Name       string `json:"name" dc:"属性名称"`
	DateType   string `json:"dateType" dc:"数据类型"`
	PaginationInput
}

type ListTSLPropertyOutput

type ListTSLPropertyOutput struct {
	Data []TSLProperty
	PaginationOutput
}

type ListTSLTagInput

type ListTSLTagInput struct {
	ProductKey string `json:"productKey" dc:"产品标识key" v:"required#产品KEY不能为空"`
	PaginationInput
}

type ListTSLTagOutput

type ListTSLTagOutput struct {
	Data []TSLTag
	PaginationOutput
}

type LoginLogParams

type LoginLogParams struct {
	Status    int
	Username  string
	Ip        string
	UserAgent string
	Msg       string
	Module    string
}

type LoginUserOut

type LoginUserOut struct {
	UserNickname string `orm:"user_nickname"    json:"userNickname"` // 用户昵称
	Avatar       string `orm:"avatar" json:"avatar"`                 //头像
}

type LoginUserRes

type LoginUserRes struct {
	UserNickname string `orm:"user_nickname"    json:"userNickname"` // 用户昵称
	Avatar       string `orm:"avatar" json:"avatar"`                 //头像
}

LoginUserRes 登录返回

type MenuColumnDoInput struct {
	MenuId   string `json:"menuId"`
	ParentId string `json:"parentId"`
	Status   int    `json:"status"`
	Name     string `json:"name"`
}
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 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 MessageListDoInput

type MessageListDoInput struct {
	Types int    `json:"types"        description:"消息类型"`
	Title string `json:"title"     description:"标题"`
	*PaginationInput
}

type MessageListOut

type MessageListOut struct {
	Id          int                `json:"id"        description:""`
	UserId      int                `json:"userId"    description:"用户ID"`
	MessageId   int                `json:"messageId" description:"消息ID"`
	IsRead      int                `json:"isRead"    description:"是否已读 0 未读 1已读"`
	IsDeleted   int                `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
	ReadTime    *gtime.Time        `json:"readTime"  description:"阅读时间"`
	DeletedAt   *gtime.Time        `json:"deletedAt" description:"删除时间"`
	MessageInfo *entity.SysMessage `orm:"with:id=message_id" description:"消息"`
}

type MessageListRes

type MessageListRes struct {
	Id          int                `json:"id"        description:""`
	UserId      int                `json:"userId"    description:"用户ID"`
	MessageId   int                `json:"messageId" description:"消息ID"`
	IsRead      int                `json:"isRead"    description:"是否已读 0 未读 1已读"`
	IsDeleted   int                `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
	ReadTime    *gtime.Time        `json:"readTime"  description:"阅读时间"`
	DeletedAt   *gtime.Time        `json:"deletedAt" description:"删除时间"`
	MessageInfo *entity.SysMessage `orm:"with:id=message_id" description:"消息"`
}

type NetworkServerAddInput

type NetworkServerAddInput struct {
	Name      string      `json:"name"      description:""`
	Types     string      `json:"types"     description:"tcp/udp/mqtt_server/http/websocket"`
	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:"备注"`

	// 认证信息
	IsTls         uint   `json:"isTls" dc:"开启TLS:1=是,0=否"`
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
	Stick         Stick  `json:"stick" dc:"粘包处理方式"`
}

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_server/http/websocket"`
	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:"备注"`

	// 认证信息
	IsTls         uint   `json:"isTls" dc:"开启TLS:1=是,0=否"`
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
	Stick         string `json:"stick" dc:"粘包处理方式"`
}

type NetworkServerRes

type NetworkServerRes struct {
	Id        int         `json:"id"        description:""`
	Name      string      `json:"name"      description:""`
	Types     string      `json:"types"     description:"tcp/udp/mqtt_server/http/websocket"`
	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:"备注"`

	// 认证信息
	IsTls         uint   `json:"isTls" dc:"开启TLS:1=是,0=否"`
	AuthType      int    `json:"authType" dc:"认证方式(1=Basic,2=AccessToken,3=证书)"`
	AuthUser      string `json:"authUser" dc:"认证用户"`
	AuthPasswd    string `json:"authPasswd" dc:"认证密码"`
	AccessToken   string `json:"accessToken" dc:"AccessToken"`
	CertificateId int    `json:"certificateId" dc:"证书ID"`
	Stick         string `json:"stick" dc:"粘包处理方式"`
}

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:""`
	Protocol  string `json:"protocol" 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 NoticeConfigAddInput struct {
	Id          string `json:"id"          description:"ID"`
	Title       string `json:"title"          description:""`
	SendGateway string `json:"sendGateway"          description:""`
	Types       string `json:"types"          description:""`
	CreatedAt   string `json:"createdAt"          description:""`
}

type NoticeConfigEditInput

type NoticeConfigEditInput struct {
	NoticeConfigAddInput
}

type NoticeConfigListOutput

type NoticeConfigListOutput struct {
	Data []NoticeConfigOutput
	PaginationOutput
}

type NoticeConfigOutput

type NoticeConfigOutput struct {
	Id          string `json:"id"          description:""`
	DeptId      int    `json:"deptId"      description:"部门ID"`
	Title       string `json:"title"          description:""`
	SendGateway string `json:"sendGateway"          description:""`
	Types       string `json:"types"          description:""`
	CreatedAt   string `json:"createdAt"          description:""`
}

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    *gtime.Time `json:"sendTime" dc:"发送时间"`
}

type NoticeLogList

type NoticeLogList struct {
	entity.NoticeLog

	Gateway string `json:"gateway" dc:"发送通道"`
}

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"`
	DeptId      int    `json:"deptId"      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:""`
	DeptId      int    `json:"deptId"      description:"部门ID"`
	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 OperatorOutput struct {
	Title string `json:"title" dc:"操作符名称"`
	Type  string `json:"type" dc:"操作符值"`
}

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:500#分页数量最大500条" dc:"分页数量,最大500"`
}

type PaginationOutput

type PaginationOutput struct {
	CurrentPage int `json:"currentPage" dc:"当前页"`
	Total       int `dc:"总数"`
}

type PgSequenceOut

type PgSequenceOut struct {
	SchemaName    string `json:"schemaName" description:"模式名称"`
	SeqUesCeName  string `json:"seqUesCeName" description:"序号名称"`
	SeqUesCeOwner int64  `json:"seqUesCeOwner" description:"所有者"`
	DataType      int64  `json:"dataType" description:"数据类型"`
	StartVale     int64  `json:"startVale" description:"开始值"`
	MaxValue      int64  `json:"maxValue" description:"最大值"`
	MinValue      int64  `json:"minValue" description:"最小值"`
	IncrementBy   int64  `json:"incrementBy" description:"自增量"`
	Cycle         int64  `json:"cycle" description:"是否启用循环"`
	CacheSize     int64  `json:"cacheSize" description:"缓存大小"`
	LastVale      int64  `json:"lastVale" description:"当前值"`
}

type PluginsConfigAddInput

type PluginsConfigAddInput struct {
	Type  string `json:"type"          description:"插件类型"`
	Name  string `json:"name"          description:"插件名称"`
	Value string `json:"value"          description:"配置内容"`
	Doc   string `json:"doc"          description:"配置说明"`
}

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 PluginsConfigOutput struct {
	Value string `json:"value"          description:"配置内容"`
	Doc   string `json:"doc"          description:"配置说明"`
	Id    string `json:"id"          description:""`
	Type  string `json:"type"          description:"插件类型"`
	Name  string `json:"name"          description:"插件名称"`
}

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 ProductCountRes

type ProductCountRes struct {
	Total   int `json:"total"`   // 产品总数
	Disable int `json:"disable"` // 禁用产品数
	Enable  int `json:"enable"`  // 启用产品数
	Added   int `json:"added"`   // 新增产品数
}

ProductCountRes 产品数量统计

type ProductInput

type ProductInput struct {
	Name             string   `json:"name" dc:"产品名称" `
	CategoryId       uint     `json:"categoryId" dc:"所属品类"`
	MessageProtocols []string `json:"messageProtocol" dc:"消息协议"`
	DeviceTypes      []string `json:"deviceType" dc:"设备类型:网关、设备、子设备"`
	Status           string   `p:"status"` //产品状态
}

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 ReportEventData

type ReportEventData struct {
	Key   string           // 事件标识
	Param ReportEventParam // 事件输出参数
}

上报事件数据

type ReportEventParam

type ReportEventParam struct {
	Value      map[string]any // 事件输出参数
	CreateTime int64          // 上报时间
}

事件输出参数

type ReportPropertyData

type ReportPropertyData map[string]ReportPropertyNode

上报属性数据

type ReportPropertyNode

type ReportPropertyNode struct {
	Value      any   // 属性值
	CreateTime int64 // 上报时间
}

属性值

type ReportStatusData

type ReportStatusData struct {
	Status     string // 状态:online、offline
	CreateTime int64  // 上下线时间
}

设备上下线状态

type RoleInfoOut

type RoleInfoOut 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:正常"`
	CreatedBy uint        `json:"createdBy"  description:"创建者"`
	CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
	UpdatedBy uint        `json:"updatedBy"  description:"更新者"`
	UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
}

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:正常"`
	CreatedBy uint        `json:"createdBy"  description:"创建者"`
	CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
	UpdatedBy uint        `json:"updatedBy"  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:正常"`
	CreatedBy uint           `json:"createdBy"  description:"创建者"`
	CreatedAt *gtime.Time    `json:"createdAt" description:"创建日期"`
	UpdatedBy uint           `json:"updatedBy"  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:正常"`
	CreatedBy uint           `json:"createdBy"  description:"创建者"`
	CreatedAt *gtime.Time    `json:"createdAt" description:"创建日期"`
	UpdatedBy uint           `json:"updatedBy"  description:"更新者"`
	UpdatedAt *gtime.Time    `json:"updatedAt" description:"修改日期"`
	Children  []*RoleTreeRes `json:"children" description:"子集"`
}

type RuleInstanceAddInput

type RuleInstanceAddInput struct {
	Name    string `json:"name"      description:"规则实例名称"`
	Types   int    `json:"types"     description:"规则实例类型"`
	Expound string `json:"expound"   description:"介绍"`
	FlowId  string `json:"flowId"    description:"流程ID"`
}

type RuleInstanceEditInput

type RuleInstanceEditInput struct {
	Id int `json:"id"          description:"ID"`
	RuleInstanceAddInput
}

type RuleInstanceOut

type RuleInstanceOut struct {
	Id        int         `json:"id"        description:"规则实例ID"`
	DeptId    int         `json:"deptId"    description:"部门ID"`
	Name      string      `json:"name"      description:"规则实例名称"`
	Types     int         `json:"types"     description:"规则实例类型"`
	FlowId    string      `json:"flowId"    description:"流程ID"`
	Status    int         `json:"status"    description:"状态"`
	CreatedAt *gtime.Time `json:"createdAt" description:""`
	UpdatedAt *gtime.Time `json:"updatedAt" description:""`
	Expound   string      `json:"expound"   description:"介绍"`
}

type RuleInstanceRes

type RuleInstanceRes struct {
	Id        int         `json:"id"        description:"规则实例ID"`
	DeptId    int         `json:"deptId"    description:"部门ID"`
	Name      string      `json:"name"      description:"规则实例名称"`
	Types     int         `json:"types"     description:"规则实例类型"`
	FlowId    string      `json:"flowId"    description:"流程ID"`
	Status    int         `json:"status"    description:"状态"`
	CreatedAt *gtime.Time `json:"createdAt" description:""`
	UpdatedAt *gtime.Time `json:"updatedAt" description:""`
	Expound   string      `json:"expound"   description:"介绍"`
}

type ScriptInfoInput

type ScriptInfoInput struct {
	Key        string `json:"key" dc:"产品标识" v:"required#请输入产品标识"`
	ScriptInfo string `json:"scriptInfo"        description:"脚本信息"`
}

type SelectDbTableListInput

type SelectDbTableListInput struct {
	TableName    string `json:"tableName"        description:"数据表名称" `
	TableComment string `json:"tableComment"        description:"数据表描述"`
	PaginationInput
}

获取数据库的数据表

type SessionNotice

type SessionNotice struct {
	Type    string // 消息类型
	Content string // 消息内容
}

SessionNotice 存放在Session中的提示信息,往往使用后则删除

type Stick

type Stick struct {
	Delimit  string `json:"delimit,omitempty" dc:"分隔符"`
	Custom   string `json:"custom,omitempty" dc:"自定义脚本"`
	FixedLen int    `json:"fixedLen,omitempty" dc:"固定长度"`
	Len      struct {
		Len    int    `json:"len" dc:"长度"`
		Offset int    `json:"offset" dc:"偏移量"`
		Endian string `json:"endian" dc:"大小端(big|little)"`
	} `json:"len,omitempty" dc:"长度字段"`
}

粘包处理方式

type SysApiAllOut

type SysApiAllOut struct {
	Id       uint   `json:"id"        description:""`
	ParentId int    `json:"parentId"  description:""`
	Name     string `json:"name"      description:"名称"`
	Types    int    `json:"types"     description:"1 分类 2接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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 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接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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数组"`
}

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接口"`
	ApiTypes string `json:"apiTypes"  description:"数据字典维护"`
	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接口"`
	ApiTypes string           `json:"apiTypes"  description:"数据字典维护"`
	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数组"`
	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接口"`
	ApiTypes string           `json:"apiTypes"  description:"数据字典维护"`
	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数组"`
	Children []*SysApiTreeRes `json:"children" description:"子集"`
}

type SysAuthorizeInput

type SysAuthorizeInput struct {
	RoleId     int         `json:"roleId"     description:"角色ID"`
	ItemsType  string      `json:"itemsType"  description:"项目类型 menu菜单 button按钮 column列表字段 api接口"`
	ItemsId    int         `json:"itemsId"    description:"项目ID"`
	IsCheckAll int         `json:"isCheckAll" description:"是否全选 1是 0否"`
	IsDeleted  int         `json:"isDeleted"  description:"是否删除 0未删除 1已删除"`
	CreatedBy  uint        `json:"createdBy"  description:"创建人"`
	CreatedAt  *gtime.Time `json:"createdAt"  description:"创建时间"`
	DeletedBy  int         `json:"deletedBy"  description:"删除人"`
	DeletedAt  *gtime.Time `json:"deletedAt"  description:"删除时间"`
}

type SysCertificateListInput

type SysCertificateListInput struct {
	Name   string `json:"name"              description:"名称"`
	Status int    `json:"status"            description:"状态  0未启用  1启用"`
	PaginationInput
}

type SysCertificateListOut

type SysCertificateListOut struct {
	Id                int         `json:"id"                description:""`
	Name              string      `json:"name"              description:"名称"`
	Standard          string      `json:"standard"          description:"证书标准"`
	FileContent       string      `json:"fileContent"       description:"证书文件内容"`
	PublicKeyContent  string      `json:"publicKeyContent"  description:"证书公钥内容"`
	PrivateKeyContent string      `json:"privateKeyContent" 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:"创建日期"`
	UpdatedBy         int         `json:"updatedBy"         description:"修改人"`
	UpdatedAt         *gtime.Time `json:"updatedAt"         description:"更新时间"`
	DeletedBy         int         `json:"deletedBy"         description:"删除人"`
	DeletedAt         *gtime.Time `json:"deletedAt"         description:"删除时间"`
}

type SysCertificateListRes

type SysCertificateListRes struct {
	Id                int         `json:"id"                description:""`
	Name              string      `json:"name"              description:"名称"`
	Standard          string      `json:"standard"          description:"证书标准"`
	FileContent       string      `json:"fileContent"       description:"证书文件内容"`
	PublicKeyContent  string      `json:"publicKeyContent"  description:"证书公钥内容"`
	PrivateKeyContent string      `json:"privateKeyContent" 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:"创建日期"`
	UpdatedBy         int         `json:"updatedBy"         description:"修改人"`
	UpdatedAt         *gtime.Time `json:"updatedAt"         description:"更新时间"`
	DeletedBy         int         `json:"deletedBy"         description:"删除人"`
	DeletedAt         *gtime.Time `json:"deletedAt"         description:"删除时间"`
}

type SysCertificateOut

type SysCertificateOut struct {
	Id                int         `json:"id"                description:""`
	Name              string      `json:"name"              description:"名称"`
	Standard          string      `json:"standard"          description:"证书标准"`
	FileContent       string      `json:"fileContent"       description:"证书文件内容"`
	PublicKeyContent  string      `json:"publicKeyContent"  description:"证书公钥内容"`
	PrivateKeyContent string      `json:"privateKeyContent" 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:"创建日期"`
	UpdatedBy         int         `json:"updatedBy"         description:"修改人"`
	UpdatedAt         *gtime.Time `json:"updatedAt"         description:"更新时间"`
	DeletedBy         int         `json:"deletedBy"         description:"删除人"`
	DeletedAt         *gtime.Time `json:"deletedAt"         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否)"`
	ModuleClassify string      `json:"moduleClassify" description:"字典分类编码"`
	CreatedBy      uint        `json:"createdBy"    description:"创建者"`
	UpdatedBy      uint        `json:"updatedBy"    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否)"`
	ModuleClassify string      `json:"moduleClassify" description:"字典分类编码"`
	CreatedBy      uint        `json:"createdBy"    description:"创建者"`
	UpdatedBy      uint        `json:"updatedBy"    description:"更新者"`
	Remark         string      `json:"remark"      description:"备注"`
	CreatedAt      *gtime.Time `json:"createdAt"   description:"创建时间"`
	UpdatedAt      *gtime.Time `json:"updatedAt"   description:"修改时间"`
}

type SysDept

type SysDept struct {
	DeptId   uint   `json:"deptId" dc:"部门ID"`
	DeptName string `json:"deptName" dc:"部门名称"`
}

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停用)"`
	CreatedBy uint64      `json:"createdBy"  description:"创建者"`
	UpdatedBy uint64      `json:"updatedBy"  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停用)"`
	CreatedBy uint64      `json:"createdBy"  description:"创建者"`
	UpdatedBy uint64      `json:"updatedBy"  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停用)
	ModuleClassify string      `orm:"moduleClassify"   json:"moduleClassify"` //模块分类
	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停用)
	ModuleClassify string      `orm:"moduleClassify"   json:"moduleClassify"` //模块分类
	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停用)"`
	ModuleClassify string      `json:"moduleClassify" description:"模块分类"`
	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停用)"`
	ModuleClassify string      `json:"moduleClassify" description:"模块分类"`
	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 SysJobFunListOut

type SysJobFunListOut struct {
	FunName string `json:"fun_name"`
	Explain string `json:"explain"`
}

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 SysLoginLogExportOut

type SysLoginLogExportOut 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        string      `json:"status"        description:"登录状态"`
	Msg           string      `json:"msg"           description:"提示消息"`
	LoginTime     *gtime.Time `json:"loginTime"     description:"登录时间"`
	Module        string      `json:"module"        description:"登录模块"`
}

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 SysMenuApiInput

type SysMenuApiInput struct {
	MenuId    int         `json:"menuId"    description:"菜单ID"`
	ApiId     int         `json:"apiId"     description:"apiId"`
	IsDeleted int         `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
	CreatedBy uint        `json:"createdBy" description:"创建人"`
	CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
	DeletedBy int         `json:"deletedBy" description:"删除人"`
	DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
}

type SysMenuApiRes

type SysMenuApiRes struct {
	Id     int `json:"id"        description:"id"`
	MenuId int `json:"menuId"    description:"菜单ID"`
	ApiId  int `json:"apiId"     description:"apiId"`
}

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 SysMessagereceiveInput

type SysMessagereceiveInput struct {
	UserId    int         `json:"userId"    description:"用户ID"`
	MessageId int         `json:"messageId" description:"消息ID"`
	IsRead    int         `json:"isRead"    description:"是否已读 0 未读 1已读"`
	IsPush    int         `json:"isPush"    description:"是否已经推送0 否 1是"`
	IsDeleted int         `json:"isDeleted" description:"是否删除 0未删除 1已删除"`
	ReadTime  *gtime.Time `json:"readTime"  description:"阅读时间"`
	DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
}

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 {
	Id                    int         `json:"id"                    description:"ID"`
	Types                 string      `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType            string      `json:"handleType"            description:"功能类型"`
	Name                  string      `json:"name"                  description:"名称"`
	Title                 string      `json:"title"                 description:"标题"`
	Description           string      `json:"description"           description:"介绍"`
	Version               string      `json:"version"               description:"版本"`
	Author                string      `json:"author"                description:"作者"`
	Icon                  string      `json:"icon"                  description:"插件图标"`
	Link                  string      `` /* 126-byte string literal not displayed */
	Command               string      `json:"command"               description:"插件的运行指令"`
	Args                  string      `json:"args"                  description:"插件的指令参数"`
	Status                int         `json:"status"                description:"状态"`
	FrontendUi            int         `json:"frontendUi"            description:"是否有插件页面"`
	FrontendUrl           string      `json:"frontendUrl"           description:"插件页面地址"`
	FrontendConfiguration int         `json:"frontendConfiguration" description:"是否显示配置页面"`
	StartTime             *gtime.Time `json:"startTime"             description:"启动时间"`
	IsDeleted             int         `json:"isDeleted"             description:"是否删除 0未删除 1已删除"`
}

type SysPluginsEditInput

type SysPluginsEditInput struct {
	Id                    int      `json:"id"                    description:"ID"`
	Types                 string   `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType            string   `json:"handleType"            description:"功能类型"`
	Name                  string   `json:"name"                  description:"名称"`
	Title                 string   `json:"title"                 description:"标题"`
	Description           string   `json:"description"           description:"介绍"`
	Version               string   `json:"version"               description:"版本"`
	Author                string   `json:"author"                description:"作者"`
	Icon                  string   `json:"icon"                  description:"插件图标"`
	Link                  string   `` /* 126-byte string literal not displayed */
	Command               string   `json:"command"               description:"插件的运行指令"`
	Args                  []string `json:"args"                  description:"插件的指令参数"`
	FrontendUi            int      `json:"frontendUi"            description:"是否有插件页面"`
	FrontendUrl           string   `json:"frontendUrl"           description:"插件页面地址"`
	FrontendConfiguration int      `json:"frontendConfiguration" description:"是否显示配置页面"`
}

type SysPluginsInfoOut

type SysPluginsInfoOut struct {
	Types      string `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType string `json:"handleType"            description:"功能类型"`
	Name       string `json:"name"                  description:"名称"`
	Title      string `json:"title"                 description:"标题"`
}

type SysPluginsInfoRes

type SysPluginsInfoRes struct {
	Types      string `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType string `json:"handleType"            description:"功能类型"`
	Name       string `json:"name"                  description:"名称"`
	Title      string `json:"title"                 description:"标题"`
}

type SysPluginsRes

type SysPluginsRes struct {
	Id                    int         `json:"id"                    description:"ID"`
	Types                 string      `json:"types"                 description:"插件与SagooIOT的通信方式"`
	HandleType            string      `json:"handleType"            description:"功能类型"`
	Name                  string      `json:"name"                  description:"名称"`
	Title                 string      `json:"title"                 description:"标题"`
	Description           string      `json:"description"           description:"介绍"`
	Version               string      `json:"version"               description:"版本"`
	Author                string      `json:"author"                description:"作者"`
	Icon                  string      `json:"icon"                  description:"插件图标"`
	Link                  string      `` /* 126-byte string literal not displayed */
	Command               string      `json:"command"               description:"插件的运行指令"`
	Args                  string      `json:"args"                  description:"插件的指令参数"`
	Status                int         `json:"status"                description:"状态"`
	FrontendUi            int         `json:"frontendUi"            description:"是否有插件页面"`
	FrontendUrl           string      `json:"frontendUrl"           description:"插件页面地址"`
	FrontendConfiguration int         `json:"frontendConfiguration" description:"是否显示配置页面"`
	StartTime             *gtime.Time `json:"startTime"             description:"启动时间"`
	IsDeleted             int         `json:"isDeleted"             description:"是否删除 0未删除 1已删除"`
	CreatedBy             uint        `json:"createdBy"             description:"创建者"`
	CreatedAt             *gtime.Time `json:"createdAt"             description:"创建日期"`
	UpdatedBy             int         `json:"updatedBy"             description:"修改人"`
	UpdatedAt             *gtime.Time `json:"updatedAt"             description:"更新时间"`
	DeletedBy             int         `json:"deletedBy"             description:"删除人"`
	DeletedAt             *gtime.Time `json:"deletedAt"             description:"删除时间"`
}

type TArray

type TArray TSLParam

func (TArray) Convert

func (tArray TArray) Convert(v interface{}) interface{}

type TBoolean

type TBoolean TSLParam

func (TBoolean) Convert

func (tBoolean TBoolean) Convert(v interface{}) interface{}

type TDEngineTableInfo

type TDEngineTableInfo struct {
	Field  string `json:"field"        description:"字段名"`
	Type   string `json:"type"        description:"类型"`
	Length int    `json:"length"        description:"长度"`
	Note   string `json:"note" description:"note"`
}

type TDEngineTablesList

type TDEngineTablesList struct {
	TableName  string      `json:"tableName"        description:"表名"`
	DbName     string      `json:"dbName"        description:"数据库名"`
	StableName string      `json:"stableName"        description:"超级表名"`
	CreateTime *gtime.Time `json:"createTime" description:"创建时间"`
}

type TDate

type TDate TSLParam

func (TDate) Convert

func (tDate TDate) Convert(v interface{}) interface{}

type TDouble

type TDouble TSLParam

func (TDouble) Convert

func (tDouble TDouble) Convert(v interface{}) interface{}

type TEnum

type TEnum TSLParam

func (TEnum) Convert

func (tEnum TEnum) Convert(v interface{}) interface{}

type TFloat

type TFloat TSLParam

func (TFloat) Convert

func (tFloat TFloat) Convert(v interface{}) interface{}

type TInt

type TInt TSLParam

func (TInt) Convert

func (tInt TInt) Convert(v interface{}) interface{}

type TLong

type TLong TSLParam

func (TLong) Convert

func (tLong TLong) Convert(v interface{}) interface{}

type TObject

type TObject TSLParam

func (TObject) Convert

func (tObject TObject) Convert(v interface{}) interface{}

type TSL

type TSL struct {
	Key        string        `json:"key" dc:"产品标识"`
	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 TSLArrayType

type TSLArrayType struct {
	TSLValueType
}

扩展类型参数:数组型

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#请选择事件级别"`
	Outputs []TSLEventOutput `json:"outputs" dc:"输出参数"`
	Desc    string           `json:"desc" dc:"描述"`
}

事件

type TSLEventAddInput

type TSLEventAddInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	TSLEvent
}

TSLEventAddInput 事件:添加、编辑

type TSLEventOutput

type TSLEventOutput 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 TSLFunction

type TSLFunction struct {
	Key     string              `` /* 156-byte string literal not displayed */
	Name    string              `json:"name" dc:"功能名称" v:"required#请输入功能名称"`
	Inputs  []TSLFunctionInput  `json:"inputs" dc:"输入参数"`
	Outputs []TSLFunctionOutput `json:"outputs" dc:"输出参数"`
	Desc    string              `json:"desc" dc:"描述"`
}

功能

type TSLFunctionAddInput

type TSLFunctionAddInput struct {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	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 TSLFunctionOutput

type TSLFunctionOutput 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 TSLParam

type TSLParam struct {
	TSLParamBase
	TSLParamExtension
}

类型参数

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 {
	ProductKey string `json:"productKey" dc:"产品Key" v:"required#产品Key不能为空"`
	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 {
	ProductKey string `json:"productKey" dc:"产品标识key" v:"required#产品KEY不能为空"`
	TSLTag
}

TSLTagInput 添加、编辑标签

type TSLValueType

type TSLValueType struct {
	Type     string `json:"type" ` // 类型
	TSLParam        // 参数
}

参数值(类型、类型参数)

func (TSLValueType) ConvertValue

func (t TSLValueType) ConvertValue(v interface{}) interface{}

type TText

type TText TSLParam

func (TText) Convert

func (tText TText) Convert(v interface{}) interface{}

type TTimestamp

type TTimestamp TSLParam

func (TTimestamp) Convert

func (tTimestamp TTimestamp) Convert(v interface{}) interface{}

type TableDataInfo

type TableDataInfo struct {
	Filed []string                 `json:"filed"        description:"字段"`
	Info  []map[string]interface{} `json:"info"        description:"数据"`
}

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 TemperingRatioRes struct {
	TemperatureRange string `json:"temperatureRange"      description:"温度区间"`
	Num              string `json:"num"                   description:"区间数据量"`
	Rate             string `json:"rate"                  description:"占比率"`
}

type ThingDevice

type ThingDevice struct {
	MsgTotal   map[int]int `json:"msgTotal" dc:"设备消息量月度统计"`
	AlarmTotal map[int]int `json:"alarmTotal" dc:"设备告警量月度统计"`
}

type ThingDeviceForDay

type ThingDeviceForDay struct {
	MsgTotal   map[string]int `json:"msgTotal" dc:"设备消息量近一个月统计"`
	AlarmTotal map[string]int `json:"alarmTotal" dc:"设备告警量近一个月统计"`
}

type ThingOverviewOutput

type ThingOverviewOutput struct {
	Overview     DeviceTotalOutput    `json:"overview" dc:"物联概览统计数据"`
	Device       ThingDevice          `json:"device" dc:"设备月度统计"`
	DeviceForDay ThingDeviceForDay    `json:"deviceForDay" 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 Transfer

type Transfer interface {
	Convert(interface{}) interface{}
}

type TriggerParamOutput

type TriggerParamOutput struct {
	Title    string `json:"title" dc:"条件参数"`
	ParamKey string `json:"paramKey" dc:"参数key"`
}

type TriggerTypeOutput

type TriggerTypeOutput struct {
	Title string `json:"title" dc:"触发类型"`
	Type  int    `json:"type" 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接口"`
	ApiTypes  string `json:"apiTypes"  description:"数据字典维护"`
	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接口"`
	ApiTypes  string `json:"apiTypes"  description:"数据字典维护"`
	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      *gtime.Time `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:未验证"`
	CreatedBy     uint        `json:"createdBy"      description:"创建者"`
	CreatedAt     *gtime.Time `json:"createdAt"     description:"创建日期"`
	UpdatedBy     uint        `json:"updatedBy"      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      *gtime.Time `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:未验证"`
	CreatedBy     uint        `json:"createdBy"      description:"创建者"`
	CreatedAt     *gtime.Time `json:"createdAt"     description:"创建日期"`
	UpdatedBy     uint        `json:"updatedBy"      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      *gtime.Time    `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:未验证"`
	CreatedBy     uint           `json:"createdBy"      description:"创建者"`
	CreatedAt     *gtime.Time    `json:"createdAt"     description:"创建日期"`
	UpdatedBy     uint           `json:"updatedBy"      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      *gtime.Time    `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:未验证"`
	CreatedBy     uint           `json:"createdBy"      description:"创建者"`
	CreatedAt     *gtime.Time    `json:"createdAt"     description:"创建日期"`
	UpdatedBy     uint           `json:"updatedBy"      description:"更新者"`
	UpdatedAt     *gtime.Time    `json:"updatedAt"     description:"修改日期"`
	Dept          *DetailDeptRes `json:"dept"     description:"部门信息"`
	RolesNames    string         `json:"rolesNames"     description:"角色信息"`
}

type UserMenu

type UserMenu struct {
	Id        uint   `json:"id"        description:""`
	Pid       uint   `json:"pid"       description:"父ID"`
	Name      string `json:"name"      description:"规则名称"`
	Component string `json:"component" description:"组件路径"`
	Path      string `json:"path"      description:"路由地址"`
	*MenuMeta `json:"meta"`
}

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 UserMenus

type UserMenus struct {
	*UserMenu `json:""`
	Children  []*UserMenus `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      *gtime.Time    `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:未验证"`
	CreatedBy     uint           `json:"createdBy"      description:"创建者"`
	CreatedAt     *gtime.Time    `json:"createdAt"     description:"创建日期"`
	UpdatedBy     uint           `json:"updatedBy"      description:"更新者"`
	UpdatedAt     *gtime.Time    `json:"updatedAt"     description:"修改日期"`
	Dept          *DetailDeptRes `json:"dept"     description:"部门信息"`
	RolesNames    string         `json:"rolesNames"     description:"角色信息"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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