plan.proto 21 KB

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