package request // PageInfo Paging common input parameter structure type PageInfo struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"pageSize" form:"pageSize"` // 每页大小 Keyword string `json:"keyword" form:"keyword"` //关键字1 Shunt string `json:"shunt" form:"shunt"` //关键字2 } // GetById Find by id structure type GetById struct { ID int `json:"id" form:"id"` // 主键ID } type GetBySn struct { Sn string `json:"sn" form:"sn"` // sn } func (r *GetById) Uint() uint { return uint(r.ID) } type IdsReq struct { Ids []int `json:"ids" form:"ids"` } type DeviceStatus struct { Status int `json:"status"` //在线状态 1 在线 0 离线 PlayStatus int `json:"playStatus"` // 播放状态 1 正常 0 异常 DisplayStatus int `json:"displayStatus"` // 显示模板状态 1 正常 0 异常 SourceStatus int `json:"sourceStatus"` // 素材状态 1 正常 0 异常 } // GetAuthorityId Get role by id structure type GetAuthorityId struct { AuthorityId uint `json:"authorityId" form:"authorityId"` // 角色ID } type Empty struct{}