123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- package v1
- import (
- "property-applete-gateway/param/base"
- "property-applete-gateway/pb/v1"
- )
- type BuildingAddBody struct {
- // 楼栋编号
- BuildingNumber string `form:"building_number" json:"building_number"`
- // 楼栋名
- BuildingName string `form:"building_name" json:"building_name"`
- // 楼栋建筑面积
- BuildingArea float64 `form:"building_area" json:"building_area"`
- // 楼栋使用面积
- BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
- // 备注
- Comment string `form:"=comment" json:"comment"`
- }
- type BuildingAddRequest struct {
- base.Header
- BuildingAddBody
- }
- type BuildingAddResponse struct {
- base.Result
- Data v1.BuildingAddReply `json:"data"`
- }
- type BuildingUpdateBody struct {
- Id int64 `form:"id"`
- // 楼栋编号
- BuildingNumber string `form:"building_number" json:"building_number"`
- // 楼栋名
- BuildingName string `form:"building_name" json:"building_name"`
- // 楼栋建筑面积
- BuildingArea float64 `form:"building_area" json:"building_area"`
- // 楼栋使用面积
- BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
- // 备注
- Comment string `form:"=comment" json:"comment"`
- }
- type BuildingUpdateRequest struct {
- base.Header
- BuildingUpdateBody
- }
- type BuildingUpdateResponse struct {
- base.Result
- }
- type BuildingDelQuery struct {
- Id int64 `form:"id"`
- }
- type BuildingDelRequest struct {
- base.Header
- BuildingDelQuery
- }
- type BuildingDelResponse struct {
- base.Result
- }
- type BuildingListQuery struct {
- Page int64 `form:"page"`
- PageSize int64 `form:"page_size"`
- BuildingNumber string `form:"building_number" json:"building_number"`
- }
- type BuildingListRequest struct {
- base.Header
- BuildingListQuery
- }
- type BuildingListResponse struct {
- base.Result
- Data v1.BuildingListReply `json:"data"`
- }
- type UnitAddBody struct {
- BuildingId int64 `form:"building_id" json:"building_id"`
- // 单元编号
- UnitNumber int64 `form:"unit_number" json:"unit_number"`
- // 单元名
- UnitName string `form:"unit_name" json:"unit_name"`
- // 楼层数
- UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
- // 是否有电梯
- HasLift bool `form:"has_lift" json:"has_lift"`
- }
- type UnitAddRequest struct {
- base.Header
- UnitAddBody
- }
- type UnitAddResponse struct {
- base.Result
- Data v1.UnitAddReply `json:"data"`
- }
- type UnitUpdateBody struct {
- Id int64 `form:"id"`
- BuildingId int64 `form:"building_id" json:"building_id"`
- // 单元编号
- UnitNumber int64 `form:"unit_number" json:"unit_number"`
- // 单元名
- UnitName string `form:"unit_name" json:"unit_name"`
- // 楼层数
- UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
- // 是否有电梯
- HasLift bool `form:"has_lift" json:"has_lift"`
- }
- type UnitUpdateRequest struct {
- base.Header
- UnitUpdateBody
- }
- type UnitUpdateResponse struct {
- base.Result
- }
- type UnitDelQuery struct {
- Id int64 `form:"id"`
- }
- type UnitDelRequest struct {
- base.Header
- UnitDelQuery
- }
- type UnitDelResponse struct {
- base.Result
- }
- type UnitListQuery struct {
- Page int64 `form:"page"`
- PageSize int64 `form:"page_size"`
- UnitNumber int64 `form:"unit_number" json:"unit_number"`
- BuildingId int64 `form:"building_id" json:"building_id"`
- }
- type UnitListRequest struct {
- base.Header
- UnitListQuery
- }
- type UnitListResponse struct {
- base.Result
- Data v1.UnitListReply `json:"data"`
- }
- type HouseAddBody struct {
- // 单元id
- UnitId int64 `form:"unit_id" json:"unit_id"`
- // 门牌号
- HouseNumber string `form:"house_number" json:"house_number"`
- // 楼层
- Layer int64 `form:"layer" json:"layer"`
- // 几室
- RoomCount int64 `form:"room_count" json:"room_count"`
- // 几厅
- HallCount int64 `form:"hall_count" json:"hall_count"`
- // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
- HouseType int64 `form:"house_type" json:"house_type"`
- // 房屋建筑面积
- HouseArea float64 `form:"house_area" json:"house_area"`
- // 房屋使用面积
- HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
- }
- type HouseAddRequest struct {
- base.Header
- HouseAddBody
- }
- type HouseAddResponse struct {
- base.Result
- Data v1.HouseAddReply `json:"data"`
- }
- type HouseUpdateBody struct {
- Id int64 `form:"id"`
- // 单元id
- UnitId int64 `form:"unit_id" json:"unit_id"`
- // 门牌号
- HouseNumber string `form:"house_number" json:"house_number"`
- // 楼层
- Layer int64 `form:"layer" json:"layer"`
- // 几室
- RoomCount int64 `form:"room_count" json:"room_count"`
- // 几厅
- HallCount int64 `form:"hall_count" json:"hall_count"`
- // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
- HouseType int64 `form:"house_type" json:"house_type"`
- // 房屋建筑面积
- HouseArea float64 `form:"house_area" json:"house_area"`
- // 房屋使用面积
- HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
- }
- type HouseUpdateRequest struct {
- base.Header
- HouseUpdateBody
- }
- type HouseUpdateResponse struct {
- base.Result
- }
- type HouseDelQuery struct {
- Id int64 `form:"id"`
- }
- type HouseDelRequest struct {
- base.Header
- HouseDelQuery
- }
- type HouseDelResponse struct {
- base.Result
- }
- type HouseListQuery struct {
- Page int64 `form:"page"`
- PageSize int64 `form:"page_size"`
- HouseNumber string `form:"house_number" json:"house_number"`
- BuildingId int64 `form:"building_id" json:"building_id"`
- UnitId int64 `form:"unit_id" json:"unit_id"`
- HouseType int32 `form:"house_type" json:"house_type"`
- HouseholdUid int64 `form:"household_uid" json:"household_uid"`
- HouseRent bool `form:"house_rent" json:"house_rent"`
- }
- type HouseListRequest struct {
- base.Header
- HouseListQuery
- }
- type HouseListResponse struct {
- base.Result
- Data v1.HouseListReply `json:"data"`
- }
- type BatchHouseAddBody struct {
- Buildings []v1.BatchBuildingItem `form:"buildings"`
- Units []v1.BatchUnitItem `form:"units"`
- Houses []v1.BatchHouseItem `form:"houses"`
- }
- type BatchHouseAddRequest struct {
- base.Header
- BatchHouseAddBody
- }
- type BatchHouseAddResponse struct {
- base.Result
- }
- type GardenInfoRequest struct {
- base.Header
- }
- type GardenInfoResponse struct {
- base.Result
- Data v1.GardenItem `json:"data"`
- }
- type GardenUpdateBody struct {
- // 省
- //Province string `form:"province" json:"province"`
- //ProvinceCode string `form:"province_code" json:"province_code"`
- // 市
- //City string `form:"city" json:"city"`
- //CityCode string `form:"city_code" json:"city_code"`
- // 区
- //Area string `form:"area" json:"area"`
- //AreaCode string `form:"area_code" json:"area_code"`
- // 街道
- //Street string `form:"street" json:"street"`
- //StreetCode string `form:"street_code" json:"street_code"`
- // 社区
- //Committee string `form:"committee" json:"committee"`
- //CommitteeCode string `form:"committee_code" json:"committee_code"`
- // 小区名字
- //GardenName string `form:"garden_name" json:"garden_name"`
- // 小区地址
- GardenAddr string `form:"garden_addr" json:"garden_addr"`
- // 物业联系人
- PropertyPerson string `form:"property_person" json:"property_person"`
- // 物业联系人手机号
- PropertyPhone string `form:"property_phone" json:"property_phone"`
- // 小区形象图片
- GardenPic string `form:"garden_pic" json:"garden_pic"`
- // 小区描述
- GardenDesc string `form:"garden_desc" json:"garden_desc"`
- // 经度
- Lnt float64 `form:"lnt" json:"lnt"`
- // 纬度
- Lat float64 `form:"lat" json:"lat"`
- }
- type GardenUpdateRequest struct {
- base.Header
- GardenUpdateBody
- }
- type GardenUpdateResponse struct {
- base.Result
- }
- type GardenKeyInfoChangeBody struct {
- // 省
- Province string `form:"province" json:"province"`
- ProvinceCode string `form:"province_code" json:"province_code"`
- // 市
- City string `form:"city" json:"city"`
- CityCode string `form:"city_code" json:"city_code"`
- // 区
- Area string `form:"area" json:"area"`
- AreaCode string `form:"area_code" json:"area_code"`
- // 街道
- Street string `form:"street" json:"street"`
- StreetCode string `form:"street_code" json:"street_code"`
- // 社区
- Committee string `form:"committee" json:"committee"`
- CommitteeCode string `form:"committee_code" json:"committee_code"`
- // 小区名字
- GardenName string `form:"garden_name" json:"garden_name"`
- }
- type GardenKeyInfoChangeRequest struct {
- base.Header
- GardenKeyInfoChangeBody
- }
- type GardenKeyInfoChangeResponse struct {
- base.Result
- }
- type GardenKeyInfoChangeListQuery struct {
- Page int64 `form:"page"`
- PageSize int64 `form:"page_size" json:"page_size"`
- Status int32 `form:"status" json:"status"`
- }
- type GardenKeyInfoChangeListRequest struct {
- base.Header
- GardenKeyInfoChangeListQuery
- }
- type GardenKeyInfoChangeListResponse struct {
- base.Result
- Data v1.GardenKeyInfoChangeListReply `json:"data"`
- }
|