plan.proto 22 KB

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