gorpc.proto 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980
  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 =
  828. 5; // 上下文数据,可用于存储此次批量作业的任务过程中产生的通用的中间数据
  829. string beginHandler = 6; // 预处理函数/URL
  830. string afterHandler = 7; // 后处理函数/URL
  831. int64 concurrency = 8; // 并发控制数
  832. string retryPolicy = 9; // 子任务重试策略
  833. int64 startedTime = 10; // 批量作业开始时间
  834. int64 finishedTime = 11; // 批量作业完成时间
  835. string result = 12; // 批量作业返回结果
  836. string status = 13; // 批量作业完成状态
  837. string remark = 14; // 备注
  838. int64 createAt = 15; // 创建者ID
  839. int64 updateAt = 16; // 更新者ID
  840. int64 createTime = 17; // 创建时间
  841. int64 updateTime = 18; // 更新时间
  842. }
  843. message JobBatchWithTasksVo {
  844. JobBatchVo jobBatch = 1;
  845. repeated JobTasksVo jobTasks = 2;
  846. }
  847. message TimeRange {
  848. int64 start = 1;
  849. int64 end = 2;
  850. }
  851. message JobBatchListReq {
  852. Page page = 1;
  853. JobBatchVo vo = 2;
  854. TimeRange startedTimeRange = 3;
  855. TimeRange finishedTimeRange = 4;
  856. repeated string statuses = 5;
  857. repeated int64 excludeIds = 6;
  858. }
  859. message JobBatchListResp {
  860. int64 total = 1;
  861. repeated JobBatchVo list = 2;
  862. }
  863. message JobBatchListWithTasksResp {
  864. int64 total = 1;
  865. repeated JobBatchWithTasksVo list = 2;
  866. }
  867. // end JobBatch
  868. // JobTasks
  869. message JobTasksVo {
  870. int64 id = 1; // 任务id
  871. int64 batchId = 2; // 批量作业Id
  872. string name = 3; // 任务名称
  873. string initParams = 4; // 任务初始化配置及数据
  874. string runtimeData =
  875. 5; // 任务运行时数据,用于临时存储任务过程中各个关键节点的中间数据
  876. string externalRefs = 6; // 外部系统引用,用于记录与外部系统交互产生的关联标识
  877. int64 startedTime = 7; // 任务开始时间
  878. int64 finishedTime = 8; // 任务结束时间
  879. int64 retryCount = 9; // 当前已重试次数
  880. string result = 10; // 任务执行结果
  881. string status = 11; // 任务状态
  882. string remark = 12; // 备注
  883. int64 createAt = 13; // 创建者ID
  884. int64 updateAt = 14; // 更新者ID
  885. int64 createTime = 15; // 创建时间
  886. int64 updateTime = 16; // 更新时间
  887. }
  888. message JobTasksListReq {
  889. Page page = 1;
  890. JobTasksVo vo = 2;
  891. TimeRange startedTimeRange = 3;
  892. TimeRange finishedTimeRange = 4;
  893. repeated string statuses = 5;
  894. repeated int64 excludeIds = 6;
  895. }
  896. message JobTasksListResp {
  897. int64 total = 1;
  898. repeated JobTasksVo list = 2;
  899. }
  900. // end JobTasks
  901. // DeployConfig
  902. message DeployConfigVo {
  903. int64 id = 1; // ID
  904. string name = 2; // 名称
  905. string type = 3; // 类型
  906. string data = 4; // 数据
  907. Status status = 5; // 状态
  908. string remark = 6; // 备注
  909. int64 createTime = 7; // 创建时间
  910. int64 updateTime = 8; // 更新时间
  911. }
  912. message DeployConfigListReq {
  913. Page page = 1;
  914. DeployConfigVo vo = 2;
  915. repeated int64 excludeIds = 3;
  916. }
  917. message DeployConfigListResp {
  918. int64 total = 1;
  919. repeated DeployConfigVo list = 2;
  920. }
  921. // end DeployConfig
  922. // OperationLog
  923. message OperationLogVo {
  924. int64 id = 1;
  925. int64 sysUserId = 2;
  926. string productCode = 3;
  927. string model = 4;
  928. string action = 5;
  929. string details = 6;
  930. string result = 7;
  931. int64 updateTime = 8;
  932. int64 createTime = 9;
  933. }
  934. message OperationLogListReq {
  935. Page page = 1;
  936. OperationLogVo vo = 2;
  937. repeated string productCodes = 3;
  938. repeated int64 excludeIds = 4;
  939. }
  940. message OperationLogListResp {
  941. int64 total = 1;
  942. repeated OperationLogVo list = 2;
  943. }
  944. // end OperationLog
  945. // AnnouncePlan
  946. message AnnouncePlanVo {
  947. int64 id = 1;
  948. string productCode = 2; // 产品code
  949. string areas = 3; // 地区列表
  950. int64 sort = 4;
  951. Status status = 5; // 状态
  952. string remark = 6;
  953. int64 createTime = 7;
  954. int64 updateTime = 8;
  955. }
  956. message AnnouncePlanListReq {
  957. Page page = 1;
  958. AnnouncePlanVo vo = 2;
  959. repeated string productCodes = 3;
  960. repeated int64 excludeIds = 4;
  961. }
  962. message AnnouncePlanListResp {
  963. int64 total = 1;
  964. repeated AnnouncePlanVo list = 2;
  965. }
  966. // end AnnouncePlan
  967. // AnnouncePlanDetail
  968. message AnnouncePlanDetailVo {
  969. int64 id = 1;
  970. int64 planId = 2; // 方案ID
  971. string platforms = 3; // 平台
  972. string channels = 4; // 渠道
  973. string icon = 5; // 图标
  974. string title = 6; // 标题
  975. string content = 7; // 内容
  976. string url = 8; // 商店地址
  977. string buttonText = 9; // 按钮文本
  978. int64 closeable = 10; // 是否可关闭
  979. int64 sort = 11; // 排序
  980. string policyConfig = 12; // 更新策略配置
  981. Status status = 13; // 状态
  982. string remark = 14;
  983. int64 createTime = 15;
  984. int64 updateTime = 16;
  985. }
  986. message AnnouncePlanDetailListReq {
  987. Page page = 1;
  988. AnnouncePlanDetailVo vo = 2;
  989. repeated int64 planIds = 3;
  990. }
  991. message AnnouncePlanDetailListResp {
  992. int64 total = 1;
  993. repeated AnnouncePlanDetailVo list = 2;
  994. }
  995. // end AnnouncePlanDetail
  996. // ServiceTypes
  997. message ServiceTypesVo {
  998. int64 id = 1;
  999. string productCode = 2;
  1000. string name = 3;
  1001. int64 userLevel = 4;
  1002. int64 deviceLimit = 5; // 可选字段,Go中是 *int64
  1003. int64 sort = 6;
  1004. string config = 7;
  1005. Status status = 8;
  1006. string remark = 9;
  1007. int64 createTime = 10;
  1008. int64 updateTime = 11;
  1009. }
  1010. message ServiceTypesGetReq { int64 id = 1; }
  1011. message ServiceTypesListReq {
  1012. Page page = 1;
  1013. ServiceTypesVo vo = 2;
  1014. repeated string productCodes = 3;
  1015. repeated int64 excludeIds = 4;
  1016. }
  1017. message ServiceTypesListResp {
  1018. int64 total = 1;
  1019. repeated ServiceTypesVo list = 2;
  1020. }
  1021. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  1022. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  1023. message ServiceTypesDelReq { int64 id = 1; }
  1024. // end ServiceTypes
  1025. // ServiceSets
  1026. message ServiceSetsVo {
  1027. int64 id = 1;
  1028. string productCode = 2;
  1029. int64 serviceTypeId = 3;
  1030. string name = 4;
  1031. int64 licenseDays = 5;
  1032. string channel = 6;
  1033. string channelItemId = 7;
  1034. int64 refPortalServiceSetId = 8; // Go中是 sql.int64,转换为 int64
  1035. string appleChannelItemId = 9;
  1036. string googleChannelItemId = 10;
  1037. string title = 11;
  1038. string subTitle = 12;
  1039. string introduce = 13;
  1040. float orgPrice = 14;
  1041. float price = 15;
  1042. BoolInt display = 16;
  1043. BoolInt isDefault = 17;
  1044. BoolInt recommend = 18;
  1045. BoolInt hidden = 19;
  1046. int64 sort = 20;
  1047. Status status = 21;
  1048. string remark = 22;
  1049. int64 createTime = 23;
  1050. int64 updateTime = 24;
  1051. }
  1052. message ServiceSetsGetReq { int64 id = 1; }
  1053. message ServiceSetsListReq {
  1054. Page page = 1;
  1055. ServiceSetsVo vo = 2;
  1056. repeated string productCodes = 3;
  1057. repeated int64 serviceTypeIds = 4;
  1058. repeated int64 excludeIds = 5;
  1059. }
  1060. message ServiceSetsListResp {
  1061. int64 total = 1;
  1062. repeated ServiceSetsVo list = 2;
  1063. }
  1064. message ServiceSetsAddReq { ServiceSetsVo vo = 1; }
  1065. message ServiceSetsUpdateReq { ServiceSetsVo vo = 1; }
  1066. message ServiceSetsDelReq { int64 id = 1; }
  1067. // end ServiceSets
  1068. message MessagePushVo {
  1069. int64 id = 1;
  1070. string status = 2;
  1071. int64 operator = 3;
  1072. string module = 4;
  1073. string title = 5;
  1074. string message = 6;
  1075. string imgUrl = 7;
  1076. string data = 8;
  1077. string productCode = 9;
  1078. int64 areaParam = 10;
  1079. repeated string topics = 11;
  1080. repeated string firebaseTokens = 12;
  1081. int64 publishTime = 13;
  1082. int64 createTime = 14;
  1083. int64 updateTime = 15;
  1084. string pushType = 16;
  1085. int64 publishCount = 17;
  1086. string exData = 18;
  1087. }
  1088. message MessagePushListReq {
  1089. Page page = 1;
  1090. MessagePushVo vo = 2;
  1091. }
  1092. message MessagePushListResp {
  1093. int64 total = 1;
  1094. repeated MessagePushVo list = 2;
  1095. }
  1096. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  1097. service GoPmpClient {
  1098. rpc Ping(Request) returns (Response);
  1099. // GlobalParamVo
  1100. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  1101. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  1102. rpc GlobalParamDel(Ids) returns (Empty);
  1103. rpc GlobalParamGet(GlobalParamVo)
  1104. returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  1105. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  1106. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  1107. // ProductVo
  1108. rpc ProductAdd(ProductVo) returns (ProductVo);
  1109. rpc ProductUpdate(ProductVo) returns (ProductVo);
  1110. rpc ProductDel(Ids) returns (Empty);
  1111. rpc ProductGet(ProductVo) returns (ProductVo);
  1112. rpc ProductList(ProductListReq) returns (ProductListResp);
  1113. rpc ProductAll(Request) returns (ProductListResp);
  1114. // ProductParamVo
  1115. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  1116. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  1117. rpc ProductParamDel(Ids) returns (Empty);
  1118. rpc ProductParamGet(ProductParamVo)
  1119. returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  1120. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  1121. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  1122. // ProductAction 产品行为配置
  1123. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  1124. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  1125. rpc ProductActionDel(Ids) returns (Empty);
  1126. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  1127. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  1128. // ProductActionGroup 产品行为分组
  1129. rpc ProductActionGroupAdd(ProductActionGroupVo)
  1130. returns (ProductActionGroupVo);
  1131. rpc ProductActionGroupUpdate(ProductActionGroupVo)
  1132. returns (ProductActionGroupVo);
  1133. rpc ProductActionGroupDel(Ids) returns (Empty);
  1134. rpc ProductActionGroupGet(ProductActionGroupReq)
  1135. returns (ProductActionGroupVo);
  1136. rpc ProductActionGroupList(ProductActionGroupListReq)
  1137. returns (ProductActionGroupListResp);
  1138. rpc ProductActionGroupDisable(ProductActionGroupDisableReq) returns (Empty);
  1139. rpc ProductActionGroupEnable(ProductActionGroupEnableReq) returns (Empty);
  1140. // ProductActionPolicyGroup 产品行为策略分组
  1141. rpc ProductActionPolicyGroupAdd(ProductActionPolicyGroupVo)
  1142. returns (ProductActionPolicyGroupVo);
  1143. rpc ProductActionPolicyGroupUpdate(ProductActionPolicyGroupVo)
  1144. returns (ProductActionPolicyGroupVo);
  1145. rpc ProductActionPolicyGroupDel(Ids) returns (Empty);
  1146. rpc ProductActionPolicyGroupGet(ProductActionPolicyGroupReq)
  1147. returns (ProductActionPolicyGroupVo);
  1148. rpc ProductActionPolicyGroupList(ProductActionPolicyGroupListReq)
  1149. returns (ProductActionPolicyGroupListResp);
  1150. rpc ProductActionPolicyGroupDisable(ProductActionPolicyGroupDisableReq)
  1151. returns (Empty);
  1152. rpc ProductActionPolicyGroupEnable(ProductActionPolicyGroupEnableReq)
  1153. returns (Empty);
  1154. // ProductActionType 产品行为类型
  1155. rpc ProductActionTypeAdd(ProductActionTypeVo) returns (ProductActionTypeVo);
  1156. rpc ProductActionTypeUpdate(ProductActionTypeVo)
  1157. returns (ProductActionTypeVo);
  1158. rpc ProductActionTypeDel(Ids) returns (Empty);
  1159. rpc ProductActionTypeGet(ProductActionTypeReq) returns (ProductActionTypeVo);
  1160. rpc ProductActionTypeList(ProductActionTypeListReq)
  1161. returns (ProductActionTypeListResp);
  1162. // AreaParamVo
  1163. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  1164. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  1165. rpc AreaParamDel(Ids) returns (Empty);
  1166. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  1167. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  1168. // NationalLanguage
  1169. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  1170. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  1171. rpc NationalLanguageDel(Ids) returns (Empty);
  1172. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  1173. rpc NationalLanguageList(NationalLanguageListReq)
  1174. returns (NationalLanguageListResp);
  1175. // Tip
  1176. rpc TipAdd(TipVo) returns (TipVo);
  1177. rpc TipUpdate(TipVo) returns (TipVo);
  1178. rpc TipDel(Ids) returns (Empty);
  1179. rpc TipGet(TipGetReq) returns (TipVo);
  1180. rpc TipList(TipListReq) returns (TipListResp);
  1181. // Dict
  1182. rpc DictAdd(DictVo) returns (DictVo);
  1183. rpc DictUpdate(DictVo) returns (DictVo);
  1184. rpc DictDel(Ids) returns (Empty);
  1185. rpc DictGet(DictGetReq) returns (DictVo);
  1186. rpc DictList(DictListReq) returns (DictListResp);
  1187. // // UpgradeRes 热更新代码资源管理
  1188. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  1189. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  1190. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  1191. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  1192. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  1193. // // UpgradePkg app 包更新管理
  1194. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  1195. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  1196. // rpc UpgradePkgDel(Ids) returns (Empty);
  1197. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  1198. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  1199. // // UpgradeResConfig
  1200. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新 rpc
  1201. // UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo); rpc
  1202. // UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty); rpc
  1203. // UpgradeResConfigDel(Ids) returns (Empty); rpc
  1204. // UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  1205. // rpc UpgradeResConfigList(UpgradeResConfigListReq)
  1206. // returns (UpgradeResConfigListResp);
  1207. // UpgradePkgPlan
  1208. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1209. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1210. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  1211. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1212. rpc UpgradePkgPlanList(UpgradePkgPlanListReq)
  1213. returns (UpgradePkgPlanListResp);
  1214. // UpgradePkgPlanDetail
  1215. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo)
  1216. returns (UpgradePkgPlanDetailVo);
  1217. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo)
  1218. returns (UpgradePkgPlanDetailVo);
  1219. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  1220. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo)
  1221. returns (UpgradePkgPlanDetailVo);
  1222. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq)
  1223. returns (UpgradePkgPlanDetailListResp);
  1224. // UpgradeResPlan
  1225. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1226. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1227. rpc UpgradeResPlanDel(Ids) returns (Empty);
  1228. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1229. rpc UpgradeResPlanList(UpgradeResPlanListReq)
  1230. returns (UpgradeResPlanListResp);
  1231. // UpgradeResPlanDetail
  1232. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo)
  1233. returns (UpgradeResPlanDetailVo);
  1234. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo)
  1235. returns (UpgradeResPlanDetailVo);
  1236. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  1237. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo)
  1238. returns (UpgradeResPlanDetailVo);
  1239. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq)
  1240. returns (UpgradeResPlanDetailListResp);
  1241. // AdPlan
  1242. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  1243. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  1244. rpc AdPlanDel(Ids) returns (Empty);
  1245. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  1246. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  1247. // AdPlanDetail
  1248. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  1249. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  1250. rpc AdPlanDetailDel(Ids) returns (Empty);
  1251. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  1252. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  1253. // AdGlobalConfig
  1254. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  1255. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  1256. // JobBatch
  1257. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  1258. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  1259. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  1260. rpc JobBatchDel(Ids) returns (Empty);
  1261. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  1262. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  1263. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  1264. rpc JobBatchListWithTasks(JobBatchListReq)
  1265. returns (JobBatchListWithTasksResp);
  1266. // JobTasks
  1267. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  1268. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  1269. rpc JobTasksDel(Ids) returns (Empty);
  1270. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  1271. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  1272. // DeployConfig
  1273. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  1274. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  1275. rpc DeployConfigDel(Ids) returns (Empty);
  1276. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  1277. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  1278. // OperationLog
  1279. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  1280. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  1281. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  1282. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  1283. // AnnouncePlan
  1284. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  1285. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  1286. rpc AnnouncePlanDel(Ids) returns (Empty);
  1287. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  1288. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  1289. // AnnouncePlanDetail
  1290. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo)
  1291. returns (AnnouncePlanDetailVo);
  1292. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo)
  1293. returns (AnnouncePlanDetailVo);
  1294. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  1295. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo)
  1296. returns (AnnouncePlanDetailVo);
  1297. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq)
  1298. returns (AnnouncePlanDetailListResp);
  1299. // ServiceTypes
  1300. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesVo);
  1301. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesVo);
  1302. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  1303. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesVo);
  1304. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  1305. // ServiceSets
  1306. rpc ServiceSetsAdd(ServiceSetsAddReq) returns (ServiceSetsVo);
  1307. rpc ServiceSetsUpdate(ServiceSetsUpdateReq) returns (ServiceSetsVo);
  1308. rpc ServiceSetsDel(ServiceSetsDelReq) returns (Empty);
  1309. rpc ServiceSetsGet(ServiceSetsGetReq) returns (ServiceSetsVo);
  1310. rpc ServiceSetsList(ServiceSetsListReq) returns (ServiceSetsListResp);
  1311. // MessagePush
  1312. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  1313. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  1314. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  1315. }
  1316. message ShortDramaEpisodeVo {
  1317. int64 id = 1;
  1318. int64 dramaId = 2;
  1319. int64 type = 3;
  1320. string name = 4;
  1321. int64 sort = 5;
  1322. string videos = 6;
  1323. string subtitles = 7;
  1324. Status status = 8;
  1325. int64 createTime = 9;
  1326. int64 updateTime = 10;
  1327. string danmakuUrl = 11;
  1328. }
  1329. message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
  1330. message ShortDramaEpisodeListReq {
  1331. Page page = 1;
  1332. ShortDramaEpisodeVo vo = 2;
  1333. repeated int64 dramaIds = 3;
  1334. }
  1335. message ShortDramaEpisodeListResp {
  1336. int64 total = 1;
  1337. repeated ShortDramaEpisodeVo list = 2;
  1338. }
  1339. message ShortDramaEpisodeBatchAddReq {
  1340. int64 dramaId = 1;
  1341. repeated ShortDramaEpisodeVo episodes = 2;
  1342. }
  1343. message ShortDramaEpisodeBatchRefreshUpdateTimeReq { int64 dramaId = 1; }
  1344. message ShortDramaLanguageVo {
  1345. int64 id = 1;
  1346. int64 dramaId = 2;
  1347. string lang = 3;
  1348. string title = 4;
  1349. string description = 5;
  1350. string covers = 6;
  1351. string coverDominantColor = 7;
  1352. int64 createTime = 8;
  1353. int64 updateTime = 9;
  1354. }
  1355. message ShortDramaVo {
  1356. int64 id = 1;
  1357. string productCodes = 2;
  1358. string title = 3;
  1359. string description = 4;
  1360. string covers = 5;
  1361. string coverDominantColor = 6;
  1362. string type = 7;
  1363. string tags = 8;
  1364. string releaseRegions = 9;
  1365. int64 releaseDate = 10;
  1366. int64 totalEpisodes = 11;
  1367. int64 completedStatus = 12;
  1368. string copyrightSupplier = 13;
  1369. string copyrightDoc = 14;
  1370. int64 copyrightPurchaseDate = 15;
  1371. int64 copyrightExpireDate = 16;
  1372. int64 status = 17;
  1373. int64 createTime = 18;
  1374. int64 updateTime = 19;
  1375. string ghostCutId = 20;
  1376. int64 recommend = 21;
  1377. string otherConfig = 22;
  1378. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  1379. int64 mainEpisodeCount = 24;
  1380. int64 trailerEpisodeCount = 25;
  1381. int64 copyrightId = 26;
  1382. int64 creator = 27;
  1383. int64 modifier = 28;
  1384. string operationTags = 29;
  1385. string extraInfo = 30;
  1386. int64 schedulePublishTime = 31;
  1387. int64 publishTime = 32;
  1388. }
  1389. message ShortDramaGetReq {
  1390. ShortDramaVo vo = 1;
  1391. string productCode = 2;
  1392. string countryCode = 3;
  1393. string lang = 4;
  1394. }
  1395. message ShortDramaListReq {
  1396. Page page = 1;
  1397. ShortDramaVo vo = 2;
  1398. repeated int64 excludeIds = 3;
  1399. string productCode = 4;
  1400. string countryCode = 5;
  1401. string lang = 6;
  1402. string publishTimeStart = 7;
  1403. string publishTimeEnd = 8;
  1404. repeated int64 statusList = 9;
  1405. }
  1406. message ShortDramaListResp {
  1407. int64 total = 1;
  1408. repeated ShortDramaVo list = 2;
  1409. }
  1410. message ShortDramaLanguageListReq {
  1411. Page page = 1;
  1412. ShortDramaLanguageVo vo = 2;
  1413. }
  1414. message ShortDramaLanguageListResp {
  1415. int64 total = 1;
  1416. repeated ShortDramaLanguageVo list = 2;
  1417. }
  1418. message ShortDramaEpisodeCountVo {
  1419. int64 dramaId = 1;
  1420. int64 episodeCount = 2;
  1421. }
  1422. message ShortDramaEpisodeCountReq {
  1423. Page page = 1;
  1424. Status status = 2;
  1425. int64 type = 3;
  1426. repeated int64 dramaIds = 4;
  1427. }
  1428. message ShortDramaEpisodeCountResp {
  1429. int64 total = 1;
  1430. repeated ShortDramaEpisodeCountVo list = 2;
  1431. }
  1432. message ShortDramaCheckNameReq {
  1433. string title = 1; // 短剧名称
  1434. int64 id = 2; // 编辑时排除当前短剧ID
  1435. }
  1436. message ShortDramaCheckNameResp {
  1437. bool exists = 1; // 是否存在
  1438. }
  1439. message ShortDramaUpdateModifierReq {
  1440. int64 id = 1;
  1441. int64 modifier = 2;
  1442. }
  1443. message ShortDramaUpdateReleaseRegionsReq {
  1444. int64 id = 1;
  1445. string releaseRegions = 2;
  1446. }
  1447. message ShortDramaCopyrightInfoVo {
  1448. int64 id = 1;
  1449. int64 copyrightId = 2;
  1450. string releaseRegions = 3;
  1451. }
  1452. message ShortDramaFindIdsWithCopyrightResp {
  1453. repeated ShortDramaCopyrightInfoVo list = 1;
  1454. }
  1455. message SetTotalStatsReq {
  1456. int64 dramaId = 1;
  1457. string country = 2;
  1458. int64 todayPlayCount = 3;
  1459. int64 weeklyPlayCount = 4;
  1460. int64 monthlyPlayCount = 5;
  1461. }
  1462. message ShortDramaStatsPlaysTotalVo {
  1463. int64 id = 1;
  1464. int64 dramaId = 2;
  1465. string country = 3;
  1466. int64 todayPlayCount = 4;
  1467. int64 weeklyPlayCount = 5;
  1468. int64 monthlyPlayCount = 6;
  1469. int64 createTime = 7;
  1470. int64 updateTime = 8;
  1471. }
  1472. message ShortDramaStatsPlaysTotalListReq {
  1473. Page page = 1;
  1474. string country = 2; // 国家代码
  1475. }
  1476. message ShortDramaStatsPlaysTotalListResp {
  1477. int64 total = 1;
  1478. repeated ShortDramaStatsPlaysTotalVo list = 2;
  1479. }
  1480. message FindSchedulePublishListReq { int64 status = 1; }
  1481. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  1482. message PublishScheduleDramaReq {
  1483. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  1484. int64 targetStatus = 2; // 目标状态
  1485. }
  1486. service GoShortDramaClient {
  1487. // ShortDrama
  1488. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  1489. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  1490. rpc ShortDramaDel(Ids) returns (Empty);
  1491. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  1492. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  1493. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  1494. rpc ShortDramaUpdateReleaseRegions(ShortDramaUpdateReleaseRegionsReq)
  1495. returns (Empty);
  1496. rpc ShortDramaFindIdsWithCopyright(Empty)
  1497. returns (ShortDramaFindIdsWithCopyrightResp);
  1498. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  1499. returns (FindSchedulePublishListResp);
  1500. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  1501. // ShortDramaLanguage
  1502. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  1503. returns (ShortDramaLanguageListResp);
  1504. // ShortDramaEpisode
  1505. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  1506. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  1507. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  1508. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  1509. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  1510. returns (ShortDramaEpisodeVo);
  1511. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  1512. returns (ShortDramaEpisodeListResp);
  1513. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  1514. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  1515. // ShortDramaEpisodeCount
  1516. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  1517. returns (ShortDramaEpisodeCountResp);
  1518. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  1519. returns (ShortDramaCheckNameResp);
  1520. // ShortDramaStats
  1521. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  1522. // ShortDramaStatsPlaysTotal
  1523. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  1524. returns (ShortDramaStatsPlaysTotalListResp);
  1525. }
  1526. // 根据需要增加状态
  1527. message SysUserVo {
  1528. int64 id = 1; // ID
  1529. string username = 2; // 登录名
  1530. string password = 3; // 登录密码
  1531. string nickname = 4; // 昵称
  1532. string avatar = 5; // 头像
  1533. string email = 6; // 邮箱
  1534. string phone = 7; // 手机号
  1535. string remark = 8; // 备注
  1536. BoolInt isSuperAdmin = 9; // 是否为超级管理员 1是 2否
  1537. int64 permsLevel = 10; // 权限等级 值越大 权限越小
  1538. Status status = 11; // 状态 1正常 2冻结
  1539. int64 createTime = 12; // 创建时间
  1540. int64 updateTime = 13; // 修改时间
  1541. }
  1542. message SysRoleVo {
  1543. int64 id = 1; // ID
  1544. string productCode = 2; // 所属产品
  1545. string name = 3; // 角色名
  1546. string remark = 4; // 备注
  1547. Status status = 5; // 状态 1启用 2禁用
  1548. int64 createTime = 6; // 创建时间
  1549. int64 updateTime = 7; // 修改时间
  1550. int64 permsLevel = 8; // 权限等级 值越大 权限越小
  1551. }
  1552. message SysPermVo {
  1553. int64 id = 1; // ID
  1554. string name = 2; // 权限名
  1555. string code = 3; // 权限code
  1556. string remark = 4; // 备注
  1557. Status status = 5; // 状态 1启用 2禁用
  1558. int64 createTime = 6; // 创建时间
  1559. int64 updateTime = 7; // 修改时间
  1560. }
  1561. message SysUserRoleVo {
  1562. int64 id = 1; // ID
  1563. int64 userId = 2; // 用户ID
  1564. int64 roleId = 3; // 角色ID
  1565. int64 createTime = 4; // 创建时间
  1566. int64 updateTime = 5; // 修改时间
  1567. }
  1568. message SysRolePermVo {
  1569. int64 id = 1; // ID
  1570. int64 roleId = 2; // 角色ID
  1571. int64 permId = 3; // 权限ID
  1572. int64 createTime = 4; // 创建时间
  1573. int64 updateTime = 5; // 修改时间
  1574. }
  1575. message SysUserPermVo {
  1576. int64 id = 1; // ID
  1577. int64 userId = 2; // 用户ID
  1578. int64 permId = 3; // 权限ID
  1579. string effect = 4; // 权限控制策略 ALLOW允许 DENY拒绝
  1580. int64 createTime = 5; // 创建时间
  1581. int64 updateTime = 6; // 修改时间
  1582. }
  1583. message SysPermRule {
  1584. int64 permId = 1;
  1585. string effect = 2; // ALLOW允许 DENY拒绝
  1586. }
  1587. message SysUserWithRoleIdsAndPermRules {
  1588. SysUserVo user = 1; // 用户信息
  1589. repeated int64 roleIds = 2; // 角色
  1590. repeated SysPermRule permRules = 3; // 权限
  1591. }
  1592. message SysUserWithRolesAndPerms {
  1593. SysUserVo user = 1; // 用户信息
  1594. repeated SysRoleVo roles = 2; // 角色
  1595. repeated SysPermVo perms = 3; // 权限
  1596. }
  1597. message SysUserGetReq { SysUserVo vo = 1; }
  1598. message SysUserListReq {
  1599. Page page = 1;
  1600. SysUserVo vo = 2;
  1601. repeated int64 excludeIds = 3; // 排除的ID
  1602. }
  1603. message SysUserListResp {
  1604. int64 total = 1;
  1605. repeated SysUserVo list = 2;
  1606. }
  1607. message SysUserListWithRolesAndPermsResp {
  1608. int64 total = 1;
  1609. repeated SysUserWithRolesAndPerms list = 2;
  1610. }
  1611. message SysRoleWithPermIds {
  1612. SysRoleVo role = 1;
  1613. repeated int64 permIds = 2;
  1614. }
  1615. message SysRoleWithPerms {
  1616. SysRoleVo role = 1;
  1617. repeated SysPermVo perms = 2;
  1618. }
  1619. message SysRoleGetReq { SysRoleVo vo = 1; }
  1620. message SysRoleListReq {
  1621. Page page = 1;
  1622. SysRoleVo vo = 2;
  1623. repeated string productCodes = 3; // 所属产品
  1624. repeated int64 excludeIds = 4; // 排除的ID
  1625. }
  1626. message SysRoleListResp {
  1627. int64 total = 1;
  1628. repeated SysRoleVo list = 2;
  1629. }
  1630. message SysRoleListWithPermsResp {
  1631. int64 total = 1;
  1632. repeated SysRoleWithPerms list = 2;
  1633. }
  1634. message SysPermGetReq { SysPermVo vo = 1; }
  1635. message SysPermListReq {
  1636. Page page = 1;
  1637. SysPermVo vo = 2;
  1638. repeated int64 excludeIds = 3; // 排除的ID
  1639. }
  1640. message SysPermListResp {
  1641. int64 total = 1;
  1642. repeated SysPermVo list = 2;
  1643. }
  1644. message SysUserRoleGetReq { SysUserRoleVo vo = 1; }
  1645. message SysUserRoleListReq {
  1646. Page page = 1;
  1647. SysUserRoleVo vo = 2;
  1648. repeated int64 excludeIds = 3; // 排除的ID
  1649. }
  1650. message SysUserRoleListResp {
  1651. int64 total = 1;
  1652. repeated SysUserRoleVo list = 2;
  1653. }
  1654. message SysRolePermGetReq { SysRolePermVo vo = 1; }
  1655. message SysRolePermListReq {
  1656. Page page = 1;
  1657. SysRolePermVo vo = 2;
  1658. repeated int64 excludeIds = 3; // 排除的ID
  1659. }
  1660. message SysRolePermListResp {
  1661. int64 total = 1;
  1662. repeated SysRolePermVo list = 2;
  1663. }
  1664. message SysUserPermGetReq { SysUserPermVo vo = 1; }
  1665. message SysUserPermListReq {
  1666. Page page = 1;
  1667. SysUserPermVo vo = 2;
  1668. repeated int64 excludeIds = 3; // 排除的ID
  1669. }
  1670. message SysUserPermListResp {
  1671. int64 total = 1;
  1672. repeated SysUserPermVo list = 2;
  1673. }
  1674. service GoSysClient {
  1675. rpc Ping(Request) returns (Response);
  1676. // 用户管理
  1677. rpc SysUserAdd(SysUserVo) returns (SysUserVo);
  1678. rpc SysUserUpdate(SysUserVo) returns (SysUserVo);
  1679. rpc SysUserDelete(Ids) returns (Empty);
  1680. rpc SysUserGet(SysUserGetReq) returns (SysUserVo);
  1681. rpc SysUserList(SysUserListReq) returns (SysUserListResp);
  1682. rpc SysUserAddWithRolesAndPerms(SysUserWithRoleIdsAndPermRules)
  1683. returns (SysUserWithRolesAndPerms);
  1684. rpc SysUserUpdateWithRolesAndPerms(SysUserWithRoleIdsAndPermRules)
  1685. returns (SysUserWithRolesAndPerms);
  1686. rpc SysUserGetWithRolesAndPerms(SysUserGetReq)
  1687. returns (SysUserWithRolesAndPerms);
  1688. rpc SysUserListWithRolesAndPerms(SysUserListReq)
  1689. returns (SysUserListWithRolesAndPermsResp);
  1690. // 角色管理
  1691. rpc SysRoleAdd(SysRoleVo) returns (SysRoleVo);
  1692. rpc SysRoleUpdate(SysRoleVo) returns (SysRoleVo);
  1693. rpc SysRoleDelete(Ids) returns (Empty);
  1694. rpc SysRoleGet(SysRoleGetReq) returns (SysRoleVo);
  1695. rpc SysRoleList(SysRoleListReq) returns (SysRoleListResp);
  1696. rpc SysRoleAddWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  1697. rpc SysRoleUpdateWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  1698. rpc SysRoleGetWithPerms(SysRoleGetReq) returns (SysRoleWithPerms);
  1699. rpc SysRoleListWithPerms(SysRoleListReq) returns (SysRoleListWithPermsResp);
  1700. // 权限管理
  1701. rpc SysPermAdd(SysPermVo) returns (SysPermVo);
  1702. rpc SysPermUpdate(SysPermVo) returns (SysPermVo);
  1703. rpc SysPermDelete(Ids) returns (Empty);
  1704. rpc SysPermGet(SysPermGetReq) returns (SysPermVo);
  1705. rpc SysPermList(SysPermListReq) returns (SysPermListResp);
  1706. // 用户角色管理
  1707. rpc SysUserRoleAdd(SysUserRoleVo) returns (SysUserRoleVo);
  1708. rpc SysUserRoleUpdate(SysUserRoleVo) returns (SysUserRoleVo);
  1709. rpc SysUserRoleDelete(Ids) returns (Empty);
  1710. rpc SysUserRoleGet(SysUserRoleGetReq) returns (SysUserRoleVo);
  1711. rpc SysUserRoleList(SysUserRoleListReq) returns (SysUserRoleListResp);
  1712. // 角色权限管理
  1713. rpc SysRolePermAdd(SysRolePermVo) returns (SysRolePermVo);
  1714. rpc SysRolePermUpdate(SysRolePermVo) returns (SysRolePermVo);
  1715. rpc SysRolePermDelete(Ids) returns (Empty);
  1716. rpc SysRolePermGet(SysRolePermGetReq) returns (SysRolePermVo);
  1717. rpc SysRolePermList(SysRolePermListReq) returns (SysRolePermListResp);
  1718. // 用户权限管理
  1719. rpc SysUserPermAdd(SysUserPermVo) returns (SysUserPermVo);
  1720. rpc SysUserPermUpdate(SysUserPermVo) returns (SysUserPermVo);
  1721. rpc SysUserPermDelete(Ids) returns (Empty);
  1722. rpc SysUserPermGet(SysUserPermGetReq) returns (SysUserPermVo);
  1723. rpc SysUserPermList(SysUserPermListReq) returns (SysUserPermListResp);
  1724. }
  1725. //白名单表
  1726. message UserWhiteVo{
  1727. int64 id = 1; // 主键ID
  1728. int64 userId = 2; // 用户
  1729. UserType userType = 3; //用户类型 1 设备 2 账号
  1730. Status status = 4; // 状态
  1731. int64 createTime = 5; // 创建时间
  1732. int64 updateTime = 6; // 更新时间
  1733. }
  1734. //测试用户表
  1735. message UserTestVo{
  1736. int64 id = 1; // 主键ID
  1737. int64 userId = 2; // 用户
  1738. UserType userType = 3; //用户类型 1 设备 2 账号
  1739. string area = 4; // 指定地区
  1740. repeated string apis = 5; // 指定接口
  1741. repeated string routers = 6; // 指定路由
  1742. Status status = 7; // 状态
  1743. int64 createTime = 8; // 创建时间
  1744. int64 updateTime = 9; // 更新时间
  1745. }
  1746. // Account
  1747. message AccountVo {
  1748. int64 id = 1; // 主键ID
  1749. string userUuid = 2; // 用户UUID
  1750. string productCode = 3; // 产品ID
  1751. string username = 4; // 用户名
  1752. string password = 5; // 密码
  1753. string accountKey = 6; // 账号KEY
  1754. string accountPassword = 7; // 账号密码
  1755. int64 accountType = 8; // 账号类型
  1756. int64 registMode = 9; // 注册方式
  1757. string provider = 10; // 授权登录标识
  1758. BoolInt whitelistUser = 11; // 白名单用户
  1759. BoolInt activated = 12; // 是否激活
  1760. string config = 13; // 配置
  1761. Status status = 14; // 状态
  1762. string avatar = 15; // 头像
  1763. string area = 16; // 指定地区
  1764. string remark = 17; // 备注
  1765. string deviceId = 18; // 设备ID
  1766. string platform = 19; // 平台
  1767. string channel = 20; // 渠道
  1768. string deviceModel = 21; // 设备型号
  1769. string deviceOs = 22; // 设备系统
  1770. int64 timezone = 23; // 时区
  1771. string lang = 24; // 语言
  1772. string ip = 25; // IP
  1773. string country = 26; // 国家
  1774. string province = 27; // 省份
  1775. string city = 28; // 城市
  1776. string isp = 29; // ISP
  1777. int64 appVer = 30; // 产品版本号
  1778. int64 appRuntimeCode = 31; // 产品运行码
  1779. int64 createTime = 32; // 创建时间
  1780. int64 updateTime = 33; // 更新时间
  1781. string version = 34; // 数据版本
  1782. string sessionId = 35; // 登录凭证
  1783. int64 sessionCreateTime = 36; // 凭证创建时间
  1784. }
  1785. message AccountListReq {
  1786. Page page = 1;
  1787. AccountVo vo = 2;
  1788. repeated string productCodes = 3; // 产品code
  1789. repeated int64 excludeIds = 4; // 排除的ID
  1790. }
  1791. message AccountListResp {
  1792. int64 total = 1;
  1793. repeated AccountVo list = 2;
  1794. }
  1795. // AccountDevice
  1796. message AccountDeviceVo {
  1797. int64 id = 1;
  1798. int64 accountId = 2; // 用户ID
  1799. int64 deviceId = 3; // 设备ID
  1800. string sessionId = 4; // 登录凭证
  1801. int64 sessionCreateTime = 5; // 凭证创建时间
  1802. int64 updateTime = 6;
  1803. int64 createTime = 7;
  1804. }
  1805. message AccountDeviceListReq {
  1806. Page page = 1;
  1807. AccountDeviceVo vo = 2;
  1808. repeated int64 excludeIds = 3; // 排除的ID
  1809. }
  1810. message AccountDeviceListResp {
  1811. int64 total = 1;
  1812. repeated AccountDeviceVo list = 2;
  1813. }
  1814. message UserWhiteListReq {
  1815. Page page = 1;
  1816. UserWhiteVo vo = 2;
  1817. repeated int64 excludeIds = 3; // 排除的ID
  1818. }
  1819. message UserWhiteListResp {
  1820. int64 total = 1;
  1821. repeated UserWhiteVo list = 2;
  1822. }
  1823. message UserTestListReq {
  1824. Page page = 1;
  1825. UserTestVo vo = 2;
  1826. repeated int64 excludeIds = 3; // 排除的ID
  1827. }
  1828. message UserTestListResp {
  1829. int64 total = 1;
  1830. repeated UserTestVo list = 2;
  1831. }
  1832. message DeviceVo {
  1833. int64 id = 1;
  1834. string userUuid = 2;
  1835. string productCode = 3;
  1836. string deviceId = 4;
  1837. string accountKey = 5;
  1838. string accountPassword = 6;
  1839. string platform = 7;
  1840. string channel = 8;
  1841. string referChannel = 9;
  1842. string deviceModel = 10;
  1843. string deviceOs = 11;
  1844. int64 timezone = 12;
  1845. string lang = 13;
  1846. int64 appVer = 14;
  1847. string ip = 15;
  1848. string country = 16;
  1849. string province = 17;
  1850. string city = 18;
  1851. string isp = 19;
  1852. int64 createTime = 20;
  1853. int64 updateTime = 21;
  1854. Status status = 22;
  1855. string refer = 23;
  1856. int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户
  1857. int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户
  1858. string mockCountry = 26; // 指定国家
  1859. string mockApi = 27; // 指定API
  1860. string mockRouter = 28; // 指定路由
  1861. string referSubChannel = 29;
  1862. }
  1863. message DeviceListReq {
  1864. Page page = 1;
  1865. DeviceVo vo = 2;
  1866. repeated string productCodes = 3; // 产品code
  1867. repeated int64 excludeIds = 4; // 排除的ID
  1868. repeated string dateRange = 5; // 日期范围
  1869. int64 createStartTime = 6; // 创建开始时间
  1870. int64 createEndTime = 7; // 创建结束时间
  1871. }
  1872. message DeviceListRes {
  1873. int64 total = 1;
  1874. repeated DeviceVo list = 2;
  1875. }
  1876. message UserAppConfigVo {
  1877. int64 id = 1;
  1878. string deviceId = 2;
  1879. string key = 3;
  1880. string value = 4;
  1881. Status status = 5;
  1882. int64 createTime = 6;
  1883. int64 updateTime = 7;
  1884. }
  1885. message UserAppConfigGetReq { UserAppConfigVo vo = 1; }
  1886. message UserAppConfigListReq {
  1887. Page page = 1;
  1888. UserAppConfigVo vo = 2;
  1889. }
  1890. message UserAppConfigListRes {
  1891. int64 total = 1;
  1892. repeated UserAppConfigVo list = 2;
  1893. }
  1894. // 用户模块
  1895. service GoUserClient {
  1896. rpc Ping(Request) returns (Response);
  1897. // 用户app配置管理(ring)
  1898. rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo);
  1899. rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo);
  1900. rpc UserAppConfigDel(Ids) returns (Empty);
  1901. rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo);
  1902. rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes);
  1903. // 设备管理
  1904. rpc DeviceAdd(DeviceVo) returns (DeviceVo);
  1905. rpc DeviceUpdate(DeviceVo) returns (DeviceVo);
  1906. rpc DeviceDel(Ids) returns (Empty);
  1907. rpc DeviceGet(DeviceVo) returns (DeviceVo);
  1908. rpc DeviceList(DeviceListReq) returns (DeviceListRes);
  1909. // Account
  1910. rpc AccountAdd(AccountVo) returns (AccountVo);
  1911. rpc AccountUpdate(AccountVo) returns (AccountVo);
  1912. rpc AccountDel(Ids) returns (Empty);
  1913. rpc AccountGet(AccountVo) returns (AccountVo);
  1914. rpc AccountList(AccountListReq) returns (AccountListResp);
  1915. // AccountDevice
  1916. rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo);
  1917. rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo);
  1918. rpc AccountDeviceDel(Ids) returns (Empty);
  1919. rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo);
  1920. rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp);
  1921. // 用户白名单管理
  1922. rpc UserWhiteAdd(UserWhiteVo) returns (UserWhiteVo);
  1923. rpc UserWhiteUpdate(UserWhiteVo) returns (UserWhiteVo);
  1924. rpc UserWhiteDel(Ids) returns (Empty);
  1925. rpc UserWhiteGet(UserWhiteVo) returns (UserWhiteVo);
  1926. rpc UserWhiteList(UserWhiteListReq) returns (UserWhiteListResp);
  1927. // 测试用户管理
  1928. rpc UserTestAdd(UserTestVo) returns (UserTestVo);
  1929. rpc UserTestUpdate(UserTestVo) returns (UserTestVo);
  1930. rpc UserTestDel(Ids) returns (Empty);
  1931. rpc UserTestGet(UserTestVo) returns (UserTestVo);
  1932. rpc UserTestList(UserTestListReq) returns (UserTestListResp);
  1933. }
  1934. // VpnTag
  1935. message VpnTagVo {
  1936. int64 id = 1;
  1937. string productCode = 2;
  1938. string type = 3;
  1939. string name = 4;
  1940. int64 sort = 5;
  1941. Status status = 6;
  1942. string remark = 7;
  1943. int64 createTime = 8;
  1944. int64 updateTime = 9;
  1945. string otherConfig = 10;
  1946. }
  1947. message VpnTagGetReq { VpnTagVo vo = 1; }
  1948. message VpnTagListReq {
  1949. Page page = 1;
  1950. VpnTagVo vo = 2;
  1951. repeated string productCodes = 3;
  1952. repeated int64 excludeIds = 4;
  1953. }
  1954. message VpnTagListResp {
  1955. int64 total = 1;
  1956. repeated VpnTagVo list = 2;
  1957. }
  1958. message VpnTagBatchAddReq { repeated VpnTagVo list = 1; }
  1959. message VpnTagBatchAddResp { repeated VpnTagVo list = 1; }
  1960. message VpnTagBatchUpdateReq { repeated VpnTagVo list = 1; }
  1961. message VpnTagBatchUpdateResp { repeated VpnTagVo list = 1; }
  1962. message VpnTagBatchDelReq { repeated int64 ids = 1; }
  1963. // VpnTag
  1964. message VpnGroupVo {
  1965. int64 id = 1;
  1966. string productCode = 2;
  1967. string name = 3;
  1968. string icon = 4;
  1969. int64 sort = 5;
  1970. Status status = 6;
  1971. string remark = 7;
  1972. int64 createTime = 8;
  1973. int64 updateTime = 9;
  1974. string version = 10;
  1975. string otherConfig = 11;
  1976. }
  1977. message VpnGroupExVo {
  1978. VpnGroupVo vo = 1;
  1979. repeated int64 tagIds = 2;
  1980. }
  1981. message VpnGroupAddReq {
  1982. VpnGroupVo vo = 1;
  1983. repeated int64 tagIds = 2;
  1984. }
  1985. message VpnGroupGetReq { VpnGroupVo vo = 1; }
  1986. message VpnGroupListReq {
  1987. Page page = 1;
  1988. VpnGroupVo vo = 2;
  1989. repeated string productCodes = 3;
  1990. repeated int64 excludeIds = 4;
  1991. }
  1992. message VpnGroupListResp {
  1993. int64 total = 1;
  1994. repeated VpnGroupVo list = 2;
  1995. }
  1996. message VpnGroupBatchAddReq { repeated VpnGroupExVo list = 1; }
  1997. message VpnGroupBatchAddResp { repeated VpnGroupExVo list = 1; }
  1998. message VpnGroupBatchUpdateReq { repeated VpnGroupExVo list = 1; }
  1999. message VpnGroupBatchUpdateResp { repeated VpnGroupExVo list = 1; }
  2000. message VpnGroupBatchDelReq { repeated int64 ids = 1; }
  2001. // VpnGroupTag
  2002. message VpnGroupTagVo {
  2003. int64 id = 1;
  2004. int64 groupId = 2;
  2005. int64 tagId = 3;
  2006. int64 createTime = 4;
  2007. int64 updateTime = 5;
  2008. }
  2009. message VpnGroupTagListReq {
  2010. Page page = 1;
  2011. VpnGroupTagVo vo = 2;
  2012. repeated int64 groupIds = 3;
  2013. repeated int64 tagIds = 4;
  2014. }
  2015. message VpnGroupTagListResp {
  2016. int64 total = 1;
  2017. repeated VpnGroupTagVo list = 2;
  2018. }
  2019. // VpnLocation
  2020. message VpnLocationVo {
  2021. int64 id = 1;
  2022. int64 groupId = 2;
  2023. string name = 3;
  2024. string code = 4;
  2025. string icon = 5;
  2026. int64 type = 6;
  2027. string displayPolicyConfig = 7;
  2028. string routePolicyConfig = 8;
  2029. int64 sort = 9;
  2030. Status status = 10;
  2031. string remark = 11;
  2032. int64 createTime = 12;
  2033. int64 updateTime = 13;
  2034. string version = 14;
  2035. string otherConfig = 15;
  2036. }
  2037. message VpnLocationExVo {
  2038. VpnLocationVo vo = 1;
  2039. string productCode = 2;
  2040. }
  2041. message VpnLocationGetReq { VpnLocationVo vo = 1; }
  2042. message VpnLocationListReq {
  2043. Page page = 1;
  2044. VpnLocationExVo vo = 2;
  2045. repeated int64 groupIds = 3;
  2046. repeated int64 excludeIds = 4;
  2047. repeated string productCodes = 5;
  2048. }
  2049. message VpnLocationListResp {
  2050. int64 total = 1;
  2051. repeated VpnLocationExVo list = 2;
  2052. }
  2053. message VpnLocationBatchAddReq { repeated VpnLocationVo list = 1; }
  2054. message VpnLocationBatchAddResp { repeated VpnLocationExVo list = 1; }
  2055. message VpnLocationBatchUpdateReq { repeated VpnLocationVo list = 1; }
  2056. message VpnLocationBatchUpdateResp { repeated VpnLocationExVo list = 1; }
  2057. message VpnLocationBatchDelReq { repeated int64 ids = 1; }
  2058. // VpnServer
  2059. message VpnServerVo {
  2060. int64 id = 1;
  2061. int64 instanceId = 2;
  2062. string name = 3;
  2063. string ip = 4;
  2064. int64 port = 5;
  2065. int64 pingPort = 6;
  2066. string netConfig = 7;
  2067. string routePolicyConfig = 8;
  2068. string serverInfo = 9;
  2069. Status status = 10;
  2070. string remark = 11;
  2071. int64 createTime = 12;
  2072. int64 updateTime = 13;
  2073. string version = 14;
  2074. string otherInfo = 15;
  2075. int64 monitorPort = 16;
  2076. string vpnConfig = 17;
  2077. }
  2078. message VpnServerExVo {
  2079. VpnServerVo vo = 1;
  2080. repeated int64 locationIds = 2;
  2081. }
  2082. message VpnServerListReq {
  2083. Page page = 1;
  2084. VpnServerVo vo = 2;
  2085. repeated int64 excludeIds = 3; // 排除的ID
  2086. repeated string productCodes = 4;
  2087. repeated int64 locationIds = 5;
  2088. repeated int64 instanceIds = 6;
  2089. }
  2090. message VpnServerListResp {
  2091. int64 total = 1;
  2092. repeated VpnServerVo list = 2;
  2093. }
  2094. message VpnServerExListResp {
  2095. int64 total = 1;
  2096. repeated VpnServerExVo list = 2;
  2097. }
  2098. message VpnServerAddReq {
  2099. VpnServerVo vo = 1;
  2100. repeated int64 locationIds = 2;
  2101. }
  2102. message VpnServerBatchAddReq { repeated VpnServerExVo list = 1; }
  2103. message VpnServerBatchAddResp { repeated VpnServerExVo list = 1; }
  2104. message VpnServerBatchUpdateReq { repeated VpnServerExVo list = 1; }
  2105. message VpnServerBatchUpdateResp { repeated VpnServerExVo list = 1; }
  2106. message VpnServerBatchDelReq { repeated int64 ids = 1; }
  2107. message VpnServerLocationVo {
  2108. int64 id = 1;
  2109. int64 serverId = 2;
  2110. int64 locationId = 3;
  2111. int64 createTime = 4;
  2112. int64 updateTime = 5;
  2113. Status status = 6;
  2114. }
  2115. message VpnServerLocationListReq {
  2116. Page page = 1;
  2117. VpnServerLocationVo vo = 2;
  2118. repeated int64 serverIds = 3;
  2119. repeated int64 locationIds = 4;
  2120. }
  2121. message VpnServerLocationListResp {
  2122. int64 total = 1;
  2123. repeated VpnServerLocationVo list = 2;
  2124. }
  2125. message VpnLocationServerCountVo {
  2126. int64 locationId = 1;
  2127. int64 serverCount = 2;
  2128. }
  2129. message VpnLocationServerCountReq {
  2130. Page page = 1;
  2131. Status status = 2;
  2132. repeated int64 serverIds = 3;
  2133. repeated int64 locationIds = 4;
  2134. }
  2135. message VpnLocationServerCountResp {
  2136. int64 total = 1;
  2137. repeated VpnLocationServerCountVo list = 2;
  2138. }
  2139. message VpnProbeTaskVo {
  2140. int64 id = 1;
  2141. string taskId = 2;
  2142. string filter = 3; // 筛选条件
  2143. string type = 4; // 类型
  2144. string uploadDomain = 5; // 配置
  2145. string params = 6;
  2146. int64 answer = 7;
  2147. float percentage = 8; // 进度百分比
  2148. string result = 9; // 结果
  2149. int64 userId = 10;
  2150. int64 createTime = 11;
  2151. int64 updateTime = 12;
  2152. }
  2153. message VpnProbeTaskListReq {
  2154. Page page = 1;
  2155. VpnProbeTaskVo vo = 2;
  2156. }
  2157. message VpnProbeTaskListResp {
  2158. int64 total = 1;
  2159. repeated VpnProbeTaskVo list = 2;
  2160. }
  2161. // VpnipWalledVo
  2162. message VpnipWalledVo {
  2163. int64 id = 1; // ID
  2164. int64 ipId = 2; // IP ID
  2165. string area = 3; // 地区
  2166. int64 walledTime = 4; // 被墙时间
  2167. string remark = 5; // 备注
  2168. int64 createTime = 6; // 创建时间
  2169. int64 createAt = 7; // 创建者ID
  2170. int64 updateTime = 8; // 更新时间
  2171. int64 updateAt = 9; // 更新者ID
  2172. }
  2173. message VpnipWalledAddReq { VpnipWalledVo vo = 1; }
  2174. message VpnipWalledAddResp { VpnipWalledVo vo = 1; }
  2175. message VpnipWalledUpdateReq { VpnipWalledVo vo = 1; }
  2176. message VpnipWalledUpdateResp { VpnipWalledVo vo = 1; }
  2177. message VpnipWalledGetReq { VpnipWalledVo vo = 1; }
  2178. message VpnipWalledGetResp { VpnipWalledVo vo = 1; }
  2179. message VpnipWalledListReq {
  2180. Page page = 1;
  2181. VpnipWalledVo vo = 2;
  2182. repeated int64 excludeIds = 3;
  2183. repeated int64 ipIds = 4;
  2184. repeated string ips = 5;
  2185. repeated string areas = 6;
  2186. }
  2187. message VpnipWalledListResp {
  2188. int64 total = 1;
  2189. repeated VpnipWalledVo list = 2;
  2190. }
  2191. message VpnipWalledBatchAddReq { repeated VpnipWalledVo list = 1; }
  2192. message VpnipWalledBatchAddResp { repeated VpnipWalledVo list = 1; }
  2193. message VpnipWalledBatchUpdateReq { repeated VpnipWalledVo list = 1; }
  2194. message VpnipWalledBatchUpdateResp { repeated VpnipWalledVo list = 1; }
  2195. // VpnipVo
  2196. message VpnipVo {
  2197. int64 id = 1; // ID
  2198. int64 rangeId = 2; // IP段ID
  2199. string ip = 3; // IP地址
  2200. string otherInfo = 4; // 其他信息,保留字段,用于扩展
  2201. Status status = 5; // 状态
  2202. string remark = 6; // 备注
  2203. int64 createTime = 7; // 创建时间
  2204. int64 createAt = 8; // 创建者ID
  2205. int64 updateTime = 9; // 更新时间
  2206. int64 updateAt = 10; // 更新者ID
  2207. }
  2208. message VpnipExVo {
  2209. VpnipVo vo = 1;
  2210. repeated VpnipWalledVo walledInfos = 2;
  2211. }
  2212. message VpnipAddReq { VpnipVo vo = 1; }
  2213. message VpnipAddResp { VpnipVo vo = 1; }
  2214. message VpnipExAddReq { VpnipExVo vo = 1; }
  2215. message VpnipExAddResp { VpnipExVo vo = 1; }
  2216. message VpnipUpdateReq { VpnipVo vo = 1; }
  2217. message VpnipUpdateResp { VpnipVo vo = 1; }
  2218. message VpnipExUpdateReq { VpnipExVo vo = 1; }
  2219. message VpnipExUpdateResp { VpnipExVo vo = 1; }
  2220. message VpnipGetReq { VpnipVo vo = 1; }
  2221. message VpnipGetResp { VpnipVo vo = 1; }
  2222. message VpnipExGetResp { VpnipExVo vo = 1; }
  2223. message VpnipListReq {
  2224. Page page = 1;
  2225. VpnipVo vo = 2;
  2226. repeated int64 excludeIds = 3;
  2227. repeated string ips = 4;
  2228. repeated int64 serverIds = 5;
  2229. repeated int64 instanceIds = 6;
  2230. repeated int64 rangeIds = 7;
  2231. }
  2232. message VpnipListResp {
  2233. int64 total = 1;
  2234. repeated VpnipVo list = 2;
  2235. }
  2236. message VpnipExListResp {
  2237. int64 total = 1;
  2238. repeated VpnipExVo list = 2;
  2239. }
  2240. message VpnipBatchAddReq { repeated VpnipVo list = 1; }
  2241. message VpnipBatchAddResp { repeated VpnipVo list = 1; }
  2242. message VpnipBatchUpdateReq { repeated VpnipVo list = 1; }
  2243. message VpnipBatchUpdateResp { repeated VpnipVo list = 1; }
  2244. message VpnipExBatchAddReq { repeated VpnipExVo list = 1; }
  2245. message VpnipExBatchAddResp { repeated VpnipExVo list = 1; }
  2246. message VpnipExBatchUpdateReq { repeated VpnipExVo list = 1; }
  2247. message VpnipExBatchUpdateResp { repeated VpnipExVo list = 1; }
  2248. // VpnipRangeVo
  2249. message VpnipRangeVo {
  2250. int64 id = 1; // ID
  2251. string name = 2; // 名称
  2252. string supplierId = 3; // 供应商ID
  2253. string startIP = 4; // 起始IP
  2254. string endIP = 5; // 结束IP
  2255. int64 expires = 6; // 到期日期
  2256. int64 sort = 7; // 排序
  2257. Status status = 8; // 状态
  2258. string remark = 9; // 备注
  2259. int64 createTime = 10; // 创建时间
  2260. int64 createAt = 11; // 创建者ID
  2261. int64 updateTime = 12; // 更新时间
  2262. int64 updateAt = 13; // 更新者ID
  2263. }
  2264. message VpnipRangeExVo {
  2265. VpnipRangeVo vo = 1;
  2266. repeated VpnipVo ipInfos = 2;
  2267. }
  2268. message VpnipRangeAddReq { VpnipRangeVo vo = 1; }
  2269. message VpnipRangeAddResp { VpnipRangeVo vo = 1; }
  2270. message VpnipRangeExAddReq { VpnipRangeExVo vo = 1; }
  2271. message VpnipRangeExAddResp { VpnipRangeExVo vo = 1; }
  2272. message VpnipRangeUpdateReq { VpnipRangeVo vo = 1; }
  2273. message VpnipRangeUpdateResp { VpnipRangeVo vo = 1; }
  2274. message VpnipRangeExUpdateReq { VpnipRangeExVo vo = 1; }
  2275. message VpnipRangeExUpdateResp { VpnipRangeExVo vo = 1; }
  2276. message VpnipRangeGetReq { VpnipRangeVo vo = 1; }
  2277. message VpnipRangeGetResp { VpnipRangeVo vo = 1; }
  2278. message VpnipRangeExGetResp { VpnipRangeExVo vo = 1; }
  2279. message VpnipRangeListReq {
  2280. Page page = 1;
  2281. VpnipRangeVo vo = 2;
  2282. repeated string names = 3;
  2283. repeated string ips = 4;
  2284. repeated int64 excludeIds = 5; // 排除的ID
  2285. }
  2286. message VpnipRangeListResp {
  2287. int64 total = 1;
  2288. repeated VpnipRangeVo list = 2;
  2289. }
  2290. message VpnipRangeExListResp {
  2291. int64 total = 1;
  2292. repeated VpnipRangeExVo list = 2;
  2293. }
  2294. message VpnipRangeBatchAddReq { repeated VpnipRangeVo list = 1; }
  2295. message VpnipRangeBatchAddResp { repeated VpnipRangeVo list = 1; }
  2296. message VpnipRangeBatchUpdateReq { repeated VpnipRangeVo list = 1; }
  2297. message VpnipRangeBatchUpdateResp { repeated VpnipRangeVo list = 1; }
  2298. message VpnipRangeExBatchAddReq { repeated VpnipRangeExVo list = 1; }
  2299. message VpnipRangeExBatchAddResp { repeated VpnipRangeExVo list = 1; }
  2300. message VpnipRangeExBatchUpdateReq { repeated VpnipRangeExVo list = 1; }
  2301. message VpnipRangeExBatchUpdateResp { repeated VpnipRangeExVo list = 1; }
  2302. // VpnipBindVo
  2303. message VpnipBindVo {
  2304. int64 id = 1; // ID
  2305. int64 ipId = 2; // IP ID
  2306. int64 serverId = 3; // 服务器ID
  2307. string batchId = 4; // 批次ID,用于批量操作和回滚
  2308. string prevBindId = 5; // 上一次绑定记录的ID,为空时表示之前未绑定
  2309. int64 bindTime = 6; // 绑定时间
  2310. int64 unbindTime = 7; // 解绑时间
  2311. int64 isCurrent = 8; // 是否为当前绑定记录
  2312. string remark = 9; // 备注
  2313. int64 createTime = 10; // 创建时间
  2314. int64 createAt = 11; // 创建者ID
  2315. int64 updateTime = 12; // 更新时间
  2316. int64 updateAt = 13; // 更新者ID
  2317. }
  2318. message VpnipBindAddReq { VpnipBindVo vo = 1; }
  2319. message VpnipBindAddResp { VpnipBindVo vo = 1; }
  2320. message VpnipBindUpdateReq { VpnipBindVo vo = 1; }
  2321. message VpnipBindUpdateResp { VpnipBindVo vo = 1; }
  2322. message VpnipBindGetReq { VpnipBindVo vo = 1; }
  2323. message VpnipBindGetResp { VpnipBindVo vo = 1; }
  2324. message VpnipBindListReq {
  2325. Page page = 1;
  2326. VpnipBindVo vo = 2;
  2327. repeated int64 excludeIds = 3;
  2328. repeated int64 ipIds = 4;
  2329. repeated int64 serverIds = 5;
  2330. repeated string ips = 6;
  2331. repeated int64 instanceIds = 7;
  2332. }
  2333. message VpnipBindListResp {
  2334. int64 total = 1;
  2335. repeated VpnipBindVo list = 2;
  2336. }
  2337. message VpnipBindBatchAddReq { repeated VpnipBindVo list = 1; }
  2338. message VpnipBindBatchAddResp { repeated VpnipBindVo list = 1; }
  2339. message VpnipBindBatchUpdateReq { repeated VpnipBindVo list = 1; }
  2340. message VpnipBindBatchUpdateResp { repeated VpnipBindVo list = 1; }
  2341. // VpnConfigTemplatePlanVo
  2342. message VpnConfigTemplatePlanVo {
  2343. int64 id = 1; // id
  2344. string productCode = 2; // 产品Code
  2345. string name = 3; // 配置名称
  2346. string config = 4; // 保留字段,用于扩展配置
  2347. int64 sort = 5; // 排序
  2348. Status status = 6; // 状态
  2349. string remark = 7; // 备注
  2350. int64 createTime = 8; // 创建时间
  2351. int64 createAt = 9; // 创建者Id
  2352. int64 updateTime = 10; // 更新时间
  2353. int64 updateAt = 11; // 更新者Id
  2354. string version = 12; // 数据版本
  2355. }
  2356. // VpnConfigTemplatePlanDetailVo
  2357. message VpnConfigTemplatePlanDetailVo {
  2358. int64 id = 1; // id
  2359. int64 planId = 2; // 配置模板主表id
  2360. string core = 3; // 内核
  2361. string name = 4; // 名称
  2362. string envs = 5; // 环境变量
  2363. string serverConfig = 6; // 服务端配置
  2364. string clientConfig = 7; // 客户端配置
  2365. string policyConfig = 8; // 策略配置
  2366. int64 sort = 9; // 排序
  2367. Status status = 10; // 状态
  2368. string remark = 11; // 备注
  2369. int64 createTime = 12; // 创建时间
  2370. int64 createAt = 13; // 创建者Id
  2371. int64 updateTime = 14; // 更新时间
  2372. int64 updateAt = 15; // 更新者Id
  2373. string version = 16; // 数据版本
  2374. }
  2375. message VpnConfigTemplatePlanAddReq {
  2376. VpnConfigTemplatePlanVo plan = 1;
  2377. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2378. }
  2379. message VpnConfigTemplatePlanAddResp {
  2380. VpnConfigTemplatePlanVo plan = 1;
  2381. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2382. }
  2383. message VpnConfigTemplatePlanUpdateReq { VpnConfigTemplatePlanVo vo = 1; }
  2384. message VpnConfigTemplatePlanUpdateResp {
  2385. VpnConfigTemplatePlanVo plan = 1;
  2386. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2387. }
  2388. message VpnConfigTemplatePlanDelReq { repeated int64 ids = 1; }
  2389. message VpnConfigTemplatePlanGetReq { VpnConfigTemplatePlanVo vo = 1; }
  2390. message VpnConfigTemplatePlanGetResp {
  2391. VpnConfigTemplatePlanVo plan = 1;
  2392. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2393. }
  2394. message VpnConfigTemplatePlanListReq {
  2395. Page page = 1;
  2396. VpnConfigTemplatePlanVo vo = 2;
  2397. repeated int64 excludeIds = 3;
  2398. repeated string productCodes = 4;
  2399. }
  2400. message VpnConfigTemplatePlanListResp {
  2401. int64 total = 1;
  2402. repeated VpnConfigTemplatePlanGetResp list = 2;
  2403. }
  2404. message VpnConfigTemplatePlanDetailAddReq {
  2405. VpnConfigTemplatePlanDetailVo vo = 1;
  2406. }
  2407. message VpnConfigTemplatePlanDetailAddResp {
  2408. VpnConfigTemplatePlanDetailVo vo = 1;
  2409. }
  2410. message VpnConfigTemplatePlanDetailUpdateReq {
  2411. VpnConfigTemplatePlanDetailVo vo = 1;
  2412. }
  2413. message VpnConfigTemplatePlanDetailUpdateResp {
  2414. VpnConfigTemplatePlanDetailVo vo = 1;
  2415. }
  2416. message VpnConfigTemplatePlanDetailDelReq { repeated int64 ids = 1; }
  2417. message VpnConfigTemplatePlanDetailGetReq {
  2418. VpnConfigTemplatePlanDetailVo vo = 1;
  2419. }
  2420. message VpnConfigTemplatePlanDetailGetResp {
  2421. VpnConfigTemplatePlanDetailVo vo = 1;
  2422. }
  2423. message VpnConfigTemplatePlanDetailListReq {
  2424. Page page = 1;
  2425. VpnConfigTemplatePlanDetailVo vo = 2;
  2426. repeated int64 planIds = 3;
  2427. repeated int64 excludeIds = 4;
  2428. repeated string productCodes = 5;
  2429. }
  2430. message VpnConfigTemplatePlanDetailListResp {
  2431. int64 total = 1;
  2432. repeated VpnConfigTemplatePlanDetailVo list = 2;
  2433. }
  2434. // govpn 模块,VPN相关服务
  2435. service GoVpnClient {
  2436. rpc Ping(Request) returns (Response);
  2437. // 表的事务操作
  2438. rpc Transaction(TransactionReq) returns (Empty);
  2439. // VpnTag
  2440. rpc VpnTagAdd(VpnTagVo) returns (VpnTagVo);
  2441. rpc VpnTagUpdate(VpnTagVo) returns (VpnTagVo);
  2442. rpc VpnTagDel(Ids) returns (Empty);
  2443. rpc VpnTagGet(VpnTagGetReq) returns (VpnTagVo);
  2444. rpc VpnTagList(VpnTagListReq) returns (VpnTagListResp);
  2445. rpc VpnTagBatchAdd(VpnTagBatchAddReq) returns (VpnTagBatchAddResp);
  2446. rpc VpnTagBatchUpdate(VpnTagBatchUpdateReq) returns (VpnTagBatchUpdateResp);
  2447. // VpnGroup
  2448. rpc VpnGroupAdd(VpnGroupAddReq) returns (VpnGroupVo);
  2449. rpc VpnGroupUpdate(VpnGroupAddReq) returns (Empty);
  2450. rpc VpnGroupDel(Ids) returns (Empty);
  2451. rpc VpnGroupGet(VpnGroupGetReq) returns (VpnGroupVo);
  2452. rpc VpnGroupList(VpnGroupListReq) returns (VpnGroupListResp);
  2453. rpc VpnGroupBatchAdd(VpnGroupBatchAddReq) returns (VpnGroupBatchAddResp);
  2454. rpc VpnGroupBatchUpdate(VpnGroupBatchUpdateReq)
  2455. returns (VpnGroupBatchUpdateResp);
  2456. // VpnGroupTag
  2457. rpc VpnGroupTagAdd(VpnGroupTagVo) returns (VpnGroupTagVo);
  2458. rpc VpnGroupTagUpdate(VpnGroupTagVo) returns (VpnGroupTagVo);
  2459. rpc VpnGroupTagDel(Ids) returns (Empty);
  2460. rpc VpnGroupTagGet(VpnGroupTagVo) returns (VpnGroupTagVo);
  2461. rpc VpnGroupTagList(VpnGroupTagListReq) returns (VpnGroupTagListResp);
  2462. // VpnLocation
  2463. rpc VpnLocationAdd(VpnLocationVo) returns (VpnLocationVo);
  2464. rpc VpnLocationUpdate(VpnLocationVo) returns (Empty);
  2465. rpc VpnLocationDel(Ids) returns (Empty);
  2466. rpc VpnLocationGet(VpnLocationGetReq) returns (VpnLocationVo);
  2467. rpc VpnLocationList(VpnLocationListReq) returns (VpnLocationListResp);
  2468. rpc VpnLocationBatchAdd(VpnLocationBatchAddReq)
  2469. returns (VpnLocationBatchAddResp);
  2470. rpc VpnLocationBatchUpdate(VpnLocationBatchUpdateReq)
  2471. returns (VpnLocationBatchUpdateResp);
  2472. // VpnServer
  2473. rpc VpnServerAdd(VpnServerAddReq) returns (VpnServerAddReq);
  2474. rpc VpnServerUpdate(VpnServerAddReq) returns (VpnServerAddReq);
  2475. rpc VpnServerDel(Ids) returns (Empty);
  2476. rpc VpnServerGet(VpnServerVo) returns (VpnServerVo);
  2477. rpc VpnServerExGet(VpnServerVo) returns (VpnServerExVo);
  2478. rpc VpnServerList(VpnServerListReq) returns (VpnServerListResp);
  2479. rpc VpnServerExList(VpnServerListReq) returns (VpnServerExListResp);
  2480. rpc VpnServerBatchAdd(VpnServerBatchAddReq) returns (VpnServerBatchAddResp);
  2481. rpc VpnServerBatchUpdate(VpnServerBatchUpdateReq)
  2482. returns (VpnServerBatchUpdateResp);
  2483. // VpnServerLocation
  2484. rpc VpnServerLocationAdd(VpnServerLocationVo) returns (VpnServerLocationVo);
  2485. rpc VpnServerLocationUpdate(VpnServerLocationVo) returns (Empty);
  2486. rpc VpnServerLocationDel(Ids) returns (Empty);
  2487. rpc VpnServerLocationGet(VpnServerLocationVo) returns (VpnServerLocationVo);
  2488. rpc VpnServerLocationList(VpnServerLocationListReq)
  2489. returns (VpnServerLocationListResp);
  2490. // VpnLocationServerCount
  2491. rpc VpnLocationServerCount(VpnLocationServerCountReq)
  2492. returns (VpnLocationServerCountResp);
  2493. // VpnProbeTask
  2494. rpc VpnProbeTaskAdd(VpnProbeTaskVo) returns (VpnProbeTaskVo);
  2495. rpc VpnProbeTaskUpdate(VpnProbeTaskVo) returns (Empty);
  2496. rpc VpnProbeTaskList(VpnProbeTaskListReq) returns (VpnProbeTaskListResp);
  2497. // VpnipWalled
  2498. rpc VpnipWalledAdd(VpnipWalledAddReq) returns (VpnipWalledAddResp);
  2499. rpc VpnipWalledUpdate(VpnipWalledUpdateReq) returns (VpnipWalledUpdateResp);
  2500. rpc VpnipWalledDel(Ids) returns (Empty);
  2501. rpc VpnipWalledGet(VpnipWalledGetReq) returns (VpnipWalledGetResp);
  2502. rpc VpnipWalledList(VpnipWalledListReq) returns (VpnipWalledListResp);
  2503. rpc VpnipWalledBatchAdd(VpnipWalledBatchAddReq)
  2504. returns (VpnipWalledBatchAddResp);
  2505. rpc VpnipWalledBatchUpdate(VpnipWalledBatchUpdateReq)
  2506. returns (VpnipWalledBatchUpdateResp);
  2507. // Vpnip
  2508. rpc VpnipAdd(VpnipAddReq) returns (VpnipAddResp);
  2509. rpc VpnipExAdd(VpnipExAddReq) returns (VpnipExAddResp);
  2510. rpc VpnipUpdate(VpnipUpdateReq) returns (VpnipUpdateResp);
  2511. rpc VpnipExUpdate(VpnipExUpdateReq) returns (VpnipExUpdateResp);
  2512. rpc VpnipDel(Ids) returns (Empty);
  2513. rpc VpnipGet(VpnipGetReq) returns (VpnipGetResp);
  2514. rpc VpnipExGet(VpnipGetReq) returns (VpnipExGetResp);
  2515. rpc VpnipList(VpnipListReq) returns (VpnipListResp);
  2516. rpc VpnipExList(VpnipListReq) returns (VpnipExListResp);
  2517. rpc VpnipBatchAdd(VpnipBatchAddReq) returns (VpnipBatchAddResp);
  2518. rpc VpnipBatchUpdate(VpnipBatchUpdateReq) returns (VpnipBatchUpdateResp);
  2519. rpc VpnipExBatchAdd(VpnipExBatchAddReq) returns (VpnipExBatchAddResp);
  2520. rpc VpnipExBatchUpdate(VpnipExBatchUpdateReq)
  2521. returns (VpnipExBatchUpdateResp);
  2522. // VpnipRange
  2523. rpc VpnipRangeAdd(VpnipRangeAddReq) returns (VpnipRangeAddResp);
  2524. // VpnipRangeExAdd 添加IP段及IP数据,如果IP数据已存在,会自动将已经存在的IP的 rangeId 更新为新增的IP段的ID
  2525. rpc VpnipRangeExAdd(VpnipRangeExAddReq) returns (VpnipRangeExAddResp);
  2526. rpc VpnipRangeUpdate(VpnipRangeUpdateReq) returns (VpnipRangeUpdateResp);
  2527. rpc VpnipRangeExUpdate(VpnipRangeExUpdateReq)
  2528. returns (VpnipRangeExUpdateResp);
  2529. rpc VpnipRangeDel(Ids) returns (Empty);
  2530. rpc VpnipRangeGet(VpnipRangeGetReq) returns (VpnipRangeGetResp);
  2531. rpc VpnipRangeExGet(VpnipRangeGetReq) returns (VpnipRangeExGetResp);
  2532. rpc VpnipRangeList(VpnipRangeListReq) returns (VpnipRangeListResp);
  2533. rpc VpnipRangeExList(VpnipRangeListReq) returns (VpnipRangeExListResp);
  2534. rpc VpnipRangeBatchAdd(VpnipRangeBatchAddReq)
  2535. returns (VpnipRangeBatchAddResp);
  2536. rpc VpnipRangeExBatchAdd(VpnipRangeExBatchAddReq)
  2537. returns (VpnipRangeExBatchAddResp);
  2538. rpc VpnipRangeBatchUpdate(VpnipRangeBatchUpdateReq)
  2539. returns (VpnipRangeBatchUpdateResp);
  2540. rpc VpnipRangeExBatchUpdate(VpnipRangeExBatchUpdateReq)
  2541. returns (VpnipRangeExBatchUpdateResp);
  2542. // VpnipBind
  2543. rpc VpnipBindAdd(VpnipBindAddReq) returns (VpnipBindAddResp);
  2544. rpc VpnipBindUpdate(VpnipBindUpdateReq) returns (VpnipBindUpdateResp);
  2545. rpc VpnipBindDel(Ids) returns (Empty);
  2546. rpc VpnipBindGet(VpnipBindGetReq) returns (VpnipBindGetResp);
  2547. rpc VpnipBindList(VpnipBindListReq) returns (VpnipBindListResp);
  2548. rpc VpnipBindBatchUpdate(VpnipBindBatchUpdateReq)
  2549. returns (VpnipBindBatchUpdateResp);
  2550. // VpnipsBindServer 为一台服务器绑定一批新IP,会解绑上次绑定的IP,再绑定新的IP,仅需提供 ipId, serverId, Remark, createAt, updateAt 即可,其他字段会自动填充
  2551. rpc VpnipsBindServer(VpnipBindBatchAddReq) returns (VpnipBindBatchAddResp);
  2552. // VpnConfigTemplatePlan
  2553. rpc VpnConfigTemplatePlanAdd(VpnConfigTemplatePlanAddReq)
  2554. returns (VpnConfigTemplatePlanAddResp);
  2555. rpc VpnConfigTemplatePlanUpdate(VpnConfigTemplatePlanUpdateReq)
  2556. returns (VpnConfigTemplatePlanUpdateResp);
  2557. rpc VpnConfigTemplatePlanDel(VpnConfigTemplatePlanDelReq) returns (Empty);
  2558. rpc VpnConfigTemplatePlanGet(VpnConfigTemplatePlanGetReq)
  2559. returns (VpnConfigTemplatePlanGetResp);
  2560. rpc VpnConfigTemplatePlanList(VpnConfigTemplatePlanListReq)
  2561. returns (VpnConfigTemplatePlanListResp);
  2562. rpc VpnConfigTemplatePlanDetailAdd(VpnConfigTemplatePlanDetailAddReq)
  2563. returns (VpnConfigTemplatePlanDetailAddResp);
  2564. rpc VpnConfigTemplatePlanDetailUpdate(VpnConfigTemplatePlanDetailUpdateReq)
  2565. returns (VpnConfigTemplatePlanDetailUpdateResp);
  2566. rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq)
  2567. returns (Empty);
  2568. rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq)
  2569. returns (VpnConfigTemplatePlanDetailGetResp);
  2570. rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq)
  2571. returns (VpnConfigTemplatePlanDetailListResp);
  2572. }
  2573. // test go mod tidy