pmp.proto 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099
  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. 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 { int64 id = 1; }
  703. message ServiceTypesListReq {
  704. Page page = 1;
  705. ServiceTypesVo vo = 2;
  706. repeated string productCodes = 3;
  707. repeated int64 excludeIds = 4;
  708. }
  709. message ServiceTypesListResp {
  710. int64 total = 1;
  711. repeated ServiceTypesVo list = 2;
  712. }
  713. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  714. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  715. message ServiceTypesDelReq { int64 id = 1; }
  716. // end ServiceTypes
  717. // ServiceSets
  718. message ServiceSetsVo {
  719. int64 id = 1;
  720. string productCode = 2;
  721. int64 serviceTypeId = 3;
  722. string name = 4;
  723. int64 licenseDays = 5;
  724. string channel = 6;
  725. string channelItemId = 7;
  726. int64 refPortalServiceSetId = 8; // Go中是 sql.int64,转换为 int64
  727. string appleChannelItemId = 9;
  728. string googleChannelItemId = 10;
  729. string title = 11;
  730. string subTitle = 12;
  731. string introduce = 13;
  732. float orgPrice = 14;
  733. float price = 15;
  734. BoolInt display = 16;
  735. BoolInt isDefault = 17;
  736. BoolInt recommend = 18;
  737. BoolInt hidden = 19;
  738. int64 sort = 20;
  739. Status status = 21;
  740. string remark = 22;
  741. int64 createTime = 23;
  742. int64 updateTime = 24;
  743. }
  744. message ServiceSetsGetReq { int64 id = 1; }
  745. message ServiceSetsListReq {
  746. Page page = 1;
  747. ServiceSetsVo vo = 2;
  748. repeated string productCodes = 3;
  749. repeated int64 serviceTypeIds = 4;
  750. repeated int64 excludeIds = 5;
  751. }
  752. message ServiceSetsListResp {
  753. int64 total = 1;
  754. repeated ServiceSetsVo list = 2;
  755. }
  756. message ServiceSetsAddReq { ServiceSetsVo vo = 1; }
  757. message ServiceSetsUpdateReq { ServiceSetsVo vo = 1; }
  758. message ServiceSetsDelReq { int64 id = 1; }
  759. // end ServiceSets
  760. message MessagePushVo {
  761. int64 id = 1;
  762. string status = 2;
  763. int64 operator = 3;
  764. string module = 4;
  765. string title = 5;
  766. string message = 6;
  767. string imgUrl = 7;
  768. string data = 8;
  769. string productCode = 9;
  770. int64 areaParam = 10;
  771. repeated string topics = 11;
  772. repeated string firebaseTokens = 12;
  773. int64 publishTime = 13;
  774. int64 createTime = 14;
  775. int64 updateTime = 15;
  776. }
  777. message MessagePushListReq {
  778. Page page = 1;
  779. MessagePushVo vo = 2;
  780. }
  781. message MessagePushListResp {
  782. int64 total = 1;
  783. repeated MessagePushVo list = 2;
  784. }
  785. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  786. service GoPmpClient {
  787. rpc Ping(Request) returns (Response);
  788. // GlobalParamVo
  789. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  790. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  791. rpc GlobalParamDel(Ids) returns (Empty);
  792. rpc GlobalParamGet(GlobalParamVo)
  793. returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  794. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  795. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  796. // ProductVo
  797. rpc ProductAdd(ProductVo) returns (ProductVo);
  798. rpc ProductUpdate(ProductVo) returns (ProductVo);
  799. rpc ProductDel(Ids) returns (Empty);
  800. rpc ProductGet(ProductVo) returns (ProductVo);
  801. rpc ProductList(ProductListReq) returns (ProductListResp);
  802. rpc ProductAll(Request) returns (ProductListResp);
  803. // ProductParamVo
  804. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  805. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  806. rpc ProductParamDel(Ids) returns (Empty);
  807. rpc ProductParamGet(ProductParamVo)
  808. returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  809. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  810. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  811. // ProductAction 产品行为配置
  812. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  813. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  814. rpc ProductActionDel(Ids) returns (Empty);
  815. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  816. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  817. // AreaParamVo
  818. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  819. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  820. rpc AreaParamDel(Ids) returns (Empty);
  821. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  822. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  823. // NationalLanguage
  824. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  825. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  826. rpc NationalLanguageDel(Ids) returns (Empty);
  827. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  828. rpc NationalLanguageList(NationalLanguageListReq)
  829. returns (NationalLanguageListResp);
  830. // Tip
  831. rpc TipAdd(TipVo) returns (TipVo);
  832. rpc TipUpdate(TipVo) returns (TipVo);
  833. rpc TipDel(Ids) returns (Empty);
  834. rpc TipGet(TipGetReq) returns (TipVo);
  835. rpc TipList(TipListReq) returns (TipListResp);
  836. // Dict
  837. rpc DictAdd(DictVo) returns (DictVo);
  838. rpc DictUpdate(DictVo) returns (DictVo);
  839. rpc DictDel(Ids) returns (Empty);
  840. rpc DictGet(DictGetReq) returns (DictVo);
  841. rpc DictList(DictListReq) returns (DictListResp);
  842. // // UpgradeRes 热更新代码资源管理
  843. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  844. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  845. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  846. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  847. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  848. // // UpgradePkg app 包更新管理
  849. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  850. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  851. // rpc UpgradePkgDel(Ids) returns (Empty);
  852. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  853. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  854. // // UpgradeResConfig
  855. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新 rpc
  856. // UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo); rpc
  857. // UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty); rpc
  858. // UpgradeResConfigDel(Ids) returns (Empty); rpc
  859. // UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  860. // rpc UpgradeResConfigList(UpgradeResConfigListReq)
  861. // returns (UpgradeResConfigListResp);
  862. // UpgradePkgPlan
  863. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  864. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  865. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  866. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  867. rpc UpgradePkgPlanList(UpgradePkgPlanListReq)
  868. returns (UpgradePkgPlanListResp);
  869. // UpgradePkgPlanDetail
  870. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo)
  871. returns (UpgradePkgPlanDetailVo);
  872. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo)
  873. returns (UpgradePkgPlanDetailVo);
  874. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  875. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo)
  876. returns (UpgradePkgPlanDetailVo);
  877. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq)
  878. returns (UpgradePkgPlanDetailListResp);
  879. // UpgradeResPlan
  880. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  881. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  882. rpc UpgradeResPlanDel(Ids) returns (Empty);
  883. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  884. rpc UpgradeResPlanList(UpgradeResPlanListReq)
  885. returns (UpgradeResPlanListResp);
  886. // UpgradeResPlanDetail
  887. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo)
  888. returns (UpgradeResPlanDetailVo);
  889. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo)
  890. returns (UpgradeResPlanDetailVo);
  891. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  892. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo)
  893. returns (UpgradeResPlanDetailVo);
  894. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq)
  895. returns (UpgradeResPlanDetailListResp);
  896. // AdPlan
  897. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  898. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  899. rpc AdPlanDel(Ids) returns (Empty);
  900. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  901. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  902. // AdPlanDetail
  903. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  904. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  905. rpc AdPlanDetailDel(Ids) returns (Empty);
  906. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  907. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  908. // AdGlobalConfig
  909. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  910. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  911. // JobBatch
  912. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  913. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  914. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  915. rpc JobBatchDel(Ids) returns (Empty);
  916. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  917. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  918. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  919. rpc JobBatchListWithTasks(JobBatchListReq)
  920. returns (JobBatchListWithTasksResp);
  921. // JobTasks
  922. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  923. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  924. rpc JobTasksDel(Ids) returns (Empty);
  925. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  926. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  927. // DeployConfig
  928. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  929. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  930. rpc DeployConfigDel(Ids) returns (Empty);
  931. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  932. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  933. // OperationLog
  934. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  935. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  936. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  937. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  938. // AnnouncePlan
  939. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  940. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  941. rpc AnnouncePlanDel(Ids) returns (Empty);
  942. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  943. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  944. // AnnouncePlanDetail
  945. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo)
  946. returns (AnnouncePlanDetailVo);
  947. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo)
  948. returns (AnnouncePlanDetailVo);
  949. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  950. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo)
  951. returns (AnnouncePlanDetailVo);
  952. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq)
  953. returns (AnnouncePlanDetailListResp);
  954. // ServiceTypes
  955. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesVo);
  956. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesVo);
  957. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  958. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesVo);
  959. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  960. // ServiceSets
  961. rpc ServiceSetsAdd(ServiceSetsAddReq) returns (ServiceSetsVo);
  962. rpc ServiceSetsUpdate(ServiceSetsUpdateReq) returns (ServiceSetsVo);
  963. rpc ServiceSetsDel(ServiceSetsDelReq) returns (Empty);
  964. rpc ServiceSetsGet(ServiceSetsGetReq) returns (ServiceSetsVo);
  965. rpc ServiceSetsList(ServiceSetsListReq) returns (ServiceSetsListResp);
  966. // MessagePush
  967. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  968. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  969. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  970. }