gorpc.proto 81 KB

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