plan.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. syntax = "proto3";
  2. package gorpc;
  3. option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
  4. import "pb/common.proto";
  5. // ServiceTypes
  6. message ServiceTypesVo {
  7. int64 id = 1; // ID
  8. string productCode = 2; // 产品标识
  9. string code = 3; // 权益标识
  10. string name = 4; // 权益名称
  11. int64 sort = 5; // 排序
  12. Status status = 6; // 状态 1启用 2禁用
  13. string remark = 7; // 备注
  14. int64 createTime = 8; // 创建时间
  15. int64 createAt = 9; // 创建者ID
  16. int64 updateTime = 10; // 更新时间
  17. int64 updateAt = 11; // 更新者ID
  18. }
  19. message ServiceTypesWithValueVo {
  20. ServiceTypesVo vo = 1;
  21. int64 value = 2;
  22. }
  23. message ServiceTypesGetReq { ServiceTypesVo vo = 1; }
  24. message ServiceTypesGetResp { ServiceTypesVo vo = 1; }
  25. message ServiceTypesGetWithValueReq {
  26. int64 serviceBoxId = 1;
  27. string productCode = 2;
  28. string serviceBoxCode = 3;
  29. int64 serviceTypeId = 4;
  30. string serviceTypeCode = 5;
  31. }
  32. message ServiceTypesGetWithValueResp {
  33. ServiceTypesVo vo = 1;
  34. int64 value = 2;
  35. }
  36. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  37. message ServiceTypesAddResp { ServiceTypesVo vo = 1; }
  38. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  39. message ServiceTypesUpdateResp { ServiceTypesVo vo = 1; }
  40. message ServiceTypesDelReq { repeated int64 ids = 1; }
  41. message ServiceTypesListReq {
  42. Page page = 1;
  43. ServiceTypesVo vo = 2;
  44. repeated string productCodes = 3;
  45. repeated int64 excludeIds = 4;
  46. }
  47. message ServiceTypesListResp {
  48. int64 total = 1;
  49. repeated ServiceTypesVo list = 2;
  50. }
  51. message ServiceTypesListWithValueReq {
  52. Page page = 1;
  53. ServiceTypesVo vo = 2;
  54. repeated int64 serviceBoxIds = 3;
  55. repeated string productCodes = 4;
  56. repeated string serviceBoxCodes = 5;
  57. repeated int64 excludeIds = 6;
  58. }
  59. message ServiceTypesListWithValueResp {
  60. int64 total = 1;
  61. repeated ServiceTypesWithValueVo list = 2;
  62. }
  63. // end ServiceTypes
  64. // ServiceBox
  65. message ServiceBoxVo {
  66. int64 id = 1; // ID
  67. string productCode = 2; // 产品标识
  68. string code = 3; // 礼包标识
  69. string name = 4; // 礼包名称
  70. int64 sort = 5; // 排序
  71. Status status = 6; // 状态 1启用 2禁用
  72. string remark = 7; // 备注
  73. int64 createTime = 8; // 创建时间
  74. int64 createAt = 9; // 创建者ID
  75. int64 updateTime = 10; // 更新时间
  76. int64 updateAt = 11; // 更新者ID
  77. }
  78. message ServiceBoxWithDetailsVo {
  79. ServiceBoxVo serviceBox = 1;
  80. repeated ServiceTypesWithValueVo serviceTypes = 2;
  81. }
  82. message ServiceBoxWithDurationVo {
  83. ServiceBoxVo serviceBox = 1;
  84. int64 licenseDurationDay = 2;
  85. int64 licenseDurationMinutes = 3;
  86. BoolInt isMaster = 4;
  87. int64 bindId = 5;
  88. }
  89. message ServiceBoxWithDurationAndDetailsVo {
  90. ServiceBoxWithDurationVo serviceBox = 1;
  91. repeated ServiceTypesWithValueVo serviceTypes = 2;
  92. }
  93. message ServiceBoxGetReq { ServiceBoxVo vo = 1; }
  94. message ServiceBoxGetResp { ServiceBoxVo vo = 1; }
  95. message ServiceBoxGetWithDetailsReq {
  96. ServiceBoxVo vo = 1;
  97. }
  98. message ServiceBoxGetWithDetailsResp {
  99. ServiceBoxVo serviceBox = 1;
  100. repeated ServiceTypesWithValueVo serviceTypes = 2;
  101. }
  102. message ServiceBoxAddReq { ServiceBoxVo vo = 1; }
  103. message ServiceBoxAddResp { ServiceBoxVo vo = 1; }
  104. message ServiceBoxAddWithDetailsReq {
  105. ServiceBoxVo serviceBox = 1;
  106. repeated ServiceTypesWithValueVo serviceTypes = 2;
  107. }
  108. message ServiceBoxAddWithDetailsResp {
  109. ServiceBoxVo serviceBox = 1;
  110. repeated ServiceTypesWithValueVo serviceTypes = 2;
  111. }
  112. message ServiceBoxUpdateReq { ServiceBoxVo vo = 1; }
  113. message ServiceBoxUpdateResp { ServiceBoxVo vo = 1; }
  114. message ServiceBoxUpdateWithDetailsReq {
  115. ServiceBoxVo serviceBox = 1;
  116. repeated ServiceTypesWithValueVo serviceTypes = 2;
  117. }
  118. message ServiceBoxUpdateWithDetailsResp {
  119. ServiceBoxVo serviceBox = 1;
  120. repeated ServiceTypesWithValueVo serviceTypes = 2;
  121. }
  122. message ServiceBoxDelReq { repeated int64 ids = 1; }
  123. message ServiceBoxListReq {
  124. Page page = 1;
  125. ServiceBoxVo vo = 2;
  126. repeated string productCodes = 3;
  127. repeated int64 excludeIds = 4;
  128. }
  129. message ServiceBoxListResp {
  130. int64 total = 1;
  131. repeated ServiceBoxVo list = 2;
  132. }
  133. message ServiceBoxListWithDetailsReq {
  134. Page page = 1;
  135. ServiceBoxVo vo = 2;
  136. repeated string productCodes = 3;
  137. repeated int64 excludeIds = 4;
  138. }
  139. message ServiceBoxListWithDetailsResp {
  140. int64 total = 1;
  141. repeated ServiceBoxWithDetailsVo list = 2;
  142. }
  143. // end ServiceBox
  144. // ServiceBoxTypes
  145. message ServiceBoxTypesVo {
  146. int64 id = 1; // ID
  147. int64 serviceBoxId = 2; // 礼包ID
  148. int64 serviceTypeId = 3; // 权益ID
  149. int64 serviceValue = 4; // 权益值 根据不同的 serviceTypeId,这里的值的含义不同
  150. int64 createTime = 5; // 创建时间
  151. int64 createAt = 6; // 创建者ID
  152. int64 updateTime = 7; // 更新时间
  153. int64 updateAt = 8; // 更新者ID
  154. }
  155. message ServiceBoxTypesGetReq { ServiceBoxTypesVo vo = 1; }
  156. message ServiceBoxTypesGetResp { ServiceBoxTypesVo vo = 1; }
  157. message ServiceBoxTypesAddReq { ServiceBoxTypesVo vo = 1; }
  158. message ServiceBoxTypesAddResp { ServiceBoxTypesVo vo = 1; }
  159. message ServiceBoxTypesUpdateReq { ServiceBoxTypesVo vo = 1; }
  160. message ServiceBoxTypesUpdateResp { ServiceBoxTypesVo vo = 1; }
  161. message ServiceBoxTypesDelReq { repeated int64 ids = 1; }
  162. message ServiceBoxTypesListReq {
  163. Page page = 1;
  164. ServiceBoxTypesVo vo = 2;
  165. repeated int64 serviceBoxIds = 3;
  166. repeated int64 serviceTypeIds = 4;
  167. repeated int64 excludeIds = 5;
  168. int64 boxStatus = 6;
  169. }
  170. message ServiceBoxTypesListResp {
  171. int64 total = 1;
  172. repeated ServiceBoxTypesVo list = 2;
  173. }
  174. // end ServiceBoxTypes
  175. // SubscribePeriodType 订阅周期类型
  176. enum SubscribePeriodType {
  177. SubscribePeriodTypeUnknown = 0;
  178. SubscribePeriodTypeDay = 1;
  179. SubscribePeriodTypeWeek = 2;
  180. SubscribePeriodTypeMonth = 3;
  181. SubscribePeriodTypeYear = 4;
  182. }
  183. // ServicePlan
  184. message ServicePlanVo {
  185. int64 id = 1; // ID
  186. string productCode = 2; // 产品标识
  187. string code = 3; // 套餐code
  188. string name = 4; // 套餐名称
  189. string title = 5; // 标题(默认值,对外显示)
  190. string subTitle = 6; // 副标题(默认值,对外显示)
  191. string introduce = 7; // 简介(默认值,对外显示)
  192. string tag = 8; // 标签内容(默认值,对外显示)
  193. float orgPrice = 9; // 原价(默认值)
  194. float price = 10; // 现价(默认值)
  195. int64 currency = 11; // 价格货币类型(默认值)
  196. BoolInt recommend = 12; // 是否推荐套餐(默认值) 1推荐 2不推荐
  197. BoolInt isDefault = 13; // 是否默认套餐(默认值) 1默认 2不默认
  198. BoolInt subscribeType = 14; // 订阅类型 1订阅类型 2非订阅类型
  199. SubscribePeriodType subscribePeriodType = 15; // 订阅周期类型 1Day 2Week 3Month 4Year(仅当订阅类型为1时有效)
  200. int64 subscribePeriodValue = 16; // 订阅周期值(仅当订阅类型为1时有效)
  201. int64 priority = 17; // 套餐使用优先级
  202. int64 mergeRule = 18; // 套餐合并规则(规则一样的套餐包含的权益可以合并到一起)
  203. int64 sort = 19; // 排序
  204. Status status = 20; // 状态 1启用 2禁用
  205. string remark = 21; // 备注
  206. int64 createTime = 22; // 创建时间
  207. int64 createAt = 23; // 创建者ID
  208. int64 updateTime = 24; // 更新时间
  209. int64 updateAt = 25; // 更新者ID
  210. }
  211. message ServicePlanWithBoxesVo {
  212. ServicePlanVo servicePlan = 1;
  213. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  214. }
  215. message ServicePlanWithBoxesAndDetailsVo {
  216. ServicePlanVo servicePlan = 1;
  217. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  218. }
  219. message ServicePlanGetReq { ServicePlanVo vo = 1; }
  220. message ServicePlanGetResp { ServicePlanVo vo = 1; }
  221. message ServicePlanGetWithBoxesReq { ServicePlanVo vo = 1; }
  222. message ServicePlanGetWithBoxesResp {
  223. ServicePlanVo servicePlan = 1;
  224. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  225. }
  226. message ServicePlanGetWithBoxesAndDetailsReq { ServicePlanVo vo = 1; }
  227. message ServicePlanGetWithBoxesAndDetailsResp {
  228. ServicePlanVo servicePlan = 1;
  229. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  230. }
  231. message ServicePlanAddReq { ServicePlanVo vo = 1; }
  232. message ServicePlanAddResp { ServicePlanVo vo = 1; }
  233. message ServicePlanAddWithBoxesReq {
  234. ServicePlanVo servicePlan = 1;
  235. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  236. }
  237. message ServicePlanAddWithBoxesResp {
  238. ServicePlanVo servicePlan = 1;
  239. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  240. }
  241. message ServicePlanAddWithBoxesAndDetailsReq {
  242. ServicePlanVo servicePlan = 1;
  243. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  244. }
  245. message ServicePlanAddWithBoxesAndDetailsResp {
  246. ServicePlanVo servicePlan = 1;
  247. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  248. }
  249. message ServicePlanUpdateReq { ServicePlanVo vo = 1; }
  250. message ServicePlanUpdateResp { ServicePlanVo vo = 1; }
  251. message ServicePlanUpdateWithBoxesReq {
  252. ServicePlanVo servicePlan = 1;
  253. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  254. }
  255. message ServicePlanUpdateWithBoxesResp {
  256. ServicePlanVo servicePlan = 1;
  257. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  258. }
  259. message ServicePlanUpdateWithBoxesAndDetailsReq {
  260. ServicePlanVo servicePlan = 1;
  261. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  262. }
  263. message ServicePlanUpdateWithBoxesAndDetailsResp {
  264. ServicePlanVo servicePlan = 1;
  265. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  266. }
  267. message ServicePlanDelReq { repeated int64 ids = 1; }
  268. message ServicePlanListReq {
  269. Page page = 1;
  270. ServicePlanVo vo = 2;
  271. repeated string productCodes = 3;
  272. repeated int64 excludeIds = 4;
  273. }
  274. message ServicePlanListResp {
  275. int64 total = 1;
  276. repeated ServicePlanVo list = 2;
  277. }
  278. message ServicePlanListWithBoxesReq {
  279. Page page = 1;
  280. ServicePlanVo vo = 2;
  281. repeated string productCodes = 3;
  282. repeated int64 excludeIds = 4;
  283. }
  284. message ServicePlanListWithBoxesResp {
  285. int64 total = 1;
  286. repeated ServicePlanWithBoxesVo list = 2;
  287. }
  288. message ServicePlanListWithBoxesAndDetailsReq {
  289. Page page = 1;
  290. ServicePlanVo vo = 2;
  291. repeated string productCodes = 3;
  292. repeated int64 excludeIds = 4;
  293. }
  294. message ServicePlanListWithBoxesAndDetailsResp {
  295. int64 total = 1;
  296. repeated ServicePlanWithBoxesAndDetailsVo list = 2;
  297. }
  298. // end ServicePlan
  299. // ServicePlanBoxes
  300. message ServicePlanBoxesVo {
  301. int64 id = 1; // ID
  302. int64 servicePlanId = 2; // 套餐ID
  303. int64 serviceBoxId = 3; // 礼包ID
  304. int64 licenseDurationDay = 4; // 礼包持续天数
  305. int64 licenseDurationMinutes = 5; // 礼包额外持续分钟数
  306. BoolInt isMaster = 6; // 是否主礼包 1是 2否
  307. int64 createTime = 7; // 创建时间
  308. int64 createAt = 8; // 创建者ID
  309. int64 updateTime = 9; // 更新时间
  310. int64 updateAt = 10; // 更新者ID
  311. }
  312. message ServicePlanBoxesGetReq { ServicePlanBoxesVo vo = 1; }
  313. message ServicePlanBoxesGetResp { ServicePlanBoxesVo vo = 1; }
  314. message ServicePlanBoxesAddReq { ServicePlanBoxesVo vo = 1; }
  315. message ServicePlanBoxesAddResp { ServicePlanBoxesVo vo = 1; }
  316. message ServicePlanBoxesUpdateReq { ServicePlanBoxesVo vo = 1; }
  317. message ServicePlanBoxesUpdateResp { ServicePlanBoxesVo vo = 1; }
  318. message ServicePlanBoxesDelReq { repeated int64 ids = 1; }
  319. message ServicePlanBoxesListReq {
  320. Page page = 1;
  321. ServicePlanBoxesVo vo = 2;
  322. repeated int64 servicePlanIds = 3;
  323. repeated int64 serviceBoxIds = 4;
  324. repeated int64 excludeIds = 5;
  325. int64 planStatus = 6;
  326. }
  327. message ServicePlanBoxesListResp {
  328. int64 total = 1;
  329. repeated ServicePlanBoxesVo list = 2;
  330. }
  331. // end ServicePlanBoxes
  332. // ServicePlanChannel
  333. message ServicePlanChannelVo {
  334. int64 id = 1; // ID
  335. string productCode = 2; // 产品标识
  336. string channel = 3; // 渠道标识
  337. string channelItemId = 4; // 套餐唯一ID或商店SKUID
  338. int64 servicePlanId = 5; // 套餐ID
  339. string title = 6; // 自定义标题(对外显示)
  340. string subTitle = 7; // 自定义副标题(对外显示)
  341. string introduce = 8; // 自定义简介(对外显示)
  342. string tag = 9; // 自定义标签内容(对外显示)
  343. float orgPrice = 10; // 在该渠道下的原价
  344. float price = 11; // 在该渠道下的现价
  345. int64 currency = 12; // 价格货币类型
  346. BoolInt recommend = 13; // 是否推荐商品(默认值) 1推荐 2不推荐
  347. BoolInt isDefault = 14; // 是否默认商品(默认值) 1默认 2不默认
  348. string displayPolicyConfig = 15; // 显示策略
  349. int64 sort = 16; // 排序
  350. Status status = 17; // 状态 1启用 2禁用
  351. string remark = 18; // 备注
  352. int64 createTime = 19; // 创建时间
  353. int64 createAt = 20; // 创建者ID
  354. int64 updateTime = 21; // 更新时间
  355. int64 updateAt = 22; // 更新者ID
  356. }
  357. message ServicePlanChannelWithPlanVo {
  358. ServicePlanChannelVo servicePlanChannel = 1;
  359. ServicePlanVo servicePlan = 2;
  360. }
  361. message ServicePlanChannelWithPlanAndBoxesVo {
  362. ServicePlanChannelVo servicePlanChannel = 1;
  363. ServicePlanVo servicePlan = 2;
  364. repeated ServiceBoxWithDurationVo serviceBoxes = 3;
  365. }
  366. message ServicePlanChannelWithPlanAndBoxesAndDetailsVo {
  367. ServicePlanChannelVo servicePlanChannel = 1;
  368. ServicePlanVo servicePlan = 2;
  369. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 3;
  370. }
  371. message ServicePlanChannelGetReq { ServicePlanChannelVo vo = 1; }
  372. message ServicePlanChannelGetResp { ServicePlanChannelVo vo = 1; }
  373. message ServicePlanChannelGetWithPlanReq { ServicePlanChannelVo vo = 1; }
  374. message ServicePlanChannelGetWithPlanResp {
  375. ServicePlanChannelVo servicePlanChannel = 1;
  376. ServicePlanVo servicePlan = 2;
  377. }
  378. message ServicePlanChannelGetWithPlanAndBoxesReq { ServicePlanChannelVo vo = 1; }
  379. message ServicePlanChannelGetWithPlanAndBoxesResp {
  380. ServicePlanChannelVo servicePlanChannel = 1;
  381. ServicePlanVo servicePlan = 2;
  382. repeated ServiceBoxWithDurationVo serviceBoxes = 3;
  383. }
  384. message ServicePlanChannelGetWithPlanAndBoxesAndDetailsReq { ServicePlanChannelVo vo = 1; }
  385. message ServicePlanChannelGetWithPlanAndBoxesAndDetailsResp {
  386. ServicePlanChannelVo servicePlanChannel = 1;
  387. ServicePlanVo servicePlan = 2;
  388. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 3;
  389. }
  390. message ServicePlanChannelAddReq { ServicePlanChannelVo vo = 1; }
  391. message ServicePlanChannelAddResp { ServicePlanChannelVo vo = 1; }
  392. message ServicePlanChannelUpdateReq { ServicePlanChannelVo vo = 1; }
  393. message ServicePlanChannelUpdateResp { ServicePlanChannelVo vo = 1; }
  394. message ServicePlanChannelDelReq { repeated int64 ids = 1; }
  395. message ServicePlanChannelListReq {
  396. Page page = 1;
  397. ServicePlanChannelVo vo = 2;
  398. repeated string productCodes = 3;
  399. repeated string channels = 4;
  400. repeated string channelItemIds = 5;
  401. repeated int64 servicePlanIds = 6;
  402. repeated int64 excludeIds = 7;
  403. }
  404. message ServicePlanChannelListResp {
  405. int64 total = 1;
  406. repeated ServicePlanChannelVo list = 2;
  407. }
  408. message ServicePlanChannelListWithPlanReq {
  409. Page page = 1;
  410. ServicePlanChannelVo vo = 2;
  411. repeated string productCodes = 3;
  412. repeated string channels = 4;
  413. repeated string channelItemIds = 5;
  414. repeated int64 servicePlanIds = 6;
  415. repeated int64 excludeIds = 7;
  416. }
  417. message ServicePlanChannelListWithPlanResp {
  418. int64 total = 1;
  419. repeated ServicePlanChannelWithPlanVo list = 2;
  420. }
  421. message ServicePlanChannelListWithPlanAndBoxesReq {
  422. Page page = 1;
  423. ServicePlanChannelVo vo = 2;
  424. repeated string productCodes = 3;
  425. repeated string channels = 4;
  426. repeated string channelItemIds = 5;
  427. repeated int64 servicePlanIds = 6;
  428. repeated int64 excludeIds = 7;
  429. }
  430. message ServicePlanChannelListWithPlanAndBoxesResp {
  431. int64 total = 1;
  432. repeated ServicePlanChannelWithPlanAndBoxesVo list = 2;
  433. }
  434. message ServicePlanChannelListWithPlanAndBoxesAndDetailsReq {
  435. Page page = 1;
  436. ServicePlanChannelVo vo = 2;
  437. repeated string productCodes = 3;
  438. repeated string channels = 4;
  439. repeated string channelItemIds = 5;
  440. repeated int64 servicePlanIds = 6;
  441. repeated int64 excludeIds = 7;
  442. }
  443. message ServicePlanChannelListWithPlanAndBoxesAndDetailsResp {
  444. int64 total = 1;
  445. repeated ServicePlanChannelWithPlanAndBoxesAndDetailsVo list = 2;
  446. }
  447. // end ServicePlanChannel
  448. service GoPlanClient {
  449. /** ServiceTypes Model */
  450. // ServiceTypesAdd
  451. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesAddResp);
  452. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesUpdateResp);
  453. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  454. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesGetResp);
  455. rpc ServiceTypesGetWithValue(ServiceTypesGetWithValueReq) returns (ServiceTypesGetWithValueResp);
  456. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  457. rpc ServiceTypesListWithValue(ServiceTypesListWithValueReq) returns (ServiceTypesListWithValueResp);
  458. /** ServiceBox Model */
  459. // ServiceBoxAdd
  460. rpc ServiceBoxAdd(ServiceBoxAddReq) returns (ServiceBoxAddResp);
  461. rpc ServiceBoxAddWithDetails(ServiceBoxAddWithDetailsReq) returns (ServiceBoxAddWithDetailsResp);
  462. rpc ServiceBoxUpdate(ServiceBoxUpdateReq) returns (ServiceBoxUpdateResp);
  463. rpc ServiceBoxUpdateWithDetails(ServiceBoxUpdateWithDetailsReq) returns (ServiceBoxUpdateWithDetailsResp);
  464. rpc ServiceBoxDel(ServiceBoxDelReq) returns (Empty);
  465. rpc ServiceBoxGet(ServiceBoxGetReq) returns (ServiceBoxGetResp);
  466. rpc ServiceBoxGetWithDetails(ServiceBoxGetWithDetailsReq) returns (ServiceBoxGetWithDetailsResp);
  467. rpc ServiceBoxList(ServiceBoxListReq) returns (ServiceBoxListResp);
  468. rpc ServiceBoxListWithDetails(ServiceBoxListWithDetailsReq) returns (ServiceBoxListWithDetailsResp);
  469. /** ServiceBoxTypes Model */
  470. // ServiceBoxTypesAdd
  471. rpc ServiceBoxTypesAdd(ServiceBoxTypesAddReq) returns (ServiceBoxTypesAddResp);
  472. rpc ServiceBoxTypesUpdate(ServiceBoxTypesUpdateReq) returns (ServiceBoxTypesUpdateResp);
  473. rpc ServiceBoxTypesDel(ServiceBoxTypesDelReq) returns (Empty);
  474. rpc ServiceBoxTypesGet(ServiceBoxTypesGetReq) returns (ServiceBoxTypesGetResp);
  475. rpc ServiceBoxTypesList(ServiceBoxTypesListReq) returns (ServiceBoxTypesListResp);
  476. /** ServicePlan Model */
  477. // ServicePlanAdd
  478. rpc ServicePlanAdd(ServicePlanAddReq) returns (ServicePlanAddResp);
  479. rpc ServicePlanAddWithBoxes(ServicePlanAddWithBoxesReq) returns (ServicePlanAddWithBoxesResp);
  480. rpc ServicePlanAddWithBoxesAndDetails(ServicePlanAddWithBoxesAndDetailsReq) returns (ServicePlanAddWithBoxesAndDetailsResp);
  481. rpc ServicePlanUpdate(ServicePlanUpdateReq) returns (ServicePlanUpdateResp);
  482. rpc ServicePlanUpdateWithBoxes(ServicePlanUpdateWithBoxesReq) returns (ServicePlanUpdateWithBoxesResp);
  483. rpc ServicePlanUpdateWithBoxesAndDetails(ServicePlanUpdateWithBoxesAndDetailsReq) returns (ServicePlanUpdateWithBoxesAndDetailsResp);
  484. rpc ServicePlanDel(ServicePlanDelReq) returns (Empty);
  485. rpc ServicePlanGet(ServicePlanGetReq) returns (ServicePlanGetResp);
  486. rpc ServicePlanGetWithBoxes(ServicePlanGetWithBoxesReq) returns (ServicePlanGetWithBoxesResp);
  487. rpc ServicePlanGetWithBoxesAndDetails(ServicePlanGetWithBoxesAndDetailsReq) returns (ServicePlanGetWithBoxesAndDetailsResp);
  488. rpc ServicePlanList(ServicePlanListReq) returns (ServicePlanListResp);
  489. rpc ServicePlanListWithBoxes(ServicePlanListWithBoxesReq) returns (ServicePlanListWithBoxesResp);
  490. rpc ServicePlanListWithBoxesAndDetails(ServicePlanListWithBoxesAndDetailsReq) returns (ServicePlanListWithBoxesAndDetailsResp);
  491. /** ServicePlanBoxes Model */
  492. // ServicePlanBoxesAdd
  493. rpc ServicePlanBoxesAdd(ServicePlanBoxesAddReq) returns (ServicePlanBoxesAddResp);
  494. rpc ServicePlanBoxesUpdate(ServicePlanBoxesUpdateReq) returns (ServicePlanBoxesUpdateResp);
  495. rpc ServicePlanBoxesDel(ServicePlanBoxesDelReq) returns (Empty);
  496. rpc ServicePlanBoxesGet(ServicePlanBoxesGetReq) returns (ServicePlanBoxesGetResp);
  497. rpc ServicePlanBoxesList(ServicePlanBoxesListReq) returns (ServicePlanBoxesListResp);
  498. /** ServicePlanChannel Model */
  499. // ServicePlanChannelAdd
  500. rpc ServicePlanChannelAdd(ServicePlanChannelAddReq) returns (ServicePlanChannelAddResp);
  501. rpc ServicePlanChannelUpdate(ServicePlanChannelUpdateReq) returns (ServicePlanChannelUpdateResp);
  502. rpc ServicePlanChannelDel(ServicePlanChannelDelReq) returns (Empty);
  503. rpc ServicePlanChannelGet(ServicePlanChannelGetReq) returns (ServicePlanChannelGetResp);
  504. rpc ServicePlanChannelGetWithPlan(ServicePlanChannelGetWithPlanReq) returns (ServicePlanChannelGetWithPlanResp);
  505. rpc ServicePlanChannelGetWithPlanAndBoxes(ServicePlanChannelGetWithPlanAndBoxesReq) returns (ServicePlanChannelGetWithPlanAndBoxesResp);
  506. rpc ServicePlanChannelGetWithPlanAndBoxesAndDetails(ServicePlanChannelGetWithPlanAndBoxesAndDetailsReq) returns (ServicePlanChannelGetWithPlanAndBoxesAndDetailsResp);
  507. rpc ServicePlanChannelList(ServicePlanChannelListReq) returns (ServicePlanChannelListResp);
  508. rpc ServicePlanChannelListWithPlan(ServicePlanChannelListWithPlanReq) returns (ServicePlanChannelListWithPlanResp);
  509. rpc ServicePlanChannelListWithPlanAndBoxes(ServicePlanChannelListWithPlanAndBoxesReq) returns (ServicePlanChannelListWithPlanAndBoxesResp);
  510. rpc ServicePlanChannelListWithPlanAndBoxesAndDetails(ServicePlanChannelListWithPlanAndBoxesAndDetailsReq) returns (ServicePlanChannelListWithPlanAndBoxesAndDetailsResp);
  511. }