123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- // Copyright 2019 github.com. All rights reserved.
- // Use of this source code is governed by github.com.
- package v1
- import (
- "smart-site-management-gateway/param/base"
- "smart-site-management-gateway/pb/v1"
- )
- type ProjectInfoItem struct {
- // 字段名称
- Name string `form:"name" json:"name"`
- // 字段值
- Value string `form:"value" json:"value"`
- }
- type ProjectChangeBody struct {
- List []ProjectInfoItem `form:"list" json:"list"`
- }
- type ProjectChangeRequest struct {
- base.Header
- ProjectChangeBody
- }
- type ProjectChangeResponse struct {
- base.Result
- }
- type ProjectInfoForChangeRequest struct {
- base.Header
- }
- type ProjectInfoForChangeResponse struct {
- base.Result
- Data v1.ProjectInfoForChangeReply `json:"data"`
- }
- type ProjectChangeInfoListQuery struct {
- Page int32 `form:"page"`
- }
- type ProjectChangeInfoListRequest struct {
- base.Header
- ProjectChangeInfoListQuery
- }
- type ProjectChangeInfoListResponse struct {
- base.Result
- Data v1.ProjectChangeInfoListReply `json:"data"`
- }
- type DeviceApproveBody struct {
- // 设备id
- Id int64 `form:"id"`
- // true 通过 false 不通过
- Status bool `form:"status"`
- // 审批回复
- Feedback string `form:"feedback"`
- }
- type DeviceApproveRequest struct {
- base.Header
- DeviceApproveBody
- }
- type DeviceApproveResponse struct {
- base.Result
- }
- type DeviceListQuery struct {
- // 审核状态 0 待审核 1 通过 2 未通过
- Status int `form:"status"`
- Filter string `form:"filter"`
- Page int32 `form:"page"`
- PageSize int64 `form:"page_size"`
- }
- type DeviceListRequest struct {
- base.Header
- DeviceListQuery
- }
- type DeviceListResponse struct {
- base.Result
- Data v1.DeviceListReply `json:"data"`
- }
- type ProjectInfoRequest struct {
- base.Header
- }
- type ProjectInfoResponse struct {
- base.Result
- Data v1.ProjectInfoReply `json:"data"`
- }
- type ProjectDeviceStatisticsRequest struct {
- base.Header
- }
- type ProjectDeviceStatisticsResponse struct {
- base.Result
- Data v1.ProjectDeviceStatisticsReply `json:"data"`
- }
- type ProjectProgressRequest struct {
- base.Header
- }
- type ProjectProgressResponse struct {
- base.Result
- Data v1.ProjectProgressReply `json:"data"`
- }
- type ProjectProgressAddBody struct {
- Name string `form:"name"`
- ExpectStartTime int64 `form:"expect_start_time"`
- ExpectEndTime int64 `form:"expect_end_time"`
- }
- type ProjectProgressAddRequest struct {
- base.Header
- ProjectProgressAddBody
- }
- type ProjectProgressAddResponse struct {
- base.Result
- Data v1.ProjectProgressAddReply `json:"data"`
- }
- type ProjectProgressDelPath struct {
- Id int64 `uri:"id"`
- }
- type ProjectProgressDelRequest struct {
- base.Header
- ProjectProgressDelPath
- }
- type ProjectProgressDelResponse struct {
- base.Result
- }
- type ProjectProgressSetBody struct {
- Id int64 `form:"id"`
- Image string `form:"image"`
- RealityStartTime int64 `form:"reality_start_time" json:"reality_start_time"`
- RealityEndTime int64 `form:"reality_end_time" json:"reality_end_time"`
- }
- type ProjectProgressSetRequest struct {
- base.Header
- ProjectProgressSetBody
- }
- type ProjectProgressSetResponse struct {
- base.Result
- }
- type DeviceVideoChannelQuery struct {
- Sn string `form:"sn"`
- }
- type DeviceVideoChannelRequest struct {
- base.Header
- DeviceVideoChannelQuery
- }
- type DeviceVideoChannelResponse struct {
- base.Result
- Data v1.DeviceVideoChannelReply `json:"data"`
- }
- type ProjectSetPicBody struct {
- // 0 平面图 1 效果图
- PicType int32 `form:"pic_type"`
- PicUrl []string `form:"pic_url"`
- }
- type ProjectSetPicRequest struct {
- base.Header
- ProjectSetPicBody
- }
- type ProjectSetPicResponse struct {
- base.Result
- }
- type ProjectUpdateBody struct {
- Name string `form:"name"`
- ShortName string `form:"short_name"`
- Location string `form:"location"`
- }
- type ProjectUpdateRequest struct {
- base.Header
- ProjectUpdateBody
- }
- type ProjectUpdateResponse struct {
- base.Result
- }
|