123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- package v1
- import (
- "property-household-gateway/param/base"
- "property-household-gateway/pb/v1"
- )
- type GateListQuery struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- }
- type GateListRequest struct {
- base.Header
- GateListQuery
- }
- type GateListResponse struct {
- base.Result
- Data v1.GateUnitDeviceReply `json:"data"`
- }
- type GateUserPicAddBody struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- PicUrl string `form:"pic_url" json:"pic_url"`
- }
- type GateUserPicAddRequest struct {
- base.Header
- GateUserPicAddBody
- }
- type GateUserPicAddResponse struct {
- base.Result
- }
- type GateUserPicInfoQuery struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- }
- type GateUserPicInfoRequest struct {
- base.Header
- GateUserPicInfoQuery
- }
- type GateUserPicInfoResponse struct {
- base.Result
- Data v1.GateUserPicInfoReply `json:"data"`
- }
- type GateHasFaceQuery struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- }
- type GateHasFaceRequest struct {
- base.Header
- GateHasFaceQuery
- }
- type GateHasFaceData struct {
- HasFaceDevice bool `json:"has_face_device"`
- }
- type GateHasFaceResponse struct {
- base.Result
- Data GateHasFaceData `json:"data"`
- }
- type GateQcodeQuery struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- //DeviceId string `form:"device_id" json:"device_id"`
- }
- type GateQcodeRequest struct {
- base.Header
- GateQcodeQuery
- }
- type GateQcodeResponse struct {
- base.Result
- Data v1.GateQcodeReply `json:"data"`
- }
- type GateQcodeVisitorQuery struct {
- GardenId int64 `form:"garden_id" json:"garden_id"`
- DeviceId int64 `form:"device_id" json:"device_id"`
- Start int64 `form:"start" json:"start"`
- End int64 `form:"end" json:"end"`
- VisitorPhone string `form:"visitor_phone" json:"visitor_phone"`
- VisitorName string `form:"visitor_name" json:"visitor_name"`
- Comment string `form:"comment" json:"comment"`
- }
- type GateQcodeVisitorRequest struct {
- base.Header
- GateQcodeVisitorQuery
- }
- type GateQcodeVisitorResponse struct {
- base.Result
- Data v1.GateQcodeReply `json:"data"`
- }
- type GateVisitorListQuery struct {
- Page int64 `form:"page" json:"page"`
- PageSize int64 `form:"page_size" json:"page_size"`
- GateId int64 `form:"gate_id" json:"gate_id"`
- //User string `form:"user"`
- //Visitor string `form:"visitor"`
- //Start int64 `form:"start"`
- //End int64 `form:"end"`
- }
- type GateVisitorListRequest struct {
- base.Header
- GateVisitorListQuery
- }
- type GateVisitorListResponse struct {
- base.Result
- Data v1.GateVisitorListReply `json:"data"`
- }
- type GateVisitorDelQuery struct {
- Id int64 `form:"id" json:"id"`
- }
- type GateVisitorDelRequest struct {
- base.Header
- GateVisitorDelQuery
- }
- type GateVisitorDelResponse struct {
- base.Result
- }
- type GateVisitorPageQuery struct {
- Id int64 `form:"id"`
- }
- type GateVisitorPageRequest struct {
- GateVisitorPageQuery
- }
- type GateVisitorPageResponse struct {
- base.Result
- Data v1.GateVisitorListItem `json:"data"`
- }
|