system.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-gateway/pb/v1";
  6. message GardenInfosRequest {
  7. repeated int64 ids = 1;
  8. }
  9. message GardenItem {
  10. // 物业公司id
  11. int64 cid = 1;
  12. // 省
  13. string province = 2;
  14. string province_code = 3;
  15. // 市
  16. string city = 4;
  17. string city_code = 5;
  18. // 区
  19. string area = 6;
  20. string area_code = 7;
  21. // 街道
  22. string street = 8;
  23. string street_code = 9;
  24. // 社区
  25. string committee = 10;
  26. string committee_code = 11;
  27. // 小区名字
  28. string garden_name = 12;
  29. // 小区地址
  30. string garden_addr = 13;
  31. // 物业联系人
  32. string property_person = 14;
  33. // 物业联系人手机号
  34. string property_phone = 15;
  35. int64 id = 16;
  36. string garden_pic = 17;
  37. string garden_desc = 18;
  38. bool in_use = 19;
  39. // 经度
  40. double lnt = 20;
  41. // 纬度
  42. double lat = 21;
  43. repeated string appendix = 22;
  44. int32 status = 23;
  45. string feedback = 24;
  46. int32 pay_mode = 25;
  47. string mch_id = 26;
  48. int64 house_count_limit = 27;
  49. int64 house_count = 28;
  50. bool enable = 29;
  51. int64 expire_at = 30;
  52. // 1塔楼 2 板楼 3 塔板结合 4 其他
  53. int32 building_type = 31;
  54. // 建成年份开始时间戳
  55. int64 building_start = 32;
  56. // 建成年份结束时间戳
  57. int64 building_end = 33;
  58. // 绿化率
  59. double green_percent = 34;
  60. // 容积率
  61. double area_percent = 35;
  62. // 车位配比
  63. string space_info = 36;
  64. // 占地面积
  65. double covered_area = 37;
  66. // 建筑面积
  67. double building_area = 38;
  68. // 小区图片
  69. repeated string garden_pics = 39;
  70. // 开发企业
  71. string building_company = 40;
  72. // 总户数
  73. int64 house_total = 41;
  74. // 固定车位数
  75. int64 space_total = 42;
  76. // 物业费开始,单位分
  77. int64 property_fee_start = 43;
  78. // 物业费结束, 单位分
  79. int64 property_fee_end = 44;
  80. // 水费类型多选 1 民用 2 商用
  81. repeated int32 water_type = 45;
  82. // 电费类型多选 1 民用 2 商用
  83. repeated int32 electric_type = 46;
  84. // 燃气费开始,单位分
  85. int64 gas_fee_start = 47;
  86. // 燃气费开始,单位分
  87. int64 gas_fee_end = 48;
  88. int64 avg_price = 49;
  89. }
  90. message GardenInfosReply {
  91. repeated GardenItem list = 1;
  92. }
  93. message GardenIdInfo {
  94. int64 garden_id = 1;
  95. string garden_name = 2;
  96. }
  97. message GardenIdsRequest {
  98. }
  99. message GardenIdsReply {
  100. repeated GardenIdInfo garden_ids = 1;
  101. }
  102. message GardenAddRequest {
  103. // 物业公司id
  104. int64 cid = 1;
  105. // 省
  106. string province = 2;
  107. string province_code = 3;
  108. // 市
  109. string city = 4;
  110. string city_code = 5;
  111. // 区
  112. string area = 6;
  113. string area_code = 7;
  114. // 街道
  115. string street = 8;
  116. string street_code = 9;
  117. // 社区
  118. string committee = 10;
  119. string committee_code = 11;
  120. // 小区名字
  121. string garden_name = 12;
  122. // 小区地址
  123. string garden_addr = 13;
  124. // 物业联系人
  125. string property_person = 14;
  126. // 物业联系人手机号
  127. string property_phone = 15;
  128. // 免费小区个数
  129. int32 free_garden_count = 16;
  130. string garden_pic = 17;
  131. string garden_desc = 18;
  132. // 经度
  133. double lnt = 19;
  134. // 纬度
  135. double lat = 20;
  136. repeated string appendix = 21;
  137. int64 order_id = 22;
  138. // 1塔楼 2 板楼 3 塔板结合 4 其他
  139. int32 building_type = 31;
  140. // 建成年份开始时间戳
  141. int64 building_start = 32;
  142. // 建成年份结束时间戳
  143. int64 building_end = 33;
  144. // 绿化率
  145. double green_percent = 34;
  146. // 容积率
  147. double area_percent = 35;
  148. // 车位配比
  149. string space_info = 36;
  150. // 占地面积
  151. double covered_area = 37;
  152. // 建筑面积
  153. double building_area = 38;
  154. // 小区图片
  155. repeated string garden_pics = 39;
  156. // 开发企业
  157. string building_company = 40;
  158. // 总户数
  159. int64 house_total = 41;
  160. // 固定车位数
  161. int64 space_total = 42;
  162. // 物业费开始,单位分
  163. int64 property_fee_start = 43;
  164. // 物业费结束, 单位分
  165. int64 property_fee_end = 44;
  166. // 水费类型多选 1 民用 2 商用
  167. repeated int32 water_type = 45;
  168. // 电费类型多选 1 民用 2 商用
  169. repeated int32 electric_type = 46;
  170. // 燃气费开始,单位分
  171. int64 gas_fee_start = 47;
  172. // 燃气费开始,单位分
  173. int64 gas_fee_end = 48;
  174. int64 avg_price = 49;
  175. }
  176. message GardenAddReply {
  177. int64 id = 1;
  178. }
  179. message GardenListRequest {
  180. int64 page = 1;
  181. int64 page_size = 2;
  182. int64 cid = 3;
  183. string committee_code = 4;
  184. bool need_appendix = 5;
  185. bool not_approved = 6;
  186. string street_code = 7;
  187. string garden_name = 8;
  188. int32 approve_status = 9;
  189. }
  190. message GardenListReply {
  191. int64 page = 1;
  192. int64 total = 2;
  193. repeated GardenItem list = 3;
  194. }
  195. message GardenUpdateRequest {
  196. // id
  197. int64 id = 1;
  198. // 省
  199. string province = 2;
  200. string province_code = 3;
  201. // 市
  202. string city = 4;
  203. string city_code = 5;
  204. // 区
  205. string area = 6;
  206. string area_code = 7;
  207. // 街道
  208. string street = 8;
  209. string street_code = 9;
  210. // 社区
  211. string committee = 10;
  212. string committee_code = 11;
  213. // 小区名字
  214. string garden_name = 12;
  215. // 小区地址
  216. string garden_addr = 13;
  217. // 物业联系人
  218. string property_person = 14;
  219. // 物业联系人手机号
  220. string property_phone = 15;
  221. int64 cid = 16;
  222. string garden_pic = 17;
  223. string garden_desc = 18;
  224. // 经度
  225. double lnt = 19;
  226. // 纬度
  227. double lat = 20;
  228. // 1塔楼 2 板楼 3 塔板结合 4 其他
  229. int32 building_type = 31;
  230. // 建成年份开始时间戳
  231. int64 building_start = 32;
  232. // 建成年份结束时间戳
  233. int64 building_end = 33;
  234. // 绿化率
  235. double green_percent = 34;
  236. // 容积率
  237. double area_percent = 35;
  238. // 车位配比
  239. string space_info = 36;
  240. // 占地面积
  241. double covered_area = 37;
  242. // 建筑面积
  243. double building_area = 38;
  244. // 小区图片
  245. repeated string garden_pics = 39;
  246. // 开发企业
  247. string building_company = 40;
  248. // 总户数
  249. int64 house_total = 41;
  250. // 固定车位数
  251. int64 space_total = 42;
  252. // 物业费开始,单位分
  253. int64 property_fee_start = 43;
  254. // 物业费结束, 单位分
  255. int64 property_fee_end = 44;
  256. // 水费类型多选 1 民用 2 商用
  257. repeated int32 water_type = 45;
  258. // 电费类型多选 1 民用 2 商用
  259. repeated int32 electric_type = 46;
  260. // 燃气费开始,单位分
  261. int64 gas_fee_start = 47;
  262. // 燃气费开始,单位分
  263. int64 gas_fee_end = 48;
  264. int64 avg_price = 49;
  265. }
  266. message GardenUpdateReply {
  267. GardenUpdateRequest origin = 1;
  268. }
  269. message GardenKeyInfoChangeRequest {
  270. int64 id = 1;
  271. int64 cid = 2;
  272. string province = 3;
  273. string province_code = 4;
  274. // 市
  275. string city = 5;
  276. string city_code = 6;
  277. // 区
  278. string area = 7;
  279. string area_code = 8;
  280. // 街道
  281. string street = 9;
  282. string street_code = 10;
  283. // 社区
  284. string committee = 11;
  285. string committee_code = 12;
  286. string garden_name = 13;
  287. }
  288. message GardenKeyInfoChangeReply {
  289. }
  290. message GardenKeyInfoChangeListRequest {
  291. int64 cid = 1;
  292. int64 garden_id = 2;
  293. int32 status = 3;
  294. int64 page = 4;
  295. int64 page_size = 5;
  296. }
  297. message GardenKeyInfoData {
  298. int32 status = 1;
  299. string garden_name = 2;
  300. string garden_detail = 3;
  301. int64 cid = 4;
  302. int64 garden_id = 5;
  303. int64 id = 6;
  304. string feedback = 7;
  305. repeated GardenKeyInfoItem list = 8;
  306. }
  307. message GardenKeyInfoItem {
  308. string field_name = 1;
  309. string field_value_src = 2;
  310. string field_value_dst = 3;
  311. }
  312. message GardenKeyInfoChangeListReply {
  313. int64 page = 1;
  314. int64 total = 2;
  315. repeated GardenKeyInfoData list = 3;
  316. }
  317. message GardenKeyInfoApproveRequest {
  318. int64 id = 1;
  319. string feedback = 2;
  320. bool status = 3;
  321. }
  322. message GardenKeyInfoApproveReply {
  323. }
  324. message GardenApproveRequest {
  325. int64 id = 1;
  326. string feedback = 2;
  327. bool status = 3;
  328. }
  329. message GardenApproveReply {
  330. }
  331. message GardenDelRequest {
  332. int64 id = 1;
  333. int64 cid = 2;
  334. }
  335. message GardenDelReply {
  336. GardenUpdateRequest origin = 1;
  337. }
  338. message GardenChangeCompanyRequest {
  339. int64 garden_id = 1;
  340. int64 cid = 2;
  341. }
  342. message GardenChangeCompanyReply {
  343. GardenChangeCompanyRequest origin = 1;
  344. }
  345. message SystemGroupPermissionData {
  346. // 父code,若没有则填空
  347. string pcode = 1;
  348. // 组件路径
  349. string path = 2;
  350. // 权限名字
  351. string name = 3;
  352. // 路由
  353. string router = 4;
  354. string code = 5;
  355. string applete_path = 6;
  356. }
  357. message LoginRequest {
  358. string username = 1;
  359. string password = 2;
  360. // 是否来源于员工小程序
  361. bool applete = 3;
  362. }
  363. message LoginReply {
  364. int64 uid = 1;
  365. string user_name = 2;
  366. int64 cid = 3;
  367. int64 garden_id = 4;
  368. int64 group_id = 5;
  369. bool is_super_group = 6;
  370. string garden_name = 7;
  371. string user_permission_time = 8;
  372. string global_permission_time = 9;
  373. repeated SystemGroupPermissionData permissions = 10;
  374. bool garden_enable = 11;
  375. string openim_id = 12;
  376. }
  377. message LoginByPhoneRequest {
  378. string phone = 1;
  379. string password = 2;
  380. // 是否来源于员工小程序
  381. bool applete = 3;
  382. }
  383. message LoginByPhoneReply {
  384. repeated LoginReply list = 1;
  385. }
  386. message CheckPhoneRequest {
  387. string phone = 1;
  388. }
  389. message CheckPhoneReply {
  390. }
  391. message UserAddRequest {
  392. string user_name = 1;
  393. string password = 2;
  394. string email = 3;
  395. string phone = 4;
  396. int64 group_id = 5;
  397. bool enable = 6;
  398. int64 garden_id = 7;
  399. int64 cid = 8;
  400. string garden_name = 9;
  401. bool by_company = 10;
  402. int64 uid = 11;
  403. string real_name = 12;
  404. int64 department_id = 13;
  405. int32 base_permission = 14;
  406. int32 gender = 15;
  407. }
  408. message UserAddReply {
  409. int64 id = 1;
  410. }
  411. message UserUpdateRequest {
  412. string user_name = 1;
  413. string password = 2;
  414. string email = 3;
  415. string phone = 4;
  416. bool enable = 5;
  417. int64 id = 6;
  418. int64 garden_id = 7;
  419. int64 cid = 8;
  420. string garden_name = 9;
  421. int64 group_id = 10;
  422. bool by_company = 11;
  423. int64 uid = 12;
  424. string real_name = 13;
  425. int64 department_id = 14;
  426. int32 base_permission = 15;
  427. bool person = 16;
  428. int32 gender = 17;
  429. }
  430. message UserUpdateReply {
  431. UserUpdateRequest origin = 1;
  432. }
  433. message UserDelRequest {
  434. int64 id = 1;
  435. int64 cid = 2;
  436. bool by_company = 3;
  437. int64 uid = 4;
  438. int64 garden_id = 5;
  439. }
  440. message UserDelReply {
  441. UserUpdateRequest origin = 1;
  442. }
  443. message UserListRequest {
  444. int64 cid = 1;
  445. int64 garden_id = 2;
  446. int64 page = 3;
  447. int64 page_size = 4;
  448. string garden_name = 5;
  449. string user_name = 6;
  450. bool by_company = 7;
  451. int64 group_id = 8;
  452. string phone = 9;
  453. repeated int64 ids = 10;
  454. repeated int64 exclude = 11;
  455. }
  456. message UserItem {
  457. string user_name = 1;
  458. string password = 2;
  459. string email = 3;
  460. string phone = 4;
  461. bool super = 5;
  462. bool enable = 6;
  463. int64 id = 7;
  464. int64 garden_id = 8;
  465. int64 cid = 9;
  466. string garden_name = 10;
  467. string created_at = 11;
  468. int64 group_id = 12;
  469. string group_name = 13;
  470. string department_name = 14;
  471. string real_name = 15;
  472. int32 base_permission = 16;
  473. string openim_id = 17;
  474. int32 gender = 18;
  475. }
  476. message UserListReply {
  477. int64 total = 1;
  478. int64 page = 2;
  479. repeated UserItem list = 3;
  480. }
  481. message SuperGroupRequest {
  482. int64 cid = 1;
  483. int64 garden_id = 2;
  484. }
  485. message SuperGroupReply {
  486. int64 id = 1;
  487. }
  488. message UserGardenChangeRequest {
  489. int64 garden_id = 1;
  490. string garden_name = 2;
  491. }
  492. message UserGardenChangeReply {
  493. }
  494. message GroupAddRequest {
  495. int64 garden_id = 1;
  496. int64 cid = 2;
  497. repeated string permission_codes = 3;
  498. bool is_super = 4;
  499. string group_name = 5;
  500. string group_desc = 6;
  501. }
  502. message GroupAddReply {
  503. int64 id = 1;
  504. }
  505. message GroupUpdateRequest {
  506. int64 id = 1;
  507. string group_name = 2;
  508. repeated string permission_codes = 3;
  509. int64 garden_id = 4;
  510. int64 cid = 5;
  511. string group_desc = 6;
  512. }
  513. message GroupUpdateReply {
  514. GroupUpdateRequest origin = 1;
  515. }
  516. message GroupDelRequest {
  517. int64 id = 1;
  518. int64 garden_id = 2;
  519. int64 cid = 3;
  520. }
  521. message GroupDelReply {
  522. GroupUpdateRequest origin = 1;
  523. }
  524. message GroupItem {
  525. int64 id = 1;
  526. string group_name = 2;
  527. string group_desc = 3;
  528. int64 user_count = 4;
  529. bool super = 5;
  530. }
  531. message GroupListRequest {
  532. int64 garden_id = 1;
  533. int64 cid = 2;
  534. }
  535. message GroupListReply {
  536. repeated GroupItem list = 1;
  537. }
  538. message GroupInfoRequest {
  539. int64 id = 1;
  540. }
  541. message SystemGroupPermissionItem {
  542. // 父code,若没有则填空
  543. string pcode = 1;
  544. // 小程序组件路径
  545. string applete_path = 2;
  546. // 权限名字
  547. string name = 3;
  548. // 是否拥有该权限
  549. bool selected = 4;
  550. // 路由
  551. string router = 5;
  552. string code = 6;
  553. // 组件路径
  554. string path = 7;
  555. repeated SystemGroupPermissionItem childs = 8;
  556. }
  557. message GroupInfoReply {
  558. repeated SystemGroupPermissionItem list = 1;
  559. }
  560. message ResetPasswordRequest {
  561. string phone = 1;
  562. int64 uid = 2;
  563. uint32 vcode = 3;
  564. string password = 5;
  565. }
  566. message ResetPasswordData {
  567. // 用户id
  568. int64 uid = 1;
  569. // 用户名
  570. string username = 2;
  571. // 小区名
  572. string garden_name = 3;
  573. }
  574. message ResetPasswordReply {
  575. repeated ResetPasswordData list = 1;
  576. }
  577. message ChangePasswordRequest {
  578. int64 uid = 1;
  579. string old_password = 2;
  580. string new_password = 3;
  581. bool by_company = 4;
  582. }
  583. message ChangePasswordReply {
  584. }
  585. message DepartmentAddRequest {
  586. int64 garden_id = 1;
  587. int64 cid = 2;
  588. string department_name = 3;
  589. string desc = 4;
  590. }
  591. message DepartmentAddReply {
  592. int64 id = 1;
  593. }
  594. message DepartmentUpdateRequest {
  595. int64 garden_id = 1;
  596. string department_name = 2;
  597. string desc = 3;
  598. int64 id = 4;
  599. }
  600. message DepartmentUpdateReply {
  601. DepartmentUpdateRequest origin = 1;
  602. }
  603. message DepartmentDelRequest {
  604. int64 garden_id = 1;
  605. int64 id = 2;
  606. }
  607. message DepartmentDelReply {
  608. DepartmentUpdateRequest origin = 1;
  609. }
  610. message DepartmentItem {
  611. int64 id = 1;
  612. string department_name = 2;
  613. string desc = 3;
  614. string created_at = 4;
  615. }
  616. message DepartmentListRequest {
  617. int64 page = 1;
  618. int64 page_size = 2;
  619. int64 garden_id = 3;
  620. }
  621. message DepartmentListReply {
  622. int64 page = 1;
  623. int64 total = 2;
  624. repeated DepartmentItem list = 3;
  625. }
  626. message CompanyEnterGardenRequest {
  627. int64 garden_id = 1;
  628. int64 cid = 2;
  629. }
  630. message CompanyEnterGardenReply {
  631. string garden_name = 1;
  632. repeated SystemGroupPermissionData permissions = 2;
  633. string global_permission_time = 3;
  634. }
  635. message GardenSetMchRequest {
  636. int64 cid = 1;
  637. string mch_id = 2;
  638. int64 garden_id = 3;
  639. }
  640. message GardenSetMchReply {
  641. }
  642. message GardenSetMchPayModeRequest {
  643. int64 cid = 1;
  644. int64 garden_id = 2;
  645. int32 pay_mode = 3;
  646. }
  647. message GardenSetMchPayModeReply {
  648. }
  649. message CompanyMchGardenListRequest {
  650. int64 cid = 1;
  651. string mch_id = 2;
  652. int64 garden_id = 3;
  653. }
  654. message CompanyMchGardenItem {
  655. int64 garden_id = 1;
  656. string mch_id = 2;
  657. string garden_name = 3;
  658. int32 pay_mode = 4;
  659. }
  660. message CompanyMchGardenListReply {
  661. repeated CompanyMchGardenItem list = 1;
  662. }
  663. message PermissionRegetRequest {
  664. int64 uid = 1;
  665. // 是否来源于员工小程序
  666. bool applete = 2;
  667. bool company = 3;
  668. int64 garden_id = 4;
  669. }
  670. message PermissionRegetReply {
  671. int64 uid = 1;
  672. string user_name = 2;
  673. int64 cid = 3;
  674. int64 garden_id = 4;
  675. int64 group_id = 5;
  676. bool is_super_group = 6;
  677. string garden_name = 7;
  678. string user_permission_time = 8;
  679. string global_permission_time = 9;
  680. repeated SystemGroupPermissionData permissions = 10;
  681. bool garden_enable = 11;
  682. }
  683. // 应用相关
  684. message ApplicationOrderAddRequest {
  685. int64 garden_id = 1;
  686. int64 application_id = 2;
  687. int64 cid = 3;
  688. }
  689. message ApplicationOrderAddReply {
  690. int64 order_id = 1;
  691. string application_name = 2;
  692. string application_desc = 3;
  693. // 支付方式 1 对公转账
  694. int32 pay_type = 4;
  695. // 订单金额
  696. int64 amount = 5;
  697. // 开户行
  698. string bank_name = 6;
  699. // 银行账号
  700. string bank_account = 7;
  701. // 户名
  702. string bank_user_name = 8;
  703. }
  704. message ApplicationOrderApproveRequest {
  705. int64 order_id = 1;
  706. bool status = 2;
  707. string feedback = 3;
  708. }
  709. message ApplicationOrderApproveReply {
  710. }
  711. message GardenApplicationListRequest {
  712. int64 garden_id = 1;
  713. int64 page = 2;
  714. int64 page_size = 3;
  715. int32 status = 4;
  716. }
  717. message GardenApplicationItem {
  718. string icon = 1;
  719. string desc = 2;
  720. string name = 3;
  721. string content = 4;
  722. int64 amount = 5;
  723. bool enable = 6;
  724. int64 application_id = 7;
  725. int64 order_id = 8;
  726. // 1 待审批 2 通过 3 未通过
  727. int32 status = 9;
  728. // 1 对公转帐
  729. int32 pay_type = 10;
  730. string feedback = 11;
  731. string garden_name = 12;
  732. }
  733. message GardenApplicationListReply {
  734. int64 page = 1;
  735. int64 total = 2;
  736. repeated GardenApplicationItem list = 3;
  737. }
  738. // 套餐相关
  739. message PackageOrderAddRequest {
  740. int64 cid = 1;
  741. int64 package_id = 2;
  742. int64 amount = 3;
  743. int64 garden_count = 4;
  744. int64 period = 5;
  745. int64 order_type = 6;
  746. string company_name = 7;
  747. int64 garden_id = 8;
  748. bool should_access = 9;
  749. }
  750. message PackageOrderAddReply {
  751. int64 order_id = 1;
  752. string package_name = 2;
  753. int64 period = 3;
  754. int64 garden_count = 4;
  755. // 支付方式 1 对公转账
  756. int32 pay_type = 5;
  757. // 订单金额
  758. int64 amount = 6;
  759. // 开户行
  760. string bank_name = 7;
  761. // 银行账号
  762. string bank_account = 8;
  763. // 户名
  764. string bank_user_name = 9;
  765. }
  766. message PackageOrderApproveRequest {
  767. int64 order_id = 1;
  768. bool status = 2;
  769. string feedback = 3;
  770. }
  771. message PackageOrderApproveReply {
  772. }
  773. message CompanyPackageListRequest {
  774. int64 cid = 1;
  775. int64 page = 2;
  776. int64 page_size = 3;
  777. int32 status = 4;
  778. int64 garden_id = 5;
  779. bool for_garden = 6;
  780. int32 order_type = 7;
  781. }
  782. message CompanyPackageApplicationItem {
  783. string icon = 1;
  784. string desc = 2;
  785. string name = 3;
  786. string content = 4;
  787. int64 price = 5;
  788. bool enable = 6;
  789. int64 id = 7;
  790. }
  791. message CompanyPackageItem {
  792. string desc = 1;
  793. string name = 2;
  794. int64 amount = 3;
  795. int64 price = 4;
  796. bool enable = 5;
  797. int64 package_id = 6;
  798. int64 order_id = 7;
  799. int64 period = 8;
  800. // 1 待审批 2 通过 3 未通过
  801. int32 status = 9;
  802. // 1 对公转帐
  803. int32 pay_type = 10;
  804. string feedback = 11;
  805. string company_name = 12;
  806. int64 garden_id = 13;
  807. string garden_name = 14;
  808. int64 cid = 15;
  809. repeated CompanyPackageApplicationItem application_list = 16;
  810. int64 expire_at = 17;
  811. }
  812. message CompanyPackageListReply {
  813. int64 page = 1;
  814. int64 total = 2;
  815. repeated CompanyPackageItem list = 3;
  816. }
  817. message GardenPermissionListRequest {
  818. int64 garden_id = 1;
  819. }
  820. message PackageOrderAmountRequest {
  821. int64 order_id = 1;
  822. int64 amount = 2;
  823. }
  824. message PackageOrderAmountReply {
  825. }
  826. message ApplicationOrderAmountRequest {
  827. int64 order_id = 1;
  828. int64 amount = 2;
  829. }
  830. message ApplicationOrderAmountReply {
  831. }
  832. message GardenPermissionItem {
  833. // 父code,若没有则填空
  834. string pcode = 1;
  835. // 组件路径
  836. string path =2;
  837. // 权限名字
  838. string name = 3;
  839. // 小程序组件路径
  840. string applete_path = 4;
  841. // 路由
  842. string router = 5;
  843. string code = 6;
  844. // 1 已发布 2 未发布
  845. int32 enable = 7;
  846. int64 created_at = 8;
  847. int64 enable_at = 9;
  848. int64 level = 10;
  849. repeated GardenPermissionItem childs = 11;
  850. }
  851. message GardenPermissionListReply {
  852. repeated GardenPermissionItem list = 1;
  853. }
  854. message GardenHouseCountLimitRequest {
  855. int64 garden_id = 1;
  856. }
  857. message GardenHouseCountLimitReply {
  858. int64 house_count = 1;
  859. int64 house_count_limit = 2;
  860. }
  861. message GardenHouseCountChangeRequest {
  862. int64 garden_id = 1;
  863. int64 count = 2;
  864. }
  865. message GardenHouseCountChangeReply {
  866. }
  867. message GardenEnableSetRequest {
  868. int64 garden_id = 1;
  869. bool enable = 2;
  870. }
  871. message GardenEnableSetReply {
  872. }
  873. // 短信套餐相关
  874. message MsgPackageOrderAddRequest {
  875. int64 garden_id = 1;
  876. int64 package_id = 2;
  877. int64 amount = 3;
  878. int64 package_count = 4;
  879. int64 cid = 5;
  880. }
  881. message MsgPackageOrderAddReply {
  882. int64 order_id = 1;
  883. string package_name = 2;
  884. // 购买个数
  885. int64 package_count = 3;
  886. int64 garden_count = 4;
  887. // 支付方式 1 对公转账
  888. int32 pay_type = 5;
  889. // 订单金额
  890. int64 amount = 6;
  891. // 开户行
  892. string bank_name = 7;
  893. // 银行账号
  894. string bank_account = 8;
  895. // 户名
  896. string bank_user_name = 9;
  897. }
  898. message MsgPackageOrderApproveRequest {
  899. int64 order_id = 1;
  900. bool status = 2;
  901. string feedback = 3;
  902. }
  903. message MsgPackageOrderApproveReply {
  904. }
  905. message MsgPackageOrderListRequest {
  906. int64 garden_id = 1;
  907. bool management = 2;
  908. int64 page = 3;
  909. int64 page_size = 4;
  910. bool available = 5;
  911. int64 status = 6;
  912. }
  913. message MsgPackageOrderItem {
  914. int64 order_id = 1;
  915. string name = 2;
  916. string comment = 3;
  917. // 套餐短信条数
  918. int64 msg_count = 4;
  919. // 订单套餐短信总条数
  920. int64 msg_total_count = 5;
  921. // 订单套餐短信剩余条数
  922. int64 msg_available_count = 6;
  923. int64 package_id = 7;
  924. // 订单包含的套餐个数
  925. int64 package_count = 8;
  926. int64 created_at = 9;
  927. // 套餐单价
  928. int64 price = 10;
  929. // 订单总价
  930. int64 amount = 11;
  931. // 1 待审核 2 通过 3 未通过
  932. int32 status = 12;
  933. string garden_name = 13;
  934. int64 garden_id = 14;
  935. string feedback = 15;
  936. }
  937. message MsgPackageOrderListReply{
  938. int64 page = 1;
  939. int64 total = 2;
  940. repeated MsgPackageOrderItem list = 3;
  941. }