123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-garden/pb/v1";
- message LoginRequest {
- string username = 1;
- string password = 2;
- }
- message LoginReply {
- int64 uid = 1;
- }
- message UserAddRequest {
- string user_name = 1;
- string password = 2;
- string email = 3;
- string phone = 4;
- int64 group_id = 5;
- bool enable = 6;
- int64 garden_id = 7;
- int64 cid = 8;
- string garden_name = 9;
- }
- message UserAddReply {
- int64 id = 1;
- }
- message UserUpdateRequest {
- string user_name = 1;
- string password = 2;
- string email = 3;
- string phone = 4;
- bool enable = 5;
- int64 id = 6;
- int64 garden_id = 7;
- int64 cid = 8;
- string garden_name = 9;
- int64 group_id = 10;
- }
- message UserUpdateReply {
- }
- message UserDelRequest {
- int64 id = 1;
- }
- message UserDelReply {
- }
- message GroupAddRequest {
- int64 garden_id = 1;
- int64 cid = 2;
- repeated int64 permission_codes = 3;
- bool is_super = 4;
- }
- message GroupAddReply {
- int64 id = 1;
- }
- message UserListRequest {
- int64 cid = 1;
- int64 garden_id = 2;
- int64 page = 3;
- int64 page_size = 4;
- string garden_name = 5;
- string user_name = 6;
- bool by_company = 7;
- int64 group_id = 8;
- string phone = 9;
- repeated int64 ids = 10;
- }
- message UserItem {
- string user_name = 1;
- string password = 2;
- string email = 3;
- string phone = 4;
- bool super = 5;
- bool enable = 6;
- int64 id = 7;
- int64 garden_id = 8;
- int64 cid = 9;
- string garden_name = 10;
- string created_at = 11;
- int64 group_id = 12;
- string group_name = 13;
- string department_name = 14;
- string real_name = 15;
- int32 base_permission = 16;
- string openim_id = 17;
- }
- message UserListReply {
- int64 total = 1;
- int64 page = 2;
- repeated UserItem list = 3;
- }
- message SuperGroupRequest {
- int64 cid = 1;
- int64 garden_id = 2;
- }
- message SuperGroupReply {
- int64 id = 1;
- }
- message UserGardenChangeRequest {
- int64 garden_id = 1;
- string garden_name = 2;
- }
- message UserGardenChangeReply {
- }
- message GardenInfosRequest {
- repeated int64 ids = 1;
- }
- message GardenItem {
- // 物业公司id
- int64 cid = 1;
- // 省
- string province = 2;
- string province_code = 3;
- // 市
- string city = 4;
- string city_code = 5;
- // 区
- string area = 6;
- string area_code = 7;
- // 街道
- string street = 8;
- string street_code = 9;
- // 社区
- string committee = 10;
- string committee_code = 11;
- // 小区名字
- string garden_name = 12;
- // 小区地址
- string garden_addr = 13;
- // 物业联系人
- string property_person = 14;
- // 物业联系人手机号
- string property_phone = 15;
- int64 id = 16;
- string garden_pic = 17;
- string garden_desc = 18;
- bool in_use = 19;
- // 经度
- double lnt = 20;
- // 纬度
- double lat = 21;
- repeated string appendix = 22;
- int32 status = 23;
- string feedback = 24;
- int32 pay_mode = 25;
- string mch_id = 26;
- int64 house_count_limit = 27;
- int64 house_count = 28;
- }
- message GardenInfosReply {
- repeated GardenItem list = 1;
- }
- message GardenHouseCountChangeRequest {
- int64 garden_id = 1;
- int64 count = 2;
- }
- message GardenHouseCountChangeReply {
- }
- message GardenHouseCountLimitRequest {
- int64 garden_id = 1;
- }
- message GardenHouseCountLimitReply {
- int64 house_count = 1;
- int64 house_count_limit = 2;
- }
- message GardenRentSellCountRequest {
- int64 garden_id = 1;
- int64 rent_increase = 2;
- int64 sell_increase = 3;
- }
- message GardenRentSellCountReply {
- }
- message MsgPackageOrderListRequest {
- int64 garden_id = 1;
- bool management = 2;
- int64 page = 3;
- int64 page_size = 4;
- bool available = 5;
- int64 status = 6;
- }
- message MsgPackageOrderItem {
- int64 order_id = 1;
- string name = 2;
- string comment = 3;
- // 套餐短信条数
- int64 msg_count = 4;
- // 订单套餐短信总条数
- int64 msg_total_count = 5;
- // 订单套餐短信剩余条数
- int64 msg_available_count = 6;
- int64 package_id = 7;
- // 订单包含的套餐个数
- int64 package_count = 8;
- int64 created_at = 9;
- // 套餐单价
- int64 price = 10;
- // 订单总价
- int64 amount = 11;
- // 1 待审核 2 通过 3 未通过
- int32 status = 12;
- string garden_name = 13;
- int64 garden_id = 14;
- string feedback = 15;
- }
- message MsgPackageOrderListReply{
- int64 page = 1;
- int64 total = 2;
- repeated MsgPackageOrderItem list = 3;
- }
- message MsgPackageOrderDecreaseRequest {
- int64 order_id = 1;
- int64 garden_id = 2;
- int64 count = 3;
- }
- message MsgPackageOrderDecreaseReply {
- }
|