pmp.proto 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113
  1. syntax = "proto3";
  2. package gorpc;
  3. option go_package = "git.goio.dev/pb/go-service-pb/client";
  4. import "pb/common.proto";
  5. message I18nVo {
  6. string code = 1;
  7. string value = 2;
  8. }
  9. message ConfigGetReq {
  10. int64 id = 1; // ID
  11. string code = 2; // 类型标识
  12. }
  13. // GlobalParam
  14. message GlobalParamVo {
  15. int64 id = 1;
  16. string paramKey = 2;
  17. string paramValue = 3;
  18. string valueType = 4;
  19. float minValue = 5;
  20. float maxValue = 6;
  21. string name = 7;
  22. BoolInt editable = 8;
  23. BoolInt nullable = 9;
  24. BoolInt hidden = 10;
  25. BoolInt mutiLang = 11;
  26. int64 sort = 12;
  27. string remark = 13;
  28. BoolInt apiExport = 14;
  29. string apiExportName = 15;
  30. int64 createTime = 16;
  31. int64 updateTime = 17;
  32. // valueType 为 string、text、json、string[], 且 mutiLang 为 true
  33. // 时,需要同时干查询/修改/插入多语言数据
  34. repeated I18nVo i18ns = 18;
  35. }
  36. message GlobalParamGetReq {
  37. GlobalParamVo vo = 1;
  38. string lang = 2;
  39. }
  40. message GlobalParamListReq {
  41. Page page = 1;
  42. GlobalParamVo vo = 2;
  43. repeated int64 excludeIds = 3; // 排除的ID
  44. };
  45. message GlobalParamListResp {
  46. int64 total = 1;
  47. repeated GlobalParamVo list = 2;
  48. };
  49. // end GlobalParam
  50. // Product
  51. message ProductVo {
  52. int64 id = 1;
  53. string code = 2;
  54. string name = 3;
  55. string domain = 4;
  56. Status status = 5;
  57. string langs = 6;
  58. string defaultLang = 7;
  59. string remark = 8;
  60. int64 createTime = 9;
  61. int64 updateTime = 10;
  62. }
  63. message ProductListReq {
  64. Page page = 1;
  65. ProductVo vo = 2;
  66. repeated string productCodes = 3;
  67. repeated int64 excludeIds = 4;
  68. }
  69. message ProductListResp {
  70. int64 total = 1;
  71. repeated ProductVo list = 2;
  72. }
  73. // end Product
  74. // ProductParam
  75. message ProductParamVo {
  76. int64 id = 1;
  77. string productCode = 2;
  78. string paramKey = 3;
  79. string paramValue = 4;
  80. string valueType = 5;
  81. float minValue = 6;
  82. float maxValue = 7;
  83. string name = 8;
  84. BoolInt editable = 9;
  85. BoolInt nullable = 10;
  86. BoolInt hidden = 11;
  87. BoolInt mutiLang = 12;
  88. int64 sort = 13;
  89. string remark = 14;
  90. BoolInt apiExport = 15;
  91. string apiExportName = 16;
  92. int64 createTime = 17;
  93. int64 updateTime = 18;
  94. // valueType 为 string、text、json、string[], 且 mutiLang 为 true
  95. // 时,需要同时干查询/修改/插入多语言数据
  96. repeated I18nVo i18ns = 19;
  97. }
  98. message ProductParamGetReq {
  99. ProductParamVo vo = 1;
  100. string lang = 2;
  101. }
  102. message ProductParamListReq {
  103. Page page = 1;
  104. ProductParamVo vo = 2;
  105. repeated string productCodes = 3;
  106. repeated int64 excludeIds = 4;
  107. };
  108. message ProductParamListResp {
  109. int64 total = 1;
  110. repeated ProductParamVo list = 2;
  111. };
  112. // end ProductParam
  113. // ProductAction
  114. message ProductActionVo {
  115. int64 id = 1;
  116. string productCode = 2;
  117. string imgUrl = 3;
  118. string actionType = 4;
  119. string actionData = 5;
  120. string title = 6;
  121. Status status = 7;
  122. int64 createTime = 8;
  123. int64 updateTime = 9;
  124. int64 sort = 10;
  125. }
  126. message ProductActionReq { ProductActionVo vo = 1; }
  127. message ProductActionListReq {
  128. Page page = 1;
  129. ProductActionVo vo = 2;
  130. repeated string productCodes = 3;
  131. repeated int64 excludeIds = 4;
  132. }
  133. message ProductActionListResp {
  134. int64 total = 1;
  135. repeated ProductActionVo list = 2;
  136. }
  137. // end ProductAction
  138. // AreaParam
  139. message AreaParamVo {
  140. int64 id = 1;
  141. string productCode = 2;
  142. string name = 3;
  143. string areas = 4;
  144. string paramValue = 5;
  145. Status status = 6;
  146. int64 sort = 7;
  147. string remark = 8;
  148. int64 createTime = 9;
  149. int64 updateTime = 10;
  150. string version = 11;
  151. }
  152. message AreaParamListReq {
  153. Page page = 1;
  154. AreaParamVo vo = 2;
  155. repeated string productCodes = 3; // 产品code
  156. repeated int64 excludeIds = 4; // 排除的ID
  157. }
  158. message AreaParamListResp {
  159. int64 total = 1;
  160. repeated AreaParamVo list = 2;
  161. }
  162. // end AreaParam
  163. // NationalLanguage
  164. message NationalLanguageVo {
  165. int64 id = 1;
  166. string tbName = 2;
  167. int64 tbRowId = 3;
  168. string tbFieldName = 4;
  169. string lan = 5;
  170. string value = 6;
  171. Status status = 7;
  172. int64 updateTime = 8;
  173. int64 createTime = 9;
  174. }
  175. message NationalLanguageListReq {
  176. Page page = 1;
  177. NationalLanguageVo vo = 2;
  178. repeated int64 excludeIds = 3; // 排除的ID
  179. }
  180. message NationalLanguageListResp {
  181. int64 total = 1;
  182. repeated NationalLanguageVo list = 2;
  183. }
  184. // end NationalLanguage
  185. // Tip
  186. message TipVo {
  187. int64 id = 1;
  188. string productCode = 2;
  189. string paramKey = 3;
  190. string paramValue = 4;
  191. string code = 5;
  192. int64 showType = 6;
  193. int64 sort = 7;
  194. string remark = 8;
  195. int64 createTime = 9;
  196. int64 updateTime = 10;
  197. repeated I18nVo i18ns = 11;
  198. }
  199. message TipGetReq {
  200. TipVo vo = 1;
  201. string lang = 2;
  202. }
  203. message TipListReq {
  204. Page page = 1;
  205. TipVo vo = 2;
  206. repeated string productCodes = 3;
  207. repeated int64 excludeIds = 4; // 排除的ID
  208. }
  209. message TipListResp {
  210. int64 total = 1;
  211. repeated TipVo list = 2;
  212. }
  213. // end Tip
  214. // Dict
  215. message DictVo {
  216. int64 id = 1;
  217. string productCode = 2;
  218. int64 parentId = 3;
  219. string dataType = 4;
  220. string name = 5;
  221. string payload = 6;
  222. int64 sort = 7;
  223. Status status = 8;
  224. string remark = 9;
  225. int64 createTime = 10;
  226. int64 updateTime = 11;
  227. string payloadJson = 12;
  228. }
  229. message DictGetReq { DictVo vo = 1; }
  230. message DictListReq {
  231. Page page = 1;
  232. DictVo vo = 2;
  233. repeated string productCodes = 3;
  234. repeated int64 excludeIds = 4;
  235. }
  236. message DictListResp {
  237. int64 total = 1;
  238. repeated DictVo list = 2;
  239. }
  240. // end Dict
  241. // message UpgradeResVo {
  242. // int64 id = 1;
  243. // string title = 2;
  244. // string path = 3;
  245. // string fileMd5 = 4;
  246. // string filePath = 5;
  247. // string metadataId = 6;
  248. // string createdAt = 7;
  249. // string runtimeVersion = 8;
  250. // int64 runtimeVersionCode = 9;
  251. // string appVersionName = 10;
  252. // int64 appVersionCode = 11;
  253. // Status status = 12;
  254. // string remark = 13;
  255. // int64 createTime = 14;
  256. // int64 updateTime = 15;
  257. // int64 resSize = 16;
  258. // }
  259. // message UpgradeResConfigVo {
  260. // int64 id = 1;
  261. // int64 productId = 2;
  262. // string platform = 3;
  263. // string channel = 4;
  264. // int64 resId = 5;
  265. // int64 isForceUpdate = 6;
  266. // string forceIntro = 7;
  267. // string areaConfigs = 8;
  268. // string versionConfigs = 9;
  269. // int64 interval = 10;
  270. // int64 upgradeRate = 11;
  271. // string intro = 12;
  272. // string apis = 13;
  273. // Status status = 14;
  274. // string remark = 15;
  275. // string userIds = 16;
  276. // int64 createTime = 17;
  277. // int64 updateTime = 18;
  278. // string forceVersionConfigs = 19;
  279. // string forceAreaConfigs = 20;
  280. // string runtimeVersionConfigs = 21;
  281. // string title = 22;
  282. // int64 isSilent = 23;
  283. // }
  284. // message UpgradePkgVo {
  285. // int64 id = 1;
  286. // int64 productId = 2;
  287. // string platform = 3;
  288. // string channel = 4;
  289. // int64 versionCode = 5;
  290. // string versionName = 6;
  291. // string fileMd5 = 7;
  292. // string areaConfigs = 8;
  293. // string versionConfigs = 9;
  294. // int64 interval = 10;
  295. // int64 upgradeRate = 11;
  296. // string intro = 12;
  297. // string appStoreUrl = 13;
  298. // string url = 14;
  299. // string onlineUrls = 15;
  300. // string userIds = 16;
  301. // int64 isForceUpdate = 17;
  302. // string forceIntro = 18;
  303. // string forceVersionConfigs = 19;
  304. // Status status = 20;
  305. // string remark = 21;
  306. // int64 createTime = 22;
  307. // int64 updateTime = 23;
  308. // string title = 24;
  309. // string forceAreaConfigs = 25;
  310. // }
  311. // message UpgradeResConfigGetReq {
  312. // Page page = 1;
  313. // int64 id = 2;
  314. // }
  315. // message UpgradeResConfigListReq {
  316. // Page page = 1;
  317. // UpgradeResConfigVo vo = 2;
  318. // }
  319. // message UpgradeResConfigListResp {
  320. // int64 total = 1;
  321. // repeated UpgradeResConfigVo list = 2;
  322. // }
  323. // message UpgradePkgGetReq { UpgradePkgVo vo = 1; }
  324. // message UpgradePkgListReq {
  325. // Page page = 1;
  326. // UpgradePkgVo vo = 2;
  327. // }
  328. // message UpgradePkgListResp {
  329. // int64 total = 1;
  330. // repeated UpgradePkgVo list = 2;
  331. // }
  332. // message UpgradeResGetReq { UpgradeResVo vo = 1; }
  333. // message UpgradeResListReq {
  334. // Page page = 1;
  335. // UpgradeResVo vo = 2;
  336. // }
  337. // message UpgradeResListResp {
  338. // int64 total = 1;
  339. // repeated UpgradeResVo list = 2;
  340. // }
  341. // message ResourceDelReq {
  342. // repeated int64 ids = 1;
  343. // string fileMd5 = 2;
  344. // }
  345. // UpgradePkgPlan
  346. message UpgradePkgPlanVo {
  347. int64 id = 1;
  348. string productCode = 2; // 产品code
  349. string areas = 3; // 地区列表
  350. int64 sort = 4;
  351. Status status = 5; // 状态
  352. string remark = 6;
  353. int64 createTime = 7;
  354. int64 updateTime = 8;
  355. }
  356. message UpgradePkgPlanListReq {
  357. Page page = 1;
  358. UpgradePkgPlanVo vo = 2;
  359. repeated string productCodes = 3;
  360. repeated int64 excludeIds = 4;
  361. }
  362. message UpgradePkgPlanListResp {
  363. int64 total = 1;
  364. repeated UpgradePkgPlanVo list = 2;
  365. }
  366. // end UpgradePkgPlan
  367. // UpgradePkgPlanDetail
  368. message UpgradePkgPlanDetailVo {
  369. int64 id = 1;
  370. int64 planId = 2; // 方案ID
  371. string platform = 3; // 平台
  372. string channel = 4; // 渠道
  373. string name = 5; // 名称
  374. int64 ver = 6; // 版本号
  375. string url = 7; // 商店地址
  376. string websiteUrl = 8; // 官网地址
  377. string directUrl = 9; // 直接下载地址
  378. string md5 = 10; // MD5
  379. string info = 11; // 更新信息
  380. string testUpgradePolicyConfig = 12; // 测试更新策略配置
  381. string upgradePolicyConfig = 13; // 更新策略配置
  382. string forceUpgradePolicyConfig = 14; // 强制更新策略
  383. Status status = 15; // 状态
  384. string remark = 16;
  385. int64 createTime = 17;
  386. int64 updateTime = 18;
  387. }
  388. message UpgradePkgPlanDetailListReq {
  389. Page page = 1;
  390. UpgradePkgPlanDetailVo vo = 2;
  391. repeated int64 planIds = 3;
  392. }
  393. message UpgradePkgPlanDetailListResp {
  394. int64 total = 1;
  395. repeated UpgradePkgPlanDetailVo list = 2;
  396. }
  397. // end UpgradePkgPlanDetail
  398. // UpgradeResPlan
  399. message UpgradeResPlanVo {
  400. int64 id = 1;
  401. string productCode = 2; // 产品code
  402. string areas = 3; // 地区列表
  403. int64 sort = 4;
  404. Status status = 5; // 状态
  405. string remark = 6;
  406. int64 createTime = 7;
  407. int64 updateTime = 8;
  408. }
  409. message UpgradeResPlanListReq {
  410. Page page = 1;
  411. UpgradeResPlanVo vo = 2;
  412. repeated string productCodes = 3;
  413. repeated int64 excludeIds = 4;
  414. }
  415. message UpgradeResPlanListResp {
  416. int64 total = 1;
  417. repeated UpgradeResPlanVo list = 2;
  418. }
  419. // end UpgradeResPlan
  420. // UpgradeResPlanDetail
  421. message UpgradeResPlanDetailVo {
  422. int64 id = 1; // ID
  423. int64 planId = 2; // 方案ID
  424. string platform = 3; // 平台
  425. string channel = 4; // 渠道
  426. string name = 5; // 名称
  427. int64 ver = 6; // 资源版本号
  428. string url = 7; // 资源地址
  429. string info = 8; // 更新信息
  430. string md5 = 9; // 资源 md5值
  431. int64 size = 10; // 资源大小
  432. string testUpgradePolicyConfig = 11; // 测试更新策略配置
  433. string upgradePolicyConfig = 12; // 更新策略配置
  434. string forceUpgradePolicyConfig = 13; // 强制更新策略
  435. Status status = 14; // 状态,1=正常,2=冻结
  436. string remark = 15; // 备注
  437. int64 createTime = 16; // 创建时间秒
  438. int64 updateTime = 17; // 修改时间秒
  439. }
  440. message UpgradeResPlanDetailListReq {
  441. Page page = 1;
  442. UpgradeResPlanDetailVo vo = 2;
  443. repeated int64 planIds = 3;
  444. }
  445. message UpgradeResPlanDetailListResp {
  446. int64 total = 1;
  447. repeated UpgradeResPlanDetailVo list = 2;
  448. }
  449. // end UpgradeResPlanDetail
  450. // AdPlan
  451. message AdPlanVo {
  452. int64 id = 1;
  453. string productCode = 2; // 产品code
  454. string areas = 3; // 地区列表
  455. string config = 4; // 配置
  456. int64 sort = 5;
  457. Status status = 6; // 状态
  458. string remark = 7;
  459. int64 createTime = 8;
  460. int64 updateTime = 9;
  461. }
  462. message AdPlanListReq {
  463. Page page = 1;
  464. AdPlanVo vo = 2;
  465. repeated string productCodes = 3;
  466. repeated int64 excludeIds = 4;
  467. }
  468. message AdPlanListResp {
  469. int64 total = 1;
  470. repeated AdPlanVo list = 2;
  471. }
  472. // end AdPlan
  473. // AdPlanDetail
  474. message AdPlanDetailVo {
  475. int64 id = 1;
  476. int64 planId = 2; // 方案ID
  477. string adPlatform = 3; // 平台
  478. string adType = 4; // 广告类型
  479. string adSlot = 5; // 广告位置
  480. string adDatas = 6; // 广告资源
  481. string testPolicyConfig = 7; // 策略配置
  482. string policyConfig = 8; // 策略配置
  483. int64 sort = 9; // 排序
  484. Status status = 10; // 0未知,1正常,2暂停
  485. string remark = 11;
  486. int64 createTime = 12;
  487. int64 updateTime = 13;
  488. string version = 14;
  489. }
  490. message AdPlanDetailListReq {
  491. Page page = 1;
  492. AdPlanDetailVo vo = 2;
  493. repeated int64 planIds = 3;
  494. }
  495. message AdPlanDetailListResp {
  496. int64 total = 1;
  497. repeated AdPlanDetailVo list = 2;
  498. }
  499. // end AdPlanDetail
  500. // AdGlobalConfig
  501. message AdGlobalConfigVo {
  502. int64 id = 1;
  503. string productCode = 2; // 产品code
  504. string platforms = 3; // 按平台分类的广告配置JSON
  505. string remark = 4; // 备注
  506. int64 createTime = 5; // 创建时间
  507. int64 updateTime = 6; // 更新时间
  508. }
  509. message AdGlobalConfigGetReq {
  510. string productCode = 1; // 产品代码
  511. }
  512. // end AdGlobalConfig
  513. // JobBatch
  514. message JobBatchVo {
  515. int64 id = 1; // ID
  516. string name = 2; // 作业名称
  517. string type = 3; // 作业类型
  518. string initParams = 4; // 作业初始化参数
  519. string contextData =
  520. 5; // 上下文数据,可用于存储此次批量作业的任务过程中产生的通用的中间数据
  521. string beginHandler = 6; // 预处理函数/URL
  522. string afterHandler = 7; // 后处理函数/URL
  523. int64 concurrency = 8; // 并发控制数
  524. string retryPolicy = 9; // 子任务重试策略
  525. int64 startedTime = 10; // 批量作业开始时间
  526. int64 finishedTime = 11; // 批量作业完成时间
  527. string result = 12; // 批量作业返回结果
  528. string status = 13; // 批量作业完成状态
  529. string remark = 14; // 备注
  530. int64 createAt = 15; // 创建者ID
  531. int64 updateAt = 16; // 更新者ID
  532. int64 createTime = 17; // 创建时间
  533. int64 updateTime = 18; // 更新时间
  534. }
  535. message JobBatchWithTasksVo {
  536. JobBatchVo jobBatch = 1;
  537. repeated JobTasksVo jobTasks = 2;
  538. }
  539. message TimeRange {
  540. int64 start = 1;
  541. int64 end = 2;
  542. }
  543. message JobBatchListReq {
  544. Page page = 1;
  545. JobBatchVo vo = 2;
  546. TimeRange startedTimeRange = 3;
  547. TimeRange finishedTimeRange = 4;
  548. repeated string statuses = 5;
  549. repeated int64 excludeIds = 6;
  550. }
  551. message JobBatchListResp {
  552. int64 total = 1;
  553. repeated JobBatchVo list = 2;
  554. }
  555. message JobBatchListWithTasksResp {
  556. int64 total = 1;
  557. repeated JobBatchWithTasksVo list = 2;
  558. }
  559. // end JobBatch
  560. // JobTasks
  561. message JobTasksVo {
  562. int64 id = 1; // 任务id
  563. int64 batchId = 2; // 批量作业Id
  564. string name = 3; // 任务名称
  565. string initParams = 4; // 任务初始化配置及数据
  566. string runtimeData =
  567. 5; // 任务运行时数据,用于临时存储任务过程中各个关键节点的中间数据
  568. string externalRefs = 6; // 外部系统引用,用于记录与外部系统交互产生的关联标识
  569. int64 startedTime = 7; // 任务开始时间
  570. int64 finishedTime = 8; // 任务结束时间
  571. int64 retryCount = 9; // 当前已重试次数
  572. string result = 10; // 任务执行结果
  573. string status = 11; // 任务状态
  574. string remark = 12; // 备注
  575. int64 createAt = 13; // 创建者ID
  576. int64 updateAt = 14; // 更新者ID
  577. int64 createTime = 15; // 创建时间
  578. int64 updateTime = 16; // 更新时间
  579. }
  580. message JobTasksListReq {
  581. Page page = 1;
  582. JobTasksVo vo = 2;
  583. TimeRange startedTimeRange = 3;
  584. TimeRange finishedTimeRange = 4;
  585. repeated string statuses = 5;
  586. repeated int64 excludeIds = 6;
  587. }
  588. message JobTasksListResp {
  589. int64 total = 1;
  590. repeated JobTasksVo list = 2;
  591. }
  592. // end JobTasks
  593. // DeployConfig
  594. message DeployConfigVo {
  595. int64 id = 1; // ID
  596. string name = 2; // 名称
  597. string type = 3; // 类型
  598. string data = 4; // 数据
  599. Status status = 5; // 状态
  600. string remark = 6; // 备注
  601. int64 createTime = 7; // 创建时间
  602. int64 updateTime = 8; // 更新时间
  603. }
  604. message DeployConfigListReq {
  605. Page page = 1;
  606. DeployConfigVo vo = 2;
  607. repeated int64 excludeIds = 3;
  608. }
  609. message DeployConfigListResp {
  610. int64 total = 1;
  611. repeated DeployConfigVo list = 2;
  612. }
  613. // end DeployConfig
  614. // OperationLog
  615. message OperationLogVo {
  616. int64 id = 1;
  617. int64 sysUserId = 2;
  618. string productCode = 3;
  619. string model = 4;
  620. string action = 5;
  621. string details = 6;
  622. string result = 7;
  623. int64 updateTime = 8;
  624. int64 createTime = 9;
  625. }
  626. message OperationLogListReq {
  627. Page page = 1;
  628. OperationLogVo vo = 2;
  629. repeated string productCodes = 3;
  630. repeated int64 excludeIds = 4;
  631. }
  632. message OperationLogListResp {
  633. int64 total = 1;
  634. repeated OperationLogVo list = 2;
  635. }
  636. // end OperationLog
  637. // AnnouncePlan
  638. message AnnouncePlanVo {
  639. int64 id = 1;
  640. string productCode = 2; // 产品code
  641. string areas = 3; // 地区列表
  642. int64 sort = 4;
  643. Status status = 5; // 状态
  644. string remark = 6;
  645. int64 createTime = 7;
  646. int64 updateTime = 8;
  647. }
  648. message AnnouncePlanListReq {
  649. Page page = 1;
  650. AnnouncePlanVo vo = 2;
  651. repeated string productCodes = 3;
  652. repeated int64 excludeIds = 4;
  653. }
  654. message AnnouncePlanListResp {
  655. int64 total = 1;
  656. repeated AnnouncePlanVo list = 2;
  657. }
  658. // end AnnouncePlan
  659. // AnnouncePlanDetail
  660. message AnnouncePlanDetailVo {
  661. int64 id = 1;
  662. int64 planId = 2; // 方案ID
  663. string platforms = 3; // 平台
  664. string channels = 4; // 渠道
  665. string icon = 5; // 图标
  666. string title = 6; // 标题
  667. string content = 7; // 内容
  668. string url = 8; // 商店地址
  669. string buttonText = 9; // 按钮文本
  670. int64 closeable = 10; // 是否可关闭
  671. int64 sort = 11; // 排序
  672. string policyConfig = 12; // 更新策略配置
  673. Status status = 13; // 状态
  674. string remark = 14;
  675. int64 createTime = 15;
  676. int64 updateTime = 16;
  677. }
  678. message AnnouncePlanDetailListReq {
  679. Page page = 1;
  680. AnnouncePlanDetailVo vo = 2;
  681. repeated int64 planIds = 3;
  682. }
  683. message AnnouncePlanDetailListResp {
  684. int64 total = 1;
  685. repeated AnnouncePlanDetailVo list = 2;
  686. }
  687. // end AnnouncePlanDetail
  688. // ServiceTypes
  689. message ServiceTypesVo {
  690. int64 id = 1;
  691. string productCode = 2;
  692. string name = 3;
  693. int64 userLevel = 4;
  694. int64 deviceLimit = 5; // 可选字段,Go中是 *int64
  695. int64 sort = 6;
  696. string config = 7;
  697. Status status = 8;
  698. string remark = 9;
  699. int64 createTime = 10;
  700. int64 updateTime = 11;
  701. }
  702. message ServiceTypesGetReq {
  703. int64 id = 1;
  704. }
  705. message ServiceTypesListReq {
  706. Page page = 1;
  707. ServiceTypesVo vo = 2;
  708. repeated string productCodes = 3;
  709. repeated int64 excludeIds = 4;
  710. }
  711. message ServiceTypesListResp {
  712. int64 total = 1;
  713. repeated ServiceTypesVo list = 2;
  714. }
  715. message ServiceTypesAddReq {
  716. ServiceTypesVo vo = 1;
  717. }
  718. message ServiceTypesUpdateReq {
  719. ServiceTypesVo vo = 1;
  720. }
  721. message ServiceTypesDelReq {
  722. int64 id = 1;
  723. }
  724. // end ServiceTypes
  725. // ServiceSets
  726. message ServiceSetsVo {
  727. int64 id = 1;
  728. string productCode = 2;
  729. int64 serviceTypeId = 3;
  730. string name = 4;
  731. int64 licenseDays = 5;
  732. string channel = 6;
  733. string channelItemId = 7;
  734. int64 refPortalServiceSetId = 8; // Go中是 sql.int64,转换为 int64
  735. string appleChannelItemId = 9;
  736. string googleChannelItemId = 10;
  737. string title = 11;
  738. string subTitle = 12;
  739. string introduce = 13;
  740. float orgPrice = 14;
  741. float price = 15;
  742. BoolInt display = 16;
  743. BoolInt isDefault = 17;
  744. BoolInt recommend = 18;
  745. BoolInt hidden = 19;
  746. int64 sort = 20;
  747. Status status = 21;
  748. string remark = 22;
  749. int64 createTime = 23;
  750. int64 updateTime = 24;
  751. }
  752. message ServiceSetsGetReq {
  753. int64 id = 1;
  754. }
  755. message ServiceSetsListReq {
  756. Page page = 1;
  757. ServiceSetsVo vo = 2;
  758. repeated string productCodes = 3;
  759. repeated int64 serviceTypeIds = 4;
  760. repeated int64 excludeIds = 5;
  761. }
  762. message ServiceSetsListResp {
  763. int64 total = 1;
  764. repeated ServiceSetsVo list = 2;
  765. }
  766. message ServiceSetsAddReq {
  767. ServiceSetsVo vo = 1;
  768. }
  769. message ServiceSetsUpdateReq {
  770. ServiceSetsVo vo = 1;
  771. }
  772. message ServiceSetsDelReq {
  773. int64 id = 1;
  774. }
  775. // end ServiceSets
  776. message MessagePushVo {
  777. int64 id = 1;
  778. string status = 2;
  779. int64 operator = 3;
  780. string module = 4;
  781. string title = 5;
  782. string message = 6;
  783. string imgUrl = 7;
  784. string data = 8;
  785. string productCode = 9;
  786. int64 areaParam = 10;
  787. repeated string topics = 11;
  788. repeated string firebaseTokens = 12;
  789. int64 publishTime = 13;
  790. int64 createTime = 14;
  791. int64 updateTime = 15;
  792. }
  793. message MessagePushListReq {
  794. Page page = 1;
  795. MessagePushVo vo = 2;
  796. }
  797. message MessagePushListResp {
  798. int64 total = 1;
  799. repeated MessagePushVo list = 2;
  800. }
  801. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  802. service GoPmpClient {
  803. rpc Ping(Request) returns (Response);
  804. // GlobalParamVo
  805. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  806. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  807. rpc GlobalParamDel(Ids) returns (Empty);
  808. rpc GlobalParamGet(GlobalParamVo) returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  809. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  810. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  811. // ProductVo
  812. rpc ProductAdd(ProductVo) returns (ProductVo);
  813. rpc ProductUpdate(ProductVo) returns (ProductVo);
  814. rpc ProductDel(Ids) returns (Empty);
  815. rpc ProductGet(ProductVo) returns (ProductVo);
  816. rpc ProductList(ProductListReq) returns (ProductListResp);
  817. rpc ProductAll(Request) returns (ProductListResp);
  818. // ProductParamVo
  819. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  820. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  821. rpc ProductParamDel(Ids) returns (Empty);
  822. rpc ProductParamGet(ProductParamVo) returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  823. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  824. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  825. // ProductAction 产品行为配置
  826. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  827. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  828. rpc ProductActionDel(Ids) returns (Empty);
  829. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  830. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  831. // AreaParamVo
  832. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  833. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  834. rpc AreaParamDel(Ids) returns (Empty);
  835. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  836. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  837. // NationalLanguage
  838. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  839. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  840. rpc NationalLanguageDel(Ids) returns (Empty);
  841. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  842. rpc NationalLanguageList(NationalLanguageListReq)
  843. returns (NationalLanguageListResp);
  844. // Tip
  845. rpc TipAdd(TipVo) returns (TipVo);
  846. rpc TipUpdate(TipVo) returns (TipVo);
  847. rpc TipDel(Ids) returns (Empty);
  848. rpc TipGet(TipGetReq) returns (TipVo);
  849. rpc TipList(TipListReq) returns (TipListResp);
  850. // Dict
  851. rpc DictAdd(DictVo) returns (DictVo);
  852. rpc DictUpdate(DictVo) returns (DictVo);
  853. rpc DictDel(Ids) returns (Empty);
  854. rpc DictGet(DictGetReq) returns (DictVo);
  855. rpc DictList(DictListReq) returns (DictListResp);
  856. // // UpgradeRes 热更新代码资源管理
  857. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  858. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  859. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  860. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  861. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  862. // // UpgradePkg app 包更新管理
  863. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  864. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  865. // rpc UpgradePkgDel(Ids) returns (Empty);
  866. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  867. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  868. // // UpgradeResConfig
  869. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新 rpc
  870. // UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo); rpc
  871. // UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty); rpc
  872. // UpgradeResConfigDel(Ids) returns (Empty); rpc
  873. // UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  874. // rpc UpgradeResConfigList(UpgradeResConfigListReq)
  875. // returns (UpgradeResConfigListResp);
  876. // UpgradePkgPlan
  877. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  878. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  879. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  880. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  881. rpc UpgradePkgPlanList(UpgradePkgPlanListReq)
  882. returns (UpgradePkgPlanListResp);
  883. // UpgradePkgPlanDetail
  884. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo)
  885. returns (UpgradePkgPlanDetailVo);
  886. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo)
  887. returns (UpgradePkgPlanDetailVo);
  888. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  889. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo)
  890. returns (UpgradePkgPlanDetailVo);
  891. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq)
  892. returns (UpgradePkgPlanDetailListResp);
  893. // UpgradeResPlan
  894. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  895. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  896. rpc UpgradeResPlanDel(Ids) returns (Empty);
  897. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  898. rpc UpgradeResPlanList(UpgradeResPlanListReq)
  899. returns (UpgradeResPlanListResp);
  900. // UpgradeResPlanDetail
  901. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo)
  902. returns (UpgradeResPlanDetailVo);
  903. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo)
  904. returns (UpgradeResPlanDetailVo);
  905. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  906. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo)
  907. returns (UpgradeResPlanDetailVo);
  908. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq)
  909. returns (UpgradeResPlanDetailListResp);
  910. // AdPlan
  911. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  912. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  913. rpc AdPlanDel(Ids) returns (Empty);
  914. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  915. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  916. // AdPlanDetail
  917. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  918. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  919. rpc AdPlanDetailDel(Ids) returns (Empty);
  920. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  921. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  922. // AdGlobalConfig
  923. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  924. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  925. // JobBatch
  926. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  927. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  928. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  929. rpc JobBatchDel(Ids) returns (Empty);
  930. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  931. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  932. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  933. rpc JobBatchListWithTasks(JobBatchListReq)
  934. returns (JobBatchListWithTasksResp);
  935. // JobTasks
  936. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  937. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  938. rpc JobTasksDel(Ids) returns (Empty);
  939. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  940. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  941. // DeployConfig
  942. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  943. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  944. rpc DeployConfigDel(Ids) returns (Empty);
  945. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  946. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  947. // OperationLog
  948. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  949. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  950. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  951. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  952. // AnnouncePlan
  953. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  954. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  955. rpc AnnouncePlanDel(Ids) returns (Empty);
  956. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  957. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  958. // AnnouncePlanDetail
  959. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo)
  960. returns (AnnouncePlanDetailVo);
  961. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo)
  962. returns (AnnouncePlanDetailVo);
  963. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  964. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo)
  965. returns (AnnouncePlanDetailVo);
  966. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq)
  967. returns (AnnouncePlanDetailListResp);
  968. // ServiceTypes
  969. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesVo);
  970. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesVo);
  971. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  972. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesVo);
  973. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  974. // ServiceSets
  975. rpc ServiceSetsAdd(ServiceSetsAddReq) returns (ServiceSetsVo);
  976. rpc ServiceSetsUpdate(ServiceSetsUpdateReq) returns (ServiceSetsVo);
  977. rpc ServiceSetsDel(ServiceSetsDelReq) returns (Empty);
  978. rpc ServiceSetsGet(ServiceSetsGetReq) returns (ServiceSetsVo);
  979. rpc ServiceSetsList(ServiceSetsListReq) returns (ServiceSetsListResp);
  980. // MessagePush
  981. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  982. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  983. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  984. }