gorpc.proto 91 KB

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