12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- package request
- import "server/dao"
- type PageInfo struct {
- Page int `json:"page" form:"page"`
- PageSize int `json:"pageSize" form:"pageSize"`
- Keyword string `json:"keyword" form:"keyword"`
- }
- type GetById struct {
- ID int `json:"id" form:"id"`
- }
- func (r *GetById) Uint() uint {
- return uint(r.ID)
- }
- type IdsReq struct {
- Ids []int `json:"ids" form:"ids"`
- }
- type GetAuthorityId struct {
- AuthorityId uint `json:"authorityId" form:"authorityId"`
- }
- type DeviceSearch struct {
- PageInfo PageInfo `json:"pageInfo" form:"pageInfo"`
- Sn string `json:"sn" form:"sn"`
- Name string `json:"name" form:"name"`
- Genre int `json:"genre" form:"genre"`
- }
- type TunnelSearch struct {
- PageInfo PageInfo `json:"pageInfo" form:"pageInfo"`
- Name string `json:"name" form:"name"`
- UserId int `json:"userId" form:"userId"`
- RegionId int `json:"regionId" form:"regionId"`
- }
- type RegionTunnelsId struct {
- TunnelIds []int `json:"tunnelIds" form:"tunnelIds"`
- RegionId int `json:"regionId" form:"regionId"`
- }
- type EditTactics struct {
- Sn string `json:"sn" form:"sn"`
- Tactics int `json:"tactics" form:"tactics"`
- }
- type UserTunnels struct {
- User dao.SysUser `json:"user" form:"user"`
- TunnelIds []int `json:"tunnelIds" form:"tunnelIds"`
- }
- type SwitchTunnel struct {
- TunnelSn string `json:"tunnelSn" form:"tunnelSn"`
- RadarId int `json:"radarId"`
- RelayId int `json:"relayId"`
- State bool `json:"state"`
- }
- type TunnelLamp struct {
- Id int `json:"id" form:"id"`
- TunnelSn string `json:"tunnelSn" form:"tunnelSn"`
- LampValue1 int `json:"lampValue1"`
- LampValue2 int `json:"lampValue2"`
- }
- type Empty struct{}
|