123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-garden/pb/v1";
- message GardenInitDbRequest {
- int64 garden_id = 1;
- }
- message GardenInitDbReply{
- }
- message BuildingAddRequest {
- // 小区id
- int64 garden_id = 1;
- // 楼栋编号
- string building_number = 2;
- // 楼栋名
- string building_name = 3;
- // 楼栋建筑面积
- double building_area = 4;
- // 楼栋使用面积
- double building_used_area = 5;
- // 备注
- string comment = 6;
- }
- message BuildingAddReply {
- int64 id = 1;
- }
- message BuildingUpdateRequest {
- // id
- int64 id = 1;
- // 楼栋编号
- string building_number = 2;
- // 楼栋名
- string building_name = 3;
- // 楼栋建筑面积
- double building_area = 4;
- // 楼栋使用面积
- double building_used_area = 5;
- // 备注
- string comment = 6;
- int64 garden_id = 7;
- }
- message BuildingUpdateReply {
- BuildingUpdateRequest origin = 1;
- }
- message BuildingDelRequest {
- int64 id = 1;
- int64 garden_id = 2;
- }
- message BuildingDelReply {
- BuildingUpdateRequest origin = 1;
- }
- message BuildingListRequest {
- string building_number = 1;
- int64 page = 2;
- int64 page_size = 3;
- int64 garden_id = 4;
- }
- message BuildingItem {
- // id
- int64 id = 1;
- // 楼栋编号
- string building_number = 2;
- // 楼栋名
- string building_name = 3;
- // 楼栋建筑面积
- double building_area = 4;
- // 楼栋使用面积
- double building_used_area = 5;
- // 备注
- string comment = 6;
- int64 unit_count = 7;
- }
- message BuildingListReply {
- int64 total = 1;
- int64 page = 2;
- repeated BuildingItem list = 3;
- }
- message BuildingAddManagerRequest {
- int64 garden_id = 1;
- int64 manager_uid = 2;
- int64 building_id = 3;
- }
- message BuildingAddManagerReply {
- int64 id = 1;
- }
- message BuildingDelManagerRequest {
- int64 garden_id = 1;
- int64 id = 2;
- }
- message BuildingDelManagerReply {
- }
- message BuildingManagerListRequest {
- int64 garden_id = 1;
- int64 building_id = 2;
- int64 house_id = 3;
- }
- message BuildingManagerItem {
- int64 id = 1;
- int64 manager_uid = 2;
- // 姓名
- string name = 3;
- string phone = 4;
- // 账号
- string user_name = 5;
- string openim_id = 6;
- }
- message BuildingManagerListReply {
- repeated BuildingManagerItem list = 1;
- }
- message UnitAddRequest {
- int64 garden_id = 1;
- // 楼栋id
- int64 building_id = 2;
- // 单元编号
- int64 unit_number = 3;
- // 单元名
- string unit_name = 4;
- // 楼层数
- int64 unit_layers = 5;
- bool has_lift = 6;
- }
- message UnitAddReply {
- int64 id = 1;
- }
- message UnitUpdateRequest {
- int64 id = 1;
- //
- int64 garden_id = 2;
- // 单元编号
- int64 unit_number = 3;
- // 单元名
- string unit_name = 4;
- // 楼层数
- int64 unit_layers = 5;
- int64 building_id = 6;
- bool has_lift = 7;
- }
- message UnitUpdateReply {
- UnitUpdateRequest origin = 1;
- }
- message UnitDelRequest {
- int64 id = 1;
- int64 garden_id = 2;
- }
- message UnitDelReply {
- UnitUpdateRequest origin = 1;
- }
- message UnitListRequest {
- int64 unit_number = 1;
- int64 building_id = 2;
- int64 page = 3;
- int64 page_size = 4;
- int64 garden_id = 5;
- }
- message UnitItem {
- int64 id = 1;
- // 楼栋id
- int64 building_id = 2;
- // 单元编号
- int64 unit_number = 3;
- // 单元名
- string unit_name = 4;
- // 楼层数
- int64 unit_layers = 5;
- string building_name = 6;
- bool has_lift = 7;
- string building_number = 8;
- }
- message UnitListReply {
- int64 total = 1;
- int64 page = 2;
- repeated UnitItem list = 3;
- }
- message HouseAddRequest {
- int64 garden_id = 1;
- int64 building_id = 2;
- // 单元id
- int64 unit_id = 3;
- // 门牌号
- string house_number = 4;
- // 楼层
- int64 layer = 5;
- // 几室
- int64 room_count = 6;
- // 几厅
- int64 hall_count = 7;
- // 房屋类型 1 住宅 2 商铺 3 办公
- int64 house_type = 8;
- // 房屋建筑面积
- double house_area = 9;
- // 房屋使用面积
- double house_used_area = 10;
- }
- message HouseAddReply {
- int64 id = 1;
- }
- message HouseUpdateRequest {
- int64 id = 1;
- // 房屋使用面积
- double house_used_area = 2;
- int64 garden_id = 3;
- // 门牌号
- string house_number = 4;
- // 楼层
- int64 layer = 5;
- // 几室
- int64 room_count = 6;
- // 几厅
- int64 hall_count = 7;
- // 房屋类型 1 住宅 2 商铺 3 办公
- int64 house_type = 8;
- // 房屋建筑面积
- double house_area = 9;
- int64 unit_id = 10;
- }
- message HouseUpdateReply {
- HouseUpdateRequest origin = 1;
- }
- message HouseDelRequest {
- int64 id = 1;
- int64 garden_id = 2;
- }
- message HouseDelReply {
- HouseUpdateRequest origin = 1;
- }
- message HouseListRequest {
- string house_number = 1;
- int64 building_id = 2;
- int64 unit_id = 3;
- int32 house_type = 4;
- int64 page = 5;
- int64 page_size = 6;
- int64 garden_id = 7;
- int32 house_status = 8;
- int64 layer = 9;
- int64 house_id = 10;
- int64 uid = 11;
- bool house_rent = 12;
- }
- message HouseItem {
- int64 id = 1;
- int64 building_id = 2;
- // 单元id
- int64 unit_id = 3;
- // 门牌号
- string house_number = 4;
- // 楼层
- int64 layer = 5;
- // 几室
- int64 room_count = 6;
- // 几厅
- int64 hall_count = 7;
- // 房屋类型 1 住宅 2 商铺 3 办公
- int64 house_type = 8;
- // 房屋建筑面积
- double house_area = 9;
- // 房屋使用面积
- double house_used_area = 10;
- string house_name = 11;
- // 房屋状态 1 未入住 2 已入住 3 已出租
- int32 status = 12;
- bool has_lift = 13;
- string building_number = 14;
- int64 unit_number = 15;
- }
- message HouseListReply {
- int64 total = 1;
- int64 page = 2;
- repeated HouseItem list = 3;
- }
- message BatchBuildingItem {
- // 备注
- string comment = 1;
- // 楼栋编号
- string building_number = 2;
- // 楼栋名
- string building_name = 3;
- // 楼栋建筑面积
- double building_area = 4;
- // 楼栋使用面积
- double building_used_area = 5;
- }
- message BatchUnitItem {
- // 是否有电梯
- bool has_lift = 1;
- // 楼栋编号
- string building_number = 2;
- // 单元编号
- int64 unit_number = 3;
- // 单元名
- string unit_name = 4;
- // 楼层数
- int64 unit_layers = 5;
- }
- message BatchHouseItem {
- // 房屋使用面积
- double house_used_area = 1;
- string building_number = 2;
- // 单元编号
- int64 unit_number = 3;
- // 门牌号
- string house_number = 4;
- // 楼层
- int64 layer = 5;
- // 几室
- int64 room_count = 6;
- // 几厅
- int64 hall_count = 7;
- // 房屋类型 1 住宅 2 商铺 3 办公
- int64 house_type = 8;
- // 房屋建筑面积
- double house_area = 9;
- }
- message BatchHouseAddRequest {
- int64 garden_id = 1;
- repeated BatchBuildingItem buildings = 2;
- repeated BatchUnitItem units = 3;
- repeated BatchHouseItem houses = 4;
- }
- message BatchHouseAddReply {
- }
- message HouseInfoRequest {
- int64 house_id = 1;
- int64 garden_id = 2;
- }
- message HouseInfoReply {
- int64 garden_id = 1;
- string building_number = 2;
- int64 unit_number = 3;
- string house_number = 4;
- string garden_name = 5;
- string province = 6;
- string city = 7;
- string area = 8;
- string street = 9;
- string comittee = 10;
- int64 layer = 11;
- double house_area = 12;
- double house_used_area = 13;
- int64 room_count = 14;
- // 几厅
- int64 hall_count = 15;
- // 房屋类型 1 住宅 2 商铺 3 办公
- int64 house_type = 16;
- bool garden_in_use = 17;
- string province_code = 18;
- string city_code = 19;
- string area_code = 20;
- string street_code = 21;
- string comittee_code = 22;
- int32 house_status = 23;
- int64 building_id = 24;
- int64 unit_id = 25;
- bool has_lift = 26;
- }
- message HouseholdUserData {
- int64 id = 1;
- string phone = 2;
- string nick_name = 3;
- string real_name = 4;
- string id_number = 5;
- int32 id_type = 6;
- string open_id = 7;
- string union_id = 8;
- string avatar = 9;
- string public_open_id = 10;
- }
- message HouseholdSyncRequest {
- int64 garden_id = 1;
- string open_id = 2;
- int64 uid = 3;
- int64 created_at = 4;
- int64 updated_at = 5;
- int32 user_type = 6;
- int64 house_id = 7;
- string building_number = 8;
- int64 unit_number = 9;
- string house_number = 10;
- int64 building_id = 11;
- int64 unit_id = 12;
- string appendix = 13;
- string feedback = 14;
- string phone = 15;
- string name = 16;
- int32 id_type = 17;
- string id_number = 18;
- int64 approved_at = 19;
- int64 id = 20;
- string public_open_id = 21;
- HouseholdUserData household_user = 22;
- }
- message HouseholdSyncReply {
- }
- message HouseholdChangeRequest {
- repeated int64 garden_ids = 1;
- int64 uid = 2;
- string phone = 15;
- string name = 16;
- int32 id_type = 17;
- string id_number = 18;
- string public_open_id = 19;
- string nick_name = 20;
- }
- message HouseholdChangeReply {
- }
- message HouseIdsRequest {
- string house_number = 1;
- int64 building_id = 2;
- int64 unit_id = 3;
- int32 house_type = 4;
- int64 garden_id = 5;
- int32 house_status = 6;
- int64 layer = 7;
- repeated int64 house_ids = 8;
- }
- message HouseIdsReply {
- repeated int64 list = 1;
- }
- message GardenHouseholdUnitIdsRequest {
- int64 garden_id = 1;
- repeated int64 uids = 2;
- }
- message GardenHouseholdUnitId {
- int64 uid = 1;
- string house_names = 2;
- repeated int64 unit_ids = 3;
- int32 user_type = 4;
- }
- message GardenHouseholdUnitIdsReply {
- repeated GardenHouseholdUnitId list = 1;
- }
- message GardenHouseholdUidsFromUnitIdRequest {
- int64 garden_id = 1;
- repeated int64 unit_ids = 2;
- }
- message GardenHouseholdUidsFromUnitIdReply {
- repeated int64 uids = 3;
- }
- message GardenHouseholdListRequest {
- int64 garden_id = 1;
- int64 uid = 2;
- int64 page = 3;
- int64 page_size = 4;
- int32 user_type = 5;
- string name = 6;
- }
- message GardenHouseholdItem {
- int64 id = 1;
- // 1业主 2家人 3租客
- int32 user_type = 2;
- string phone = 3;
- string name = 4;
- repeated string appendix = 5;
- // 1 身份证 2 护照
- int32 id_type = 6;
- // 证件号
- string id_number = 7;
- // 房号
- string house_name = 8;
- int32 approve_status = 9;
- string garden_name = 10;
- int64 uid = 11;
- int64 house_id = 12;
- int64 unit_id = 13;
- }
- message GardenHouseholdListReply {
- int64 page = 1;
- int64 total = 2;
- repeated GardenHouseholdItem list = 3;
- }
- message GardenHouseIsInRequest {
- int64 garden_id = 1;
- }
- message GardenHouseIsInReply {
- bool in = 1;
- }
- message GardenHouseholdUserListRequest {
- int64 garden_id = 1;
- int64 page = 2;
- int64 page_size = 3;
- string name = 4;
- string phone = 5;
- string id_number = 6;
- int32 user_type = 7;
- repeated int64 uids = 8;
- int64 house_id = 9;
- repeated int64 exclude_uids = 10;
- int64 building_id = 11;
- int64 unit_id = 12;
- }
- message GardenHouseholdUserItem {
- int64 id = 1;
- // 1业主 2家人 3租客
- int32 user_type = 2;
- string phone = 3;
- string name = 4;
- // 1 身份证 2 护照
- int32 id_type = 5;
- // 证件号
- string id_number = 6;
- string garden_name = 7;
- string house_name = 8;
- }
- message GardenHouseholdUserListReply {
- int64 total = 1;
- int64 page = 2;
- repeated GardenHouseholdUserItem list = 3;
- }
- message SystemMsgAddRequest {
- int64 garden_id = 1;
- string content = 2;
- string code = 3;
- int64 uid = 4;
- }
- message SystemMsgAddReply {
- }
- message SystemMsgListRequest {
- int64 garden_id = 1;
- int64 page = 2;
- int64 page_size = 3;
- int64 uid = 4;
- }
- message SystemMsgItem {
- int64 id = 1;
- string content = 2;
- string created_at = 3;
- string code = 5;
- }
- message SystemMsgListReply {
- int64 total = 1;
- int64 page = 2;
- repeated SystemMsgItem list = 3;
- }
- message SystemMsgReadedRequest {
- int64 garden_id = 1;
- repeated int64 id = 2;
- }
- message SystemMsgReadedReply {
- }
- message GardenHouseRentChangeFieldRequest {
- int64 garden_id = 1;
- int64 house_id = 2;
- int64 unit_id = 3;
- int64 room_count = 4;
- int64 hall_count = 5;
- bool has_lift = 6;
- double house_area = 7;
- int64 layer = 8;
- string garden_name = 9;
- double lnt = 10;
- double lat = 11;
- }
- message GardenHouseRentChangeFieldReply {
- }
- message StatisticRequest {
- int64 garden_id = 1;
- }
- message StatisticWaitFinish {
- string type = 1;
- int64 wait_count = 2;
- int64 finish_count = 3;
- }
- message StatisticReply {
- // 房屋数
- int64 house_count = 1;
- // 住户数
- int64 user_count = 2;
- // 车位数
- int64 space_count = 3;
- // 车辆数
- int64 vehicle_count = 4;
- repeated StatisticWaitFinish list = 5;
- }
- message ObjStatisticSetRequest {
- int64 garden_id = 1;
- int32 obj_type = 2;
- // 为负数表示减少
- int64 total_increase = 3;
- }
- message ObjStatisticSetReply {
- }
- message RepairStatisticSetRequest {
- int64 garden_id = 1;
- int32 handle_type = 2;
- // 为负数表示减少
- int64 total_increase = 3;
- int64 finish_increase = 4;
- }
- message RepairStatisticSetReply {
- }
- message GardenHouseholdDelHouseRequest {
- int64 house_id = 1;
- int64 household_uid = 2;
- int64 garden_id = 3;
- }
- message GardenHouseholdDelHouseReply {
- }
|