system.proto 23 KB

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