goods.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  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 planId = 1;
  27. string productCode = 2;
  28. string servicePlanCode = 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 planIds = 3;
  55. repeated string productCodes = 4;
  56. repeated string servicePlanCodes = 5;
  57. repeated int64 excludeIds = 6;
  58. }
  59. message ServiceTypesListWithValueResp {
  60. int64 total = 1;
  61. repeated ServiceTypesWithValueVo list = 2;
  62. }
  63. // end ServiceTypes
  64. // ServicePlan
  65. message ServicePlanVo {
  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 ServicePlanWithDetailsVo {
  79. ServicePlanVo servicePlan = 1;
  80. repeated ServiceTypesWithValueVo serviceTypes = 2;
  81. }
  82. message ServicePlanWithDurationVo {
  83. ServicePlanVo servicePlan = 1;
  84. int64 licenseDurationDay = 2;
  85. int64 licenseDurationMinutes = 3;
  86. }
  87. message ServicePlanWithDurationAndDetailsVo {
  88. ServicePlanWithDurationVo servicePlan = 1;
  89. repeated ServiceTypesWithValueVo serviceTypes = 2;
  90. }
  91. message ServicePlanGetReq { ServicePlanVo vo = 1; }
  92. message ServicePlanGetResp { ServicePlanVo vo = 1; }
  93. message ServicePlanGetWithDetailsReq {
  94. ServicePlanVo vo = 1;
  95. }
  96. message ServicePlanGetWithDetailsResp {
  97. ServicePlanVo servicePlan = 1;
  98. repeated ServiceTypesWithValueVo serviceTypes = 2;
  99. }
  100. message ServicePlanAddReq { ServicePlanVo vo = 1; }
  101. message ServicePlanAddResp { ServicePlanVo vo = 1; }
  102. message ServicePlanAddWithDetailsReq {
  103. ServicePlanVo servicePlan = 1;
  104. repeated ServiceTypesWithValueVo serviceTypes = 2;
  105. }
  106. message ServicePlanAddWithDetailsResp {
  107. ServicePlanVo servicePlan = 1;
  108. repeated ServiceTypesWithValueVo serviceTypes = 2;
  109. }
  110. message ServicePlanUpdateReq { ServicePlanVo vo = 1; }
  111. message ServicePlanUpdateResp { ServicePlanVo vo = 1; }
  112. message ServicePlanUpdateWithDetailsReq {
  113. ServicePlanVo servicePlan = 1;
  114. repeated ServiceTypesWithValueVo serviceTypes = 2;
  115. }
  116. message ServicePlanUpdateWithDetailsResp {
  117. ServicePlanVo servicePlan = 1;
  118. repeated ServiceTypesWithValueVo serviceTypes = 2;
  119. }
  120. message ServicePlanDelReq { repeated int64 ids = 1; }
  121. message ServicePlanListReq {
  122. Page page = 1;
  123. ServicePlanVo vo = 2;
  124. repeated string productCodes = 3;
  125. repeated int64 excludeIds = 4;
  126. }
  127. message ServicePlanListResp {
  128. int64 total = 1;
  129. repeated ServicePlanVo list = 2;
  130. }
  131. message ServicePlanListWithDetailsReq {
  132. Page page = 1;
  133. ServicePlanVo vo = 2;
  134. repeated string productCodes = 3;
  135. repeated int64 excludeIds = 4;
  136. }
  137. message ServicePlanListWithDetailsResp {
  138. int64 total = 1;
  139. repeated ServicePlanWithDetailsVo list = 2;
  140. }
  141. // end ServicePlan
  142. // ServicePlanTypes
  143. message ServicePlanTypesVo {
  144. int64 id = 1; // ID
  145. int64 servicePlanId = 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 ServicePlanTypesGetReq { ServicePlanTypesVo vo = 1; }
  154. message ServicePlanTypesGetResp { ServicePlanTypesVo vo = 1; }
  155. message ServicePlanTypesAddReq { ServicePlanTypesVo vo = 1; }
  156. message ServicePlanTypesAddResp { ServicePlanTypesVo vo = 1; }
  157. message ServicePlanTypesUpdateReq { ServicePlanTypesVo vo = 1; }
  158. message ServicePlanTypesUpdateResp { ServicePlanTypesVo vo = 1; }
  159. message ServicePlanTypesDelReq { repeated int64 ids = 1; }
  160. message ServicePlanTypesListReq {
  161. Page page = 1;
  162. ServicePlanTypesVo vo = 2;
  163. repeated int64 servicePlanIds = 3;
  164. repeated int64 serviceTypeIds = 4;
  165. repeated int64 excludeIds = 5;
  166. }
  167. message ServicePlanTypesListResp {
  168. int64 total = 1;
  169. repeated ServicePlanTypesVo list = 2;
  170. }
  171. // end ServicePlanTypes
  172. // SubscribePeriodType 订阅周期类型
  173. enum SubscribePeriodType {
  174. SubscribePeriodTypeUnknown = 0;
  175. SubscribePeriodTypeDay = 1;
  176. SubscribePeriodTypeWeek = 2;
  177. SubscribePeriodTypeMonth = 3;
  178. SubscribePeriodTypeYear = 4;
  179. }
  180. // ServiceGoods
  181. message ServiceGoodsVo {
  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 ServiceGoodsWithPlansVo {
  209. ServiceGoodsVo serviceGoods = 1;
  210. repeated ServicePlanWithDurationVo servicePlans = 2;
  211. }
  212. message ServiceGoodsWithPlansAndDetailsVo {
  213. ServiceGoodsVo serviceGoods = 1;
  214. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  215. }
  216. message ServiceGoodsGetReq { ServiceGoodsVo vo = 1; }
  217. message ServiceGoodsGetResp { ServiceGoodsVo vo = 1; }
  218. message ServiceGoodsGetWithPlansReq { ServiceGoodsVo vo = 1; }
  219. message ServiceGoodsGetWithPlansResp {
  220. ServiceGoodsVo serviceGoods = 1;
  221. repeated ServicePlanWithDurationVo servicePlans = 2;
  222. }
  223. message ServiceGoodsGetWithPlansAndDetailsReq { ServiceGoodsVo vo = 1; }
  224. message ServiceGoodsGetWithPlansAndDetailsResp {
  225. ServiceGoodsVo serviceGoods = 1;
  226. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  227. }
  228. message ServiceGoodsAddReq { ServiceGoodsVo vo = 1; }
  229. message ServiceGoodsAddResp { ServiceGoodsVo vo = 1; }
  230. message ServiceGoodsAddWithPlansReq {
  231. ServiceGoodsVo serviceGoods = 1;
  232. repeated ServicePlanWithDurationVo servicePlans = 2;
  233. }
  234. message ServiceGoodsAddWithPlansResp {
  235. ServiceGoodsVo serviceGoods = 1;
  236. repeated ServicePlanWithDurationVo servicePlans = 2;
  237. }
  238. message ServiceGoodsAddWithPlansAndDetailsReq {
  239. ServiceGoodsVo serviceGoods = 1;
  240. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  241. }
  242. message ServiceGoodsAddWithPlansAndDetailsResp {
  243. ServiceGoodsVo serviceGoods = 1;
  244. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  245. }
  246. message ServiceGoodsUpdateReq { ServiceGoodsVo vo = 1; }
  247. message ServiceGoodsUpdateResp { ServiceGoodsVo vo = 1; }
  248. message ServiceGoodsUpdateWithPlansReq {
  249. ServiceGoodsVo serviceGoods = 1;
  250. repeated ServicePlanWithDurationVo servicePlans = 2;
  251. }
  252. message ServiceGoodsUpdateWithPlansResp {
  253. ServiceGoodsVo serviceGoods = 1;
  254. repeated ServicePlanWithDurationVo servicePlans = 2;
  255. }
  256. message ServiceGoodsUpdateWithPlansAndDetailsReq {
  257. ServiceGoodsVo serviceGoods = 1;
  258. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  259. }
  260. message ServiceGoodsUpdateWithPlansAndDetailsResp {
  261. ServiceGoodsVo serviceGoods = 1;
  262. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  263. }
  264. message ServiceGoodsDelReq { repeated int64 ids = 1; }
  265. message ServiceGoodsListReq {
  266. Page page = 1;
  267. ServiceGoodsVo vo = 2;
  268. repeated string productCodes = 3;
  269. repeated int64 excludeIds = 4;
  270. }
  271. message ServiceGoodsListResp {
  272. int64 total = 1;
  273. repeated ServiceGoodsVo list = 2;
  274. }
  275. message ServiceGoodsListWithPlansReq {
  276. Page page = 1;
  277. ServiceGoodsVo vo = 2;
  278. repeated string productCodes = 3;
  279. repeated int64 excludeIds = 4;
  280. }
  281. message ServiceGoodsListWithPlansResp {
  282. int64 total = 1;
  283. repeated ServiceGoodsWithPlansVo list = 2;
  284. }
  285. message ServiceGoodsListWithPlansAndDetailsReq {
  286. Page page = 1;
  287. ServiceGoodsVo vo = 2;
  288. repeated string productCodes = 3;
  289. repeated int64 excludeIds = 4;
  290. }
  291. message ServiceGoodsListWithPlansAndDetailsResp {
  292. int64 total = 1;
  293. repeated ServiceGoodsWithPlansAndDetailsVo list = 2;
  294. }
  295. // end ServiceGoods
  296. // ServiceGoodsPlans
  297. message ServiceGoodsPlansVo {
  298. int64 id = 1; // ID
  299. int64 serviceGoodsId = 2; // 商品ID
  300. int64 servicePlanId = 3; // 套餐ID
  301. int64 licenseDurationDay = 4; // 套餐持续天数
  302. int64 licenseDurationMinutes = 5; // 套餐额外持续分钟数
  303. int64 createTime = 6; // 创建时间
  304. int64 createAt = 7; // 创建者ID
  305. int64 updateTime = 8; // 更新时间
  306. int64 updateAt = 9; // 更新者ID
  307. }
  308. message ServiceGoodsPlansGetReq { ServiceGoodsPlansVo vo = 1; }
  309. message ServiceGoodsPlansGetResp { ServiceGoodsPlansVo vo = 1; }
  310. message ServiceGoodsPlansAddReq { ServiceGoodsPlansVo vo = 1; }
  311. message ServiceGoodsPlansAddResp { ServiceGoodsPlansVo vo = 1; }
  312. message ServiceGoodsPlansUpdateReq { ServiceGoodsPlansVo vo = 1; }
  313. message ServiceGoodsPlansUpdateResp { ServiceGoodsPlansVo vo = 1; }
  314. message ServiceGoodsPlansDelReq { repeated int64 ids = 1; }
  315. message ServiceGoodsPlansListReq {
  316. Page page = 1;
  317. ServiceGoodsPlansVo vo = 2;
  318. repeated int64 serviceGoodsIds = 3;
  319. repeated int64 servicePlanIds = 4;
  320. repeated int64 excludeIds = 5;
  321. }
  322. message ServiceGoodsPlansListResp {
  323. int64 total = 1;
  324. repeated ServiceGoodsPlansVo list = 2;
  325. }
  326. // end ServiceGoodsPlans
  327. // ServiceGoodsChannel
  328. message ServiceGoodsChannelVo {
  329. int64 id = 1; // ID
  330. string productCode = 2; // 产品标识
  331. string channel = 3; // 渠道标识
  332. string channelItemId = 4; // 商品唯一ID或商店SKUID
  333. int64 serviceGoodsId = 5; // 商品ID
  334. string title = 6; // 自定义标题(对外显示)
  335. string subTitle = 7; // 自定义副标题(对外显示)
  336. string introduce = 8; // 自定义简介(对外显示)
  337. string tag = 9; // 自定义标签内容(对外显示)
  338. float orgPrice = 10; // 在该渠道下的原价
  339. float price = 11; // 在该渠道下的现价
  340. int64 currency = 12; // 价格货币类型
  341. BoolInt recommend = 13; // 是否推荐商品(默认值) 1推荐 2不推荐
  342. BoolInt isDefault = 14; // 是否默认商品(默认值) 1默认 2不默认
  343. string displayPolicyConfig = 15; // 显示策略
  344. int64 sort = 16; // 排序
  345. Status status = 17; // 状态 1启用 2禁用
  346. string remark = 18; // 备注
  347. int64 createTime = 19; // 创建时间
  348. int64 createAt = 20; // 创建者ID
  349. int64 updateTime = 21; // 更新时间
  350. int64 updateAt = 22; // 更新者ID
  351. }
  352. message ServiceGoodsChannelWithGoodsVo {
  353. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  354. ServiceGoodsVo serviceGoods = 2;
  355. }
  356. message ServiceGoodsChannelWithGoodsAndPlansVo {
  357. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  358. ServiceGoodsVo serviceGoods = 2;
  359. repeated ServicePlanWithDurationVo servicePlans = 3;
  360. }
  361. message ServiceGoodsChannelWithGoodsAndPlansAndDetailsVo {
  362. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  363. ServiceGoodsVo serviceGoods = 2;
  364. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 3;
  365. }
  366. message ServiceGoodsChannelGetReq { ServiceGoodsChannelVo vo = 1; }
  367. message ServiceGoodsChannelGetResp { ServiceGoodsChannelVo vo = 1; }
  368. message ServiceGoodsChannelGetWithGoodsReq { ServiceGoodsChannelVo vo = 1; }
  369. message ServiceGoodsChannelGetWithGoodsResp {
  370. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  371. ServiceGoodsVo serviceGoods = 2;
  372. }
  373. message ServiceGoodsChannelGetWithGoodsAndPlansReq { ServiceGoodsChannelVo vo = 1; }
  374. message ServiceGoodsChannelGetWithGoodsAndPlansResp {
  375. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  376. ServiceGoodsVo serviceGoods = 2;
  377. repeated ServicePlanWithDurationVo servicePlans = 3;
  378. }
  379. message ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsReq { ServiceGoodsChannelVo vo = 1; }
  380. message ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsResp {
  381. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  382. ServiceGoodsVo serviceGoods = 2;
  383. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 3;
  384. }
  385. message ServiceGoodsChannelAddReq { ServiceGoodsChannelVo vo = 1; }
  386. message ServiceGoodsChannelAddResp { ServiceGoodsChannelVo vo = 1; }
  387. message ServiceGoodsChannelUpdateReq { ServiceGoodsChannelVo vo = 1; }
  388. message ServiceGoodsChannelUpdateResp { ServiceGoodsChannelVo vo = 1; }
  389. message ServiceGoodsChannelDelReq { repeated int64 ids = 1; }
  390. message ServiceGoodsChannelListReq {
  391. Page page = 1;
  392. ServiceGoodsChannelVo vo = 2;
  393. repeated string productCodes = 3;
  394. repeated string channels = 4;
  395. repeated int64 serviceGoodsIds = 5;
  396. repeated int64 excludeIds = 6;
  397. }
  398. message ServiceGoodsChannelListResp {
  399. int64 total = 1;
  400. repeated ServiceGoodsChannelVo list = 2;
  401. }
  402. message ServiceGoodsChannelListWithGoodsReq {
  403. Page page = 1;
  404. ServiceGoodsChannelVo vo = 2;
  405. repeated string productCodes = 3;
  406. repeated string channels = 4;
  407. repeated int64 serviceGoodsIds = 5;
  408. repeated int64 excludeIds = 6;
  409. }
  410. message ServiceGoodsChannelListWithGoodsResp {
  411. int64 total = 1;
  412. repeated ServiceGoodsChannelWithGoodsVo list = 2;
  413. }
  414. message ServiceGoodsChannelListWithGoodsAndPlansReq {
  415. Page page = 1;
  416. ServiceGoodsChannelVo vo = 2;
  417. repeated string productCodes = 3;
  418. repeated string channels = 4;
  419. repeated int64 serviceGoodsIds = 5;
  420. repeated int64 excludeIds = 6;
  421. }
  422. message ServiceGoodsChannelListWithGoodsAndPlansResp {
  423. int64 total = 1;
  424. repeated ServiceGoodsChannelWithGoodsAndPlansVo list = 2;
  425. }
  426. message ServiceGoodsChannelListWithGoodsAndPlansAndDetailsReq {
  427. Page page = 1;
  428. ServiceGoodsChannelVo vo = 2;
  429. repeated string productCodes = 3;
  430. repeated string channels = 4;
  431. repeated int64 serviceGoodsIds = 5;
  432. repeated int64 excludeIds = 6;
  433. }
  434. message ServiceGoodsChannelListWithGoodsAndPlansAndDetailsResp {
  435. int64 total = 1;
  436. repeated ServiceGoodsChannelWithGoodsAndPlansAndDetailsVo list = 2;
  437. }
  438. // end ServiceGoodsChannel
  439. service GoGoodsClient {
  440. /** ServiceTypes Model */
  441. // ServiceTypesAdd
  442. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesAddResp);
  443. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesUpdateResp);
  444. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  445. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesGetResp);
  446. rpc ServiceTypesGetWithValue(ServiceTypesGetWithValueReq) returns (ServiceTypesGetWithValueResp);
  447. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  448. rpc ServiceTypesListWithValue(ServiceTypesListWithValueReq) returns (ServiceTypesListWithValueResp);
  449. /** ServicePlan Model */
  450. // ServicePlanAdd
  451. rpc ServicePlanAdd(ServicePlanAddReq) returns (ServicePlanAddResp);
  452. rpc ServicePlanAddWithDetails(ServicePlanAddWithDetailsReq) returns (ServicePlanAddWithDetailsResp);
  453. rpc ServicePlanUpdate(ServicePlanUpdateReq) returns (ServicePlanUpdateResp);
  454. rpc ServicePlanUpdateWithDetails(ServicePlanUpdateWithDetailsReq) returns (ServicePlanUpdateWithDetailsResp);
  455. rpc ServicePlanDel(ServicePlanDelReq) returns (Empty);
  456. rpc ServicePlanGet(ServicePlanGetReq) returns (ServicePlanGetResp);
  457. rpc ServicePlanGetWithDetails(ServicePlanGetWithDetailsReq) returns (ServicePlanGetWithDetailsResp);
  458. rpc ServicePlanList(ServicePlanListReq) returns (ServicePlanListResp);
  459. rpc ServicePlanListWithDetails(ServicePlanListWithDetailsReq) returns (ServicePlanListWithDetailsResp);
  460. /** ServicePlanTypes Model */
  461. // ServicePlanTypesAdd
  462. rpc ServicePlanTypesAdd(ServicePlanTypesAddReq) returns (ServicePlanTypesAddResp);
  463. rpc ServicePlanTypesUpdate(ServicePlanTypesUpdateReq) returns (ServicePlanTypesUpdateResp);
  464. rpc ServicePlanTypesDel(ServicePlanTypesDelReq) returns (Empty);
  465. rpc ServicePlanTypesGet(ServicePlanTypesGetReq) returns (ServicePlanTypesGetResp);
  466. rpc ServicePlanTypesList(ServicePlanTypesListReq) returns (ServicePlanTypesListResp);
  467. /** ServiceGoods Model */
  468. // ServiceGoodsAdd
  469. rpc ServiceGoodsAdd(ServiceGoodsAddReq) returns (ServiceGoodsAddResp);
  470. rpc ServiceGoodsAddWithPlans(ServiceGoodsAddWithPlansReq) returns (ServiceGoodsAddWithPlansResp);
  471. rpc ServiceGoodsAddWithPlansAndDetails(ServiceGoodsAddWithPlansAndDetailsReq) returns (ServiceGoodsAddWithPlansAndDetailsResp);
  472. rpc ServiceGoodsUpdate(ServiceGoodsUpdateReq) returns (ServiceGoodsUpdateResp);
  473. rpc ServiceGoodsUpdateWithPlans(ServiceGoodsUpdateWithPlansReq) returns (ServiceGoodsUpdateWithPlansResp);
  474. rpc ServiceGoodsUpdateWithPlansAndDetails(ServiceGoodsUpdateWithPlansAndDetailsReq) returns (ServiceGoodsUpdateWithPlansAndDetailsResp);
  475. rpc ServiceGoodsDel(ServiceGoodsDelReq) returns (Empty);
  476. rpc ServiceGoodsGet(ServiceGoodsGetReq) returns (ServiceGoodsGetResp);
  477. rpc ServiceGoodsGetWithPlans(ServiceGoodsGetWithPlansReq) returns (ServiceGoodsGetWithPlansResp);
  478. rpc ServiceGoodsGetWithPlansAndDetails(ServiceGoodsGetWithPlansAndDetailsReq) returns (ServiceGoodsGetWithPlansAndDetailsResp);
  479. rpc ServiceGoodsList(ServiceGoodsListReq) returns (ServiceGoodsListResp);
  480. rpc ServiceGoodsListWithPlans(ServiceGoodsListWithPlansReq) returns (ServiceGoodsListWithPlansResp);
  481. rpc ServiceGoodsListWithPlansAndDetails(ServiceGoodsListWithPlansAndDetailsReq) returns (ServiceGoodsListWithPlansAndDetailsResp);
  482. /** ServiceGoodsPlans Model */
  483. // ServiceGoodsPlansAdd
  484. rpc ServiceGoodsPlansAdd(ServiceGoodsPlansAddReq) returns (ServiceGoodsPlansAddResp);
  485. rpc ServiceGoodsPlansUpdate(ServiceGoodsPlansUpdateReq) returns (ServiceGoodsPlansUpdateResp);
  486. rpc ServiceGoodsPlansDel(ServiceGoodsPlansDelReq) returns (Empty);
  487. rpc ServiceGoodsPlansGet(ServiceGoodsPlansGetReq) returns (ServiceGoodsPlansGetResp);
  488. rpc ServiceGoodsPlansList(ServiceGoodsPlansListReq) returns (ServiceGoodsPlansListResp);
  489. /** ServiceGoodsChannel Model */
  490. // ServiceGoodsChannelAdd
  491. rpc ServiceGoodsChannelAdd(ServiceGoodsChannelAddReq) returns (ServiceGoodsChannelAddResp);
  492. rpc ServiceGoodsChannelUpdate(ServiceGoodsChannelUpdateReq) returns (ServiceGoodsChannelUpdateResp);
  493. rpc ServiceGoodsChannelDel(ServiceGoodsChannelDelReq) returns (Empty);
  494. rpc ServiceGoodsChannelGet(ServiceGoodsChannelGetReq) returns (ServiceGoodsChannelGetResp);
  495. rpc ServiceGoodsChannelGetWithGoods(ServiceGoodsChannelGetWithGoodsReq) returns (ServiceGoodsChannelGetWithGoodsResp);
  496. rpc ServiceGoodsChannelGetWithGoodsAndPlans(ServiceGoodsChannelGetWithGoodsAndPlansReq) returns (ServiceGoodsChannelGetWithGoodsAndPlansResp);
  497. rpc ServiceGoodsChannelGetWithGoodsAndPlansAndDetails(ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsReq) returns (ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsResp);
  498. rpc ServiceGoodsChannelList(ServiceGoodsChannelListReq) returns (ServiceGoodsChannelListResp);
  499. rpc ServiceGoodsChannelListWithGoods(ServiceGoodsChannelListWithGoodsReq) returns (ServiceGoodsChannelListWithGoodsResp);
  500. rpc ServiceGoodsChannelListWithGoodsAndPlans(ServiceGoodsChannelListWithGoodsAndPlansReq) returns (ServiceGoodsChannelListWithGoodsAndPlansResp);
  501. rpc ServiceGoodsChannelListWithGoodsAndPlansAndDetails(ServiceGoodsChannelListWithGoodsAndPlansAndDetailsReq) returns (ServiceGoodsChannelListWithGoodsAndPlansAndDetailsResp);
  502. }