product

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCategoryReq

type AddCategoryReq struct {
	g.Meta `path:"/category/add" method:"post" summary:"添加产品分类" tags:"产品分类"`
	*model.AddProductCategoryInput
}

type AddCategoryRes

type AddCategoryRes struct{}

type AddDeviceReq

type AddDeviceReq struct {
	g.Meta `path:"/device/add" method:"post" summary:"添加设备" tags:"设备"`
	*model.AddDeviceInput
}

type AddDeviceRes

type AddDeviceRes struct{}

type AddProductReq

type AddProductReq struct {
	g.Meta `path:"/add" method:"post" summary:"添加产品" tags:"产品"`
	*model.AddProductInput
}

type AddProductRes

type AddProductRes struct{}

type AddTSLEventReq

type AddTSLEventReq struct {
	g.Meta `path:"/tsl/event/add" method:"post" summary:"事件添加" tags:"物模型"`
	*model.TSLEventInput
}

type AddTSLEventRes

type AddTSLEventRes struct{}

type AddTSLFunctionReq

type AddTSLFunctionReq struct {
	g.Meta `path:"/tsl/function/add" method:"post" summary:"功能添加" tags:"物模型"`
	*model.TSLFunctionAddInput
}

type AddTSLFunctionRes

type AddTSLFunctionRes struct{}

type AddTSLPropertyReq

type AddTSLPropertyReq struct {
	g.Meta `path:"/tsl/property/add" method:"post" summary:"属性添加" tags:"物模型"`
	*model.TSLPropertyInput
}

type AddTSLPropertyRes

type AddTSLPropertyRes struct{}

type AddTSLTagReq

type AddTSLTagReq struct {
	g.Meta `path:"/tsl/tag/add" method:"post" summary:"标签添加" tags:"物模型"`
	*model.TSLTagInput
}

type AddTSLTagRes

type AddTSLTagRes struct{}

type AddTagDeviceReq

type AddTagDeviceReq struct {
	g.Meta `path:"/device/tag/add" method:"post" summary:"标签添加" tags:"设备"`
	*model.AddTagDeviceInput
}

type AddTagDeviceRes

type AddTagDeviceRes struct{}

type AllTSLPropertyReq

type AllTSLPropertyReq struct {
	g.Meta `path:"/tsl/property/all" method:"get" summary:"所有属性列表" tags:"物模型"`
	Key    string `json:"key" dc:"产品标识" v:"required#产品标识不能为空"`
}

type AllTSLPropertyRes

type AllTSLPropertyRes struct {
	Data []model.TSLProperty
}

type CategoryListForPageReq

type CategoryListForPageReq struct {
	g.Meta `path:"/category/page_list" method:"get" summary:"产品分类列表(分页)" tags:"产品分类"`
	Name   string `json:"name" dc:"分类名称"`
	*common.PaginationReq
}

type CategoryListForPageRes

type CategoryListForPageRes struct {
	Category []*model.ProductCategoryTreeOutput `json:"category" dc:"产品分类列表"`
	common.PaginationRes
}

type CategoryListReq

type CategoryListReq struct {
	g.Meta `path:"/category/list" method:"get" summary:"产品分类列表" tags:"产品分类"`
	Name   string `json:"name" dc:"分类名称"`
}

type CategoryListRes

type CategoryListRes struct {
	Category []*model.ProductCategoryTreeOutput `json:"category" dc:"产品分类列表"`
}

type DateTypeReq

type DateTypeReq struct {
	g.Meta `path:"/tsl/data_type" method:"get" summary:"数据类型" tags:"物模型"`
}

type DateTypeRes

type DateTypeRes struct {
	DataType *model.DataTypeOutput `json:"dataType" dc:"数据类型"`
}

type DelCategoryReq

type DelCategoryReq struct {
	g.Meta `path:"/category/del" method:"delete" summary:"删除产品分类" tags:"产品分类"`
	Id     uint `json:"id" dc:"分类ID" v:"required#分类ID不能为空"`
}

type DelCategoryRes

type DelCategoryRes struct{}

type DelDeviceReq

type DelDeviceReq struct {
	g.Meta `path:"/device/del" method:"delete" summary:"删除设备" tags:"设备"`
	Ids    []uint `json:"ids" dc:"设备Ids" v:"required#设备ID不能为空"`
}

type DelDeviceRes

type DelDeviceRes struct{}

type DelProductReq

type DelProductReq struct {
	g.Meta `path:"/del" method:"delete" summary:"删除产品" tags:"产品"`
	Ids    []uint `json:"ids" dc:"产品Ids" v:"required#产品ID不能为空"`
}

type DelProductRes

type DelProductRes struct{}

type DelTSLEventReq

type DelTSLEventReq struct {
	g.Meta `path:"/tsl/event/del" method:"delete" summary:"事件删除" tags:"物模型"`
	*model.DelTSLEventInput
}

type DelTSLEventRes

type DelTSLEventRes struct{}

type DelTSLFunctionReq

type DelTSLFunctionReq struct {
	g.Meta `path:"/tsl/function/del" method:"delete" summary:"功能删除" tags:"物模型"`
	*model.DelTSLFunctionInput
}

type DelTSLFunctionRes

type DelTSLFunctionRes struct{}

type DelTSLPropertyReq

type DelTSLPropertyReq struct {
	g.Meta `path:"/tsl/property/del" method:"delete" summary:"属性删除" tags:"物模型"`
	*model.DelTSLPropertyInput
}

type DelTSLPropertyRes

type DelTSLPropertyRes struct{}

type DelTSLTagReq

type DelTSLTagReq struct {
	g.Meta `path:"/tsl/tag/del" method:"delete" summary:"标签删除" tags:"物模型"`
	*model.DelTSLTagInput
}

type DelTSLTagRes

type DelTSLTagRes struct{}

type DelTagDeviceReq

type DelTagDeviceReq struct {
	g.Meta `path:"/device/tag/del" method:"delete" summary:"标签删除" tags:"设备"`
	Id     uint `json:"id" dc:"标签ID" v:"required#标签ID不能为空"`
}

type DelTagDeviceRes

type DelTagDeviceRes struct{}

type DeployDeviceReq

type DeployDeviceReq struct {
	g.Meta `path:"/device/deploy" method:"post" summary:"启用设备" tags:"设备"`
	Id     uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
}

type DeployDeviceRes

type DeployDeviceRes struct{}

type DeployProductReq

type DeployProductReq struct {
	g.Meta `path:"/deploy" method:"post" summary:"发布产品" tags:"产品"`
	Id     uint `json:"id" dc:"产品ID" v:"required#产品ID不能为空"`
}

type DeployProductRes

type DeployProductRes struct{}

type DetailDeviceReq

type DetailDeviceReq struct {
	g.Meta `path:"/device/detail" method:"get" summary:"设备详情" tags:"设备"`
	Id     uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
}

type DetailDeviceRes

type DetailDeviceRes struct {
	Data *model.DeviceOutput `json:"data" dc:"设备详情"`
}

type DetailProductReq

type DetailProductReq struct {
	g.Meta `path:"/detail" method:"get" summary:"产品详情" tags:"产品"`
	Id     uint `json:"id" dc:"产品ID" v:"required#产品ID不能为空"`
}

type DetailProductRes

type DetailProductRes struct {
	Data *model.DetailProductOutput `json:"data" dc:"产品详情"`
}

type DeviceGetPropertyListReq

type DeviceGetPropertyListReq struct {
	g.Meta `path:"/device/property/list" method:"get" summary:"属性详情列表" tags:"设备"`
	*model.DeviceGetPropertyListInput
}

type DeviceGetPropertyListRes

type DeviceGetPropertyListRes struct {
	*model.DeviceGetPropertyListOutput
}

type DeviceGetPropertyReq

type DeviceGetPropertyReq struct {
	g.Meta `path:"/device/property/get" method:"get" summary:"获取指定属性值" tags:"设备"`
	*model.DeviceGetPropertyInput
}

type DeviceGetPropertyRes

type DeviceGetPropertyRes struct {
	*model.DevicePropertiy
}

type DeviceLogSearchReq

type DeviceLogSearchReq struct {
	g.Meta `path:"/log/search" method:"get" summary:"日志搜索" tags:"时序数据库管理"`
	*model.DeviceLogSearchInput
}

type DeviceLogSearchRes

type DeviceLogSearchRes struct {
	*model.DeviceLogSearchOutput
}

type DeviceLogTypeReq

type DeviceLogTypeReq struct {
	g.Meta `path:"/log/type" method:"get" summary:"日志类型" tags:"时序数据库管理"`
}

type DeviceLogTypeRes

type DeviceLogTypeRes struct {
	List []string `json:"list" dc:"日志类型列表"`
}

type DeviceRunStatusReq

type DeviceRunStatusReq struct {
	g.Meta `path:"/device/run_status" method:"get" summary:"运行状态" tags:"设备"`
	Id     uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
}

type DeviceRunStatusRes

type DeviceRunStatusRes struct {
	*model.DeviceRunStatusOutput
}

type DeviceStatisticsForMonthsReq

type DeviceStatisticsForMonthsReq struct {
	g.Meta `path:"/device/statistics/months" method:"get" summary:"设备消息量、告警量月度统计" tags:"设备"`
}

type DeviceStatisticsForMonthsRes

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

type DeviceStatisticsReq

type DeviceStatisticsReq struct {
	g.Meta `path:"/device/statistics" method:"get" summary:"设备相关统计" tags:"设备"`
}

type DeviceStatisticsRes

type DeviceStatisticsRes struct {
	DeviceTotal model.DeviceTotalOutput `json:"deviceTotal" dc:"设备相关统计"`
}

type EditCategoryReq

type EditCategoryReq struct {
	g.Meta `path:"/category/edit" method:"put" summary:"编辑产品分类" tags:"产品分类"`
	*model.EditProductCategoryInput
}

type EditCategoryRes

type EditCategoryRes struct{}

type EditDeviceReq

type EditDeviceReq struct {
	g.Meta `path:"/device/edit" method:"put" summary:"编辑设备" tags:"设备"`
	*model.EditDeviceInput
}

type EditDeviceRes

type EditDeviceRes struct{}

type EditProductReq

type EditProductReq struct {
	g.Meta `path:"/edit" method:"put" summary:"编辑产品" tags:"产品"`
	*model.EditProductInput
}

type EditProductRes

type EditProductRes struct{}

type EditTSLEventReq

type EditTSLEventReq struct {
	g.Meta `path:"/tsl/event/edit" method:"put" summary:"事件编辑" tags:"物模型"`
	*model.TSLEventInput
}

type EditTSLEventRes

type EditTSLEventRes struct{}

type EditTSLFunctionReq

type EditTSLFunctionReq struct {
	g.Meta `path:"/tsl/function/edit" method:"put" summary:"功能编辑" tags:"物模型"`
	*model.TSLFunctionAddInput
}

type EditTSLFunctionRes

type EditTSLFunctionRes struct{}

type EditTSLPropertyReq

type EditTSLPropertyReq struct {
	g.Meta `path:"/tsl/property/edit" method:"put" summary:"属性编辑" tags:"物模型"`
	*model.TSLPropertyInput
}

type EditTSLPropertyRes

type EditTSLPropertyRes struct{}

type EditTSLTagReq

type EditTSLTagReq struct {
	g.Meta `path:"/tsl/tag/edit" method:"put" summary:"标签编辑" tags:"物模型"`
	*model.TSLTagInput
}

type EditTSLTagRes

type EditTSLTagRes struct{}

type EditTagDeviceReq

type EditTagDeviceReq struct {
	g.Meta `path:"/device/tag/edit" method:"put" summary:"标签编辑" tags:"设备"`
	*model.EditTagDeviceInput
}

type EditTagDeviceRes

type EditTagDeviceRes struct{}

type GetDeviceReq

type GetDeviceReq struct {
	g.Meta `path:"/device/get" method:"get" summary:"设备详情" tags:"设备"`
	Key    string `json:"key" dc:"设备标识" v:"required#设备标识不能为空"`
}

type GetDeviceRes

type GetDeviceRes struct {
	Data *model.DeviceOutput `json:"data" dc:"设备详情"`
}

type GetProductReq

type GetProductReq struct {
	g.Meta `path:"/get" method:"get" summary:"产品详情" tags:"产品"`
	Key    string `json:"key" dc:"产品标识" v:"required#产品标识不能为空"`
}

type GetProductRes

type GetProductRes struct {
	Data *model.DetailProductOutput `json:"data" dc:"产品详情"`
}

type ListDeviceForPageReq

type ListDeviceForPageReq struct {
	g.Meta `path:"/device/page_list" method:"get" summary:"设备搜索列表(分页)" tags:"设备"`
	*model.ListDeviceForPageInput
}

type ListDeviceForPageRes

type ListDeviceForPageRes struct {
	*model.ListDeviceForPageOutput
}

type ListDeviceReq

type ListDeviceReq struct {
	g.Meta `path:"/device/list" method:"get" summary:"设备列表" tags:"设备"`
	*model.ListDeviceInput
}

type ListDeviceRes

type ListDeviceRes struct {
	Device []*model.DeviceOutput `json:"device" dc:"设备列表"`
}

type ListForPageReq

type ListForPageReq struct {
	g.Meta `path:"/page_list" method:"get" summary:"产品搜索列表(分页)" tags:"产品"`
	model.ListForPageInput
}

type ListForPageRes

type ListForPageRes struct {
	model.ListForPageOutput
}

type ListMessageProtocolReq

type ListMessageProtocolReq struct {
	g.Meta `path:"/protocol/message_protocol_list" method:"get" summary:"消息协议" tags:"协议"`
}

消息协议

type ListMessageProtocolRes

type ListMessageProtocolRes struct {
	Data []*model.MessageProtocolRes `json:"data" dc:"消息协议"`
}

type ListReq

type ListReq struct {
	g.Meta `path:"/list" method:"get" summary:"产品列表" tags:"产品"`
}

type ListRes

type ListRes struct {
	Product []*model.ProductOutput `json:"product" dc:"产品列表"`
}

type ListTSLEventReq

type ListTSLEventReq struct {
	g.Meta `path:"/tsl/event/list" method:"get" summary:"事件列表" tags:"物模型"`
	*model.ListTSLEventInput
}

type ListTSLEventRes

type ListTSLEventRes struct {
	*model.ListTSLEventOutput
}

type ListTSLFunctionReq

type ListTSLFunctionReq struct {
	g.Meta `path:"/tsl/function/list" method:"get" summary:"功能列表" tags:"物模型"`
	*model.ListTSLFunctionInput
}

type ListTSLFunctionRes

type ListTSLFunctionRes struct {
	*model.ListTSLFunctionOutput
}

type ListTSLPropertyReq

type ListTSLPropertyReq struct {
	g.Meta `path:"/tsl/property/list" method:"get" summary:"属性列表" tags:"物模型"`
	*model.ListTSLPropertyInput
}

type ListTSLPropertyRes

type ListTSLPropertyRes struct {
	*model.ListTSLPropertyOutput
}

type ListTSLTagReq

type ListTSLTagReq struct {
	g.Meta `path:"/tsl/tag/list" method:"get" summary:"标签列表" tags:"物模型"`
	*model.ListTSLTagInput
}

type ListTSLTagRes

type ListTSLTagRes struct {
	*model.ListTSLTagOutput
}

type ListTrunsportProtocolReq

type ListTrunsportProtocolReq struct {
	g.Meta `path:"/protocol/trunsport_protocol_list" method:"get" summary:"传输协议" tags:"协议"`
}

传输协议

type ListTrunsportProtocolRes

type ListTrunsportProtocolRes struct {
	Data []*model.TrunsportProtocolRes `json:"data" dc:"传输协议"`
}

type OfflineDeviceReq

type OfflineDeviceReq struct {
	g.Meta `path:"/device/offline" method:"post" summary:"下线设备" tags:"设备"`
	Key    string `json:"key" dc:"设备标识" v:"required#设备标识不能为空"`
}

type OfflineDeviceRes

type OfflineDeviceRes struct{}

type OnlineDeviceReq

type OnlineDeviceReq struct {
	g.Meta `path:"/device/online" method:"post" summary:"上线设备" tags:"设备"`
	Key    string `json:"key" dc:"设备标识" v:"required#设备标识不能为空"`
}

type OnlineDeviceRes

type OnlineDeviceRes struct{}

type UndeployDeviceReq

type UndeployDeviceReq struct {
	g.Meta `path:"/device/undeploy" method:"post" summary:"禁用设备" tags:"设备"`
	Id     uint `json:"id" dc:"设备ID" v:"required#设备ID不能为空"`
}

type UndeployDeviceRes

type UndeployDeviceRes struct{}

type UndeployProductReq

type UndeployProductReq struct {
	g.Meta `path:"/undeploy" method:"post" summary:"停用产品" tags:"产品"`
	Id     uint `json:"id" dc:"产品ID" v:"required#产品ID不能为空"`
}

type UndeployProductRes

type UndeployProductRes struct{}

type UploadIconReq

type UploadIconReq struct {
	g.Meta `path:"/icon/upload" method:"post" mime:"multipart/form-data" summary:"图标上传" tags:"产品"`
	Icon   *ghttp.UploadFile `json:"icon" type:"file" dc:"选择上传图片"`
}

type UploadIconRes

type UploadIconRes struct {
	IconPath string `json:"name" dc:"图标地址"`
}

Jump to

Keyboard shortcuts

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