device

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCategoryDataAddReq

type DeviceCategoryDataAddReq struct {
	g.Meta     `path:"/deviceCategoryData/add" tags:"设备数据" method:"post" summary:"添加设备数据"`
	CategoryId int         `p:"categoryId" v:"required#数据类别主键不能为空"`
	DeviceId   int         `p:"deviceId" v:"required#设备主键不能为空"`
	DataInt    uint        `p:"dataInt" `
	DataStr    string      `p:"dataStr" `
	DataDouble float64     `p:"dataDouble" `
	CreatedAt  *gtime.Time `p:"time"` // 创建时间
}

DeviceCategoryDataAddReq 添加操作请求参数

type DeviceCategoryDataAddRes

type DeviceCategoryDataAddRes struct {
}

type DeviceCategoryDataComm

type DeviceCategoryDataComm struct {
	Id   int         `orm:"id,primary" json:"id"`   // 主键
	Data interface{} `orm:"data" json:"data"`       // 字符串型数据
	Time *gtime.Time `orm:"created_at" json:"time"` // 修改时间
}

type DeviceCategoryDataDeleteReq

type DeviceCategoryDataDeleteReq struct {
	g.Meta `path:"/deviceCategoryData/delete" tags:"设备数据" method:"delete" summary:"删除设备数据"`
	Ids    []int `p:"ids"`
}

type DeviceCategoryDataDeleteRes

type DeviceCategoryDataDeleteRes struct {
}

type DeviceCategoryDataEditReq

type DeviceCategoryDataEditReq struct {
	g.Meta     `path:"/deviceCategoryData/edit" tags:"设备数据" method:"put" summary:"修改设备数据"`
	Id         int     `p:"id" v:"required#主键ID不能为空"`
	CategoryId int     `p:"categoryId" v:"required#数据类别主键不能为空"`
	DeviceId   int     `p:"deviceId" v:"required#设备主键不能为空"`
	DataInt    uint    `p:"dataInt" `
	DataStr    string  `p:"dataStr" `
	DataDouble float64 `p:"dataDouble" `
}

DeviceCategoryDataEditReq 修改操作请求参数

type DeviceCategoryDataEditRes

type DeviceCategoryDataEditRes struct {
}

type DeviceCategoryDataGetReq

type DeviceCategoryDataGetReq struct {
	g.Meta `path:"/deviceCategoryData/get" tags:"设备数据" method:"get" summary:"获取设备数据"`
	Id     int `p:"id"`
}

type DeviceCategoryDataGetRes

type DeviceCategoryDataGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceCategoryData
}

type DeviceCategoryDataHistoryReq

type DeviceCategoryDataHistoryReq struct {
	g.Meta     `path:"/deviceCategoryData/history" tags:"设备数据" method:"get" summary:"设备历史数据列表"`
	CategoryId int    `p:"categoryId"` //数据类别主键
	DeviceId   int    `p:"deviceId"`   //设备主键
	BeginTime  string `p:"beginTime"`  //开始时间
	EndTime    string `p:"endTime"`    //结束时间
	commonApi.PageReq
}

type DeviceCategoryDataHistoryRes

type DeviceCategoryDataHistoryRes struct {
	g.Meta `mime:"application/json"`
	Total  int `json:"total"`
	Data   []*DeviceCategoryDataComm
}

type DeviceCategoryDataRecentReq

type DeviceCategoryDataRecentReq struct {
	g.Meta     `path:"/deviceCategoryData/recent" tags:"设备数据" method:"get" summary:"设备最近数据列表"`
	CategoryId int    `p:"categoryId"` //数据类别主键
	DeviceId   int    `p:"deviceId"`   //设备主键
	BeginTime  string `p:"beginTime"`  //开始时间
	EndTime    string `p:"endTime"`    //结束时间
	commonApi.PageReq
}

type DeviceCategoryDataRecentRes

type DeviceCategoryDataRecentRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	Data []*DeviceCategoryDataComm
}

type DeviceCategoryDataSearchReq

type DeviceCategoryDataSearchReq struct {
	g.Meta     `path:"/deviceCategoryData/list" tags:"设备数据" method:"get" summary:"设备数据列表"`
	CategoryId int     `p:"categoryId"` //数据类别主键
	DeviceId   int     `p:"deviceId"`   //设备主键
	DataInt    string  `p:"dataInt"`    //int型数据
	DataStr    string  `p:"dataStr"`    //字符串型数据
	DataDouble float64 `p:"dataDouble"` //double型数据
	BeginTime  string  `p:"beginTime"`  //开始时间
	EndTime    string  `p:"endTime"`    //结束时间
	Top        int     `p:"top"`        //最新的多少个
	commonApi.PageReq
}

DeviceCategoryDataSearchReq 分页请求参数

type DeviceCategoryDataSearchRes

type DeviceCategoryDataSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceCategoryData `json:"list"`
}

type DeviceCategotyAddReq

type DeviceCategotyAddReq struct {
	g.Meta   `path:"/deviceCategoty/add" tags:"设备类别" method:"post" summary:"添加设备类别"`
	KindId   int    `p:"kindId" `
	Name     string `p:"name" v:"required#数据名称不能为空"`
	Mark     string `p:"mark" `
	DataType int    `p:"dataType" `
	Unit     string `p:"unit" `
	Ratio    string `p:"ratio" `
	Format   string `p:"format" `
	HomeShow int    `p:"homeShow" `
	Remark   string `p:"remark" `
}

DeviceCategotyAddReq 添加操作请求参数

type DeviceCategotyAddRes

type DeviceCategotyAddRes struct {
}

type DeviceCategotyDeleteReq

type DeviceCategotyDeleteReq struct {
	g.Meta `path:"/deviceCategoty/delete" tags:"设备类别" method:"delete" summary:"删除设备类别"`
	Ids    []int `p:"ids"`
}

type DeviceCategotyDeleteRes

type DeviceCategotyDeleteRes struct {
}

type DeviceCategotyEditReq

type DeviceCategotyEditReq struct {
	g.Meta   `path:"/deviceCategoty/edit" tags:"设备类别" method:"put" summary:"修改设备类别"`
	Id       int    `p:"id" v:"required#主键ID不能为空"`
	KindId   int    `p:"kindId" `
	Name     string `p:"name" v:"required#数据名称不能为空"`
	Mark     string `p:"mark" `
	DataType int    `p:"dataType" `
	Unit     string `p:"unit" `
	Ratio    string `p:"ratio" `
	Format   string `p:"format" `
	HomeShow int    `p:"homeShow" `
	Remark   string `p:"remark" `
}

DeviceCategotyEditReq 修改操作请求参数

type DeviceCategotyEditRes

type DeviceCategotyEditRes struct {
}

type DeviceCategotyGetReq

type DeviceCategotyGetReq struct {
	g.Meta `path:"/deviceCategoty/get" tags:"设备类别" method:"get" summary:"获取设备类别数据"`
	Id     int `p:"id"`
}

type DeviceCategotyGetRes

type DeviceCategotyGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceCategoty
}

type DeviceCategotySearchReq

type DeviceCategotySearchReq struct {
	g.Meta    `path:"/deviceCategoty/list" tags:"设备类别" method:"get" summary:"设备类别列表"`
	KindId    int    `p:"kindId"`    //数据模板的主键
	Name      string `p:"name"`      //数据名称
	Mark      string `p:"mark"`      //数据标识
	DataType  string `p:"dataType"`  //数据类型
	Unit      string `p:"unit"`      //数据单位
	Ratio     string `p:"ratio"`     //变比系数
	Format    string `p:"format"`    //格式化显示
	HomeShow  string `p:"homeShow"`  //首页是否展示
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceCategotySearchReq 分页请求参数

type DeviceCategotySearchRes

type DeviceCategotySearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceCategoty `json:"list"`
	Kind *entity.DeviceKind       `json:"kind"`
}

type DeviceDataAddReq

type DeviceDataAddReq struct {
	g.Meta    `path:"/deviceData/add" tags:"设备数据API" method:"post" summary:"设备API"`
	DeviceId  int         `p:"deviceId" `
	DeviceSn  string      `p:"deviceSn" `
	DevicePwd string      `p:"devicePwd" `
	Time      string      `p:"time" `
	Event     interface{} `p:"event" `
	Property  interface{} `p:"property" `
}

DeviceCategoryDataAddReq 添加操作请求参数

type DeviceDataAddRes

type DeviceDataAddRes struct {
}

type DeviceDataGetReq

type DeviceDataGetReq struct {
	g.Meta    `path:"/deviceData/get" tags:"设备数据API" method:"get" summary:"设备API"`
	DeviceId  int    `p:"deviceId" `
	DeviceSn  string `p:"deviceSn" `
	DevicePwd string `p:"devicePwd" `
}

type DeviceDataGetRes

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

type DeviceGroupAddReq

type DeviceGroupAddReq struct {
	g.Meta `path:"/deviceGroup/add" tags:"设备分组" method:"post" summary:"添加设备分组"`
	Name   string `p:"name" v:"required#组名不能为空"`
}

DeviceGroupAddReq 添加操作请求参数

type DeviceGroupAddRes

type DeviceGroupAddRes struct {
}

type DeviceGroupDeleteReq

type DeviceGroupDeleteReq struct {
	g.Meta `path:"/deviceGroup/delete" tags:"设备分组" method:"delete" summary:"删除设备分组"`
	Ids    []int `p:"ids"`
}

type DeviceGroupDeleteRes

type DeviceGroupDeleteRes struct {
}

type DeviceGroupEditReq

type DeviceGroupEditReq struct {
	g.Meta `path:"/deviceGroup/edit" tags:"设备分组" method:"put" summary:"修改设备分组"`
	Id     int    `p:"id" v:"required#主键ID不能为空"`
	Name   string `p:"name" v:"required#组名不能为空"`
}

DeviceGroupEditReq 修改操作请求参数

type DeviceGroupEditRes

type DeviceGroupEditRes struct {
}

type DeviceGroupGetReq

type DeviceGroupGetReq struct {
	g.Meta `path:"/deviceGroup/get" tags:"设备分组" method:"get" summary:"获取设备分组数据"`
	Id     int `p:"id"`
}

type DeviceGroupGetRes

type DeviceGroupGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceGroup
}

type DeviceGroupSearchReq

type DeviceGroupSearchReq struct {
	g.Meta    `path:"/deviceGroup/list" tags:"设备分组" method:"get" summary:"设备分组列表"`
	Id        int    `p:"id"`        //Id
	Name      string `p:"name"`      //组名
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceGroupSearchReq 分页请求参数

type DeviceGroupSearchRes

type DeviceGroupSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceGroup `json:"list"`
}

type DeviceInfoAddReq

type DeviceInfoAddReq struct {
	g.Meta   `path:"/deviceInfo/add" tags:"设备信息" method:"post" summary:"添加设备信息"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	Group    int    `p:"group" v:"required#设备组不能为空"`
	Sn       string `p:"sn" v:"required#SN不能为空"`
	Pwd      string `p:"pwd" `
	Kind     int    `p:"kind" v:"required#设备类别不能为空"`
	Monitor  int    `p:"monitor" `
	Location int    `p:"location" `
}

DeviceInfoAddReq 添加操作请求参数

type DeviceInfoAddRes

type DeviceInfoAddRes struct {
}

type DeviceInfoDeleteReq

type DeviceInfoDeleteReq struct {
	g.Meta `path:"/deviceInfo/delete" tags:"设备信息" method:"delete" summary:"删除设备信息"`
	Ids    []int `p:"ids"`
}

type DeviceInfoDeleteRes

type DeviceInfoDeleteRes struct {
}

type DeviceInfoEditReq

type DeviceInfoEditReq struct {
	g.Meta   `path:"/deviceInfo/edit" tags:"设备信息" method:"put" summary:"修改设备信息"`
	Id       int    `p:"id" v:"required#主键ID不能为空"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	Group    int    `p:"group" v:"required#设备组不能为空"`
	Sn       string `p:"sn" v:"required#SN不能为空"`
	Pwd      string `p:"pwd" `
	Kind     int    `p:"kind" v:"required#设备类别不能为空"`
	Monitor  int    `p:"monitor" `
	Location int    `p:"location" `
}

DeviceInfoEditReq 修改操作请求参数

type DeviceInfoEditRes

type DeviceInfoEditRes struct {
}

type DeviceInfoGetReq

type DeviceInfoGetReq struct {
	g.Meta `path:"/deviceInfo/get" tags:"设备信息" method:"get" summary:"获取设备信息数据"`
	Id     int `p:"id"`
}

type DeviceInfoGetRes

type DeviceInfoGetRes struct {
	g.Meta       `mime:"application/json"`
	Info         *model.DeviceInfoExtern  `json:"info"`
	Kind         *entity.DeviceKind       `json:"kind"`
	CategoryList []*entity.DeviceCategoty `json:"categoryList"`
}

type DeviceInfoSearchReq

type DeviceInfoSearchReq struct {
	g.Meta   `path:"/deviceInfo/list" tags:"设备信息" method:"get" summary:"设备信息列表"`
	Name     string `p:"name"`     //设备名称
	Group    string `p:"group"`    //设备组
	Sn       string `p:"sn"`       //SN
	Pwd      string `p:"pwd"`      //密码
	Kind     string `p:"kind"`     //设备类别
	Monitor  string `p:"monitor"`  //是否监视
	Status   int    `p:"status"`   // 状态
	Location string `p:"location"` //地理位置
	//CreatedAt  *gtime.Time `p:"createdAt"` //创建时间
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceInfoSearchReq 分页请求参数

type DeviceInfoSearchRes

type DeviceInfoSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*model.DeviceInfoExtern `json:"list"`
}

type DeviceKindAddReq

type DeviceKindAddReq struct {
	g.Meta  `path:"/deviceKind/add" tags:"设备种类" method:"post" summary:"添加设备种类"`
	Name    string `p:"name" v:"required#设备种类名称不能为空"`
	Mark    string `p:"mark" `
	TimeOut int    `p:"timeOut" v:"required#超时时间不能为空"`
}

DeviceKindAddReq 添加操作请求参数

type DeviceKindAddRes

type DeviceKindAddRes struct {
}

type DeviceKindDeleteReq

type DeviceKindDeleteReq struct {
	g.Meta `path:"/deviceKind/delete" tags:"设备种类" method:"delete" summary:"删除设备种类"`
	Ids    []int `p:"ids"`
}

type DeviceKindDeleteRes

type DeviceKindDeleteRes struct {
}

type DeviceKindEditReq

type DeviceKindEditReq struct {
	g.Meta  `path:"/deviceKind/edit" tags:"设备种类" method:"put" summary:"修改设备种类"`
	Id      int    `p:"id" v:"required#主键ID不能为空"`
	Name    string `p:"name" v:"required#设备种类名称不能为空"`
	Mark    string `p:"mark" `
	TimeOut int    `p:"timeOut" v:"required#超时时间不能为空"`
}

DeviceKindEditReq 修改操作请求参数

type DeviceKindEditRes

type DeviceKindEditRes struct {
}

type DeviceKindGetReq

type DeviceKindGetReq struct {
	g.Meta `path:"/deviceKind/get" tags:"设备种类" method:"get" summary:"获取设备种类数据"`
	Id     int `p:"id"`
}

type DeviceKindGetRes

type DeviceKindGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceKind
}

type DeviceKindSearchReq

type DeviceKindSearchReq struct {
	g.Meta    `path:"/deviceKind/list" tags:"设备种类" method:"get" summary:"设备种类列表"`
	Id        int    `p:"id"`        //Id
	Name      string `p:"name"`      //设备种类名称
	Mark      string `p:"mark"`      //设备名称标记
	TimeOut   string `p:"timeOut"`   //超时时间
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceKindSearchReq 分页请求参数

type DeviceKindSearchRes

type DeviceKindSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceKind `json:"list"`
}

type DeviceLabelAddReq

type DeviceLabelAddReq struct {
	g.Meta `path:"/deviceLabel/add" tags:"设备标签" method:"post" summary:"添加设备标签"`
	Name   string `p:"name" v:"required#标签内容不能为空"`
}

DeviceLabelAddReq 添加操作请求参数

type DeviceLabelAddRes

type DeviceLabelAddRes struct {
}

type DeviceLabelDataAddReq

type DeviceLabelDataAddReq struct {
	g.Meta   `path:"/deviceLabelData/add" tags:"设备标签数据" method:"post" summary:"添加设备标签数据"`
	LabelId  int `p:"labelId" `
	DeviceId int `p:"deviceId" `
}

DeviceLabelDataAddReq 添加操作请求参数

type DeviceLabelDataAddRes

type DeviceLabelDataAddRes struct {
}

type DeviceLabelDataDeleteReq

type DeviceLabelDataDeleteReq struct {
	g.Meta `path:"/deviceLabelData/delete" tags:"设备标签数据" method:"delete" summary:"删除设备标签数据"`
	Ids    []int `p:"ids"`
}

type DeviceLabelDataDeleteRes

type DeviceLabelDataDeleteRes struct {
}

type DeviceLabelDataEditReq

type DeviceLabelDataEditReq struct {
	g.Meta   `path:"/deviceLabelData/edit" tags:"设备标签数据" method:"put" summary:"修改设备标签数据"`
	Id       int `p:"id" v:"required#主键ID不能为空"`
	LabelId  int `p:"labelId" `
	DeviceId int `p:"deviceId" `
}

DeviceLabelDataEditReq 修改操作请求参数

type DeviceLabelDataEditRes

type DeviceLabelDataEditRes struct {
}

type DeviceLabelDataGetReq

type DeviceLabelDataGetReq struct {
	g.Meta `path:"/deviceLabelData/get" tags:"设备标签数据" method:"get" summary:"获取设备标签数据数据"`
	Id     int `p:"id"`
}

type DeviceLabelDataGetRes

type DeviceLabelDataGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceLabelData
}

type DeviceLabelDataSearchReq

type DeviceLabelDataSearchReq struct {
	g.Meta    `path:"/deviceLabelData/list" tags:"设备标签数据" method:"get" summary:"设备标签数据列表"`
	LabelId   string `p:"labelId"`   //标签主键
	DeviceId  string `p:"deviceId"`  //设备主键
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceLabelDataSearchReq 分页请求参数

type DeviceLabelDataSearchRes

type DeviceLabelDataSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceLabelData `json:"list"`
}

type DeviceLabelDeleteReq

type DeviceLabelDeleteReq struct {
	g.Meta `path:"/deviceLabel/delete" tags:"设备标签" method:"delete" summary:"删除设备标签"`
	Ids    []int `p:"ids"`
}

type DeviceLabelDeleteRes

type DeviceLabelDeleteRes struct {
}

type DeviceLabelEditReq

type DeviceLabelEditReq struct {
	g.Meta `path:"/deviceLabel/edit" tags:"设备标签" method:"put" summary:"修改设备标签"`
	Id     int    `p:"id" v:"required#主键ID不能为空"`
	Name   string `p:"name" v:"required#标签内容不能为空"`
}

DeviceLabelEditReq 修改操作请求参数

type DeviceLabelEditRes

type DeviceLabelEditRes struct {
}

type DeviceLabelGetReq

type DeviceLabelGetReq struct {
	g.Meta `path:"/deviceLabel/get" tags:"设备标签" method:"get" summary:"获取设备标签数据"`
	Id     int `p:"id"`
}

type DeviceLabelGetRes

type DeviceLabelGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceLabel
}

type DeviceLabelSearchReq

type DeviceLabelSearchReq struct {
	g.Meta    `path:"/deviceLabel/list" tags:"设备标签" method:"get" summary:"设备标签列表"`
	Name      string `p:"name"`      //标签内容
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

DeviceLabelSearchReq 分页请求参数

type DeviceLabelSearchRes

type DeviceLabelSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceLabel `json:"list"`
}

type DeviceStatusAddReq

type DeviceStatusAddReq struct {
	g.Meta             `path:"/deviceStatus/add" tags:"设备状态" method:"post" summary:"添加设备状态"`
	DeviceId           int  `p:"deviceId" v:"required#设备ID不能为空"`
	Status             int  `p:"status" v:"required#状态不能为空"`
	TimeOut            int  `p:"timeOut" v:"required#超时时间不能为空"`
	UpTime             int  `p:"upTime" `
	DownTime           int  `p:"downTime" `
	LastDataUpdateTime uint `p:"lastDataUpdateTime" v:"required#最新一次数据更新时间不能为空"`
}

DeviceStatusAddReq 添加操作请求参数

type DeviceStatusAddRes

type DeviceStatusAddRes struct {
}

type DeviceStatusDeleteReq

type DeviceStatusDeleteReq struct {
	g.Meta `path:"/deviceStatus/delete" tags:"设备状态" method:"delete" summary:"删除设备状态"`
	Ids    []int `p:"ids"`
}

type DeviceStatusDeleteRes

type DeviceStatusDeleteRes struct {
}

type DeviceStatusEditReq

type DeviceStatusEditReq struct {
	g.Meta             `path:"/deviceStatus/edit" tags:"设备状态" method:"put" summary:"修改设备状态"`
	Id                 int  `p:"id" v:"required#主键ID不能为空"`
	DeviceId           int  `p:"deviceId" v:"required#设备ID不能为空"`
	Status             int  `p:"status" v:"required#状态不能为空"`
	TimeOut            int  `p:"timeOut" v:"required#超时时间不能为空"`
	UpTime             int  `p:"upTime" `
	DownTime           int  `p:"downTime" `
	LastDataUpdateTime uint `p:"lastDataUpdateTime" v:"required#最新一次数据更新时间不能为空"`
}

DeviceStatusEditReq 修改操作请求参数

type DeviceStatusEditRes

type DeviceStatusEditRes struct {
}

type DeviceStatusGetReq

type DeviceStatusGetReq struct {
	g.Meta `path:"/deviceStatus/get" tags:"设备状态" method:"get" summary:"获取设备状态数据"`
	Id     int `p:"id"`
}

type DeviceStatusGetRes

type DeviceStatusGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.DeviceStatus
}

type DeviceStatusSearchReq

type DeviceStatusSearchReq struct {
	g.Meta             `path:"/deviceStatus/list" tags:"设备状态" method:"get" summary:"设备状态列表"`
	DeviceId           string `p:"deviceId"`           //设备ID
	Status             string `p:"status"`             //状态
	TimeOut            string `p:"timeOut"`            //超时时间
	UpTime             string `p:"upTime"`             //上线时间
	DownTime           string `p:"downTime"`           //离线时间
	LastDataUpdateTime string `p:"lastDataUpdateTime"` //最新一次数据更新时间
	BeginTime          string `p:"beginTime"`          //开始时间
	EndTime            string `p:"endTime"`            //结束时间
	commonApi.PageReq
}

DeviceStatusSearchReq 分页请求参数

type DeviceStatusSearchRes

type DeviceStatusSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.DeviceStatus `json:"list"`
}

type DeviceStatusStatusReq

type DeviceStatusStatusReq struct {
	g.Meta `path:"/deviceStatus/status" tags:"设备状态" method:"put" summary:"修改设备状态状态"`
	Id     int `p:"id" v:"required#主键ID不能为空"`
	Status int `p:"status" v:"required#状态不能为空"`
}

DeviceStatusStatusReq 设置用户状态参数

type DeviceStatusStatusRes

type DeviceStatusStatusRes struct {
}

Jump to

Keyboard shortcuts

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