gorpc.proto 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136
  1. syntax = "proto3";
  2. package gorpc;
  3. option go_package = "./pb";
  4. enum RegisterMode {
  5. RegisterModeUnknown = 0;
  6. RegisterModeGuest = 1;
  7. RegisterModeApp = 2;
  8. RegisterModeWeb = 3;
  9. RegisterModePc = 4;
  10. RegisterModeInvalid = 9999;
  11. }
  12. // enum Provider {
  13. // ProviderUnknown = 0;
  14. // ProviderGoogle = 1;
  15. // ProviderApple = 2;
  16. // ProviderMeta = 3;
  17. // ProviderGithub = 4;
  18. // }
  19. // 根据需要增加状态
  20. enum CommonResultCode {
  21. Success = 0;
  22. }
  23. enum Status {
  24. UnknownStatus = 0;
  25. StatusValid = 1;
  26. StatusInValid = 2;
  27. StatusDefault = 9;
  28. }
  29. enum BoolInt {
  30. BoolIntUnknown = 0;
  31. BoolIntTrue = 1;
  32. BoolIntFalse = 2;
  33. }
  34. enum UserType {
  35. UserTypeUnknown = 0;
  36. UserTypeDevice = 1;
  37. UserTypeAccount= 2;
  38. }
  39. message Empty {}
  40. message Int64SelectController {
  41. repeated int64 values = 1;
  42. bool exclude = 2;
  43. }
  44. message IntSelectController {
  45. repeated int32 values = 1;
  46. bool exclude = 2;
  47. }
  48. message StringSelectController {
  49. repeated string values = 1;
  50. bool exclude = 2;
  51. }
  52. message Page {
  53. message OrderItem {
  54. string column = 1;
  55. bool asc = 2;
  56. bool isFunc = 3;
  57. }
  58. int64 pageNo = 1;
  59. int64 pageSize = 2;
  60. int64 startTime = 3;
  61. int64 endTime = 4;
  62. repeated OrderItem sortBy = 5;
  63. bool ignoreTotal = 6; // 忽略总条数
  64. bool ignoreStat = 7; // 忽略总条数
  65. bool ignoreList = 8; // 忽略列表
  66. repeated int64 ids = 9;
  67. repeated string groupBy = 10;
  68. }
  69. message CommonResult {
  70. CommonResultCode code = 1;
  71. string msg = 2;
  72. }
  73. message BaseReq {
  74. int64 timeZoneOffset = 1;
  75. string lan = 2;
  76. }
  77. message DeleteIdResp { repeated int64 failedIds = 1; }
  78. message Ids { repeated int64 ids = 1; }
  79. message Request {}
  80. message Response { string msg = 1; }
  81. message TransactionOperation {
  82. string table = 1; // 表名
  83. string operate = 2; // delete,insert,update
  84. string data = 3; // json格式
  85. }
  86. message TransactionReq { repeated TransactionOperation transactions = 1; }
  87. message GameVo {
  88. int64 id = 1;
  89. string name = 2;
  90. string pkg = 3;
  91. string categories = 4;
  92. string icon = 5;
  93. string internal_icon = 6;
  94. string source_icon = 7;
  95. int64 status = 8;
  96. int64 state = 9;
  97. int64 enableRating = 10;
  98. int64 gameUpdateTime = 11;
  99. int64 gameBoostCount = 12;
  100. string gameBoostCountryCount = 13;
  101. int64 createTime = 14;
  102. int64 updateTime = 15;
  103. }
  104. message GameReq { GameVo vo = 1; }
  105. message GameListReq {
  106. Page page = 1;
  107. repeated string pkgs = 2;
  108. GameVo vo = 3;
  109. }
  110. message GameListRes {
  111. int64 total = 1;
  112. repeated GameVo list = 2;
  113. }
  114. message RelGameRankVo {
  115. int64 id = 1;
  116. int64 gameId = 2;
  117. int64 rankId = 3;
  118. int64 weight = 4;
  119. int64 createTime = 5;
  120. int64 updateTime = 6;
  121. }
  122. message RelGameRankReq { RelGameRankVo vo = 1; }
  123. message RelGameRankListReq {
  124. Page page = 1;
  125. RelGameRankVo vo = 2;
  126. }
  127. message RelGameRankListRes {
  128. int64 total = 1;
  129. repeated RelGameRankVo list = 2;
  130. }
  131. message RelGameVpnGroupVo {
  132. int64 id = 1;
  133. int64 gameId = 2;
  134. string productCode = 3;
  135. int64 vpnGroupId = 4;
  136. int64 status = 5;
  137. int64 createTime = 6;
  138. int64 updateTime = 7;
  139. }
  140. message RelGameVpnGroupReq { RelGameVpnGroupVo vo = 1; }
  141. message RelGameVpnGroupListReq {
  142. repeated int64 gameIds = 1;
  143. RelGameVpnGroupVo vo = 2;
  144. }
  145. message RelGameVpnGroupListRes {
  146. int64 total = 1;
  147. repeated RelGameVpnGroupVo list = 2;
  148. }
  149. message GameRedisHScanByNameReq {
  150. string name = 1;
  151. int64 cursor = 2;
  152. int64 count = 3;
  153. }
  154. message GameRedisHScanByNameResp {
  155. repeated int64 ids = 1;
  156. int64 cursor = 2;
  157. }
  158. message GameCustomerVo {
  159. int64 id = 1;
  160. string name = 2;
  161. string pkg = 3;
  162. string icon = 4;
  163. int64 createTime = 5;
  164. int64 updateTime = 6;
  165. }
  166. message GameCustomerListReq {
  167. Page page = 1;
  168. repeated string pkgs = 2;
  169. GameCustomerVo vo = 3;
  170. }
  171. message GameCustomerListRes {
  172. int64 total = 1;
  173. repeated GameCustomerVo list = 2;
  174. }
  175. message GameCustomerAddResp {
  176. GameCustomerVo vo = 1;
  177. bool ExistBoost = 2;
  178. }
  179. message GameCategoryVo {
  180. int64 id = 1;
  181. string code = 2;
  182. string name = 3;
  183. string described = 4;
  184. int64 createTime = 5;
  185. int64 updateTime = 6;
  186. }
  187. message GameCategoryReq { GameCategoryVo vo = 1; }
  188. message GameCategoryListReq {
  189. Page page = 1;
  190. GameCategoryVo vo = 3;
  191. }
  192. message GameCategoryListRes {
  193. int64 total = 1;
  194. repeated GameCategoryVo list = 2;
  195. }
  196. // 定义一个GameRank的属性字段
  197. message GameRankOption { bool showRanking = 1; }
  198. service GoGameClient {
  199. // 加速器游戏管理
  200. rpc GameAdd(GameVo) returns (GameVo);
  201. rpc GameUpdate(GameVo) returns (Empty);
  202. rpc GameDel(Ids) returns (Empty);
  203. rpc GameGet(GameReq) returns (GameVo);
  204. rpc GameList(GameListReq) returns (GameListRes);
  205. rpc GameAll(Request) returns (GameListRes);
  206. rpc GameRedisHScanByName(GameRedisHScanByNameReq)
  207. returns (GameRedisHScanByNameResp);
  208. // 游戏榜单关联关系
  209. rpc RelGameRankAdd(RelGameRankVo) returns (RelGameRankVo);
  210. rpc RelGameRankUpdate(RelGameRankVo) returns (Empty);
  211. rpc RelGameRankDel(Ids) returns (Empty);
  212. rpc RelGameRankGet(RelGameRankReq) returns (RelGameRankVo);
  213. rpc RelGameRankList(RelGameRankListReq) returns (RelGameRankListRes);
  214. // 游戏地域关联关系
  215. rpc RelGameVpnGroupAdd(RelGameVpnGroupVo) returns (RelGameVpnGroupVo);
  216. rpc RelGameVpnGroupUpdate(RelGameVpnGroupVo) returns (Empty);
  217. rpc RelGameVpnGroupDel(Ids) returns (Empty);
  218. rpc RelGameVpnGroupGet(RelGameVpnGroupReq) returns (RelGameVpnGroupVo);
  219. rpc RelGameVpnGroupList(RelGameVpnGroupListReq)
  220. returns (RelGameVpnGroupListRes);
  221. // 用户提交游戏
  222. rpc GameCustomerList(GameCustomerListReq) returns (GameCustomerListRes);
  223. rpc GameCustomerAdd(GameCustomerVo) returns (GameCustomerAddResp);
  224. rpc GameCustomerDel(Ids) returns (Empty);
  225. rpc GameCategoryAdd(GameCategoryVo) returns (GameCategoryVo);
  226. rpc GameCategoryUpdate(GameCategoryVo) returns (Empty);
  227. rpc GameCategoryDel(Ids) returns (Empty);
  228. rpc GameCategoryGet(GameCategoryReq) returns (GameCategoryVo);
  229. rpc GameCategoryList(GameCategoryListReq) returns (GameCategoryListRes);
  230. rpc GameCategoryAll(Request) returns (GameCategoryListRes);
  231. }
  232. message I18nVo {
  233. string code = 1;
  234. string value = 2;
  235. }
  236. message ConfigGetReq {
  237. int64 id = 1; // ID
  238. string code = 2; // 类型标识
  239. }
  240. // GlobalParam
  241. message GlobalParamVo {
  242. int64 id = 1;
  243. string paramKey = 2;
  244. string paramValue = 3;
  245. string valueType = 4;
  246. float minValue = 5;
  247. float maxValue = 6;
  248. string name = 7;
  249. BoolInt editable = 8;
  250. BoolInt nullable = 9;
  251. BoolInt hidden = 10;
  252. BoolInt mutiLang = 11;
  253. int64 sort = 12;
  254. string remark = 13;
  255. BoolInt apiExport = 14;
  256. string apiExportName = 15;
  257. int64 createTime = 16;
  258. int64 updateTime = 17;
  259. // valueType 为 string、text、json、string[], 且 mutiLang 为 true 时,需要同时干查询/修改/插入多语言数据
  260. repeated I18nVo i18ns = 18;
  261. }
  262. message GlobalParamGetReq {
  263. GlobalParamVo vo = 1;
  264. string lang = 2;
  265. }
  266. message GlobalParamListReq {
  267. Page page = 1;
  268. GlobalParamVo vo = 2;
  269. repeated int64 excludeIds = 3; // 排除的ID
  270. };
  271. message GlobalParamListResp {
  272. int64 total = 1;
  273. repeated GlobalParamVo list = 2;
  274. };
  275. // end GlobalParam
  276. // Product
  277. message ProductVo {
  278. int64 id = 1;
  279. string code = 2;
  280. string name = 3;
  281. string domain = 4;
  282. Status status = 5;
  283. string langs = 6;
  284. string defaultLang = 7;
  285. string remark = 8;
  286. int64 createTime = 9;
  287. int64 updateTime = 10;
  288. }
  289. message ProductListReq {
  290. Page page = 1;
  291. ProductVo vo = 2;
  292. repeated string productCodes = 3;
  293. repeated int64 excludeIds = 4;
  294. }
  295. message ProductListResp {
  296. int64 total = 1;
  297. repeated ProductVo list = 2;
  298. }
  299. // end Product
  300. // ProductParam
  301. message ProductParamVo {
  302. int64 id = 1;
  303. string productCode = 2;
  304. string paramKey = 3;
  305. string paramValue = 4;
  306. string valueType = 5;
  307. float minValue = 6;
  308. float maxValue = 7;
  309. string name = 8;
  310. BoolInt editable = 9;
  311. BoolInt nullable = 10;
  312. BoolInt hidden = 11;
  313. BoolInt mutiLang = 12;
  314. int64 sort = 13;
  315. string remark = 14;
  316. BoolInt apiExport = 15;
  317. string apiExportName = 16;
  318. int64 createTime = 17;
  319. int64 updateTime = 18;
  320. // valueType 为 string、text、json、string[], 且 mutiLang 为 true
  321. // 时,需要同时干查询/修改/插入多语言数据
  322. repeated I18nVo i18ns = 19;
  323. }
  324. message ProductParamGetReq {
  325. ProductParamVo vo = 1;
  326. string lang = 2;
  327. }
  328. message ProductParamListReq {
  329. Page page = 1;
  330. ProductParamVo vo = 2;
  331. repeated string productCodes = 3;
  332. repeated int64 excludeIds = 4;
  333. };
  334. message ProductParamListResp {
  335. int64 total = 1;
  336. repeated ProductParamVo list = 2;
  337. };
  338. // end ProductParam
  339. // ProductAction
  340. message ProductActionVo {
  341. int64 id = 1;
  342. int64 groupId = 2;
  343. string productCode = 3;
  344. string imgUrl = 4;
  345. string actionType = 5;
  346. string actionData = 6;
  347. string title = 7;
  348. Status status = 8;
  349. int64 createTime = 9;
  350. int64 updateTime = 10;
  351. int64 sort = 11;
  352. string versionPolicy = 12;
  353. string platform = 13;
  354. string channel = 14;
  355. }
  356. message ProductActionReq { ProductActionVo vo = 1; }
  357. message ProductActionListReq {
  358. Page page = 1;
  359. ProductActionVo vo = 2;
  360. repeated string productCodes = 3;
  361. repeated int64 excludeIds = 4;
  362. repeated int64 groupIds = 5;
  363. }
  364. message ProductActionListResp {
  365. int64 total = 1;
  366. repeated ProductActionVo list = 2;
  367. }
  368. // end ProductAction
  369. // ProductActionGroup 产品行为分组
  370. message ProductActionGroupVo {
  371. int64 id = 1;
  372. string productCode = 2;
  373. string area = 3; // 地区,存储json字符串
  374. string platform = 4; // 平台,存储json字符串
  375. string channel = 5; // 渠道,存储json字符串
  376. string versionPolicy = 6; // 版本策略,存储json字符串
  377. int64 sort = 7; // 排序
  378. Status status = 8; // 状态 0未知 1正常 2禁用
  379. string title = 9; // 标题
  380. int64 createTime = 10;
  381. int64 updateTime = 11;
  382. }
  383. message ProductActionGroupReq { ProductActionGroupVo vo = 1; }
  384. message ProductActionGroupListReq {
  385. Page page = 1;
  386. ProductActionGroupVo vo = 2;
  387. repeated string productCodes = 3;
  388. repeated int64 excludeIds = 4;
  389. }
  390. message ProductActionGroupListResp {
  391. int64 total = 1;
  392. repeated ProductActionGroupVo list = 2;
  393. }
  394. message ProductActionGroupDisableReq { repeated int64 ids = 1; }
  395. message ProductActionGroupEnableReq { repeated int64 ids = 1; }
  396. // end ProductActionGroup
  397. // ProductActionPolicyGroup 产品行为策略分组
  398. message ProductActionPolicyGroupVo {
  399. int64 id = 1;
  400. string productCode = 2;
  401. int64 groupId = 3; // productActionGroupID
  402. string platform = 4; // 平台,存储json字符串
  403. string channel = 5; // 渠道,存储json字符串
  404. string versionPolicy = 6; // 版本策略,存储json字符串
  405. int64 sort = 7; // 排序
  406. Status status = 8; // 状态 0未知 1正常 2禁用
  407. string title = 9; // 标题
  408. int64 createTime = 10;
  409. int64 updateTime = 11;
  410. string Position = 12;
  411. }
  412. message ProductActionPolicyGroupReq { ProductActionPolicyGroupVo vo = 1; }
  413. message ProductActionPolicyGroupListReq {
  414. Page page = 1;
  415. ProductActionPolicyGroupVo vo = 2;
  416. repeated string productCodes = 3;
  417. repeated int64 excludeIds = 4;
  418. repeated int64 groupIds = 5;
  419. }
  420. message ProductActionPolicyGroupListResp {
  421. int64 total = 1;
  422. repeated ProductActionPolicyGroupVo list = 2;
  423. }
  424. message ProductActionPolicyGroupDisableReq { repeated int64 ids = 1; }
  425. message ProductActionPolicyGroupEnableReq { repeated int64 ids = 1; }
  426. // end ProductActionPolicyGroup
  427. // ProductActionType 产品行为类型
  428. message ProductActionTypeVo {
  429. int64 id = 1;
  430. string name = 2; // 名称
  431. string description = 3; // 描述
  432. int64 createTime = 4;
  433. int64 updateTime = 5;
  434. }
  435. message ProductActionTypeReq { ProductActionTypeVo vo = 1; }
  436. message ProductActionTypeListReq {
  437. Page page = 1;
  438. ProductActionTypeVo vo = 2;
  439. repeated int64 excludeIds = 3;
  440. }
  441. message ProductActionTypeListResp {
  442. int64 total = 1;
  443. repeated ProductActionTypeVo list = 2;
  444. }
  445. // end ProductActionType
  446. // AreaParam
  447. message AreaParamVo {
  448. int64 id = 1;
  449. string productCode = 2;
  450. string name = 3;
  451. string areas = 4;
  452. string paramValue = 5;
  453. Status status = 6;
  454. int64 sort = 7;
  455. string remark = 8;
  456. int64 createTime = 9;
  457. int64 updateTime = 10;
  458. string version = 11;
  459. }
  460. message AreaParamListReq {
  461. Page page = 1;
  462. AreaParamVo vo = 2;
  463. repeated string productCodes = 3; // 产品code
  464. repeated int64 excludeIds = 4; // 排除的ID
  465. }
  466. message AreaParamListResp {
  467. int64 total = 1;
  468. repeated AreaParamVo list = 2;
  469. }
  470. // end AreaParam
  471. // NationalLanguage
  472. message NationalLanguageVo {
  473. int64 id = 1;
  474. string tbName = 2;
  475. int64 tbRowId = 3;
  476. string tbFieldName = 4;
  477. string lan = 5;
  478. string value = 6;
  479. Status status = 7;
  480. int64 updateTime = 8;
  481. int64 createTime = 9;
  482. }
  483. message NationalLanguageListReq {
  484. Page page = 1;
  485. NationalLanguageVo vo = 2;
  486. repeated int64 excludeIds = 3; // 排除的ID
  487. }
  488. message NationalLanguageListResp {
  489. int64 total = 1;
  490. repeated NationalLanguageVo list = 2;
  491. }
  492. // end NationalLanguage
  493. // Tip
  494. message TipVo {
  495. int64 id = 1;
  496. string productCode = 2;
  497. string paramKey = 3;
  498. string paramValue = 4;
  499. string code = 5;
  500. int64 showType = 6;
  501. int64 sort = 7;
  502. string remark = 8;
  503. int64 createTime = 9;
  504. int64 updateTime = 10;
  505. repeated I18nVo i18ns = 11;
  506. }
  507. message TipGetReq {
  508. TipVo vo = 1;
  509. string lang = 2;
  510. }
  511. message TipListReq {
  512. Page page = 1;
  513. TipVo vo = 2;
  514. repeated string productCodes = 3;
  515. repeated int64 excludeIds = 4; // 排除的ID
  516. }
  517. message TipListResp {
  518. int64 total = 1;
  519. repeated TipVo list = 2;
  520. }
  521. // end Tip
  522. // Dict
  523. message DictVo {
  524. int64 id = 1;
  525. string productCode = 2;
  526. int64 parentId = 3;
  527. string dataType = 4;
  528. string name = 5;
  529. string payload = 6;
  530. int64 sort = 7;
  531. Status status = 8;
  532. string remark = 9;
  533. int64 createTime = 10;
  534. int64 updateTime = 11;
  535. string payloadJson = 12;
  536. }
  537. message DictGetReq { DictVo vo = 1; }
  538. message DictListReq {
  539. Page page = 1;
  540. DictVo vo = 2;
  541. repeated string productCodes = 3;
  542. repeated int64 excludeIds = 4;
  543. }
  544. message DictListResp {
  545. int64 total = 1;
  546. repeated DictVo list = 2;
  547. }
  548. // end Dict
  549. // message UpgradeResVo {
  550. // int64 id = 1;
  551. // string title = 2;
  552. // string path = 3;
  553. // string fileMd5 = 4;
  554. // string filePath = 5;
  555. // string metadataId = 6;
  556. // string createdAt = 7;
  557. // string runtimeVersion = 8;
  558. // int64 runtimeVersionCode = 9;
  559. // string appVersionName = 10;
  560. // int64 appVersionCode = 11;
  561. // Status status = 12;
  562. // string remark = 13;
  563. // int64 createTime = 14;
  564. // int64 updateTime = 15;
  565. // int64 resSize = 16;
  566. // }
  567. // message UpgradeResConfigVo {
  568. // int64 id = 1;
  569. // int64 productId = 2;
  570. // string platform = 3;
  571. // string channel = 4;
  572. // int64 resId = 5;
  573. // int64 isForceUpdate = 6;
  574. // string forceIntro = 7;
  575. // string areaConfigs = 8;
  576. // string versionConfigs = 9;
  577. // int64 interval = 10;
  578. // int64 upgradeRate = 11;
  579. // string intro = 12;
  580. // string apis = 13;
  581. // Status status = 14;
  582. // string remark = 15;
  583. // string userIds = 16;
  584. // int64 createTime = 17;
  585. // int64 updateTime = 18;
  586. // string forceVersionConfigs = 19;
  587. // string forceAreaConfigs = 20;
  588. // string runtimeVersionConfigs = 21;
  589. // string title = 22;
  590. // int64 isSilent = 23;
  591. // }
  592. // message UpgradePkgVo {
  593. // int64 id = 1;
  594. // int64 productId = 2;
  595. // string platform = 3;
  596. // string channel = 4;
  597. // int64 versionCode = 5;
  598. // string versionName = 6;
  599. // string fileMd5 = 7;
  600. // string areaConfigs = 8;
  601. // string versionConfigs = 9;
  602. // int64 interval = 10;
  603. // int64 upgradeRate = 11;
  604. // string intro = 12;
  605. // string appStoreUrl = 13;
  606. // string url = 14;
  607. // string onlineUrls = 15;
  608. // string userIds = 16;
  609. // int64 isForceUpdate = 17;
  610. // string forceIntro = 18;
  611. // string forceVersionConfigs = 19;
  612. // Status status = 20;
  613. // string remark = 21;
  614. // int64 createTime = 22;
  615. // int64 updateTime = 23;
  616. // string title = 24;
  617. // string forceAreaConfigs = 25;
  618. // }
  619. // message UpgradeResConfigGetReq {
  620. // Page page = 1;
  621. // int64 id = 2;
  622. // }
  623. // message UpgradeResConfigListReq {
  624. // Page page = 1;
  625. // UpgradeResConfigVo vo = 2;
  626. // }
  627. // message UpgradeResConfigListResp {
  628. // int64 total = 1;
  629. // repeated UpgradeResConfigVo list = 2;
  630. // }
  631. // message UpgradePkgGetReq { UpgradePkgVo vo = 1; }
  632. // message UpgradePkgListReq {
  633. // Page page = 1;
  634. // UpgradePkgVo vo = 2;
  635. // }
  636. // message UpgradePkgListResp {
  637. // int64 total = 1;
  638. // repeated UpgradePkgVo list = 2;
  639. // }
  640. // message UpgradeResGetReq { UpgradeResVo vo = 1; }
  641. // message UpgradeResListReq {
  642. // Page page = 1;
  643. // UpgradeResVo vo = 2;
  644. // }
  645. // message UpgradeResListResp {
  646. // int64 total = 1;
  647. // repeated UpgradeResVo list = 2;
  648. // }
  649. // message ResourceDelReq {
  650. // repeated int64 ids = 1;
  651. // string fileMd5 = 2;
  652. // }
  653. // UpgradePkgPlan
  654. message UpgradePkgPlanVo {
  655. int64 id = 1;
  656. string productCode = 2; // 产品code
  657. string areas = 3; // 地区列表
  658. int64 sort = 4;
  659. Status status = 5; // 状态
  660. string remark = 6;
  661. int64 createTime = 7;
  662. int64 updateTime = 8;
  663. }
  664. message UpgradePkgPlanListReq {
  665. Page page = 1;
  666. UpgradePkgPlanVo vo = 2;
  667. repeated string productCodes = 3;
  668. repeated int64 excludeIds = 4;
  669. }
  670. message UpgradePkgPlanListResp {
  671. int64 total = 1;
  672. repeated UpgradePkgPlanVo list = 2;
  673. }
  674. // end UpgradePkgPlan
  675. // UpgradePkgPlanDetail
  676. message UpgradePkgPlanDetailVo {
  677. int64 id = 1;
  678. int64 planId = 2; // 方案ID
  679. string platform = 3; // 平台
  680. string channel = 4; // 渠道
  681. string name = 5; // 名称
  682. int64 ver = 6; // 版本号
  683. string url = 7; // 商店地址
  684. string websiteUrl = 8; // 官网地址
  685. string directUrl = 9; // 直接下载地址
  686. string md5 = 10; // MD5
  687. string info = 11; // 更新信息
  688. string testUpgradePolicyConfig = 12; // 测试更新策略配置
  689. string upgradePolicyConfig = 13; // 更新策略配置
  690. string forceUpgradePolicyConfig = 14; // 强制更新策略
  691. Status status = 15; // 状态
  692. string remark = 16;
  693. int64 createTime = 17;
  694. int64 updateTime = 18;
  695. }
  696. message UpgradePkgPlanDetailListReq {
  697. Page page = 1;
  698. UpgradePkgPlanDetailVo vo = 2;
  699. repeated int64 planIds = 3;
  700. }
  701. message UpgradePkgPlanDetailListResp {
  702. int64 total = 1;
  703. repeated UpgradePkgPlanDetailVo list = 2;
  704. }
  705. // end UpgradePkgPlanDetail
  706. // UpgradeResPlan
  707. message UpgradeResPlanVo {
  708. int64 id = 1;
  709. string productCode = 2; // 产品code
  710. string areas = 3; // 地区列表
  711. int64 sort = 4;
  712. Status status = 5; // 状态
  713. string remark = 6;
  714. int64 createTime = 7;
  715. int64 updateTime = 8;
  716. }
  717. message UpgradeResPlanListReq {
  718. Page page = 1;
  719. UpgradeResPlanVo vo = 2;
  720. repeated string productCodes = 3;
  721. repeated int64 excludeIds = 4;
  722. }
  723. message UpgradeResPlanListResp {
  724. int64 total = 1;
  725. repeated UpgradeResPlanVo list = 2;
  726. }
  727. // end UpgradeResPlan
  728. // UpgradeResPlanDetail
  729. message UpgradeResPlanDetailVo {
  730. int64 id = 1; // ID
  731. int64 planId = 2; // 方案ID
  732. string platform = 3; // 平台
  733. string channel = 4; // 渠道
  734. string name = 5; // 名称
  735. int64 ver = 6; // 资源版本号
  736. string url = 7; // 资源地址
  737. string info = 8; // 更新信息
  738. string md5 = 9; // 资源 md5值
  739. int64 size = 10; // 资源大小
  740. string testUpgradePolicyConfig = 11; // 测试更新策略配置
  741. string upgradePolicyConfig = 12; // 更新策略配置
  742. string forceUpgradePolicyConfig = 13; // 强制更新策略
  743. Status status = 14; // 状态,1=正常,2=冻结
  744. string remark = 15; // 备注
  745. int64 createTime = 16; // 创建时间秒
  746. int64 updateTime = 17; // 修改时间秒
  747. }
  748. message UpgradeResPlanDetailListReq {
  749. Page page = 1;
  750. UpgradeResPlanDetailVo vo = 2;
  751. repeated int64 planIds = 3;
  752. }
  753. message UpgradeResPlanDetailListResp {
  754. int64 total = 1;
  755. repeated UpgradeResPlanDetailVo list = 2;
  756. }
  757. // end UpgradeResPlanDetail
  758. // AdPlan
  759. message AdPlanVo {
  760. int64 id = 1;
  761. string productCode = 2; // 产品code
  762. string areas = 3; // 地区列表
  763. string config = 4; // 配置
  764. int64 sort = 5;
  765. Status status = 6; // 状态
  766. string remark = 7;
  767. int64 createTime = 8;
  768. int64 updateTime = 9;
  769. }
  770. message AdPlanListReq {
  771. Page page = 1;
  772. AdPlanVo vo = 2;
  773. repeated string productCodes = 3;
  774. repeated int64 excludeIds = 4;
  775. }
  776. message AdPlanListResp {
  777. int64 total = 1;
  778. repeated AdPlanVo list = 2;
  779. }
  780. // end AdPlan
  781. // AdPlanDetail
  782. message AdPlanDetailVo {
  783. int64 id = 1;
  784. int64 planId = 2; // 方案ID
  785. string adPlatform = 3; // 平台
  786. string adType = 4; // 广告类型
  787. string adSlot = 5; // 广告位置
  788. string adDatas = 6; // 广告资源
  789. string testPolicyConfig = 7; // 策略配置
  790. string policyConfig = 8; // 策略配置
  791. int64 sort = 9; // 排序
  792. Status status = 10; // 0未知,1正常,2暂停
  793. string remark = 11;
  794. int64 createTime = 12;
  795. int64 updateTime = 13;
  796. string version = 14;
  797. }
  798. message AdPlanDetailListReq {
  799. Page page = 1;
  800. AdPlanDetailVo vo = 2;
  801. repeated int64 planIds = 3;
  802. }
  803. message AdPlanDetailListResp {
  804. int64 total = 1;
  805. repeated AdPlanDetailVo list = 2;
  806. }
  807. // end AdPlanDetail
  808. // AdGlobalConfig
  809. message AdGlobalConfigVo {
  810. int64 id = 1;
  811. string productCode = 2; // 产品code
  812. string platforms = 3; // 按平台分类的广告配置JSON
  813. string remark = 4; // 备注
  814. int64 createTime = 5; // 创建时间
  815. int64 updateTime = 6; // 更新时间
  816. }
  817. message AdGlobalConfigGetReq {
  818. string productCode = 1; // 产品代码
  819. }
  820. // end AdGlobalConfig
  821. // JobBatch
  822. message JobBatchVo {
  823. int64 id = 1; // ID
  824. string name = 2; // 作业名称
  825. string type = 3; // 作业类型
  826. string initParams = 4; // 作业初始化参数
  827. string contextData = 5; // 上下文数据,可用于存储此次批量作业的任务过程中产生的通用的中间数据
  828. string beginHandler = 6; // 预处理函数/URL
  829. string afterHandler = 7; // 后处理函数/URL
  830. int64 concurrency = 8; // 并发控制数
  831. string retryPolicy = 9; // 子任务重试策略
  832. int64 startedTime = 10; // 批量作业开始时间
  833. int64 finishedTime = 11; // 批量作业完成时间
  834. string result = 12; // 批量作业返回结果
  835. string status = 13; // 批量作业完成状态
  836. string remark = 14; // 备注
  837. int64 createAt = 15; // 创建者ID
  838. int64 updateAt = 16; // 更新者ID
  839. int64 createTime = 17; // 创建时间
  840. int64 updateTime = 18; // 更新时间
  841. }
  842. message JobBatchWithTasksVo {
  843. JobBatchVo jobBatch = 1;
  844. repeated JobTasksVo jobTasks = 2;
  845. }
  846. message TimeRange {
  847. int64 start = 1;
  848. int64 end = 2;
  849. }
  850. message JobBatchListReq {
  851. Page page = 1;
  852. JobBatchVo vo = 2;
  853. TimeRange startedTimeRange = 3;
  854. TimeRange finishedTimeRange = 4;
  855. repeated string statuses = 5;
  856. repeated int64 excludeIds = 6;
  857. }
  858. message JobBatchListResp {
  859. int64 total = 1;
  860. repeated JobBatchVo list = 2;
  861. }
  862. message JobBatchListWithTasksResp {
  863. int64 total = 1;
  864. repeated JobBatchWithTasksVo list = 2;
  865. }
  866. // end JobBatch
  867. // JobTasks
  868. message JobTasksVo {
  869. int64 id = 1; // 任务id
  870. int64 batchId = 2; // 批量作业Id
  871. string name = 3; // 任务名称
  872. string initParams = 4; // 任务初始化配置及数据
  873. string runtimeData = 5; // 任务运行时数据,用于临时存储任务过程中各个关键节点的中间数据
  874. string externalRefs = 6; // 外部系统引用,用于记录与外部系统交互产生的关联标识
  875. int64 startedTime = 7; // 任务开始时间
  876. int64 finishedTime = 8; // 任务结束时间
  877. int64 retryCount = 9; // 当前已重试次数
  878. string result = 10; // 任务执行结果
  879. string status = 11; // 任务状态
  880. string remark = 12; // 备注
  881. int64 createAt = 13; // 创建者ID
  882. int64 updateAt = 14; // 更新者ID
  883. int64 createTime = 15; // 创建时间
  884. int64 updateTime = 16; // 更新时间
  885. }
  886. message JobTasksListReq {
  887. Page page = 1;
  888. JobTasksVo vo = 2;
  889. TimeRange startedTimeRange = 3;
  890. TimeRange finishedTimeRange = 4;
  891. repeated string statuses = 5;
  892. repeated int64 excludeIds = 6;
  893. }
  894. message JobTasksListResp {
  895. int64 total = 1;
  896. repeated JobTasksVo list = 2;
  897. }
  898. // end JobTasks
  899. // DeployConfig
  900. message DeployConfigVo {
  901. int64 id = 1; // ID
  902. string name = 2; // 名称
  903. string type = 3; // 类型
  904. string data = 4; // 数据
  905. Status status = 5; // 状态
  906. string remark = 6; // 备注
  907. int64 createTime = 7; // 创建时间
  908. int64 updateTime = 8; // 更新时间
  909. }
  910. message DeployConfigListReq {
  911. Page page = 1;
  912. DeployConfigVo vo = 2;
  913. repeated int64 excludeIds = 3;
  914. }
  915. message DeployConfigListResp {
  916. int64 total = 1;
  917. repeated DeployConfigVo list = 2;
  918. }
  919. // end DeployConfig
  920. // OperationLog
  921. message OperationLogVo {
  922. int64 id = 1;
  923. int64 sysUserId = 2;
  924. string productCode = 3;
  925. string model = 4;
  926. string action = 5;
  927. string details = 6;
  928. string result = 7;
  929. int64 updateTime = 8;
  930. int64 createTime = 9;
  931. }
  932. message OperationLogListReq {
  933. Page page = 1;
  934. OperationLogVo vo = 2;
  935. repeated string productCodes = 3;
  936. repeated int64 excludeIds = 4;
  937. }
  938. message OperationLogListResp {
  939. int64 total = 1;
  940. repeated OperationLogVo list = 2;
  941. }
  942. // end OperationLog
  943. // AnnouncePlan
  944. message AnnouncePlanVo {
  945. int64 id = 1;
  946. string productCode = 2; // 产品code
  947. string areas = 3; // 地区列表
  948. int64 sort = 4;
  949. Status status = 5; // 状态
  950. string remark = 6;
  951. int64 createTime = 7;
  952. int64 updateTime = 8;
  953. }
  954. message AnnouncePlanListReq {
  955. Page page = 1;
  956. AnnouncePlanVo vo = 2;
  957. repeated string productCodes = 3;
  958. repeated int64 excludeIds = 4;
  959. }
  960. message AnnouncePlanListResp {
  961. int64 total = 1;
  962. repeated AnnouncePlanVo list = 2;
  963. }
  964. // end AnnouncePlan
  965. // AnnouncePlanDetail
  966. message AnnouncePlanDetailVo {
  967. int64 id = 1;
  968. int64 planId = 2; // 方案ID
  969. string platforms = 3; // 平台
  970. string channels = 4; // 渠道
  971. string icon = 5; // 图标
  972. string title = 6; // 标题
  973. string content = 7; // 内容
  974. string url = 8; // 商店地址
  975. string buttonText = 9; // 按钮文本
  976. int64 closeable = 10; // 是否可关闭
  977. int64 sort = 11; // 排序
  978. string policyConfig = 12; // 更新策略配置
  979. Status status = 13; // 状态
  980. string remark = 14;
  981. int64 createTime = 15;
  982. int64 updateTime = 16;
  983. }
  984. message AnnouncePlanDetailListReq {
  985. Page page = 1;
  986. AnnouncePlanDetailVo vo = 2;
  987. repeated int64 planIds = 3;
  988. }
  989. message AnnouncePlanDetailListResp {
  990. int64 total = 1;
  991. repeated AnnouncePlanDetailVo list = 2;
  992. }
  993. // end AnnouncePlanDetail
  994. // ServiceTypes
  995. message ServiceTypesVo {
  996. int64 id = 1;
  997. string productCode = 2;
  998. string name = 3;
  999. int64 userLevel = 4;
  1000. int64 deviceLimit = 5; // 可选字段,Go中是 *int64
  1001. int64 sort = 6;
  1002. string config = 7;
  1003. Status status = 8;
  1004. string remark = 9;
  1005. int64 createTime = 10;
  1006. int64 updateTime = 11;
  1007. }
  1008. message ServiceTypesGetReq { int64 id = 1; }
  1009. message ServiceTypesListReq {
  1010. Page page = 1;
  1011. ServiceTypesVo vo = 2;
  1012. repeated string productCodes = 3;
  1013. repeated int64 excludeIds = 4;
  1014. }
  1015. message ServiceTypesListResp {
  1016. int64 total = 1;
  1017. repeated ServiceTypesVo list = 2;
  1018. }
  1019. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  1020. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  1021. message ServiceTypesDelReq { int64 id = 1; }
  1022. // end ServiceTypes
  1023. // ServiceSets
  1024. message ServiceSetsVo {
  1025. int64 id = 1;
  1026. string productCode = 2;
  1027. int64 serviceTypeId = 3;
  1028. string name = 4;
  1029. int64 licenseDays = 5;
  1030. string channel = 6;
  1031. string channelItemId = 7;
  1032. int64 refPortalServiceSetId = 8; // Go中是 sql.int64,转换为 int64
  1033. string appleChannelItemId = 9;
  1034. string googleChannelItemId = 10;
  1035. string title = 11;
  1036. string subTitle = 12;
  1037. string introduce = 13;
  1038. float orgPrice = 14;
  1039. float price = 15;
  1040. BoolInt display = 16;
  1041. BoolInt isDefault = 17;
  1042. BoolInt recommend = 18;
  1043. BoolInt hidden = 19;
  1044. int64 sort = 20;
  1045. Status status = 21;
  1046. string remark = 22;
  1047. int64 createTime = 23;
  1048. int64 updateTime = 24;
  1049. }
  1050. message ServiceSetsGetReq { int64 id = 1; }
  1051. message ServiceSetsListReq {
  1052. Page page = 1;
  1053. ServiceSetsVo vo = 2;
  1054. repeated string productCodes = 3;
  1055. repeated int64 serviceTypeIds = 4;
  1056. repeated int64 excludeIds = 5;
  1057. }
  1058. message ServiceSetsListResp {
  1059. int64 total = 1;
  1060. repeated ServiceSetsVo list = 2;
  1061. }
  1062. message ServiceSetsAddReq { ServiceSetsVo vo = 1; }
  1063. message ServiceSetsUpdateReq { ServiceSetsVo vo = 1; }
  1064. message ServiceSetsDelReq { int64 id = 1; }
  1065. // end ServiceSets
  1066. message MessagePushVo {
  1067. int64 id = 1;
  1068. string status = 2;
  1069. int64 operator = 3;
  1070. string module = 4;
  1071. string title = 5;
  1072. string message = 6;
  1073. string imgUrl = 7;
  1074. string data = 8;
  1075. string productCode = 9;
  1076. int64 areaParam = 10;
  1077. repeated string topics = 11;
  1078. repeated string firebaseTokens = 12;
  1079. int64 publishTime = 13;
  1080. int64 createTime = 14;
  1081. int64 updateTime = 15;
  1082. string pushType = 16;
  1083. int64 publishCount = 17;
  1084. string exData = 18;
  1085. }
  1086. message MessagePushListReq {
  1087. Page page = 1;
  1088. MessagePushVo vo = 2;
  1089. }
  1090. message MessagePushListResp {
  1091. int64 total = 1;
  1092. repeated MessagePushVo list = 2;
  1093. }
  1094. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  1095. service GoPmpClient {
  1096. rpc Ping(Request) returns (Response);
  1097. // GlobalParamVo Model
  1098. // GlobalParamAdd
  1099. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  1100. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  1101. rpc GlobalParamDel(Ids) returns (Empty);
  1102. rpc GlobalParamGet(GlobalParamVo) returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  1103. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  1104. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  1105. // ProductVo Model
  1106. // ProductAdd
  1107. rpc ProductAdd(ProductVo) returns (ProductVo);
  1108. rpc ProductUpdate(ProductVo) returns (ProductVo);
  1109. rpc ProductDel(Ids) returns (Empty);
  1110. rpc ProductGet(ProductVo) returns (ProductVo);
  1111. rpc ProductList(ProductListReq) returns (ProductListResp);
  1112. rpc ProductAll(Request) returns (ProductListResp);
  1113. // ProductParamVo Model
  1114. // ProductParamAdd
  1115. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  1116. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  1117. rpc ProductParamDel(Ids) returns (Empty);
  1118. rpc ProductParamGet(ProductParamVo) returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  1119. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  1120. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  1121. // ProductAction 产品行为配置
  1122. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  1123. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  1124. rpc ProductActionDel(Ids) returns (Empty);
  1125. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  1126. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  1127. // ProductActionGroup 产品行为分组
  1128. rpc ProductActionGroupAdd(ProductActionGroupVo) returns (ProductActionGroupVo);
  1129. rpc ProductActionGroupUpdate(ProductActionGroupVo) returns (ProductActionGroupVo);
  1130. rpc ProductActionGroupDel(Ids) returns (Empty);
  1131. rpc ProductActionGroupGet(ProductActionGroupReq) returns (ProductActionGroupVo);
  1132. rpc ProductActionGroupList(ProductActionGroupListReq) returns (ProductActionGroupListResp);
  1133. rpc ProductActionGroupDisable(ProductActionGroupDisableReq) returns (Empty);
  1134. rpc ProductActionGroupEnable(ProductActionGroupEnableReq) returns (Empty);
  1135. // ProductActionPolicyGroup 产品行为策略分组
  1136. rpc ProductActionPolicyGroupAdd(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1137. rpc ProductActionPolicyGroupUpdate(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1138. rpc ProductActionPolicyGroupDel(Ids) returns (Empty);
  1139. rpc ProductActionPolicyGroupGet(ProductActionPolicyGroupReq) returns (ProductActionPolicyGroupVo);
  1140. rpc ProductActionPolicyGroupList(ProductActionPolicyGroupListReq) returns (ProductActionPolicyGroupListResp);
  1141. rpc ProductActionPolicyGroupDisable(ProductActionPolicyGroupDisableReq) returns (Empty);
  1142. rpc ProductActionPolicyGroupEnable(ProductActionPolicyGroupEnableReq) returns (Empty);
  1143. // ProductActionType 产品行为类型
  1144. rpc ProductActionTypeAdd(ProductActionTypeVo) returns (ProductActionTypeVo);
  1145. rpc ProductActionTypeUpdate(ProductActionTypeVo) returns (ProductActionTypeVo);
  1146. rpc ProductActionTypeDel(Ids) returns (Empty);
  1147. rpc ProductActionTypeGet(ProductActionTypeReq) returns (ProductActionTypeVo);
  1148. rpc ProductActionTypeList(ProductActionTypeListReq) returns (ProductActionTypeListResp);
  1149. // AreaParamVo Model
  1150. // AreaParamAdd
  1151. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  1152. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  1153. rpc AreaParamDel(Ids) returns (Empty);
  1154. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  1155. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  1156. // NationalLanguage Model
  1157. // NationalLanguageAdd
  1158. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  1159. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  1160. rpc NationalLanguageDel(Ids) returns (Empty);
  1161. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  1162. rpc NationalLanguageList(NationalLanguageListReq) returns (NationalLanguageListResp);
  1163. // Tip Model
  1164. // TipAdd
  1165. rpc TipAdd(TipVo) returns (TipVo);
  1166. rpc TipUpdate(TipVo) returns (TipVo);
  1167. rpc TipDel(Ids) returns (Empty);
  1168. rpc TipGet(TipGetReq) returns (TipVo);
  1169. rpc TipList(TipListReq) returns (TipListResp);
  1170. // Dict Model
  1171. // DictAdd
  1172. rpc DictAdd(DictVo) returns (DictVo);
  1173. rpc DictUpdate(DictVo) returns (DictVo);
  1174. rpc DictDel(Ids) returns (Empty);
  1175. rpc DictGet(DictGetReq) returns (DictVo);
  1176. rpc DictList(DictListReq) returns (DictListResp);
  1177. // // UpgradeRes 热更新代码资源管理
  1178. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  1179. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  1180. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  1181. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  1182. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  1183. // // UpgradePkg app 包更新管理
  1184. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  1185. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  1186. // rpc UpgradePkgDel(Ids) returns (Empty);
  1187. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  1188. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  1189. // // UpgradeResConfig Model
  1190. // // UpgradeResConfigAdd
  1191. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新
  1192. // rpc UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo);
  1193. // rpc UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty);
  1194. // rpc UpgradeResConfigDel(Ids) returns (Empty);
  1195. // rpc UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  1196. // rpc UpgradeResConfigList(UpgradeResConfigListReq) returns (UpgradeResConfigListResp);
  1197. // UpgradePkgPlan Model
  1198. // UpgradePkgPlanAdd
  1199. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1200. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1201. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  1202. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1203. rpc UpgradePkgPlanList(UpgradePkgPlanListReq) returns (UpgradePkgPlanListResp);
  1204. // UpgradePkgPlanDetail Model
  1205. // UpgradePkgPlanDetailAdd
  1206. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1207. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1208. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  1209. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1210. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq) returns (UpgradePkgPlanDetailListResp);
  1211. // UpgradeResPlan Model
  1212. // UpgradeResPlanAdd
  1213. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1214. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1215. rpc UpgradeResPlanDel(Ids) returns (Empty);
  1216. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1217. rpc UpgradeResPlanList(UpgradeResPlanListReq) returns (UpgradeResPlanListResp);
  1218. // UpgradeResPlanDetail Model
  1219. // UpgradeResPlanDetailAdd
  1220. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1221. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1222. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  1223. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1224. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq) returns (UpgradeResPlanDetailListResp);
  1225. // AdPlan Model
  1226. // AdPlanAdd
  1227. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  1228. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  1229. rpc AdPlanDel(Ids) returns (Empty);
  1230. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  1231. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  1232. // AdPlanDetail Model
  1233. // AdPlanDetailAdd
  1234. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  1235. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  1236. rpc AdPlanDetailDel(Ids) returns (Empty);
  1237. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  1238. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  1239. // AdGlobalConfig Model
  1240. // AdGlobalConfigGet
  1241. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  1242. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  1243. // JobBatch Model
  1244. // JobBatchAdd
  1245. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  1246. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  1247. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  1248. rpc JobBatchDel(Ids) returns (Empty);
  1249. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  1250. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  1251. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  1252. rpc JobBatchListWithTasks(JobBatchListReq) returns (JobBatchListWithTasksResp);
  1253. // JobTasks Model
  1254. // JobTasksAdd
  1255. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  1256. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  1257. rpc JobTasksDel(Ids) returns (Empty);
  1258. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  1259. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  1260. // DeployConfig Model
  1261. // DeployConfigAdd
  1262. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  1263. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  1264. rpc DeployConfigDel(Ids) returns (Empty);
  1265. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  1266. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  1267. // OperationLog Model
  1268. // OperationLogAdd
  1269. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  1270. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  1271. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  1272. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  1273. // AnnouncePlan Model
  1274. // AnnouncePlanAdd
  1275. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  1276. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  1277. rpc AnnouncePlanDel(Ids) returns (Empty);
  1278. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  1279. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  1280. // AnnouncePlanDetail Model
  1281. // AnnouncePlanDetailAdd
  1282. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1283. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1284. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  1285. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1286. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq) returns (AnnouncePlanDetailListResp);
  1287. // ServiceTypes Model
  1288. // ServiceTypesAdd
  1289. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesVo);
  1290. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesVo);
  1291. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  1292. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesVo);
  1293. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  1294. // ServiceSets Model
  1295. // ServiceSetsAdd
  1296. rpc ServiceSetsAdd(ServiceSetsAddReq) returns (ServiceSetsVo);
  1297. rpc ServiceSetsUpdate(ServiceSetsUpdateReq) returns (ServiceSetsVo);
  1298. rpc ServiceSetsDel(ServiceSetsDelReq) returns (Empty);
  1299. rpc ServiceSetsGet(ServiceSetsGetReq) returns (ServiceSetsVo);
  1300. rpc ServiceSetsList(ServiceSetsListReq) returns (ServiceSetsListResp);
  1301. // MessagePush Model
  1302. // MessagePushAdd
  1303. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  1304. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  1305. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  1306. }
  1307. message ShortDramaEpisodeVo {
  1308. int64 id = 1;
  1309. int64 dramaId = 2;
  1310. int64 type = 3;
  1311. string name = 4;
  1312. int64 sort = 5;
  1313. string videos = 6;
  1314. string subtitles = 7;
  1315. Status status = 8;
  1316. int64 createTime = 9;
  1317. int64 updateTime = 10;
  1318. string danmakuUrl = 11;
  1319. }
  1320. message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
  1321. message ShortDramaEpisodeListReq {
  1322. Page page = 1;
  1323. ShortDramaEpisodeVo vo = 2;
  1324. repeated int64 dramaIds = 3;
  1325. }
  1326. message ShortDramaEpisodeListResp {
  1327. int64 total = 1;
  1328. repeated ShortDramaEpisodeVo list = 2;
  1329. }
  1330. message ShortDramaEpisodeBatchAddReq {
  1331. int64 dramaId = 1;
  1332. repeated ShortDramaEpisodeVo episodes = 2;
  1333. }
  1334. message ShortDramaEpisodeBatchRefreshUpdateTimeReq { int64 dramaId = 1; }
  1335. message ShortDramaLanguageVo {
  1336. int64 id = 1;
  1337. int64 dramaId = 2;
  1338. string lang = 3;
  1339. string title = 4;
  1340. string description = 5;
  1341. string covers = 6;
  1342. string coverDominantColor = 7;
  1343. int64 createTime = 8;
  1344. int64 updateTime = 9;
  1345. }
  1346. message ShortDramaVo {
  1347. int64 id = 1;
  1348. string productCodes = 2;
  1349. string title = 3;
  1350. string description = 4;
  1351. string covers = 5;
  1352. string coverDominantColor = 6;
  1353. string type = 7;
  1354. string tags = 8;
  1355. string releaseRegions = 9;
  1356. int64 releaseDate = 10;
  1357. int64 totalEpisodes = 11;
  1358. int64 completedStatus = 12;
  1359. string copyrightSupplier = 13;
  1360. string copyrightDoc = 14;
  1361. int64 copyrightPurchaseDate = 15;
  1362. int64 copyrightExpireDate = 16;
  1363. int64 status = 17;
  1364. int64 createTime = 18;
  1365. int64 updateTime = 19;
  1366. string ghostCutId = 20;
  1367. int64 recommend = 21;
  1368. string otherConfig = 22;
  1369. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  1370. int64 mainEpisodeCount = 24;
  1371. int64 trailerEpisodeCount = 25;
  1372. int64 copyrightId = 26;
  1373. int64 creator = 27;
  1374. int64 modifier = 28;
  1375. string operationTags = 29;
  1376. string extraInfo = 30;
  1377. int64 schedulePublishTime = 31;
  1378. int64 publishTime = 32;
  1379. }
  1380. message ShortDramaGetReq {
  1381. ShortDramaVo vo = 1;
  1382. string productCode = 2;
  1383. string countryCode = 3;
  1384. string lang = 4;
  1385. }
  1386. message ShortDramaListReq {
  1387. Page page = 1;
  1388. ShortDramaVo vo = 2;
  1389. repeated int64 excludeIds = 3;
  1390. string productCode = 4;
  1391. string countryCode = 5;
  1392. string lang = 6;
  1393. string publishTimeStart = 7;
  1394. string publishTimeEnd = 8;
  1395. repeated int64 statusList = 9;
  1396. }
  1397. message ShortDramaListResp {
  1398. int64 total = 1;
  1399. repeated ShortDramaVo list = 2;
  1400. }
  1401. message ShortDramaLanguageListReq {
  1402. Page page = 1;
  1403. ShortDramaLanguageVo vo = 2;
  1404. }
  1405. message ShortDramaLanguageListResp {
  1406. int64 total = 1;
  1407. repeated ShortDramaLanguageVo list = 2;
  1408. }
  1409. message ShortDramaEpisodeCountVo {
  1410. int64 dramaId = 1;
  1411. int64 episodeCount = 2;
  1412. }
  1413. message ShortDramaEpisodeCountReq {
  1414. Page page = 1;
  1415. Status status = 2;
  1416. int64 type = 3;
  1417. repeated int64 dramaIds = 4;
  1418. }
  1419. message ShortDramaEpisodeCountResp {
  1420. int64 total = 1;
  1421. repeated ShortDramaEpisodeCountVo list = 2;
  1422. }
  1423. message ShortDramaCheckNameReq {
  1424. string title = 1; // 短剧名称
  1425. int64 id = 2; // 编辑时排除当前短剧ID
  1426. }
  1427. message ShortDramaCheckNameResp {
  1428. bool exists = 1; // 是否存在
  1429. }
  1430. message ShortDramaUpdateModifierReq {
  1431. int64 id = 1;
  1432. int64 modifier = 2;
  1433. }
  1434. message ShortDramaUpdateReleaseRegionsReq {
  1435. int64 id = 1;
  1436. string releaseRegions = 2;
  1437. }
  1438. message ShortDramaCopyrightInfoVo {
  1439. int64 id = 1;
  1440. int64 copyrightId = 2;
  1441. string releaseRegions = 3;
  1442. }
  1443. message ShortDramaFindIdsWithCopyrightResp {
  1444. repeated ShortDramaCopyrightInfoVo list = 1;
  1445. }
  1446. message SetTotalStatsReq {
  1447. int64 dramaId = 1;
  1448. string country = 2;
  1449. int64 todayPlayCount = 3;
  1450. int64 weeklyPlayCount = 4;
  1451. int64 monthlyPlayCount = 5;
  1452. }
  1453. message ShortDramaStatsPlaysTotalVo {
  1454. int64 id = 1;
  1455. int64 dramaId = 2;
  1456. string country = 3;
  1457. int64 todayPlayCount = 4;
  1458. int64 weeklyPlayCount = 5;
  1459. int64 monthlyPlayCount = 6;
  1460. int64 createTime = 7;
  1461. int64 updateTime = 8;
  1462. }
  1463. message ShortDramaStatsPlaysTotalListReq {
  1464. Page page = 1;
  1465. string country = 2; // 国家代码
  1466. }
  1467. message ShortDramaStatsPlaysTotalListResp {
  1468. int64 total = 1;
  1469. repeated ShortDramaStatsPlaysTotalVo list = 2;
  1470. }
  1471. message FindSchedulePublishListReq { int64 status = 1; }
  1472. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  1473. message PublishScheduleDramaReq {
  1474. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  1475. int64 targetStatus = 2; // 目标状态
  1476. }
  1477. service GoShortDramaClient {
  1478. // ShortDrama
  1479. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  1480. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  1481. rpc ShortDramaDel(Ids) returns (Empty);
  1482. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  1483. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  1484. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  1485. rpc ShortDramaUpdateReleaseRegions(ShortDramaUpdateReleaseRegionsReq)
  1486. returns (Empty);
  1487. rpc ShortDramaFindIdsWithCopyright(Empty)
  1488. returns (ShortDramaFindIdsWithCopyrightResp);
  1489. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  1490. returns (FindSchedulePublishListResp);
  1491. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  1492. // ShortDramaLanguage
  1493. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  1494. returns (ShortDramaLanguageListResp);
  1495. // ShortDramaEpisode
  1496. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  1497. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  1498. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  1499. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  1500. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  1501. returns (ShortDramaEpisodeVo);
  1502. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  1503. returns (ShortDramaEpisodeListResp);
  1504. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  1505. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  1506. // ShortDramaEpisodeCount
  1507. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  1508. returns (ShortDramaEpisodeCountResp);
  1509. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  1510. returns (ShortDramaCheckNameResp);
  1511. // ShortDramaStats
  1512. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  1513. // ShortDramaStatsPlaysTotal
  1514. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  1515. returns (ShortDramaStatsPlaysTotalListResp);
  1516. }
  1517. // 根据需要增加状态
  1518. message SysUserVo {
  1519. int64 id = 1; // ID
  1520. string username = 2; // 登录名
  1521. string password = 3; // 登录密码
  1522. string nickname = 4; // 昵称
  1523. string avatar = 5; // 头像
  1524. string email = 6; // 邮箱
  1525. string phone = 7; // 手机号
  1526. string remark = 8; // 备注
  1527. BoolInt isSuperAdmin = 9; // 是否为超级管理员 1是 2否
  1528. int64 permsLevel = 10; // 权限等级 值越大 权限越小
  1529. Status status = 11; // 状态 1正常 2冻结
  1530. int64 createTime = 12; // 创建时间
  1531. int64 updateTime = 13; // 修改时间
  1532. }
  1533. message SysRoleVo {
  1534. int64 id = 1; // ID
  1535. string productCode = 2; // 所属产品
  1536. string name = 3; // 角色名
  1537. string remark = 4; // 备注
  1538. Status status = 5; // 状态 1启用 2禁用
  1539. int64 createTime = 6; // 创建时间
  1540. int64 updateTime = 7; // 修改时间
  1541. int64 permsLevel = 8; // 权限等级 值越大 权限越小
  1542. }
  1543. message SysPermVo {
  1544. int64 id = 1; // ID
  1545. string name = 2; // 权限名
  1546. string code = 3; // 权限code
  1547. string remark = 4; // 备注
  1548. Status status = 5; // 状态 1启用 2禁用
  1549. int64 createTime = 6; // 创建时间
  1550. int64 updateTime = 7; // 修改时间
  1551. }
  1552. message SysUserRoleVo {
  1553. int64 id = 1; // ID
  1554. int64 userId = 2; // 用户ID
  1555. int64 roleId = 3; // 角色ID
  1556. int64 createTime = 4; // 创建时间
  1557. int64 updateTime = 5; // 修改时间
  1558. }
  1559. message SysRolePermVo {
  1560. int64 id = 1; // ID
  1561. int64 roleId = 2; // 角色ID
  1562. int64 permId = 3; // 权限ID
  1563. int64 createTime = 4; // 创建时间
  1564. int64 updateTime = 5; // 修改时间
  1565. }
  1566. message SysUserPermVo {
  1567. int64 id = 1; // ID
  1568. int64 userId = 2; // 用户ID
  1569. int64 permId = 3; // 权限ID
  1570. string effect = 4; // 权限控制策略 ALLOW允许 DENY拒绝
  1571. int64 createTime = 5; // 创建时间
  1572. int64 updateTime = 6; // 修改时间
  1573. }
  1574. message SysPermRule {
  1575. int64 permId = 1;
  1576. string effect = 2; // ALLOW允许 DENY拒绝
  1577. }
  1578. message SysUserWithRoleIdsAndPermRules {
  1579. SysUserVo user = 1; // 用户信息
  1580. repeated int64 roleIds = 2; // 角色
  1581. repeated SysPermRule permRules = 3; // 权限
  1582. }
  1583. message SysUserWithRolesAndPerms {
  1584. SysUserVo user = 1; // 用户信息
  1585. repeated SysRoleVo roles = 2; // 角色
  1586. repeated SysPermVo perms = 3; // 权限
  1587. }
  1588. message SysUserGetReq { SysUserVo vo = 1; }
  1589. message SysUserListReq {
  1590. Page page = 1;
  1591. SysUserVo vo = 2;
  1592. repeated int64 excludeIds = 3; // 排除的ID
  1593. }
  1594. message SysUserListResp {
  1595. int64 total = 1;
  1596. repeated SysUserVo list = 2;
  1597. }
  1598. message SysUserListWithRolesAndPermsResp {
  1599. int64 total = 1;
  1600. repeated SysUserWithRolesAndPerms list = 2;
  1601. }
  1602. message SysRoleWithPermIds {
  1603. SysRoleVo role = 1;
  1604. repeated int64 permIds = 2;
  1605. }
  1606. message SysRoleWithPerms {
  1607. SysRoleVo role = 1;
  1608. repeated SysPermVo perms = 2;
  1609. }
  1610. message SysRoleGetReq { SysRoleVo vo = 1; }
  1611. message SysRoleListReq {
  1612. Page page = 1;
  1613. SysRoleVo vo = 2;
  1614. repeated string productCodes = 3; // 所属产品
  1615. repeated int64 excludeIds = 4; // 排除的ID
  1616. }
  1617. message SysRoleListResp {
  1618. int64 total = 1;
  1619. repeated SysRoleVo list = 2;
  1620. }
  1621. message SysRoleListWithPermsResp {
  1622. int64 total = 1;
  1623. repeated SysRoleWithPerms list = 2;
  1624. }
  1625. message SysPermGetReq { SysPermVo vo = 1; }
  1626. message SysPermListReq {
  1627. Page page = 1;
  1628. SysPermVo vo = 2;
  1629. repeated int64 excludeIds = 3; // 排除的ID
  1630. }
  1631. message SysPermListResp {
  1632. int64 total = 1;
  1633. repeated SysPermVo list = 2;
  1634. }
  1635. message SysUserRoleGetReq { SysUserRoleVo vo = 1; }
  1636. message SysUserRoleListReq {
  1637. Page page = 1;
  1638. SysUserRoleVo vo = 2;
  1639. repeated int64 excludeIds = 3; // 排除的ID
  1640. }
  1641. message SysUserRoleListResp {
  1642. int64 total = 1;
  1643. repeated SysUserRoleVo list = 2;
  1644. }
  1645. message SysRolePermGetReq { SysRolePermVo vo = 1; }
  1646. message SysRolePermListReq {
  1647. Page page = 1;
  1648. SysRolePermVo vo = 2;
  1649. repeated int64 excludeIds = 3; // 排除的ID
  1650. }
  1651. message SysRolePermListResp {
  1652. int64 total = 1;
  1653. repeated SysRolePermVo list = 2;
  1654. }
  1655. message SysUserPermGetReq { SysUserPermVo vo = 1; }
  1656. message SysUserPermListReq {
  1657. Page page = 1;
  1658. SysUserPermVo vo = 2;
  1659. repeated int64 excludeIds = 3; // 排除的ID
  1660. }
  1661. message SysUserPermListResp {
  1662. int64 total = 1;
  1663. repeated SysUserPermVo list = 2;
  1664. }
  1665. service GoSysClient {
  1666. rpc Ping(Request) returns (Response);
  1667. // 用户管理
  1668. rpc SysUserAdd(SysUserVo) returns (SysUserVo);
  1669. rpc SysUserUpdate(SysUserVo) returns (SysUserVo);
  1670. rpc SysUserDelete(Ids) returns (Empty);
  1671. rpc SysUserGet(SysUserGetReq) returns (SysUserVo);
  1672. rpc SysUserList(SysUserListReq) returns (SysUserListResp);
  1673. rpc SysUserAddWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  1674. rpc SysUserUpdateWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  1675. rpc SysUserGetWithRolesAndPerms(SysUserGetReq) returns (SysUserWithRolesAndPerms);
  1676. rpc SysUserListWithRolesAndPerms(SysUserListReq) returns (SysUserListWithRolesAndPermsResp);
  1677. // 角色管理
  1678. rpc SysRoleAdd(SysRoleVo) returns (SysRoleVo);
  1679. rpc SysRoleUpdate(SysRoleVo) returns (SysRoleVo);
  1680. rpc SysRoleDelete(Ids) returns (Empty);
  1681. rpc SysRoleGet(SysRoleGetReq) returns (SysRoleVo);
  1682. rpc SysRoleList(SysRoleListReq) returns (SysRoleListResp);
  1683. rpc SysRoleAddWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  1684. rpc SysRoleUpdateWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  1685. rpc SysRoleGetWithPerms(SysRoleGetReq) returns (SysRoleWithPerms);
  1686. rpc SysRoleListWithPerms(SysRoleListReq) returns (SysRoleListWithPermsResp);
  1687. // 权限管理
  1688. rpc SysPermAdd(SysPermVo) returns (SysPermVo);
  1689. rpc SysPermUpdate(SysPermVo) returns (SysPermVo);
  1690. rpc SysPermDelete(Ids) returns (Empty);
  1691. rpc SysPermGet(SysPermGetReq) returns (SysPermVo);
  1692. rpc SysPermList(SysPermListReq) returns (SysPermListResp);
  1693. // 用户角色管理
  1694. rpc SysUserRoleAdd(SysUserRoleVo) returns (SysUserRoleVo);
  1695. rpc SysUserRoleUpdate(SysUserRoleVo) returns (SysUserRoleVo);
  1696. rpc SysUserRoleDelete(Ids) returns (Empty);
  1697. rpc SysUserRoleGet(SysUserRoleGetReq) returns (SysUserRoleVo);
  1698. rpc SysUserRoleList(SysUserRoleListReq) returns (SysUserRoleListResp);
  1699. // 角色权限管理
  1700. rpc SysRolePermAdd(SysRolePermVo) returns (SysRolePermVo);
  1701. rpc SysRolePermUpdate(SysRolePermVo) returns (SysRolePermVo);
  1702. rpc SysRolePermDelete(Ids) returns (Empty);
  1703. rpc SysRolePermGet(SysRolePermGetReq) returns (SysRolePermVo);
  1704. rpc SysRolePermList(SysRolePermListReq) returns (SysRolePermListResp);
  1705. // 用户权限管理
  1706. rpc SysUserPermAdd(SysUserPermVo) returns (SysUserPermVo);
  1707. rpc SysUserPermUpdate(SysUserPermVo) returns (SysUserPermVo);
  1708. rpc SysUserPermDelete(Ids) returns (Empty);
  1709. rpc SysUserPermGet(SysUserPermGetReq) returns (SysUserPermVo);
  1710. rpc SysUserPermList(SysUserPermListReq) returns (SysUserPermListResp);
  1711. }
  1712. // 白名单表
  1713. message UserWhiteVo {
  1714. int64 id = 1; // 主键ID
  1715. int64 userId = 2; // 用户
  1716. UserType userType = 3; // 用户类型 1 设备 2 账号
  1717. Status status = 4; // 状态
  1718. int64 createTime = 5; // 创建时间
  1719. int64 updateTime = 6; // 更新时间
  1720. }
  1721. // 测试用户表
  1722. message UserTestVo {
  1723. int64 id = 1; // 主键ID
  1724. int64 userId = 2; // 用户
  1725. UserType userType = 3; // 用户类型 1 设备 2 账号
  1726. string area = 4; // 指定地区
  1727. repeated string apis = 5; // 指定接口
  1728. repeated string routers = 6; // 指定路由
  1729. Status status = 7; // 状态
  1730. int64 createTime = 8; // 创建时间
  1731. int64 updateTime = 9; // 更新时间
  1732. }
  1733. // Account
  1734. message AccountVo {
  1735. int64 id = 1; // 主键ID
  1736. string userUuid = 2; // 用户UUID
  1737. string productCode = 3; // 产品ID
  1738. string username = 4; // 用户名
  1739. string password = 5; // 密码
  1740. string accountKey = 6; // 账号KEY
  1741. string accountPassword = 7; // 账号密码
  1742. int64 accountType = 8; // 账号类型
  1743. int64 registMode = 9; // 注册方式
  1744. string provider = 10; // 授权登录标识
  1745. BoolInt whitelistUser = 11; // 白名单用户
  1746. BoolInt activated = 12; // 是否激活
  1747. string config = 13; // 配置
  1748. Status status = 14; // 状态
  1749. string avatar = 15; // 头像
  1750. string area = 16; // 指定地区
  1751. string remark = 17; // 备注
  1752. string deviceId = 18; // 设备ID
  1753. string platform = 19; // 平台
  1754. string channel = 20; // 渠道
  1755. string deviceModel = 21; // 设备型号
  1756. string deviceOs = 22; // 设备系统
  1757. int64 timezone = 23; // 时区
  1758. string lang = 24; // 语言
  1759. string ip = 25; // IP
  1760. string country = 26; // 国家
  1761. string province = 27; // 省份
  1762. string city = 28; // 城市
  1763. string isp = 29; // ISP
  1764. int64 appVer = 30; // 产品版本号
  1765. int64 appRuntimeCode = 31; // 产品运行码
  1766. int64 createTime = 32; // 创建时间
  1767. int64 updateTime = 33; // 更新时间
  1768. string version = 34; // 数据版本
  1769. string sessionId = 35; // 登录凭证
  1770. int64 sessionCreateTime = 36; // 凭证创建时间
  1771. }
  1772. message AccountListReq {
  1773. Page page = 1;
  1774. AccountVo vo = 2;
  1775. repeated string productCodes = 3; // 产品code
  1776. repeated int64 excludeIds = 4; // 排除的ID
  1777. }
  1778. message AccountListResp {
  1779. int64 total = 1;
  1780. repeated AccountVo list = 2;
  1781. }
  1782. // AccountDevice
  1783. message AccountDeviceVo {
  1784. int64 id = 1;
  1785. int64 accountId = 2; // 用户ID
  1786. int64 deviceId = 3; // 设备ID
  1787. string sessionId = 4; // 登录凭证
  1788. int64 sessionCreateTime = 5; // 凭证创建时间
  1789. int64 updateTime = 6;
  1790. int64 createTime = 7;
  1791. }
  1792. message AccountDeviceListReq {
  1793. Page page = 1;
  1794. AccountDeviceVo vo = 2;
  1795. repeated int64 excludeIds = 3; // 排除的ID
  1796. }
  1797. message AccountDeviceListResp {
  1798. int64 total = 1;
  1799. repeated AccountDeviceVo list = 2;
  1800. }
  1801. message UserWhiteListReq {
  1802. Page page = 1;
  1803. UserWhiteVo vo = 2;
  1804. repeated int64 excludeIds = 3; // 排除的ID
  1805. }
  1806. message UserWhiteListResp {
  1807. int64 total = 1;
  1808. repeated UserWhiteVo list = 2;
  1809. }
  1810. message UserTestListReq {
  1811. Page page = 1;
  1812. UserTestVo vo = 2;
  1813. repeated int64 excludeIds = 3; // 排除的ID
  1814. }
  1815. message UserTestListResp {
  1816. int64 total = 1;
  1817. repeated UserTestVo list = 2;
  1818. }
  1819. message DeviceVo {
  1820. int64 id = 1;
  1821. string userUuid = 2;
  1822. string productCode = 3;
  1823. string deviceId = 4;
  1824. string accountKey = 5;
  1825. string accountPassword = 6;
  1826. string platform = 7;
  1827. string channel = 8;
  1828. string referChannel = 9;
  1829. string deviceModel = 10;
  1830. string deviceOs = 11;
  1831. int64 timezone = 12;
  1832. string lang = 13;
  1833. int64 appVer = 14;
  1834. string ip = 15;
  1835. string country = 16;
  1836. string province = 17;
  1837. string city = 18;
  1838. string isp = 19;
  1839. int64 createTime = 20;
  1840. int64 updateTime = 21;
  1841. Status status = 22;
  1842. string refer = 23;
  1843. int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户
  1844. int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户
  1845. string mockCountry = 26; // 指定国家
  1846. string mockApi = 27; // 指定API
  1847. string mockRouter = 28; // 指定路由
  1848. string referSubChannel = 29;
  1849. string firebaseToken = 30; // firebase token
  1850. string appVerName = 31; // 版本
  1851. }
  1852. message DeviceListReq {
  1853. Page page = 1;
  1854. DeviceVo vo = 2;
  1855. repeated string productCodes = 3; // 产品code
  1856. repeated int64 excludeIds = 4; // 排除的ID
  1857. repeated string dateRange = 5; // 日期范围
  1858. int64 createStartTime = 6; // 创建开始时间
  1859. int64 createEndTime = 7; // 创建结束时间
  1860. repeated string deviceIds = 8; // 设备IDs
  1861. string country = 9; // 国家
  1862. string vn = 10; // 运营商
  1863. }
  1864. message DeviceListRes {
  1865. int64 total = 1;
  1866. repeated DeviceVo list = 2;
  1867. }
  1868. message UserAppConfigVo {
  1869. int64 id = 1;
  1870. string deviceId = 2;
  1871. string key = 3;
  1872. string value = 4;
  1873. Status status = 5;
  1874. int64 createTime = 6;
  1875. int64 updateTime = 7;
  1876. }
  1877. message UserAppConfigGetReq { UserAppConfigVo vo = 1; }
  1878. message UserAppConfigListReq {
  1879. Page page = 1;
  1880. UserAppConfigVo vo = 2;
  1881. }
  1882. message UserAppConfigListRes {
  1883. int64 total = 1;
  1884. repeated UserAppConfigVo list = 2;
  1885. }
  1886. message DeviceUpdateFirebaseTokenReq {
  1887. // 设备ID
  1888. string deviceId = 1;
  1889. // firebaseToken
  1890. string firebaseToken = 2;
  1891. string productCode =3;
  1892. }
  1893. message DeviceAddFirebaseTokenReq {
  1894. string deviceId = 1;
  1895. string firebaseToken = 2;
  1896. }
  1897. message DeviceFirebaseTokenMapReq {
  1898. repeated string deviceId = 1;
  1899. }
  1900. message DeviceFirebaseTokenMapRes {
  1901. map<string, string> result = 1;
  1902. }
  1903. message UserVo {
  1904. int64 id = 1; // ID
  1905. string productCode = 2; // 产品标识
  1906. string uuid = 3; // 用户唯一ID
  1907. string deviceId = 4; // 注册时使用的设备ID
  1908. int64 accountType = 5; // 1: device 2: account (其实可以通过查询 user_credential 中有没有登录凭证来确定此账号是已注册的账号还是游客类型的账号)
  1909. string registType = 6; // 注册方式 normal email phone wechat qq google apple (其实可以通过查询 user_credential 中最早的一条记录的 identityType 来确定)
  1910. int64 registFrom = 7; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  1911. string referChannel = 8; // 推广渠道
  1912. string referSubChannel = 9; // 推广子渠道
  1913. string nickname = 10; // 用户昵称
  1914. string avatar = 11; // 用户头像地址
  1915. string config = 12; // 保留字段,用于扩展
  1916. Status status = 13; // 状态 1: 正常 2: 冻结
  1917. int64 createTime = 14; // 创建时间
  1918. int64 updateTime = 15; // 修改时间
  1919. }
  1920. message UserAddReq { UserVo vo = 1; }
  1921. message UserAddResp { UserVo vo = 1; }
  1922. message UserUpdateReq { UserVo vo = 1; }
  1923. message UserUpdateResp { UserVo vo = 1; }
  1924. message UserDelReq { repeated int64 ids = 1; }
  1925. message UserGetReq { UserVo vo = 1; }
  1926. message UserGetResp { UserVo vo = 1; }
  1927. message UserListReq {
  1928. Page page = 1;
  1929. UserVo vo = 2;
  1930. repeated int64 excludeIds = 3; // 排除的ID
  1931. repeated string productCodes = 4; // 产品code
  1932. repeated string uuids = 5; // 用户唯一ID
  1933. repeated string deviceIds = 6; // 设备ID (device 表的 id)
  1934. }
  1935. message UserListResp {
  1936. int64 total = 1;
  1937. repeated UserVo list = 2;
  1938. }
  1939. message UserCredentialVo {
  1940. int64 id = 1; // ID
  1941. int64 userId = 2; // 用户ID
  1942. string productCode = 3; // 产品标识
  1943. string identityType = 4; // 凭证类型: username, email, phone, wechat, qq, google, apple 等
  1944. string identifier = 5; // 凭证标识
  1945. string credential = 6; // 凭证密钥(密码/token)
  1946. int64 isVerified = 7; // 是否已验证 1: 已验证 2: 未验证
  1947. int64 registFrom = 8; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  1948. Status status = 9; // 状态 1: 正常 2: 禁用
  1949. int64 createTime = 10; // 创建时间/注册时间
  1950. int64 updateTime = 11; // 更新时间
  1951. }
  1952. message UserCredentialAddReq { UserCredentialVo vo = 1; }
  1953. message UserCredentialAddResp { UserCredentialVo vo = 1; }
  1954. message UserCredentialUpdateReq { UserCredentialVo vo = 1; }
  1955. message UserCredentialUpdateResp { UserCredentialVo vo = 1; }
  1956. message UserCredentialDelReq { repeated int64 ids = 1; }
  1957. message UserCredentialGetReq { UserCredentialVo vo = 1; }
  1958. message UserCredentialGetResp { UserCredentialVo vo = 1; }
  1959. message UserCredentialListReq {
  1960. Page page = 1;
  1961. UserCredentialVo vo = 2;
  1962. repeated int64 excludeIds = 3; // 排除的ID
  1963. repeated int64 userIds = 4; // 用户ID
  1964. }
  1965. message UserCredentialListResp {
  1966. int64 total = 1;
  1967. repeated UserCredentialVo list = 2;
  1968. }
  1969. message UserDeviceVo {
  1970. int64 id = 1; // ID
  1971. int64 userId = 2; // 用户ID
  1972. int64 did = 3; // 设备ID
  1973. string sessionId = 4; // 登录凭证
  1974. int64 sessionCreateTime = 5; // 凭证创建时间
  1975. Status status = 6; // 状态 1: 正常 2: 禁用
  1976. int64 updateTime = 7; // 更新时间
  1977. int64 createTime = 8; // 创建时间
  1978. }
  1979. message UserDeviceAddReq { UserDeviceVo vo = 1; }
  1980. message UserDeviceAddResp { UserDeviceVo vo = 1; }
  1981. message UserDeviceUpdateReq { UserDeviceVo vo = 1; }
  1982. message UserDeviceUpdateResp { UserDeviceVo vo = 1; }
  1983. message UserDeviceDelReq { repeated int64 ids = 1; }
  1984. message UserDeviceGetReq { UserDeviceVo vo = 1; }
  1985. message UserDeviceGetResp { UserDeviceVo vo = 1; }
  1986. message UserDeviceListReq {
  1987. Page page = 1;
  1988. UserDeviceVo vo = 2;
  1989. repeated int64 excludeIds = 3; // 排除的ID
  1990. repeated int64 userIds = 4; // 用户ID
  1991. repeated int64 dids = 5; // device 表的 id
  1992. }
  1993. message UserDeviceListResp {
  1994. int64 total = 1;
  1995. repeated UserDeviceVo list = 2;
  1996. }
  1997. // 用户模块
  1998. service GoUserClient {
  1999. rpc Ping(Request) returns (Response);
  2000. // 用户app配置管理(ring)
  2001. rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo);
  2002. rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo);
  2003. rpc UserAppConfigDel(Ids) returns (Empty);
  2004. rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo);
  2005. rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes);
  2006. // Device Model
  2007. // DeviceAdd
  2008. rpc DeviceAdd(DeviceVo) returns (DeviceVo);
  2009. rpc DeviceUpdate(DeviceVo) returns (DeviceVo);
  2010. rpc DeviceDel(Ids) returns (Empty);
  2011. rpc DeviceGet(DeviceVo) returns (DeviceVo);
  2012. rpc DeviceList(DeviceListReq) returns (DeviceListRes);
  2013. rpc DeviceAddFirebaseToken (DeviceAddFirebaseTokenReq) returns (Empty);
  2014. rpc DeviceUpdateFirebaseToken(DeviceUpdateFirebaseTokenReq) returns (Empty);
  2015. rpc DeviceFirebaseTokenMap (DeviceFirebaseTokenMapReq) returns (DeviceFirebaseTokenMapRes);
  2016. // Account Model
  2017. // AccountAdd
  2018. rpc AccountAdd(AccountVo) returns (AccountVo);
  2019. rpc AccountUpdate(AccountVo) returns (AccountVo);
  2020. rpc AccountDel(Ids) returns (Empty);
  2021. rpc AccountGet(AccountVo) returns (AccountVo);
  2022. rpc AccountList(AccountListReq) returns (AccountListResp);
  2023. // AccountDevice Model
  2024. // AccountDeviceAdd
  2025. rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo);
  2026. rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo);
  2027. rpc AccountDeviceDel(Ids) returns (Empty);
  2028. rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo);
  2029. rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp);
  2030. // 用户白名单管理
  2031. rpc UserWhiteAdd(UserWhiteVo) returns (UserWhiteVo);
  2032. rpc UserWhiteUpdate(UserWhiteVo) returns (UserWhiteVo);
  2033. rpc UserWhiteDel(Ids) returns (Empty);
  2034. rpc UserWhiteGet(UserWhiteVo) returns (UserWhiteVo);
  2035. rpc UserWhiteList(UserWhiteListReq) returns (UserWhiteListResp);
  2036. // 测试用户管理
  2037. rpc UserTestAdd(UserTestVo) returns (UserTestVo);
  2038. rpc UserTestUpdate(UserTestVo) returns (UserTestVo);
  2039. rpc UserTestDel(Ids) returns (Empty);
  2040. rpc UserTestGet(UserTestVo) returns (UserTestVo);
  2041. rpc UserTestList(UserTestListReq) returns (UserTestListResp);
  2042. // User Model
  2043. // UserAdd
  2044. rpc UserAdd(UserAddReq) returns (UserAddResp);
  2045. rpc UserUpdate(UserUpdateReq) returns (UserUpdateResp);
  2046. rpc UserDel(UserDelReq) returns (Empty);
  2047. rpc UserGet(UserGetReq) returns (UserGetResp);
  2048. rpc UserList(UserListReq) returns (UserListResp);
  2049. // UserCredential Model
  2050. // UserCredentialAdd
  2051. rpc UserCredentialAdd(UserCredentialAddReq) returns (UserCredentialAddResp);
  2052. rpc UserCredentialUpdate(UserCredentialUpdateReq) returns (UserCredentialUpdateResp);
  2053. rpc UserCredentialDel(UserCredentialDelReq) returns (Empty);
  2054. rpc UserCredentialGet(UserCredentialGetReq) returns (UserCredentialGetResp);
  2055. rpc UserCredentialList(UserCredentialListReq) returns (UserCredentialListResp);
  2056. // UserDevice Model
  2057. // UserDeviceAdd
  2058. rpc UserDeviceAdd(UserDeviceAddReq) returns (UserDeviceAddResp);
  2059. rpc UserDeviceUpdate(UserDeviceUpdateReq) returns (UserDeviceUpdateResp);
  2060. rpc UserDeviceDel(UserDeviceDelReq) returns (Empty);
  2061. rpc UserDeviceGet(UserDeviceGetReq) returns (UserDeviceGetResp);
  2062. rpc UserDeviceList(UserDeviceListReq) returns (UserDeviceListResp);
  2063. }
  2064. // VpnTag
  2065. message VpnTagVo {
  2066. int64 id = 1;
  2067. string productCode = 2;
  2068. string type = 3;
  2069. string name = 4;
  2070. int64 sort = 5;
  2071. Status status = 6;
  2072. string remark = 7;
  2073. int64 createTime = 8;
  2074. int64 updateTime = 9;
  2075. string otherConfig = 10;
  2076. }
  2077. message VpnTagGetReq { VpnTagVo vo = 1; }
  2078. message VpnTagListReq {
  2079. Page page = 1;
  2080. VpnTagVo vo = 2;
  2081. repeated string productCodes = 3;
  2082. repeated int64 excludeIds = 4;
  2083. }
  2084. message VpnTagListResp {
  2085. int64 total = 1;
  2086. repeated VpnTagVo list = 2;
  2087. }
  2088. message VpnTagBatchAddReq { repeated VpnTagVo list = 1; }
  2089. message VpnTagBatchAddResp { repeated VpnTagVo list = 1; }
  2090. message VpnTagBatchUpdateReq { repeated VpnTagVo list = 1; }
  2091. message VpnTagBatchUpdateResp { repeated VpnTagVo list = 1; }
  2092. message VpnTagBatchDelReq { repeated int64 ids = 1; }
  2093. // VpnTag
  2094. message VpnGroupVo {
  2095. int64 id = 1;
  2096. string productCode = 2;
  2097. string name = 3;
  2098. string icon = 4;
  2099. int64 sort = 5;
  2100. Status status = 6;
  2101. string remark = 7;
  2102. int64 createTime = 8;
  2103. int64 updateTime = 9;
  2104. string version = 10;
  2105. string otherConfig = 11;
  2106. }
  2107. message VpnGroupExVo {
  2108. VpnGroupVo vo = 1;
  2109. repeated int64 tagIds = 2;
  2110. }
  2111. message VpnGroupAddReq {
  2112. VpnGroupVo vo = 1;
  2113. repeated int64 tagIds = 2;
  2114. }
  2115. message VpnGroupGetReq { VpnGroupVo vo = 1; }
  2116. message VpnGroupListReq {
  2117. Page page = 1;
  2118. VpnGroupVo vo = 2;
  2119. repeated string productCodes = 3;
  2120. repeated int64 excludeIds = 4;
  2121. }
  2122. message VpnGroupListResp {
  2123. int64 total = 1;
  2124. repeated VpnGroupVo list = 2;
  2125. }
  2126. message VpnGroupBatchAddReq { repeated VpnGroupExVo list = 1; }
  2127. message VpnGroupBatchAddResp { repeated VpnGroupExVo list = 1; }
  2128. message VpnGroupBatchUpdateReq { repeated VpnGroupExVo list = 1; }
  2129. message VpnGroupBatchUpdateResp { repeated VpnGroupExVo list = 1; }
  2130. message VpnGroupBatchDelReq { repeated int64 ids = 1; }
  2131. // VpnGroupTag
  2132. message VpnGroupTagVo {
  2133. int64 id = 1;
  2134. int64 groupId = 2;
  2135. int64 tagId = 3;
  2136. int64 createTime = 4;
  2137. int64 updateTime = 5;
  2138. }
  2139. message VpnGroupTagListReq {
  2140. Page page = 1;
  2141. VpnGroupTagVo vo = 2;
  2142. repeated int64 groupIds = 3;
  2143. repeated int64 tagIds = 4;
  2144. }
  2145. message VpnGroupTagListResp {
  2146. int64 total = 1;
  2147. repeated VpnGroupTagVo list = 2;
  2148. }
  2149. // VpnLocation
  2150. message VpnLocationVo {
  2151. int64 id = 1;
  2152. int64 groupId = 2;
  2153. string name = 3;
  2154. string code = 4;
  2155. string icon = 5;
  2156. int64 type = 6;
  2157. string displayPolicyConfig = 7;
  2158. string routePolicyConfig = 8;
  2159. int64 sort = 9;
  2160. Status status = 10;
  2161. string remark = 11;
  2162. int64 createTime = 12;
  2163. int64 updateTime = 13;
  2164. string version = 14;
  2165. string otherConfig = 15;
  2166. }
  2167. message VpnLocationExVo {
  2168. VpnLocationVo vo = 1;
  2169. string productCode = 2;
  2170. }
  2171. message VpnLocationGetReq { VpnLocationVo vo = 1; }
  2172. message VpnLocationListReq {
  2173. Page page = 1;
  2174. VpnLocationExVo vo = 2;
  2175. repeated int64 groupIds = 3;
  2176. repeated int64 excludeIds = 4;
  2177. repeated string productCodes = 5;
  2178. }
  2179. message VpnLocationListResp {
  2180. int64 total = 1;
  2181. repeated VpnLocationExVo list = 2;
  2182. }
  2183. message VpnLocationBatchAddReq { repeated VpnLocationVo list = 1; }
  2184. message VpnLocationBatchAddResp { repeated VpnLocationExVo list = 1; }
  2185. message VpnLocationBatchUpdateReq { repeated VpnLocationVo list = 1; }
  2186. message VpnLocationBatchUpdateResp { repeated VpnLocationExVo list = 1; }
  2187. message VpnLocationBatchDelReq { repeated int64 ids = 1; }
  2188. // VpnServer
  2189. message VpnServerVo {
  2190. int64 id = 1;
  2191. int64 instanceId = 2;
  2192. string name = 3;
  2193. string ip = 4;
  2194. int64 port = 5;
  2195. int64 pingPort = 6;
  2196. string netConfig = 7;
  2197. string routePolicyConfig = 8;
  2198. string serverInfo = 9;
  2199. Status status = 10;
  2200. string remark = 11;
  2201. int64 createTime = 12;
  2202. int64 updateTime = 13;
  2203. string version = 14;
  2204. string otherInfo = 15;
  2205. int64 monitorPort = 16;
  2206. string vpnConfig = 17;
  2207. }
  2208. message VpnServerExVo {
  2209. VpnServerVo vo = 1;
  2210. repeated int64 locationIds = 2;
  2211. }
  2212. message VpnServerListReq {
  2213. Page page = 1;
  2214. VpnServerVo vo = 2;
  2215. repeated int64 excludeIds = 3; // 排除的ID
  2216. repeated string productCodes = 4;
  2217. repeated int64 locationIds = 5;
  2218. repeated int64 instanceIds = 6;
  2219. }
  2220. message VpnServerListResp {
  2221. int64 total = 1;
  2222. repeated VpnServerVo list = 2;
  2223. }
  2224. message VpnServerExListResp {
  2225. int64 total = 1;
  2226. repeated VpnServerExVo list = 2;
  2227. }
  2228. message VpnServerAddReq {
  2229. VpnServerVo vo = 1;
  2230. repeated int64 locationIds = 2;
  2231. }
  2232. message VpnServerBatchAddReq { repeated VpnServerExVo list = 1; }
  2233. message VpnServerBatchAddResp { repeated VpnServerExVo list = 1; }
  2234. message VpnServerBatchUpdateReq { repeated VpnServerExVo list = 1; }
  2235. message VpnServerBatchUpdateResp { repeated VpnServerExVo list = 1; }
  2236. message VpnServerBatchDelReq { repeated int64 ids = 1; }
  2237. message VpnServerLocationVo {
  2238. int64 id = 1;
  2239. int64 serverId = 2;
  2240. int64 locationId = 3;
  2241. int64 createTime = 4;
  2242. int64 updateTime = 5;
  2243. Status status = 6;
  2244. }
  2245. message VpnServerLocationListReq {
  2246. Page page = 1;
  2247. VpnServerLocationVo vo = 2;
  2248. repeated int64 serverIds = 3;
  2249. repeated int64 locationIds = 4;
  2250. }
  2251. message VpnServerLocationListResp {
  2252. int64 total = 1;
  2253. repeated VpnServerLocationVo list = 2;
  2254. }
  2255. message VpnLocationServerCountVo {
  2256. int64 locationId = 1;
  2257. int64 serverCount = 2;
  2258. }
  2259. message VpnLocationServerCountReq {
  2260. Page page = 1;
  2261. Status status = 2;
  2262. repeated int64 serverIds = 3;
  2263. repeated int64 locationIds = 4;
  2264. }
  2265. message VpnLocationServerCountResp {
  2266. int64 total = 1;
  2267. repeated VpnLocationServerCountVo list = 2;
  2268. }
  2269. message VpnProbeTaskVo {
  2270. int64 id = 1;
  2271. string taskId = 2;
  2272. string filter = 3; // 筛选条件
  2273. string type = 4; // 类型
  2274. string uploadDomain = 5; // 配置
  2275. string params = 6;
  2276. int64 answer = 7;
  2277. float percentage = 8; // 进度百分比
  2278. string result = 9; // 结果
  2279. int64 userId = 10;
  2280. int64 createTime = 11;
  2281. int64 updateTime = 12;
  2282. }
  2283. message VpnProbeTaskListReq {
  2284. Page page = 1;
  2285. VpnProbeTaskVo vo = 2;
  2286. }
  2287. message VpnProbeTaskListResp {
  2288. int64 total = 1;
  2289. repeated VpnProbeTaskVo list = 2;
  2290. }
  2291. message VpnWithIPAndPortReq {
  2292. // 产品Code
  2293. string productCode = 1;
  2294. }
  2295. message VpnWithIPAndPortResp {
  2296. repeated VpnWithIPAndPortItem list = 1;
  2297. }
  2298. message VpnWithIPAndPortItem {
  2299. // location displayConfig
  2300. string displayConfig = 1;
  2301. // 设备
  2302. repeated VpnServerVo vo = 2;
  2303. }
  2304. // VpnipWalledVo
  2305. message VpnipWalledVo {
  2306. int64 id = 1; // ID
  2307. int64 ipId = 2; // IP ID
  2308. string area = 3; // 地区
  2309. int64 walledTime = 4; // 被墙时间
  2310. string remark = 5; // 备注
  2311. int64 createTime = 6; // 创建时间
  2312. int64 createAt = 7; // 创建者ID
  2313. int64 updateTime = 8; // 更新时间
  2314. int64 updateAt = 9; // 更新者ID
  2315. }
  2316. message VpnipWalledAddReq { VpnipWalledVo vo = 1; }
  2317. message VpnipWalledAddResp { VpnipWalledVo vo = 1; }
  2318. message VpnipWalledUpdateReq { VpnipWalledVo vo = 1; }
  2319. message VpnipWalledUpdateResp { VpnipWalledVo vo = 1; }
  2320. message VpnipWalledGetReq { VpnipWalledVo vo = 1; }
  2321. message VpnipWalledGetResp { VpnipWalledVo vo = 1; }
  2322. message VpnipWalledListReq {
  2323. Page page = 1;
  2324. VpnipWalledVo vo = 2;
  2325. repeated int64 excludeIds = 3;
  2326. repeated int64 ipIds = 4;
  2327. repeated string ips = 5;
  2328. repeated string areas = 6;
  2329. }
  2330. message VpnipWalledListResp {
  2331. int64 total = 1;
  2332. repeated VpnipWalledVo list = 2;
  2333. }
  2334. message VpnipWalledBatchAddReq { repeated VpnipWalledVo list = 1; }
  2335. message VpnipWalledBatchAddResp { repeated VpnipWalledVo list = 1; }
  2336. message VpnipWalledBatchUpdateReq { repeated VpnipWalledVo list = 1; }
  2337. message VpnipWalledBatchUpdateResp { repeated VpnipWalledVo list = 1; }
  2338. // VpnipVo
  2339. message VpnipVo {
  2340. int64 id = 1; // ID
  2341. int64 rangeId = 2; // IP段ID
  2342. string ip = 3; // IP地址
  2343. string otherInfo = 4; // 其他信息,保留字段,用于扩展
  2344. Status status = 5; // 状态
  2345. string remark = 6; // 备注
  2346. int64 createTime = 7; // 创建时间
  2347. int64 createAt = 8; // 创建者ID
  2348. int64 updateTime = 9; // 更新时间
  2349. int64 updateAt = 10; // 更新者ID
  2350. }
  2351. message VpnipExVo {
  2352. VpnipVo vo = 1;
  2353. repeated VpnipWalledVo walledInfos = 2;
  2354. }
  2355. message VpnipAddReq { VpnipVo vo = 1; }
  2356. message VpnipAddResp { VpnipVo vo = 1; }
  2357. message VpnipExAddReq { VpnipExVo vo = 1; }
  2358. message VpnipExAddResp { VpnipExVo vo = 1; }
  2359. message VpnipUpdateReq { VpnipVo vo = 1; }
  2360. message VpnipUpdateResp { VpnipVo vo = 1; }
  2361. message VpnipExUpdateReq { VpnipExVo vo = 1; }
  2362. message VpnipExUpdateResp { VpnipExVo vo = 1; }
  2363. message VpnipGetReq { VpnipVo vo = 1; }
  2364. message VpnipGetResp { VpnipVo vo = 1; }
  2365. message VpnipExGetResp { VpnipExVo vo = 1; }
  2366. message VpnipListReq {
  2367. Page page = 1;
  2368. VpnipVo vo = 2;
  2369. repeated int64 excludeIds = 3;
  2370. repeated string ips = 4;
  2371. repeated int64 serverIds = 5;
  2372. repeated int64 instanceIds = 6;
  2373. repeated int64 rangeIds = 7;
  2374. }
  2375. message VpnipListResp {
  2376. int64 total = 1;
  2377. repeated VpnipVo list = 2;
  2378. }
  2379. message VpnipExListResp {
  2380. int64 total = 1;
  2381. repeated VpnipExVo list = 2;
  2382. }
  2383. message VpnipBatchAddReq { repeated VpnipVo list = 1; }
  2384. message VpnipBatchAddResp { repeated VpnipVo list = 1; }
  2385. message VpnipBatchUpdateReq { repeated VpnipVo list = 1; }
  2386. message VpnipBatchUpdateResp { repeated VpnipVo list = 1; }
  2387. message VpnipExBatchAddReq { repeated VpnipExVo list = 1; }
  2388. message VpnipExBatchAddResp { repeated VpnipExVo list = 1; }
  2389. message VpnipExBatchUpdateReq { repeated VpnipExVo list = 1; }
  2390. message VpnipExBatchUpdateResp { repeated VpnipExVo list = 1; }
  2391. // VpnipRangeVo
  2392. message VpnipRangeVo {
  2393. int64 id = 1; // ID
  2394. string name = 2; // 名称
  2395. string supplierId = 3; // 供应商ID
  2396. string startIP = 4; // 起始IP
  2397. string endIP = 5; // 结束IP
  2398. int64 expires = 6; // 到期日期
  2399. int64 sort = 7; // 排序
  2400. Status status = 8; // 状态
  2401. string remark = 9; // 备注
  2402. int64 createTime = 10; // 创建时间
  2403. int64 createAt = 11; // 创建者ID
  2404. int64 updateTime = 12; // 更新时间
  2405. int64 updateAt = 13; // 更新者ID
  2406. }
  2407. message VpnipRangeExVo {
  2408. VpnipRangeVo vo = 1;
  2409. repeated VpnipVo ipInfos = 2;
  2410. }
  2411. message VpnipRangeAddReq { VpnipRangeVo vo = 1; }
  2412. message VpnipRangeAddResp { VpnipRangeVo vo = 1; }
  2413. message VpnipRangeExAddReq { VpnipRangeExVo vo = 1; }
  2414. message VpnipRangeExAddResp { VpnipRangeExVo vo = 1; }
  2415. message VpnipRangeUpdateReq { VpnipRangeVo vo = 1; }
  2416. message VpnipRangeUpdateResp { VpnipRangeVo vo = 1; }
  2417. message VpnipRangeExUpdateReq { VpnipRangeExVo vo = 1; }
  2418. message VpnipRangeExUpdateResp { VpnipRangeExVo vo = 1; }
  2419. message VpnipRangeGetReq { VpnipRangeVo vo = 1; }
  2420. message VpnipRangeGetResp { VpnipRangeVo vo = 1; }
  2421. message VpnipRangeExGetResp { VpnipRangeExVo vo = 1; }
  2422. message VpnipRangeListReq {
  2423. Page page = 1;
  2424. VpnipRangeVo vo = 2;
  2425. repeated string names = 3;
  2426. repeated string ips = 4;
  2427. repeated int64 excludeIds = 5; // 排除的ID
  2428. }
  2429. message VpnipRangeListResp {
  2430. int64 total = 1;
  2431. repeated VpnipRangeVo list = 2;
  2432. }
  2433. message VpnipRangeExListResp {
  2434. int64 total = 1;
  2435. repeated VpnipRangeExVo list = 2;
  2436. }
  2437. message VpnipRangeBatchAddReq { repeated VpnipRangeVo list = 1; }
  2438. message VpnipRangeBatchAddResp { repeated VpnipRangeVo list = 1; }
  2439. message VpnipRangeBatchUpdateReq { repeated VpnipRangeVo list = 1; }
  2440. message VpnipRangeBatchUpdateResp { repeated VpnipRangeVo list = 1; }
  2441. message VpnipRangeExBatchAddReq { repeated VpnipRangeExVo list = 1; }
  2442. message VpnipRangeExBatchAddResp { repeated VpnipRangeExVo list = 1; }
  2443. message VpnipRangeExBatchUpdateReq { repeated VpnipRangeExVo list = 1; }
  2444. message VpnipRangeExBatchUpdateResp { repeated VpnipRangeExVo list = 1; }
  2445. // VpnipBindVo
  2446. message VpnipBindVo {
  2447. int64 id = 1; // ID
  2448. int64 ipId = 2; // IP ID
  2449. int64 serverId = 3; // 服务器ID
  2450. string batchId = 4; // 批次ID,用于批量操作和回滚
  2451. string prevBindId = 5; // 上一次绑定记录的ID,为空时表示之前未绑定
  2452. int64 bindTime = 6; // 绑定时间
  2453. int64 unbindTime = 7; // 解绑时间
  2454. int64 isCurrent = 8; // 是否为当前绑定记录
  2455. string remark = 9; // 备注
  2456. int64 createTime = 10; // 创建时间
  2457. int64 createAt = 11; // 创建者ID
  2458. int64 updateTime = 12; // 更新时间
  2459. int64 updateAt = 13; // 更新者ID
  2460. }
  2461. message VpnipBindAddReq { VpnipBindVo vo = 1; }
  2462. message VpnipBindAddResp { VpnipBindVo vo = 1; }
  2463. message VpnipBindUpdateReq { VpnipBindVo vo = 1; }
  2464. message VpnipBindUpdateResp { VpnipBindVo vo = 1; }
  2465. message VpnipBindGetReq { VpnipBindVo vo = 1; }
  2466. message VpnipBindGetResp { VpnipBindVo vo = 1; }
  2467. message VpnipBindListReq {
  2468. Page page = 1;
  2469. VpnipBindVo vo = 2;
  2470. repeated int64 excludeIds = 3;
  2471. repeated int64 ipIds = 4;
  2472. repeated int64 serverIds = 5;
  2473. repeated string ips = 6;
  2474. repeated int64 instanceIds = 7;
  2475. }
  2476. message VpnipBindListResp {
  2477. int64 total = 1;
  2478. repeated VpnipBindVo list = 2;
  2479. }
  2480. message VpnipBindBatchAddReq { repeated VpnipBindVo list = 1; }
  2481. message VpnipBindBatchAddResp { repeated VpnipBindVo list = 1; }
  2482. message VpnipBindBatchUpdateReq { repeated VpnipBindVo list = 1; }
  2483. message VpnipBindBatchUpdateResp { repeated VpnipBindVo list = 1; }
  2484. // VpnConfigTemplatePlanVo
  2485. message VpnConfigTemplatePlanVo {
  2486. int64 id = 1; // id
  2487. string productCode = 2; // 产品Code
  2488. string name = 3; // 配置名称
  2489. string config = 4; // 保留字段,用于扩展配置
  2490. int64 sort = 5; // 排序
  2491. Status status = 6; // 状态
  2492. string remark = 7; // 备注
  2493. int64 createTime = 8; // 创建时间
  2494. int64 createAt = 9; // 创建者Id
  2495. int64 updateTime = 10; // 更新时间
  2496. int64 updateAt = 11; // 更新者Id
  2497. string version = 12; // 数据版本
  2498. }
  2499. // VpnConfigTemplatePlanDetailVo
  2500. message VpnConfigTemplatePlanDetailVo {
  2501. int64 id = 1; // id
  2502. int64 planId = 2; // 配置模板主表id
  2503. string core = 3; // 内核
  2504. string name = 4; // 名称
  2505. string envs = 5; // 环境变量
  2506. string serverConfig = 6; // 服务端配置
  2507. string clientConfig = 7; // 客户端配置
  2508. string policyConfig = 8; // 策略配置
  2509. int64 sort = 9; // 排序
  2510. Status status = 10; // 状态
  2511. string remark = 11; // 备注
  2512. int64 createTime = 12; // 创建时间
  2513. int64 createAt = 13; // 创建者Id
  2514. int64 updateTime = 14; // 更新时间
  2515. int64 updateAt = 15; // 更新者Id
  2516. string version = 16; // 数据版本
  2517. }
  2518. message VpnConfigTemplatePlanAddReq {
  2519. VpnConfigTemplatePlanVo plan = 1;
  2520. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2521. }
  2522. message VpnConfigTemplatePlanAddResp {
  2523. VpnConfigTemplatePlanVo plan = 1;
  2524. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2525. }
  2526. message VpnConfigTemplatePlanUpdateReq { VpnConfigTemplatePlanVo vo = 1; }
  2527. message VpnConfigTemplatePlanUpdateResp {
  2528. VpnConfigTemplatePlanVo plan = 1;
  2529. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2530. }
  2531. message VpnConfigTemplatePlanDelReq { repeated int64 ids = 1; }
  2532. message VpnConfigTemplatePlanGetReq { VpnConfigTemplatePlanVo vo = 1; }
  2533. message VpnConfigTemplatePlanGetResp {
  2534. VpnConfigTemplatePlanVo plan = 1;
  2535. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2536. }
  2537. message VpnConfigTemplatePlanListReq {
  2538. Page page = 1;
  2539. VpnConfigTemplatePlanVo vo = 2;
  2540. repeated int64 excludeIds = 3;
  2541. repeated string productCodes = 4;
  2542. }
  2543. message VpnConfigTemplatePlanListResp {
  2544. int64 total = 1;
  2545. repeated VpnConfigTemplatePlanGetResp list = 2;
  2546. }
  2547. message VpnConfigTemplatePlanDetailAddReq {
  2548. VpnConfigTemplatePlanDetailVo vo = 1;
  2549. }
  2550. message VpnConfigTemplatePlanDetailAddResp {
  2551. VpnConfigTemplatePlanDetailVo vo = 1;
  2552. }
  2553. message VpnConfigTemplatePlanDetailUpdateReq {
  2554. VpnConfigTemplatePlanDetailVo vo = 1;
  2555. }
  2556. message VpnConfigTemplatePlanDetailUpdateResp {
  2557. VpnConfigTemplatePlanDetailVo vo = 1;
  2558. }
  2559. message VpnConfigTemplatePlanDetailDelReq { repeated int64 ids = 1; }
  2560. message VpnConfigTemplatePlanDetailGetReq {
  2561. VpnConfigTemplatePlanDetailVo vo = 1;
  2562. }
  2563. message VpnConfigTemplatePlanDetailGetResp {
  2564. VpnConfigTemplatePlanDetailVo vo = 1;
  2565. }
  2566. message VpnConfigTemplatePlanDetailListReq {
  2567. Page page = 1;
  2568. VpnConfigTemplatePlanDetailVo vo = 2;
  2569. repeated int64 planIds = 3;
  2570. repeated int64 excludeIds = 4;
  2571. repeated string productCodes = 5;
  2572. }
  2573. message VpnConfigTemplatePlanDetailListResp {
  2574. int64 total = 1;
  2575. repeated VpnConfigTemplatePlanDetailVo list = 2;
  2576. }
  2577. // govpn 模块,VPN相关服务
  2578. service GoVpnClient {
  2579. rpc Ping(Request) returns (Response);
  2580. // 表的事务操作
  2581. rpc Transaction(TransactionReq) returns (Empty);
  2582. // VpnTag Model
  2583. // VpnTagAdd
  2584. rpc VpnTagAdd(VpnTagVo) returns (VpnTagVo);
  2585. rpc VpnTagUpdate(VpnTagVo) returns (VpnTagVo);
  2586. rpc VpnTagDel(Ids) returns (Empty);
  2587. rpc VpnTagGet(VpnTagGetReq) returns (VpnTagVo);
  2588. rpc VpnTagList(VpnTagListReq) returns (VpnTagListResp);
  2589. rpc VpnTagBatchAdd(VpnTagBatchAddReq) returns (VpnTagBatchAddResp);
  2590. rpc VpnTagBatchUpdate(VpnTagBatchUpdateReq) returns (VpnTagBatchUpdateResp);
  2591. // VpnGroup Model
  2592. // VpnGroupAdd
  2593. rpc VpnGroupAdd(VpnGroupAddReq) returns (VpnGroupVo);
  2594. rpc VpnGroupUpdate(VpnGroupAddReq) returns (Empty);
  2595. rpc VpnGroupDel(Ids) returns (Empty);
  2596. rpc VpnGroupGet(VpnGroupGetReq) returns (VpnGroupVo);
  2597. rpc VpnGroupList(VpnGroupListReq) returns (VpnGroupListResp);
  2598. rpc VpnGroupBatchAdd(VpnGroupBatchAddReq) returns (VpnGroupBatchAddResp);
  2599. rpc VpnGroupBatchUpdate(VpnGroupBatchUpdateReq) returns (VpnGroupBatchUpdateResp);
  2600. // VpnGroupTag Model
  2601. // VpnGroupTagAdd
  2602. rpc VpnGroupTagAdd(VpnGroupTagVo) returns (VpnGroupTagVo);
  2603. rpc VpnGroupTagUpdate(VpnGroupTagVo) returns (VpnGroupTagVo);
  2604. rpc VpnGroupTagDel(Ids) returns (Empty);
  2605. rpc VpnGroupTagGet(VpnGroupTagVo) returns (VpnGroupTagVo);
  2606. rpc VpnGroupTagList(VpnGroupTagListReq) returns (VpnGroupTagListResp);
  2607. // VpnLocation Model
  2608. // VpnLocationAdd
  2609. rpc VpnLocationAdd(VpnLocationVo) returns (VpnLocationVo);
  2610. rpc VpnLocationUpdate(VpnLocationVo) returns (Empty);
  2611. rpc VpnLocationDel(Ids) returns (Empty);
  2612. rpc VpnLocationGet(VpnLocationGetReq) returns (VpnLocationVo);
  2613. rpc VpnLocationList(VpnLocationListReq) returns (VpnLocationListResp);
  2614. rpc VpnLocationBatchAdd(VpnLocationBatchAddReq) returns (VpnLocationBatchAddResp);
  2615. rpc VpnLocationBatchUpdate(VpnLocationBatchUpdateReq) returns (VpnLocationBatchUpdateResp);
  2616. // VpnServer Model
  2617. // VpnServerAdd
  2618. rpc VpnServerAdd(VpnServerAddReq) returns (VpnServerAddReq);
  2619. rpc VpnServerUpdate(VpnServerAddReq) returns (VpnServerAddReq);
  2620. rpc VpnServerDel(Ids) returns (Empty);
  2621. rpc VpnServerGet(VpnServerVo) returns (VpnServerVo);
  2622. rpc VpnServerExGet(VpnServerVo) returns (VpnServerExVo);
  2623. rpc VpnServerList(VpnServerListReq) returns (VpnServerListResp);
  2624. rpc VpnServerExList(VpnServerListReq) returns (VpnServerExListResp);
  2625. rpc VpnServerBatchAdd(VpnServerBatchAddReq) returns (VpnServerBatchAddResp);
  2626. rpc VpnServerBatchUpdate(VpnServerBatchUpdateReq) returns (VpnServerBatchUpdateResp);
  2627. // VpnServerLocation Model
  2628. // VpnServerLocationAdd
  2629. rpc VpnServerLocationAdd(VpnServerLocationVo) returns (VpnServerLocationVo);
  2630. rpc VpnServerLocationUpdate(VpnServerLocationVo) returns (Empty);
  2631. rpc VpnServerLocationDel(Ids) returns (Empty);
  2632. rpc VpnServerLocationGet(VpnServerLocationVo) returns (VpnServerLocationVo);
  2633. rpc VpnServerLocationList(VpnServerLocationListReq) returns (VpnServerLocationListResp);
  2634. rpc VpnWithIPAndPort(VpnWithIPAndPortReq) returns (VpnWithIPAndPortResp);
  2635. // VpnLocationServerCount
  2636. rpc VpnLocationServerCount(VpnLocationServerCountReq) returns (VpnLocationServerCountResp);
  2637. // VpnProbeTask Model
  2638. // VpnProbeTaskAdd
  2639. rpc VpnProbeTaskAdd(VpnProbeTaskVo) returns (VpnProbeTaskVo);
  2640. rpc VpnProbeTaskUpdate(VpnProbeTaskVo) returns (Empty);
  2641. rpc VpnProbeTaskList(VpnProbeTaskListReq) returns (VpnProbeTaskListResp);
  2642. // VpnipWalled Model
  2643. // VpnipWalledAdd
  2644. rpc VpnipWalledAdd(VpnipWalledAddReq) returns (VpnipWalledAddResp);
  2645. rpc VpnipWalledUpdate(VpnipWalledUpdateReq) returns (VpnipWalledUpdateResp);
  2646. rpc VpnipWalledDel(Ids) returns (Empty);
  2647. rpc VpnipWalledGet(VpnipWalledGetReq) returns (VpnipWalledGetResp);
  2648. rpc VpnipWalledList(VpnipWalledListReq) returns (VpnipWalledListResp);
  2649. rpc VpnipWalledBatchAdd(VpnipWalledBatchAddReq) returns (VpnipWalledBatchAddResp);
  2650. rpc VpnipWalledBatchUpdate(VpnipWalledBatchUpdateReq) returns (VpnipWalledBatchUpdateResp);
  2651. // Vpnip Model
  2652. // VpnipAdd
  2653. rpc VpnipAdd(VpnipAddReq) returns (VpnipAddResp);
  2654. rpc VpnipExAdd(VpnipExAddReq) returns (VpnipExAddResp);
  2655. rpc VpnipUpdate(VpnipUpdateReq) returns (VpnipUpdateResp);
  2656. rpc VpnipExUpdate(VpnipExUpdateReq) returns (VpnipExUpdateResp);
  2657. rpc VpnipDel(Ids) returns (Empty);
  2658. rpc VpnipGet(VpnipGetReq) returns (VpnipGetResp);
  2659. rpc VpnipExGet(VpnipGetReq) returns (VpnipExGetResp);
  2660. rpc VpnipList(VpnipListReq) returns (VpnipListResp);
  2661. rpc VpnipExList(VpnipListReq) returns (VpnipExListResp);
  2662. rpc VpnipBatchAdd(VpnipBatchAddReq) returns (VpnipBatchAddResp);
  2663. rpc VpnipBatchUpdate(VpnipBatchUpdateReq) returns (VpnipBatchUpdateResp);
  2664. rpc VpnipExBatchAdd(VpnipExBatchAddReq) returns (VpnipExBatchAddResp);
  2665. rpc VpnipExBatchUpdate(VpnipExBatchUpdateReq) returns (VpnipExBatchUpdateResp);
  2666. // VpnipRange Model
  2667. // VpnipRangeAdd
  2668. rpc VpnipRangeAdd(VpnipRangeAddReq) returns (VpnipRangeAddResp);
  2669. // VpnipRangeExAdd 添加IP段及IP数据,如果IP数据已存在,会自动将已经存在的IP的 rangeId 更新为新增的IP段的ID
  2670. rpc VpnipRangeExAdd(VpnipRangeExAddReq) returns (VpnipRangeExAddResp);
  2671. rpc VpnipRangeUpdate(VpnipRangeUpdateReq) returns (VpnipRangeUpdateResp);
  2672. rpc VpnipRangeExUpdate(VpnipRangeExUpdateReq) returns (VpnipRangeExUpdateResp);
  2673. rpc VpnipRangeDel(Ids) returns (Empty);
  2674. rpc VpnipRangeGet(VpnipRangeGetReq) returns (VpnipRangeGetResp);
  2675. rpc VpnipRangeExGet(VpnipRangeGetReq) returns (VpnipRangeExGetResp);
  2676. rpc VpnipRangeList(VpnipRangeListReq) returns (VpnipRangeListResp);
  2677. rpc VpnipRangeExList(VpnipRangeListReq) returns (VpnipRangeExListResp);
  2678. rpc VpnipRangeBatchAdd(VpnipRangeBatchAddReq) returns (VpnipRangeBatchAddResp);
  2679. rpc VpnipRangeExBatchAdd(VpnipRangeExBatchAddReq) returns (VpnipRangeExBatchAddResp);
  2680. rpc VpnipRangeBatchUpdate(VpnipRangeBatchUpdateReq) returns (VpnipRangeBatchUpdateResp);
  2681. rpc VpnipRangeExBatchUpdate(VpnipRangeExBatchUpdateReq) returns (VpnipRangeExBatchUpdateResp);
  2682. // VpnipBind Model
  2683. // VpnipBindAdd
  2684. rpc VpnipBindAdd(VpnipBindAddReq) returns (VpnipBindAddResp);
  2685. rpc VpnipBindUpdate(VpnipBindUpdateReq) returns (VpnipBindUpdateResp);
  2686. rpc VpnipBindDel(Ids) returns (Empty);
  2687. rpc VpnipBindGet(VpnipBindGetReq) returns (VpnipBindGetResp);
  2688. rpc VpnipBindList(VpnipBindListReq) returns (VpnipBindListResp);
  2689. rpc VpnipBindBatchUpdate(VpnipBindBatchUpdateReq) returns (VpnipBindBatchUpdateResp);
  2690. // VpnipsBindServer 为一台服务器绑定一批新IP,会解绑上次绑定的IP,再绑定新的IP,仅需提供 ipId, serverId, Remark, createAt, updateAt 即可,其他字段会自动填充
  2691. rpc VpnipsBindServer(VpnipBindBatchAddReq) returns (VpnipBindBatchAddResp);
  2692. // VpnConfigTemplatePlan Model
  2693. // VpnConfigTemplatePlanAdd
  2694. rpc VpnConfigTemplatePlanAdd(VpnConfigTemplatePlanAddReq) returns (VpnConfigTemplatePlanAddResp);
  2695. rpc VpnConfigTemplatePlanUpdate(VpnConfigTemplatePlanUpdateReq) returns (VpnConfigTemplatePlanUpdateResp);
  2696. rpc VpnConfigTemplatePlanDel(VpnConfigTemplatePlanDelReq) returns (Empty);
  2697. rpc VpnConfigTemplatePlanGet(VpnConfigTemplatePlanGetReq) returns (VpnConfigTemplatePlanGetResp);
  2698. rpc VpnConfigTemplatePlanList(VpnConfigTemplatePlanListReq) returns (VpnConfigTemplatePlanListResp);
  2699. rpc VpnConfigTemplatePlanDetailAdd(VpnConfigTemplatePlanDetailAddReq) returns (VpnConfigTemplatePlanDetailAddResp);
  2700. rpc VpnConfigTemplatePlanDetailUpdate(VpnConfigTemplatePlanDetailUpdateReq) returns (VpnConfigTemplatePlanDetailUpdateResp);
  2701. rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq) returns (Empty);
  2702. rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq) returns (VpnConfigTemplatePlanDetailGetResp);
  2703. rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq) returns (VpnConfigTemplatePlanDetailListResp);
  2704. }