gorpc.proto 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660
  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; // ID
  997. string productCode = 2; // 产品标识
  998. string code = 3; // 权益标识
  999. string name = 4; // 权益名称
  1000. int64 sort = 5; // 排序
  1001. Status status = 6; // 状态 1启用 2禁用
  1002. string remark = 7; // 备注
  1003. int64 createTime = 8; // 创建时间
  1004. int64 createAt = 9; // 创建者ID
  1005. int64 updateTime = 10; // 更新时间
  1006. int64 updateAt = 11; // 更新者ID
  1007. }
  1008. message ServiceTypesWithValueVo {
  1009. ServiceTypesVo vo = 1;
  1010. int64 value = 2;
  1011. }
  1012. message ServiceTypesGetReq { ServiceTypesVo vo = 1; }
  1013. message ServiceTypesGetResp { ServiceTypesVo vo = 1; }
  1014. message ServiceTypesGetWithValueReq {
  1015. int64 planId = 1;
  1016. string productCode = 2;
  1017. string servicePlanCode = 3;
  1018. int64 serviceTypeId = 4;
  1019. string serviceTypeCode = 5;
  1020. }
  1021. message ServiceTypesGetWithValueResp {
  1022. ServiceTypesVo vo = 1;
  1023. int64 value = 2;
  1024. }
  1025. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  1026. message ServiceTypesAddResp { ServiceTypesVo vo = 1; }
  1027. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  1028. message ServiceTypesUpdateResp { ServiceTypesVo vo = 1; }
  1029. message ServiceTypesDelReq { repeated int64 ids = 1; }
  1030. message ServiceTypesListReq {
  1031. Page page = 1;
  1032. ServiceTypesVo vo = 2;
  1033. repeated string productCodes = 3;
  1034. repeated int64 excludeIds = 4;
  1035. }
  1036. message ServiceTypesListResp {
  1037. int64 total = 1;
  1038. repeated ServiceTypesVo list = 2;
  1039. }
  1040. message ServiceTypesListWithValueReq {
  1041. Page page = 1;
  1042. ServiceTypesVo vo = 2;
  1043. repeated int64 planIds = 3;
  1044. repeated string productCodes = 4;
  1045. repeated string servicePlanCodes = 5;
  1046. repeated int64 excludeIds = 6;
  1047. }
  1048. message ServiceTypesListWithValueResp {
  1049. int64 total = 1;
  1050. repeated ServiceTypesWithValueVo list = 2;
  1051. }
  1052. // end ServiceTypes
  1053. // ServicePlan
  1054. message ServicePlanVo {
  1055. int64 id = 1; // ID
  1056. string productCode = 2; // 产品标识
  1057. string code = 3; // 套餐标识
  1058. string name = 4; // 套餐名称
  1059. int64 sort = 5; // 排序
  1060. Status status = 6; // 状态 1启用 2禁用
  1061. string remark = 7; // 备注
  1062. int64 createTime = 8; // 创建时间
  1063. int64 createAt = 9; // 创建者ID
  1064. int64 updateTime = 10; // 更新时间
  1065. int64 updateAt = 11; // 更新者ID
  1066. }
  1067. message ServicePlanWithDetailsVo {
  1068. ServicePlanVo servicePlan = 1;
  1069. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1070. }
  1071. message ServicePlanWithDurationVo {
  1072. ServicePlanVo servicePlan = 1;
  1073. int64 licenseDurationDay = 2;
  1074. int64 licenseDurationMinutes = 3;
  1075. }
  1076. message ServicePlanWithDurationAndDetailsVo {
  1077. ServicePlanWithDurationVo servicePlan = 1;
  1078. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1079. }
  1080. message ServicePlanGetReq { ServicePlanVo vo = 1; }
  1081. message ServicePlanGetResp { ServicePlanVo vo = 1; }
  1082. message ServicePlanGetWithDetailsReq {
  1083. ServicePlanVo vo = 1;
  1084. }
  1085. message ServicePlanGetWithDetailsResp {
  1086. ServicePlanVo servicePlan = 1;
  1087. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1088. }
  1089. message ServicePlanAddReq { ServicePlanVo vo = 1; }
  1090. message ServicePlanAddResp { ServicePlanVo vo = 1; }
  1091. message ServicePlanAddWithDetailsReq {
  1092. ServicePlanVo servicePlan = 1;
  1093. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1094. }
  1095. message ServicePlanAddWithDetailsResp {
  1096. ServicePlanVo servicePlan = 1;
  1097. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1098. }
  1099. message ServicePlanUpdateReq { ServicePlanVo vo = 1; }
  1100. message ServicePlanUpdateResp { ServicePlanVo vo = 1; }
  1101. message ServicePlanUpdateWithDetailsReq {
  1102. ServicePlanVo servicePlan = 1;
  1103. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1104. }
  1105. message ServicePlanUpdateWithDetailsResp {
  1106. ServicePlanVo servicePlan = 1;
  1107. repeated ServiceTypesWithValueVo serviceTypes = 2;
  1108. }
  1109. message ServicePlanDelReq { repeated int64 ids = 1; }
  1110. message ServicePlanListReq {
  1111. Page page = 1;
  1112. ServicePlanVo vo = 2;
  1113. repeated string productCodes = 3;
  1114. repeated int64 excludeIds = 4;
  1115. }
  1116. message ServicePlanListResp {
  1117. int64 total = 1;
  1118. repeated ServicePlanVo list = 2;
  1119. }
  1120. message ServicePlanListWithDetailsReq {
  1121. Page page = 1;
  1122. ServicePlanVo vo = 2;
  1123. repeated string productCodes = 3;
  1124. repeated int64 excludeIds = 4;
  1125. }
  1126. message ServicePlanListWithDetailsResp {
  1127. int64 total = 1;
  1128. repeated ServicePlanWithDetailsVo list = 2;
  1129. }
  1130. // end ServicePlan
  1131. // ServicePlanTypes
  1132. message ServicePlanTypesVo {
  1133. int64 id = 1; // ID
  1134. int64 servicePlanId = 2; // 套餐ID
  1135. int64 serviceTypeId = 3; // 权益ID
  1136. int64 serviceValue = 4; // 权益值 根据不同的 serviceTypeId,这里的值的含义不同
  1137. int64 createTime = 5; // 创建时间
  1138. int64 createAt = 6; // 创建者ID
  1139. int64 updateTime = 7; // 更新时间
  1140. int64 updateAt = 8; // 更新者ID
  1141. }
  1142. message ServicePlanTypesGetReq { ServicePlanTypesVo vo = 1; }
  1143. message ServicePlanTypesGetResp { ServicePlanTypesVo vo = 1; }
  1144. message ServicePlanTypesAddReq { ServicePlanTypesVo vo = 1; }
  1145. message ServicePlanTypesAddResp { ServicePlanTypesVo vo = 1; }
  1146. message ServicePlanTypesUpdateReq { ServicePlanTypesVo vo = 1; }
  1147. message ServicePlanTypesUpdateResp { ServicePlanTypesVo vo = 1; }
  1148. message ServicePlanTypesDelReq { repeated int64 ids = 1; }
  1149. message ServicePlanTypesListReq {
  1150. Page page = 1;
  1151. ServicePlanTypesVo vo = 2;
  1152. repeated int64 servicePlanIds = 3;
  1153. repeated int64 serviceTypeIds = 4;
  1154. repeated int64 excludeIds = 5;
  1155. }
  1156. message ServicePlanTypesListResp {
  1157. int64 total = 1;
  1158. repeated ServicePlanTypesVo list = 2;
  1159. }
  1160. // end ServicePlanTypes
  1161. // SubscribePeriodType 订阅周期类型
  1162. enum SubscribePeriodType {
  1163. SubscribePeriodTypeUnknown = 0;
  1164. SubscribePeriodTypeDay = 1;
  1165. SubscribePeriodTypeWeek = 2;
  1166. SubscribePeriodTypeMonth = 3;
  1167. SubscribePeriodTypeYear = 4;
  1168. }
  1169. // ServiceGoods
  1170. message ServiceGoodsVo {
  1171. int64 id = 1; // ID
  1172. string productCode = 2; // 产品标识
  1173. string code = 3; // 商品code
  1174. string name = 4; // 商品名称
  1175. string title = 5; // 标题(默认值,对外显示)
  1176. string subTitle = 6; // 副标题(默认值,对外显示)
  1177. string introduce = 7; // 简介(默认值,对外显示)
  1178. string tag = 8; // 标签内容(默认值,对外显示)
  1179. float orgPrice = 9; // 原价(默认值)
  1180. float price = 10; // 现价(默认值)
  1181. int64 currency = 11; // 价格货币类型(默认值)
  1182. BoolInt recommend = 12; // 是否推荐商品(默认值) 1推荐 2不推荐
  1183. BoolInt isDefault = 13; // 是否默认商品(默认值) 1默认 2不默认
  1184. BoolInt subscribeType = 14; // 订阅类型 1订阅类型 2非订阅类型
  1185. SubscribePeriodType subscribePeriodType = 15; // 订阅周期类型 1Day 2Week 3Month 4Year(仅当订阅类型为1时有效)
  1186. int64 subscribePeriodValue = 16; // 订阅周期值(仅当订阅类型为1时有效)
  1187. int64 priority = 17; // 商品消费优先级
  1188. int64 mergeRule = 18; // 商品合并规则(规则一样的商品包含的权益可以合并到一起)
  1189. int64 sort = 19; // 排序
  1190. Status status = 20; // 状态 1启用 2禁用
  1191. string remark = 21; // 备注
  1192. int64 createTime = 22; // 创建时间
  1193. int64 createAt = 23; // 创建者ID
  1194. int64 updateTime = 24; // 更新时间
  1195. int64 updateAt = 25; // 更新者ID
  1196. }
  1197. message ServiceGoodsWithPlansVo {
  1198. ServiceGoodsVo serviceGoods = 1;
  1199. repeated ServicePlanWithDurationVo servicePlans = 2;
  1200. }
  1201. message ServiceGoodsWithPlansAndDetailsVo {
  1202. ServiceGoodsVo serviceGoods = 1;
  1203. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1204. }
  1205. message ServiceGoodsGetReq { ServiceGoodsVo vo = 1; }
  1206. message ServiceGoodsGetResp { ServiceGoodsVo vo = 1; }
  1207. message ServiceGoodsGetWithPlansReq { ServiceGoodsVo vo = 1; }
  1208. message ServiceGoodsGetWithPlansResp {
  1209. ServiceGoodsVo serviceGoods = 1;
  1210. repeated ServicePlanWithDurationVo servicePlans = 2;
  1211. }
  1212. message ServiceGoodsGetWithPlansAndDetailsReq { ServiceGoodsVo vo = 1; }
  1213. message ServiceGoodsGetWithPlansAndDetailsResp {
  1214. ServiceGoodsVo serviceGoods = 1;
  1215. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1216. }
  1217. message ServiceGoodsAddReq { ServiceGoodsVo vo = 1; }
  1218. message ServiceGoodsAddResp { ServiceGoodsVo vo = 1; }
  1219. message ServiceGoodsAddWithPlansReq {
  1220. ServiceGoodsVo serviceGoods = 1;
  1221. repeated ServicePlanWithDurationVo servicePlans = 2;
  1222. }
  1223. message ServiceGoodsAddWithPlansResp {
  1224. ServiceGoodsVo serviceGoods = 1;
  1225. repeated ServicePlanWithDurationVo servicePlans = 2;
  1226. }
  1227. message ServiceGoodsAddWithPlansAndDetailsReq {
  1228. ServiceGoodsVo serviceGoods = 1;
  1229. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1230. }
  1231. message ServiceGoodsAddWithPlansAndDetailsResp {
  1232. ServiceGoodsVo serviceGoods = 1;
  1233. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1234. }
  1235. message ServiceGoodsUpdateReq { ServiceGoodsVo vo = 1; }
  1236. message ServiceGoodsUpdateResp { ServiceGoodsVo vo = 1; }
  1237. message ServiceGoodsUpdateWithPlansReq {
  1238. ServiceGoodsVo serviceGoods = 1;
  1239. repeated ServicePlanWithDurationVo servicePlans = 2;
  1240. }
  1241. message ServiceGoodsUpdateWithPlansResp {
  1242. ServiceGoodsVo serviceGoods = 1;
  1243. repeated ServicePlanWithDurationVo servicePlans = 2;
  1244. }
  1245. message ServiceGoodsUpdateWithPlansAndDetailsReq {
  1246. ServiceGoodsVo serviceGoods = 1;
  1247. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1248. }
  1249. message ServiceGoodsUpdateWithPlansAndDetailsResp {
  1250. ServiceGoodsVo serviceGoods = 1;
  1251. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 2;
  1252. }
  1253. message ServiceGoodsDelReq { repeated int64 ids = 1; }
  1254. message ServiceGoodsListReq {
  1255. Page page = 1;
  1256. ServiceGoodsVo vo = 2;
  1257. repeated string productCodes = 3;
  1258. repeated int64 excludeIds = 4;
  1259. }
  1260. message ServiceGoodsListResp {
  1261. int64 total = 1;
  1262. repeated ServiceGoodsVo list = 2;
  1263. }
  1264. message ServiceGoodsListWithPlansReq {
  1265. Page page = 1;
  1266. ServiceGoodsVo vo = 2;
  1267. repeated string productCodes = 3;
  1268. repeated int64 excludeIds = 4;
  1269. }
  1270. message ServiceGoodsListWithPlansResp {
  1271. int64 total = 1;
  1272. repeated ServiceGoodsWithPlansVo list = 2;
  1273. }
  1274. message ServiceGoodsListWithPlansAndDetailsReq {
  1275. Page page = 1;
  1276. ServiceGoodsVo vo = 2;
  1277. repeated string productCodes = 3;
  1278. repeated int64 excludeIds = 4;
  1279. }
  1280. message ServiceGoodsListWithPlansAndDetailsResp {
  1281. int64 total = 1;
  1282. repeated ServiceGoodsWithPlansAndDetailsVo list = 2;
  1283. }
  1284. // end ServiceGoods
  1285. // ServiceGoodsPlans
  1286. message ServiceGoodsPlansVo {
  1287. int64 id = 1; // ID
  1288. int64 serviceGoodsId = 2; // 商品ID
  1289. int64 servicePlanId = 3; // 套餐ID
  1290. int64 licenseDurationDay = 4; // 套餐持续天数
  1291. int64 licenseDurationMinutes = 5; // 套餐额外持续分钟数
  1292. int64 createTime = 6; // 创建时间
  1293. int64 createAt = 7; // 创建者ID
  1294. int64 updateTime = 8; // 更新时间
  1295. int64 updateAt = 9; // 更新者ID
  1296. }
  1297. message ServiceGoodsPlansGetReq { ServiceGoodsPlansVo vo = 1; }
  1298. message ServiceGoodsPlansGetResp { ServiceGoodsPlansVo vo = 1; }
  1299. message ServiceGoodsPlansAddReq { ServiceGoodsPlansVo vo = 1; }
  1300. message ServiceGoodsPlansAddResp { ServiceGoodsPlansVo vo = 1; }
  1301. message ServiceGoodsPlansUpdateReq { ServiceGoodsPlansVo vo = 1; }
  1302. message ServiceGoodsPlansUpdateResp { ServiceGoodsPlansVo vo = 1; }
  1303. message ServiceGoodsPlansDelReq { repeated int64 ids = 1; }
  1304. message ServiceGoodsPlansListReq {
  1305. Page page = 1;
  1306. ServiceGoodsPlansVo vo = 2;
  1307. repeated int64 serviceGoodsIds = 3;
  1308. repeated int64 servicePlanIds = 4;
  1309. repeated int64 excludeIds = 5;
  1310. }
  1311. message ServiceGoodsPlansListResp {
  1312. int64 total = 1;
  1313. repeated ServiceGoodsPlansVo list = 2;
  1314. }
  1315. // end ServiceGoodsPlans
  1316. // ServiceGoodsChannel
  1317. message ServiceGoodsChannelVo {
  1318. int64 id = 1; // ID
  1319. string productCode = 2; // 产品标识
  1320. string channel = 3; // 渠道标识
  1321. string channelItemId = 4; // 商品唯一ID或商店SKUID
  1322. int64 serviceGoodsId = 5; // 商品ID
  1323. string title = 6; // 自定义标题(对外显示)
  1324. string subTitle = 7; // 自定义副标题(对外显示)
  1325. string introduce = 8; // 自定义简介(对外显示)
  1326. string tag = 9; // 自定义标签内容(对外显示)
  1327. float orgPrice = 10; // 在该渠道下的原价
  1328. float price = 11; // 在该渠道下的现价
  1329. int64 currency = 12; // 价格货币类型
  1330. BoolInt recommend = 13; // 是否推荐商品(默认值) 1推荐 2不推荐
  1331. BoolInt isDefault = 14; // 是否默认商品(默认值) 1默认 2不默认
  1332. string displayPolicyConfig = 15; // 显示策略
  1333. int64 sort = 16; // 排序
  1334. Status status = 17; // 状态 1启用 2禁用
  1335. string remark = 18; // 备注
  1336. int64 createTime = 19; // 创建时间
  1337. int64 createAt = 20; // 创建者ID
  1338. int64 updateTime = 21; // 更新时间
  1339. int64 updateAt = 22; // 更新者ID
  1340. }
  1341. message ServiceGoodsChannelWithGoodsVo {
  1342. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1343. ServiceGoodsVo serviceGoods = 2;
  1344. }
  1345. message ServiceGoodsChannelWithGoodsAndPlansVo {
  1346. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1347. ServiceGoodsVo serviceGoods = 2;
  1348. repeated ServicePlanWithDurationVo servicePlans = 3;
  1349. }
  1350. message ServiceGoodsChannelWithGoodsAndPlansAndDetailsVo {
  1351. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1352. ServiceGoodsVo serviceGoods = 2;
  1353. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 3;
  1354. }
  1355. message ServiceGoodsChannelGetReq { ServiceGoodsChannelVo vo = 1; }
  1356. message ServiceGoodsChannelGetResp { ServiceGoodsChannelVo vo = 1; }
  1357. message ServiceGoodsChannelGetWithGoodsReq { ServiceGoodsChannelVo vo = 1; }
  1358. message ServiceGoodsChannelGetWithGoodsResp {
  1359. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1360. ServiceGoodsVo serviceGoods = 2;
  1361. }
  1362. message ServiceGoodsChannelGetWithGoodsAndPlansReq { ServiceGoodsChannelVo vo = 1; }
  1363. message ServiceGoodsChannelGetWithGoodsAndPlansResp {
  1364. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1365. ServiceGoodsVo serviceGoods = 2;
  1366. repeated ServicePlanWithDurationVo servicePlans = 3;
  1367. }
  1368. message ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsReq { ServiceGoodsChannelVo vo = 1; }
  1369. message ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsResp {
  1370. ServiceGoodsChannelVo serviceGoodsChannel = 1;
  1371. ServiceGoodsVo serviceGoods = 2;
  1372. repeated ServicePlanWithDurationAndDetailsVo servicePlans = 3;
  1373. }
  1374. message ServiceGoodsChannelAddReq { ServiceGoodsChannelVo vo = 1; }
  1375. message ServiceGoodsChannelAddResp { ServiceGoodsChannelVo vo = 1; }
  1376. message ServiceGoodsChannelUpdateReq { ServiceGoodsChannelVo vo = 1; }
  1377. message ServiceGoodsChannelUpdateResp { ServiceGoodsChannelVo vo = 1; }
  1378. message ServiceGoodsChannelDelReq { repeated int64 ids = 1; }
  1379. message ServiceGoodsChannelListReq {
  1380. Page page = 1;
  1381. ServiceGoodsChannelVo vo = 2;
  1382. repeated string productCodes = 3;
  1383. repeated string channels = 4;
  1384. repeated int64 serviceGoodsIds = 5;
  1385. repeated int64 excludeIds = 6;
  1386. }
  1387. message ServiceGoodsChannelListResp {
  1388. int64 total = 1;
  1389. repeated ServiceGoodsChannelVo list = 2;
  1390. }
  1391. message ServiceGoodsChannelListWithGoodsReq {
  1392. Page page = 1;
  1393. ServiceGoodsChannelVo vo = 2;
  1394. repeated string productCodes = 3;
  1395. repeated string channels = 4;
  1396. repeated int64 serviceGoodsIds = 5;
  1397. repeated int64 excludeIds = 6;
  1398. }
  1399. message ServiceGoodsChannelListWithGoodsResp {
  1400. int64 total = 1;
  1401. repeated ServiceGoodsChannelWithGoodsVo list = 2;
  1402. }
  1403. message ServiceGoodsChannelListWithGoodsAndPlansReq {
  1404. Page page = 1;
  1405. ServiceGoodsChannelVo vo = 2;
  1406. repeated string productCodes = 3;
  1407. repeated string channels = 4;
  1408. repeated int64 serviceGoodsIds = 5;
  1409. repeated int64 excludeIds = 6;
  1410. }
  1411. message ServiceGoodsChannelListWithGoodsAndPlansResp {
  1412. int64 total = 1;
  1413. repeated ServiceGoodsChannelWithGoodsAndPlansVo list = 2;
  1414. }
  1415. message ServiceGoodsChannelListWithGoodsAndPlansAndDetailsReq {
  1416. Page page = 1;
  1417. ServiceGoodsChannelVo vo = 2;
  1418. repeated string productCodes = 3;
  1419. repeated string channels = 4;
  1420. repeated int64 serviceGoodsIds = 5;
  1421. repeated int64 excludeIds = 6;
  1422. }
  1423. message ServiceGoodsChannelListWithGoodsAndPlansAndDetailsResp {
  1424. int64 total = 1;
  1425. repeated ServiceGoodsChannelWithGoodsAndPlansAndDetailsVo list = 2;
  1426. }
  1427. // end ServiceGoodsChannel
  1428. message MessagePushVo {
  1429. int64 id = 1;
  1430. string status = 2;
  1431. int64 operator = 3;
  1432. string module = 4;
  1433. string title = 5;
  1434. string message = 6;
  1435. string imgUrl = 7;
  1436. string data = 8;
  1437. string productCode = 9;
  1438. int64 areaParam = 10;
  1439. repeated string topics = 11;
  1440. repeated string firebaseTokens = 12;
  1441. int64 publishTime = 13;
  1442. int64 createTime = 14;
  1443. int64 updateTime = 15;
  1444. string pushType = 16;
  1445. int64 publishCount = 17;
  1446. string exData = 18;
  1447. }
  1448. message MessagePushListReq {
  1449. Page page = 1;
  1450. MessagePushVo vo = 2;
  1451. }
  1452. message MessagePushListResp {
  1453. int64 total = 1;
  1454. repeated MessagePushVo list = 2;
  1455. }
  1456. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  1457. service GoPmpClient {
  1458. rpc Ping(Request) returns (Response);
  1459. // GlobalParamVo Model
  1460. // GlobalParamAdd
  1461. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  1462. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  1463. rpc GlobalParamDel(Ids) returns (Empty);
  1464. rpc GlobalParamGet(GlobalParamVo) returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  1465. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  1466. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  1467. // ProductVo Model
  1468. // ProductAdd
  1469. rpc ProductAdd(ProductVo) returns (ProductVo);
  1470. rpc ProductUpdate(ProductVo) returns (ProductVo);
  1471. rpc ProductDel(Ids) returns (Empty);
  1472. rpc ProductGet(ProductVo) returns (ProductVo);
  1473. rpc ProductList(ProductListReq) returns (ProductListResp);
  1474. rpc ProductAll(Request) returns (ProductListResp);
  1475. // ProductParamVo Model
  1476. // ProductParamAdd
  1477. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  1478. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  1479. rpc ProductParamDel(Ids) returns (Empty);
  1480. rpc ProductParamGet(ProductParamVo) returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  1481. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  1482. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  1483. // ProductAction 产品行为配置
  1484. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  1485. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  1486. rpc ProductActionDel(Ids) returns (Empty);
  1487. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  1488. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  1489. // ProductActionGroup 产品行为分组
  1490. rpc ProductActionGroupAdd(ProductActionGroupVo) returns (ProductActionGroupVo);
  1491. rpc ProductActionGroupUpdate(ProductActionGroupVo) returns (ProductActionGroupVo);
  1492. rpc ProductActionGroupDel(Ids) returns (Empty);
  1493. rpc ProductActionGroupGet(ProductActionGroupReq) returns (ProductActionGroupVo);
  1494. rpc ProductActionGroupList(ProductActionGroupListReq) returns (ProductActionGroupListResp);
  1495. rpc ProductActionGroupDisable(ProductActionGroupDisableReq) returns (Empty);
  1496. rpc ProductActionGroupEnable(ProductActionGroupEnableReq) returns (Empty);
  1497. // ProductActionPolicyGroup 产品行为策略分组
  1498. rpc ProductActionPolicyGroupAdd(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1499. rpc ProductActionPolicyGroupUpdate(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1500. rpc ProductActionPolicyGroupDel(Ids) returns (Empty);
  1501. rpc ProductActionPolicyGroupGet(ProductActionPolicyGroupReq) returns (ProductActionPolicyGroupVo);
  1502. rpc ProductActionPolicyGroupList(ProductActionPolicyGroupListReq) returns (ProductActionPolicyGroupListResp);
  1503. rpc ProductActionPolicyGroupDisable(ProductActionPolicyGroupDisableReq) returns (Empty);
  1504. rpc ProductActionPolicyGroupEnable(ProductActionPolicyGroupEnableReq) returns (Empty);
  1505. // ProductActionType 产品行为类型
  1506. rpc ProductActionTypeAdd(ProductActionTypeVo) returns (ProductActionTypeVo);
  1507. rpc ProductActionTypeUpdate(ProductActionTypeVo) returns (ProductActionTypeVo);
  1508. rpc ProductActionTypeDel(Ids) returns (Empty);
  1509. rpc ProductActionTypeGet(ProductActionTypeReq) returns (ProductActionTypeVo);
  1510. rpc ProductActionTypeList(ProductActionTypeListReq) returns (ProductActionTypeListResp);
  1511. // AreaParamVo Model
  1512. // AreaParamAdd
  1513. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  1514. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  1515. rpc AreaParamDel(Ids) returns (Empty);
  1516. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  1517. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  1518. // NationalLanguage Model
  1519. // NationalLanguageAdd
  1520. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  1521. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  1522. rpc NationalLanguageDel(Ids) returns (Empty);
  1523. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  1524. rpc NationalLanguageList(NationalLanguageListReq) returns (NationalLanguageListResp);
  1525. // Tip Model
  1526. // TipAdd
  1527. rpc TipAdd(TipVo) returns (TipVo);
  1528. rpc TipUpdate(TipVo) returns (TipVo);
  1529. rpc TipDel(Ids) returns (Empty);
  1530. rpc TipGet(TipGetReq) returns (TipVo);
  1531. rpc TipList(TipListReq) returns (TipListResp);
  1532. // Dict Model
  1533. // DictAdd
  1534. rpc DictAdd(DictVo) returns (DictVo);
  1535. rpc DictUpdate(DictVo) returns (DictVo);
  1536. rpc DictDel(Ids) returns (Empty);
  1537. rpc DictGet(DictGetReq) returns (DictVo);
  1538. rpc DictList(DictListReq) returns (DictListResp);
  1539. // // UpgradeRes 热更新代码资源管理
  1540. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  1541. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  1542. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  1543. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  1544. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  1545. // // UpgradePkg app 包更新管理
  1546. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  1547. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  1548. // rpc UpgradePkgDel(Ids) returns (Empty);
  1549. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  1550. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  1551. // // UpgradeResConfig Model
  1552. // // UpgradeResConfigAdd
  1553. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新
  1554. // rpc UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo);
  1555. // rpc UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty);
  1556. // rpc UpgradeResConfigDel(Ids) returns (Empty);
  1557. // rpc UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  1558. // rpc UpgradeResConfigList(UpgradeResConfigListReq) returns (UpgradeResConfigListResp);
  1559. // UpgradePkgPlan Model
  1560. // UpgradePkgPlanAdd
  1561. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1562. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1563. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  1564. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1565. rpc UpgradePkgPlanList(UpgradePkgPlanListReq) returns (UpgradePkgPlanListResp);
  1566. // UpgradePkgPlanDetail Model
  1567. // UpgradePkgPlanDetailAdd
  1568. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1569. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1570. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  1571. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1572. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq) returns (UpgradePkgPlanDetailListResp);
  1573. // UpgradeResPlan Model
  1574. // UpgradeResPlanAdd
  1575. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1576. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1577. rpc UpgradeResPlanDel(Ids) returns (Empty);
  1578. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1579. rpc UpgradeResPlanList(UpgradeResPlanListReq) returns (UpgradeResPlanListResp);
  1580. // UpgradeResPlanDetail Model
  1581. // UpgradeResPlanDetailAdd
  1582. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1583. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1584. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  1585. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1586. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq) returns (UpgradeResPlanDetailListResp);
  1587. // AdPlan Model
  1588. // AdPlanAdd
  1589. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  1590. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  1591. rpc AdPlanDel(Ids) returns (Empty);
  1592. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  1593. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  1594. // AdPlanDetail Model
  1595. // AdPlanDetailAdd
  1596. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  1597. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  1598. rpc AdPlanDetailDel(Ids) returns (Empty);
  1599. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  1600. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  1601. // AdGlobalConfig Model
  1602. // AdGlobalConfigGet
  1603. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  1604. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  1605. // JobBatch Model
  1606. // JobBatchAdd
  1607. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  1608. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  1609. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  1610. rpc JobBatchDel(Ids) returns (Empty);
  1611. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  1612. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  1613. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  1614. rpc JobBatchListWithTasks(JobBatchListReq) returns (JobBatchListWithTasksResp);
  1615. // JobTasks Model
  1616. // JobTasksAdd
  1617. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  1618. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  1619. rpc JobTasksDel(Ids) returns (Empty);
  1620. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  1621. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  1622. // DeployConfig Model
  1623. // DeployConfigAdd
  1624. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  1625. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  1626. rpc DeployConfigDel(Ids) returns (Empty);
  1627. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  1628. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  1629. // OperationLog Model
  1630. // OperationLogAdd
  1631. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  1632. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  1633. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  1634. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  1635. // AnnouncePlan Model
  1636. // AnnouncePlanAdd
  1637. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  1638. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  1639. rpc AnnouncePlanDel(Ids) returns (Empty);
  1640. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  1641. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  1642. // AnnouncePlanDetail Model
  1643. // AnnouncePlanDetailAdd
  1644. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1645. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1646. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  1647. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1648. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq) returns (AnnouncePlanDetailListResp);
  1649. // ServiceTypes Model
  1650. // ServiceTypesAdd
  1651. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesAddResp);
  1652. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesUpdateResp);
  1653. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  1654. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesGetResp);
  1655. rpc ServiceTypesGetWithValue(ServiceTypesGetWithValueReq) returns (ServiceTypesGetWithValueResp);
  1656. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  1657. rpc ServiceTypesListWithValue(ServiceTypesListWithValueReq) returns (ServiceTypesListWithValueResp);
  1658. // ServicePlan Model
  1659. // ServicePlanAdd
  1660. rpc ServicePlanAdd(ServicePlanAddReq) returns (ServicePlanAddResp);
  1661. rpc ServicePlanAddWithDetails(ServicePlanAddWithDetailsReq) returns (ServicePlanAddWithDetailsResp);
  1662. rpc ServicePlanUpdate(ServicePlanUpdateReq) returns (ServicePlanUpdateResp);
  1663. rpc ServicePlanUpdateWithDetails(ServicePlanUpdateWithDetailsReq) returns (ServicePlanUpdateWithDetailsResp);
  1664. rpc ServicePlanDel(ServicePlanDelReq) returns (Empty);
  1665. rpc ServicePlanGet(ServicePlanGetReq) returns (ServicePlanGetResp);
  1666. rpc ServicePlanGetWithDetails(ServicePlanGetWithDetailsReq) returns (ServicePlanGetWithDetailsResp);
  1667. rpc ServicePlanList(ServicePlanListReq) returns (ServicePlanListResp);
  1668. rpc ServicePlanListWithDetails(ServicePlanListWithDetailsReq) returns (ServicePlanListWithDetailsResp);
  1669. // ServicePlanTypes Model
  1670. // ServicePlanTypesAdd
  1671. rpc ServicePlanTypesAdd(ServicePlanTypesAddReq) returns (ServicePlanTypesAddResp);
  1672. rpc ServicePlanTypesUpdate(ServicePlanTypesUpdateReq) returns (ServicePlanTypesUpdateResp);
  1673. rpc ServicePlanTypesDel(ServicePlanTypesDelReq) returns (Empty);
  1674. rpc ServicePlanTypesGet(ServicePlanTypesGetReq) returns (ServicePlanTypesGetResp);
  1675. rpc ServicePlanTypesList(ServicePlanTypesListReq) returns (ServicePlanTypesListResp);
  1676. // ServiceGoods Model
  1677. // ServiceGoodsAdd
  1678. rpc ServiceGoodsAdd(ServiceGoodsAddReq) returns (ServiceGoodsAddResp);
  1679. rpc ServiceGoodsAddWithPlans(ServiceGoodsAddWithPlansReq) returns (ServiceGoodsAddWithPlansResp);
  1680. rpc ServiceGoodsAddWithPlansAndDetails(ServiceGoodsAddWithPlansAndDetailsReq) returns (ServiceGoodsAddWithPlansAndDetailsResp);
  1681. rpc ServiceGoodsUpdate(ServiceGoodsUpdateReq) returns (ServiceGoodsUpdateResp);
  1682. rpc ServiceGoodsUpdateWithPlans(ServiceGoodsUpdateWithPlansReq) returns (ServiceGoodsUpdateWithPlansResp);
  1683. rpc ServiceGoodsUpdateWithPlansAndDetails(ServiceGoodsUpdateWithPlansAndDetailsReq) returns (ServiceGoodsUpdateWithPlansAndDetailsResp);
  1684. rpc ServiceGoodsDel(ServiceGoodsDelReq) returns (Empty);
  1685. rpc ServiceGoodsGet(ServiceGoodsGetReq) returns (ServiceGoodsGetResp);
  1686. rpc ServiceGoodsGetWithPlans(ServiceGoodsGetWithPlansReq) returns (ServiceGoodsGetWithPlansResp);
  1687. rpc ServiceGoodsGetWithPlansAndDetails(ServiceGoodsGetWithPlansAndDetailsReq) returns (ServiceGoodsGetWithPlansAndDetailsResp);
  1688. rpc ServiceGoodsList(ServiceGoodsListReq) returns (ServiceGoodsListResp);
  1689. rpc ServiceGoodsListWithPlans(ServiceGoodsListWithPlansReq) returns (ServiceGoodsListWithPlansResp);
  1690. rpc ServiceGoodsListWithPlansAndDetails(ServiceGoodsListWithPlansAndDetailsReq) returns (ServiceGoodsListWithPlansAndDetailsResp);
  1691. // ServiceGoodsPlans Model
  1692. // ServiceGoodsPlansAdd
  1693. rpc ServiceGoodsPlansAdd(ServiceGoodsPlansAddReq) returns (ServiceGoodsPlansAddResp);
  1694. rpc ServiceGoodsPlansUpdate(ServiceGoodsPlansUpdateReq) returns (ServiceGoodsPlansUpdateResp);
  1695. rpc ServiceGoodsPlansDel(ServiceGoodsPlansDelReq) returns (Empty);
  1696. rpc ServiceGoodsPlansGet(ServiceGoodsPlansGetReq) returns (ServiceGoodsPlansGetResp);
  1697. rpc ServiceGoodsPlansList(ServiceGoodsPlansListReq) returns (ServiceGoodsPlansListResp);
  1698. // ServiceGoodsChannel Model
  1699. // ServiceGoodsChannelAdd
  1700. rpc ServiceGoodsChannelAdd(ServiceGoodsChannelAddReq) returns (ServiceGoodsChannelAddResp);
  1701. rpc ServiceGoodsChannelUpdate(ServiceGoodsChannelUpdateReq) returns (ServiceGoodsChannelUpdateResp);
  1702. rpc ServiceGoodsChannelDel(ServiceGoodsChannelDelReq) returns (Empty);
  1703. rpc ServiceGoodsChannelGet(ServiceGoodsChannelGetReq) returns (ServiceGoodsChannelGetResp);
  1704. rpc ServiceGoodsChannelGetWithGoods(ServiceGoodsChannelGetWithGoodsReq) returns (ServiceGoodsChannelGetWithGoodsResp);
  1705. rpc ServiceGoodsChannelGetWithGoodsAndPlans(ServiceGoodsChannelGetWithGoodsAndPlansReq) returns (ServiceGoodsChannelGetWithGoodsAndPlansResp);
  1706. rpc ServiceGoodsChannelGetWithGoodsAndPlansAndDetails(ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsReq) returns (ServiceGoodsChannelGetWithGoodsAndPlansAndDetailsResp);
  1707. rpc ServiceGoodsChannelList(ServiceGoodsChannelListReq) returns (ServiceGoodsChannelListResp);
  1708. rpc ServiceGoodsChannelListWithGoods(ServiceGoodsChannelListWithGoodsReq) returns (ServiceGoodsChannelListWithGoodsResp);
  1709. rpc ServiceGoodsChannelListWithGoodsAndPlans(ServiceGoodsChannelListWithGoodsAndPlansReq) returns (ServiceGoodsChannelListWithGoodsAndPlansResp);
  1710. rpc ServiceGoodsChannelListWithGoodsAndPlansAndDetails(ServiceGoodsChannelListWithGoodsAndPlansAndDetailsReq) returns (ServiceGoodsChannelListWithGoodsAndPlansAndDetailsResp);
  1711. // MessagePush Model
  1712. // MessagePushAdd
  1713. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  1714. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  1715. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  1716. }
  1717. message ShortDramaEpisodeVo {
  1718. int64 id = 1;
  1719. int64 dramaId = 2;
  1720. int64 type = 3;
  1721. string name = 4;
  1722. int64 sort = 5;
  1723. string videos = 6;
  1724. string subtitles = 7;
  1725. Status status = 8;
  1726. int64 createTime = 9;
  1727. int64 updateTime = 10;
  1728. string danmakuUrl = 11;
  1729. }
  1730. message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
  1731. message ShortDramaEpisodeListReq {
  1732. Page page = 1;
  1733. ShortDramaEpisodeVo vo = 2;
  1734. repeated int64 dramaIds = 3;
  1735. }
  1736. message ShortDramaEpisodeListResp {
  1737. int64 total = 1;
  1738. repeated ShortDramaEpisodeVo list = 2;
  1739. }
  1740. message ShortDramaEpisodeBatchAddReq {
  1741. int64 dramaId = 1;
  1742. repeated ShortDramaEpisodeVo episodes = 2;
  1743. }
  1744. message ShortDramaEpisodeBatchRefreshUpdateTimeReq { int64 dramaId = 1; }
  1745. message ShortDramaLanguageVo {
  1746. int64 id = 1;
  1747. int64 dramaId = 2;
  1748. string lang = 3;
  1749. string title = 4;
  1750. string description = 5;
  1751. string covers = 6;
  1752. string coverDominantColor = 7;
  1753. int64 createTime = 8;
  1754. int64 updateTime = 9;
  1755. }
  1756. message ShortDramaVo {
  1757. int64 id = 1;
  1758. string productCodes = 2;
  1759. string title = 3;
  1760. string description = 4;
  1761. string covers = 5;
  1762. string coverDominantColor = 6;
  1763. string type = 7;
  1764. string tags = 8;
  1765. string releaseRegions = 9;
  1766. int64 releaseDate = 10;
  1767. int64 totalEpisodes = 11;
  1768. int64 completedStatus = 12;
  1769. string copyrightSupplier = 13;
  1770. string copyrightDoc = 14;
  1771. int64 copyrightPurchaseDate = 15;
  1772. int64 copyrightExpireDate = 16;
  1773. int64 status = 17;
  1774. int64 createTime = 18;
  1775. int64 updateTime = 19;
  1776. string ghostCutId = 20;
  1777. int64 recommend = 21;
  1778. string otherConfig = 22;
  1779. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  1780. int64 mainEpisodeCount = 24;
  1781. int64 trailerEpisodeCount = 25;
  1782. int64 copyrightId = 26;
  1783. int64 creator = 27;
  1784. int64 modifier = 28;
  1785. string operationTags = 29;
  1786. string extraInfo = 30;
  1787. int64 schedulePublishTime = 31;
  1788. int64 publishTime = 32;
  1789. }
  1790. message ShortDramaGetReq {
  1791. ShortDramaVo vo = 1;
  1792. string productCode = 2;
  1793. string countryCode = 3;
  1794. string lang = 4;
  1795. }
  1796. message ShortDramaListReq {
  1797. Page page = 1;
  1798. ShortDramaVo vo = 2;
  1799. repeated int64 excludeIds = 3;
  1800. string productCode = 4;
  1801. string countryCode = 5;
  1802. string lang = 6;
  1803. string publishTimeStart = 7;
  1804. string publishTimeEnd = 8;
  1805. repeated int64 statusList = 9;
  1806. }
  1807. message ShortDramaListResp {
  1808. int64 total = 1;
  1809. repeated ShortDramaVo list = 2;
  1810. }
  1811. message ShortDramaLanguageListReq {
  1812. Page page = 1;
  1813. ShortDramaLanguageVo vo = 2;
  1814. }
  1815. message ShortDramaLanguageListResp {
  1816. int64 total = 1;
  1817. repeated ShortDramaLanguageVo list = 2;
  1818. }
  1819. message ShortDramaEpisodeCountVo {
  1820. int64 dramaId = 1;
  1821. int64 episodeCount = 2;
  1822. }
  1823. message ShortDramaEpisodeCountReq {
  1824. Page page = 1;
  1825. Status status = 2;
  1826. int64 type = 3;
  1827. repeated int64 dramaIds = 4;
  1828. }
  1829. message ShortDramaEpisodeCountResp {
  1830. int64 total = 1;
  1831. repeated ShortDramaEpisodeCountVo list = 2;
  1832. }
  1833. message ShortDramaCheckNameReq {
  1834. string title = 1; // 短剧名称
  1835. int64 id = 2; // 编辑时排除当前短剧ID
  1836. }
  1837. message ShortDramaCheckNameResp {
  1838. bool exists = 1; // 是否存在
  1839. }
  1840. message ShortDramaUpdateModifierReq {
  1841. int64 id = 1;
  1842. int64 modifier = 2;
  1843. }
  1844. message ShortDramaUpdateReleaseRegionsReq {
  1845. int64 id = 1;
  1846. string releaseRegions = 2;
  1847. }
  1848. message ShortDramaCopyrightInfoVo {
  1849. int64 id = 1;
  1850. int64 copyrightId = 2;
  1851. string releaseRegions = 3;
  1852. }
  1853. message ShortDramaFindIdsWithCopyrightResp {
  1854. repeated ShortDramaCopyrightInfoVo list = 1;
  1855. }
  1856. message SetTotalStatsReq {
  1857. int64 dramaId = 1;
  1858. string country = 2;
  1859. int64 todayPlayCount = 3;
  1860. int64 weeklyPlayCount = 4;
  1861. int64 monthlyPlayCount = 5;
  1862. }
  1863. message ShortDramaStatsPlaysTotalVo {
  1864. int64 id = 1;
  1865. int64 dramaId = 2;
  1866. string country = 3;
  1867. int64 todayPlayCount = 4;
  1868. int64 weeklyPlayCount = 5;
  1869. int64 monthlyPlayCount = 6;
  1870. int64 createTime = 7;
  1871. int64 updateTime = 8;
  1872. }
  1873. message ShortDramaStatsPlaysTotalListReq {
  1874. Page page = 1;
  1875. string country = 2; // 国家代码
  1876. }
  1877. message ShortDramaStatsPlaysTotalListResp {
  1878. int64 total = 1;
  1879. repeated ShortDramaStatsPlaysTotalVo list = 2;
  1880. }
  1881. message FindSchedulePublishListReq { int64 status = 1; }
  1882. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  1883. message PublishScheduleDramaReq {
  1884. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  1885. int64 targetStatus = 2; // 目标状态
  1886. }
  1887. service GoShortDramaClient {
  1888. // ShortDrama
  1889. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  1890. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  1891. rpc ShortDramaDel(Ids) returns (Empty);
  1892. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  1893. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  1894. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  1895. rpc ShortDramaUpdateReleaseRegions(ShortDramaUpdateReleaseRegionsReq)
  1896. returns (Empty);
  1897. rpc ShortDramaFindIdsWithCopyright(Empty)
  1898. returns (ShortDramaFindIdsWithCopyrightResp);
  1899. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  1900. returns (FindSchedulePublishListResp);
  1901. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  1902. // ShortDramaLanguage
  1903. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  1904. returns (ShortDramaLanguageListResp);
  1905. // ShortDramaEpisode
  1906. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  1907. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  1908. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  1909. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  1910. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  1911. returns (ShortDramaEpisodeVo);
  1912. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  1913. returns (ShortDramaEpisodeListResp);
  1914. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  1915. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  1916. // ShortDramaEpisodeCount
  1917. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  1918. returns (ShortDramaEpisodeCountResp);
  1919. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  1920. returns (ShortDramaCheckNameResp);
  1921. // ShortDramaStats
  1922. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  1923. // ShortDramaStatsPlaysTotal
  1924. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  1925. returns (ShortDramaStatsPlaysTotalListResp);
  1926. }
  1927. // 根据需要增加状态
  1928. message SysUserVo {
  1929. int64 id = 1; // ID
  1930. string username = 2; // 登录名
  1931. string password = 3; // 登录密码
  1932. string nickname = 4; // 昵称
  1933. string avatar = 5; // 头像
  1934. string email = 6; // 邮箱
  1935. string phone = 7; // 手机号
  1936. string remark = 8; // 备注
  1937. BoolInt isSuperAdmin = 9; // 是否为超级管理员 1是 2否
  1938. int64 permsLevel = 10; // 权限等级 值越大 权限越小
  1939. Status status = 11; // 状态 1正常 2冻结
  1940. int64 createTime = 12; // 创建时间
  1941. int64 updateTime = 13; // 修改时间
  1942. }
  1943. message SysRoleVo {
  1944. int64 id = 1; // ID
  1945. string productCode = 2; // 所属产品
  1946. string name = 3; // 角色名
  1947. string remark = 4; // 备注
  1948. Status status = 5; // 状态 1启用 2禁用
  1949. int64 createTime = 6; // 创建时间
  1950. int64 updateTime = 7; // 修改时间
  1951. int64 permsLevel = 8; // 权限等级 值越大 权限越小
  1952. }
  1953. message SysPermVo {
  1954. int64 id = 1; // ID
  1955. string name = 2; // 权限名
  1956. string code = 3; // 权限code
  1957. string remark = 4; // 备注
  1958. Status status = 5; // 状态 1启用 2禁用
  1959. int64 createTime = 6; // 创建时间
  1960. int64 updateTime = 7; // 修改时间
  1961. }
  1962. message SysUserRoleVo {
  1963. int64 id = 1; // ID
  1964. int64 userId = 2; // 用户ID
  1965. int64 roleId = 3; // 角色ID
  1966. int64 createTime = 4; // 创建时间
  1967. int64 updateTime = 5; // 修改时间
  1968. }
  1969. message SysRolePermVo {
  1970. int64 id = 1; // ID
  1971. int64 roleId = 2; // 角色ID
  1972. int64 permId = 3; // 权限ID
  1973. int64 createTime = 4; // 创建时间
  1974. int64 updateTime = 5; // 修改时间
  1975. }
  1976. message SysUserPermVo {
  1977. int64 id = 1; // ID
  1978. int64 userId = 2; // 用户ID
  1979. int64 permId = 3; // 权限ID
  1980. string effect = 4; // 权限控制策略 ALLOW允许 DENY拒绝
  1981. int64 createTime = 5; // 创建时间
  1982. int64 updateTime = 6; // 修改时间
  1983. }
  1984. message SysPermRule {
  1985. int64 permId = 1;
  1986. string effect = 2; // ALLOW允许 DENY拒绝
  1987. }
  1988. message SysUserWithRoleIdsAndPermRules {
  1989. SysUserVo user = 1; // 用户信息
  1990. repeated int64 roleIds = 2; // 角色
  1991. repeated SysPermRule permRules = 3; // 权限
  1992. }
  1993. message SysUserWithRolesAndPerms {
  1994. SysUserVo user = 1; // 用户信息
  1995. repeated SysRoleVo roles = 2; // 角色
  1996. repeated SysPermVo perms = 3; // 权限
  1997. }
  1998. message SysUserGetReq { SysUserVo vo = 1; }
  1999. message SysUserListReq {
  2000. Page page = 1;
  2001. SysUserVo vo = 2;
  2002. repeated int64 excludeIds = 3; // 排除的ID
  2003. }
  2004. message SysUserListResp {
  2005. int64 total = 1;
  2006. repeated SysUserVo list = 2;
  2007. }
  2008. message SysUserListWithRolesAndPermsResp {
  2009. int64 total = 1;
  2010. repeated SysUserWithRolesAndPerms list = 2;
  2011. }
  2012. message SysRoleWithPermIds {
  2013. SysRoleVo role = 1;
  2014. repeated int64 permIds = 2;
  2015. }
  2016. message SysRoleWithPerms {
  2017. SysRoleVo role = 1;
  2018. repeated SysPermVo perms = 2;
  2019. }
  2020. message SysRoleGetReq { SysRoleVo vo = 1; }
  2021. message SysRoleListReq {
  2022. Page page = 1;
  2023. SysRoleVo vo = 2;
  2024. repeated string productCodes = 3; // 所属产品
  2025. repeated int64 excludeIds = 4; // 排除的ID
  2026. }
  2027. message SysRoleListResp {
  2028. int64 total = 1;
  2029. repeated SysRoleVo list = 2;
  2030. }
  2031. message SysRoleListWithPermsResp {
  2032. int64 total = 1;
  2033. repeated SysRoleWithPerms list = 2;
  2034. }
  2035. message SysPermGetReq { SysPermVo vo = 1; }
  2036. message SysPermListReq {
  2037. Page page = 1;
  2038. SysPermVo vo = 2;
  2039. repeated int64 excludeIds = 3; // 排除的ID
  2040. }
  2041. message SysPermListResp {
  2042. int64 total = 1;
  2043. repeated SysPermVo list = 2;
  2044. }
  2045. message SysUserRoleGetReq { SysUserRoleVo vo = 1; }
  2046. message SysUserRoleListReq {
  2047. Page page = 1;
  2048. SysUserRoleVo vo = 2;
  2049. repeated int64 excludeIds = 3; // 排除的ID
  2050. }
  2051. message SysUserRoleListResp {
  2052. int64 total = 1;
  2053. repeated SysUserRoleVo list = 2;
  2054. }
  2055. message SysRolePermGetReq { SysRolePermVo vo = 1; }
  2056. message SysRolePermListReq {
  2057. Page page = 1;
  2058. SysRolePermVo vo = 2;
  2059. repeated int64 excludeIds = 3; // 排除的ID
  2060. }
  2061. message SysRolePermListResp {
  2062. int64 total = 1;
  2063. repeated SysRolePermVo list = 2;
  2064. }
  2065. message SysUserPermGetReq { SysUserPermVo vo = 1; }
  2066. message SysUserPermListReq {
  2067. Page page = 1;
  2068. SysUserPermVo vo = 2;
  2069. repeated int64 excludeIds = 3; // 排除的ID
  2070. }
  2071. message SysUserPermListResp {
  2072. int64 total = 1;
  2073. repeated SysUserPermVo list = 2;
  2074. }
  2075. service GoSysClient {
  2076. rpc Ping(Request) returns (Response);
  2077. // 用户管理
  2078. rpc SysUserAdd(SysUserVo) returns (SysUserVo);
  2079. rpc SysUserUpdate(SysUserVo) returns (SysUserVo);
  2080. rpc SysUserDelete(Ids) returns (Empty);
  2081. rpc SysUserGet(SysUserGetReq) returns (SysUserVo);
  2082. rpc SysUserList(SysUserListReq) returns (SysUserListResp);
  2083. rpc SysUserAddWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  2084. rpc SysUserUpdateWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  2085. rpc SysUserGetWithRolesAndPerms(SysUserGetReq) returns (SysUserWithRolesAndPerms);
  2086. rpc SysUserListWithRolesAndPerms(SysUserListReq) returns (SysUserListWithRolesAndPermsResp);
  2087. // 角色管理
  2088. rpc SysRoleAdd(SysRoleVo) returns (SysRoleVo);
  2089. rpc SysRoleUpdate(SysRoleVo) returns (SysRoleVo);
  2090. rpc SysRoleDelete(Ids) returns (Empty);
  2091. rpc SysRoleGet(SysRoleGetReq) returns (SysRoleVo);
  2092. rpc SysRoleList(SysRoleListReq) returns (SysRoleListResp);
  2093. rpc SysRoleAddWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  2094. rpc SysRoleUpdateWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  2095. rpc SysRoleGetWithPerms(SysRoleGetReq) returns (SysRoleWithPerms);
  2096. rpc SysRoleListWithPerms(SysRoleListReq) returns (SysRoleListWithPermsResp);
  2097. // 权限管理
  2098. rpc SysPermAdd(SysPermVo) returns (SysPermVo);
  2099. rpc SysPermUpdate(SysPermVo) returns (SysPermVo);
  2100. rpc SysPermDelete(Ids) returns (Empty);
  2101. rpc SysPermGet(SysPermGetReq) returns (SysPermVo);
  2102. rpc SysPermList(SysPermListReq) returns (SysPermListResp);
  2103. // 用户角色管理
  2104. rpc SysUserRoleAdd(SysUserRoleVo) returns (SysUserRoleVo);
  2105. rpc SysUserRoleUpdate(SysUserRoleVo) returns (SysUserRoleVo);
  2106. rpc SysUserRoleDelete(Ids) returns (Empty);
  2107. rpc SysUserRoleGet(SysUserRoleGetReq) returns (SysUserRoleVo);
  2108. rpc SysUserRoleList(SysUserRoleListReq) returns (SysUserRoleListResp);
  2109. // 角色权限管理
  2110. rpc SysRolePermAdd(SysRolePermVo) returns (SysRolePermVo);
  2111. rpc SysRolePermUpdate(SysRolePermVo) returns (SysRolePermVo);
  2112. rpc SysRolePermDelete(Ids) returns (Empty);
  2113. rpc SysRolePermGet(SysRolePermGetReq) returns (SysRolePermVo);
  2114. rpc SysRolePermList(SysRolePermListReq) returns (SysRolePermListResp);
  2115. // 用户权限管理
  2116. rpc SysUserPermAdd(SysUserPermVo) returns (SysUserPermVo);
  2117. rpc SysUserPermUpdate(SysUserPermVo) returns (SysUserPermVo);
  2118. rpc SysUserPermDelete(Ids) returns (Empty);
  2119. rpc SysUserPermGet(SysUserPermGetReq) returns (SysUserPermVo);
  2120. rpc SysUserPermList(SysUserPermListReq) returns (SysUserPermListResp);
  2121. }
  2122. // 白名单表
  2123. message UserWhiteVo {
  2124. int64 id = 1; // 主键ID
  2125. string userIdentifier = 2; // 用户
  2126. UserType userType = 3; // 用户类型 1 设备 2 账号
  2127. Status status = 4; // 状态
  2128. int64 createTime = 5; // 创建时间
  2129. int64 updateTime = 6; // 更新时间
  2130. }
  2131. // 测试用户表
  2132. message UserTestVo {
  2133. int64 id = 1; // 主键ID
  2134. string userIdentifier = 2; // 用户
  2135. UserType userType = 3; // 用户类型 1 设备 2 账号
  2136. string area = 4; // 指定地区
  2137. string apis = 5; // 指定接口
  2138. string routers = 6; // 指定路由
  2139. Status status = 7; // 状态
  2140. int64 createTime = 8; // 创建时间
  2141. int64 updateTime = 9; // 更新时间
  2142. }
  2143. // Account
  2144. message AccountVo {
  2145. int64 id = 1; // 主键ID
  2146. string userUuid = 2; // 用户UUID
  2147. string productCode = 3; // 产品ID
  2148. string username = 4; // 用户名
  2149. string password = 5; // 密码
  2150. string accountKey = 6; // 账号KEY
  2151. string accountPassword = 7; // 账号密码
  2152. int64 accountType = 8; // 账号类型
  2153. int64 registMode = 9; // 注册方式
  2154. string provider = 10; // 授权登录标识
  2155. BoolInt whitelistUser = 11; // 白名单用户
  2156. BoolInt activated = 12; // 是否激活
  2157. string config = 13; // 配置
  2158. Status status = 14; // 状态
  2159. string avatar = 15; // 头像
  2160. string area = 16; // 指定地区
  2161. string remark = 17; // 备注
  2162. string deviceId = 18; // 设备ID
  2163. string platform = 19; // 平台
  2164. string channel = 20; // 渠道
  2165. string deviceModel = 21; // 设备型号
  2166. string deviceOs = 22; // 设备系统
  2167. int64 timezone = 23; // 时区
  2168. string lang = 24; // 语言
  2169. string ip = 25; // IP
  2170. string country = 26; // 国家
  2171. string province = 27; // 省份
  2172. string city = 28; // 城市
  2173. string isp = 29; // ISP
  2174. int64 appVer = 30; // 产品版本号
  2175. int64 appRuntimeCode = 31; // 产品运行码
  2176. int64 createTime = 32; // 创建时间
  2177. int64 updateTime = 33; // 更新时间
  2178. string version = 34; // 数据版本
  2179. string sessionId = 35; // 登录凭证
  2180. int64 sessionCreateTime = 36; // 凭证创建时间
  2181. }
  2182. message AccountListReq {
  2183. Page page = 1;
  2184. AccountVo vo = 2;
  2185. repeated string productCodes = 3; // 产品code
  2186. repeated int64 excludeIds = 4; // 排除的ID
  2187. }
  2188. message AccountListResp {
  2189. int64 total = 1;
  2190. repeated AccountVo list = 2;
  2191. }
  2192. // AccountDevice
  2193. message AccountDeviceVo {
  2194. int64 id = 1;
  2195. int64 accountId = 2; // 用户ID
  2196. int64 deviceId = 3; // 设备ID
  2197. string sessionId = 4; // 登录凭证
  2198. int64 sessionCreateTime = 5; // 凭证创建时间
  2199. int64 updateTime = 6;
  2200. int64 createTime = 7;
  2201. }
  2202. message AccountDeviceListReq {
  2203. Page page = 1;
  2204. AccountDeviceVo vo = 2;
  2205. repeated int64 excludeIds = 3; // 排除的ID
  2206. }
  2207. message AccountDeviceListResp {
  2208. int64 total = 1;
  2209. repeated AccountDeviceVo list = 2;
  2210. }
  2211. message UserWhiteListReq {
  2212. Page page = 1;
  2213. UserWhiteVo vo = 2;
  2214. repeated int64 excludeIds = 3; // 排除的ID
  2215. }
  2216. message UserWhiteListResp {
  2217. int64 total = 1;
  2218. repeated UserWhiteVo list = 2;
  2219. }
  2220. message UserWhiteAddReq { UserWhiteVo vo = 1; }
  2221. message UserWhiteAddResp { UserWhiteVo vo = 1; }
  2222. message UserWhiteGetReq { UserWhiteVo vo = 1; }
  2223. message UserWhiteGetResp { UserWhiteVo vo = 1; }
  2224. message UserWhiteUpdateReq { UserWhiteVo vo = 1; }
  2225. message UserWhiteUpdateResp { UserWhiteVo vo = 1; }
  2226. message UserWhiteDelReq { repeated int64 ids = 1; }
  2227. message UserTestListReq {
  2228. Page page = 1;
  2229. UserTestVo vo = 2;
  2230. repeated int64 excludeIds = 3; // 排除的ID
  2231. }
  2232. message UserTestListResp {
  2233. int64 total = 1;
  2234. repeated UserTestVo list = 2;
  2235. }
  2236. message UserTestAddReq { UserTestVo vo = 1; }
  2237. message UserTestAddResp { UserTestVo vo = 1; }
  2238. message UserTestGetReq { UserTestVo vo = 1; }
  2239. message UserTestGetResp { UserTestVo vo = 1; }
  2240. message UserTestUpdateReq { UserTestVo vo = 1; }
  2241. message UserTestUpdateResp { UserTestVo vo = 1; }
  2242. message UserTestDelReq { repeated int64 ids = 1; }
  2243. // 用户服务订阅权益表
  2244. message UserServiceVo {
  2245. int64 id = 1; // 主键ID
  2246. string userUuid = 2; // 用户UUID
  2247. string productCode = 3; // 产品ID
  2248. int64 ownerId = 4; // 服务所有者ID
  2249. int64 servicePlanId = 5; // 服务计划ID
  2250. int64 serviceTypeId = 6; // 服务类型ID
  2251. int64 licenseDays = 7; // 授权天数
  2252. int64 licenseMinutes = 8; // 授权分钟数
  2253. int64 userLevel = 9; // 用户等级
  2254. int64 deviceLimit = 10; // 设备数量限制
  2255. int64 speedLimit = 11; // 速度限制
  2256. int64 trafficLimit = 12; // 流量限制
  2257. int64 state = 13; // 状态
  2258. Status status = 14; // 状态
  2259. int64 createTime = 15; // 创建时间
  2260. int64 updateTime = 16; // 更新时间
  2261. int64 startTime = 17; // 套餐开始时间
  2262. }
  2263. message UserServiceAddReq { UserServiceVo vo = 1; }
  2264. message UserServiceAddResp { UserServiceVo vo = 1; }
  2265. message UserServiceUpdateReq { UserServiceVo vo = 1; }
  2266. message UserServiceUpdateResp { UserServiceVo vo = 1; }
  2267. message UserServiceDelReq { repeated int64 ids = 1; }
  2268. message UserServiceGetReq { UserServiceVo vo = 1; }
  2269. message UserServiceGetResp { UserServiceVo vo = 1; }
  2270. message UserServiceListReq {
  2271. Page page = 1;
  2272. UserServiceVo vo = 2;
  2273. repeated int64 excludeIds = 3; // 排除的ID
  2274. repeated int64 userIds = 4; // 用户ID
  2275. repeated int64 dids = 5; // device 表的 id
  2276. }
  2277. message UserServiceListResp {
  2278. int64 total = 1;
  2279. repeated UserServiceVo list = 2;
  2280. }
  2281. message DeviceVo {
  2282. int64 id = 1;
  2283. string userUuid = 2;
  2284. string productCode = 3;
  2285. string deviceId = 4;
  2286. string accountKey = 5;
  2287. string accountPassword = 6;
  2288. string platform = 7;
  2289. string channel = 8;
  2290. string referChannel = 9;
  2291. string deviceModel = 10;
  2292. string deviceOs = 11;
  2293. int64 timezone = 12;
  2294. string lang = 13;
  2295. int64 appVer = 14;
  2296. string ip = 15;
  2297. string country = 16;
  2298. string province = 17;
  2299. string city = 18;
  2300. string isp = 19;
  2301. int64 createTime = 20;
  2302. int64 updateTime = 21;
  2303. Status status = 22;
  2304. string refer = 23;
  2305. int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户
  2306. int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户
  2307. string mockCountry = 26; // 指定国家
  2308. string mockApi = 27; // 指定API
  2309. string mockRouter = 28; // 指定路由
  2310. string referSubChannel = 29;
  2311. string firebaseToken = 30; // firebase token
  2312. string appVerName = 31; // 版本
  2313. }
  2314. message DeviceListReq {
  2315. Page page = 1;
  2316. DeviceVo vo = 2;
  2317. repeated string productCodes = 3; // 产品code
  2318. repeated int64 excludeIds = 4; // 排除的ID
  2319. repeated string dateRange = 5; // 日期范围
  2320. int64 createStartTime = 6; // 创建开始时间
  2321. int64 createEndTime = 7; // 创建结束时间
  2322. repeated string deviceIds = 8; // 设备IDs
  2323. string country = 9; // 国家
  2324. string vn = 10; // 运营商
  2325. }
  2326. message DeviceListRes {
  2327. int64 total = 1;
  2328. repeated DeviceVo list = 2;
  2329. }
  2330. message UserAppConfigVo {
  2331. int64 id = 1;
  2332. string deviceId = 2;
  2333. string key = 3;
  2334. string value = 4;
  2335. Status status = 5;
  2336. int64 createTime = 6;
  2337. int64 updateTime = 7;
  2338. }
  2339. message UserAppConfigGetReq { UserAppConfigVo vo = 1; }
  2340. message UserAppConfigListReq {
  2341. Page page = 1;
  2342. UserAppConfigVo vo = 2;
  2343. }
  2344. message UserAppConfigListRes {
  2345. int64 total = 1;
  2346. repeated UserAppConfigVo list = 2;
  2347. }
  2348. message UserVo {
  2349. int64 id = 1; // ID
  2350. string productCode = 2; // 产品标识
  2351. string uuid = 3; // 用户唯一ID
  2352. string deviceId = 4; // 注册时使用的设备ID
  2353. int64 accountType = 5; // 值为1时表示实体尚未注册账号, 为其他值时表示实体已经注册了账号(为了让 productCode+deviceId+accountType 能唯一确定一个用户)
  2354. string registType = 6; // 注册方式 normal email phone wechat qq google apple (其实可以通过查询 user_credential 中最早的一条记录的 identityType 来确定)
  2355. int64 registFrom = 7; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  2356. string referChannel = 8; // 推广渠道
  2357. string referSubChannel = 9; // 推广子渠道
  2358. string nickname = 10; // 用户昵称
  2359. string avatar = 11; // 用户头像地址
  2360. string config = 12; // 保留字段,用于扩展
  2361. Status status = 13; // 状态 1: 正常 2: 冻结
  2362. int64 createTime = 14; // 创建时间
  2363. int64 updateTime = 15; // 修改时间
  2364. }
  2365. message UserAddReq { UserVo vo = 1; }
  2366. message UserAddResp { UserVo vo = 1; }
  2367. message UserUpdateReq { UserVo vo = 1; }
  2368. message UserUpdateResp { UserVo vo = 1; }
  2369. message UserDelReq { repeated int64 ids = 1; }
  2370. message UserGetReq { UserVo vo = 1; }
  2371. message UserGetResp { UserVo vo = 1; }
  2372. message UserListReq {
  2373. Page page = 1;
  2374. UserVo vo = 2;
  2375. repeated int64 excludeIds = 3; // 排除的ID
  2376. repeated string productCodes = 4; // 产品code
  2377. repeated string uuids = 5; // 用户唯一ID
  2378. repeated string deviceIds = 6; // 设备ID (device 表的 id)
  2379. }
  2380. message UserListResp {
  2381. int64 total = 1;
  2382. repeated UserVo list = 2;
  2383. }
  2384. message UserCredentialVo {
  2385. int64 id = 1; // ID
  2386. int64 userId = 2; // 用户ID
  2387. string productCode = 3; // 产品标识
  2388. string identityType = 4; // 凭证类型: username, email, phone, wechat, qq, google, apple 等
  2389. string identifier = 5; // 凭证标识
  2390. string credential = 6; // 凭证密钥(密码/token)
  2391. int64 isVerified = 7; // 是否已验证 1: 已验证 2: 未验证
  2392. int64 registFrom = 8; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  2393. Status status = 9; // 状态 1: 正常 2: 禁用
  2394. int64 createTime = 10; // 创建时间/注册时间
  2395. int64 updateTime = 11; // 更新时间
  2396. }
  2397. message UserCredentialAddReq { UserCredentialVo vo = 1; }
  2398. message UserCredentialAddResp { UserCredentialVo vo = 1; }
  2399. message UserCredentialUpdateReq { UserCredentialVo vo = 1; }
  2400. message UserCredentialUpdateResp { UserCredentialVo vo = 1; }
  2401. message UserCredentialDelReq { repeated int64 ids = 1; }
  2402. message UserCredentialGetReq { UserCredentialVo vo = 1; }
  2403. message UserCredentialGetResp { UserCredentialVo vo = 1; }
  2404. message UserCredentialListReq {
  2405. Page page = 1;
  2406. UserCredentialVo vo = 2;
  2407. repeated int64 excludeIds = 3; // 排除的ID
  2408. repeated int64 userIds = 4; // 用户ID
  2409. }
  2410. message UserCredentialListResp {
  2411. int64 total = 1;
  2412. repeated UserCredentialVo list = 2;
  2413. }
  2414. message UserDeviceVo {
  2415. int64 id = 1; // ID
  2416. int64 userId = 2; // 用户ID
  2417. int64 did = 3; // 设备ID
  2418. string sessionId = 4; // 登录凭证
  2419. int64 sessionCreateTime = 5; // 凭证创建时间
  2420. Status status = 6; // 状态 1: 正常 2: 禁用
  2421. int64 updateTime = 7; // 更新时间
  2422. int64 createTime = 8; // 创建时间
  2423. }
  2424. message UserDeviceAddReq { UserDeviceVo vo = 1; }
  2425. message UserDeviceAddResp { UserDeviceVo vo = 1; }
  2426. message UserDeviceUpdateReq { UserDeviceVo vo = 1; }
  2427. message UserDeviceUpdateResp { UserDeviceVo vo = 1; }
  2428. message UserDeviceDelReq { repeated int64 ids = 1; }
  2429. message UserDeviceGetReq { UserDeviceVo vo = 1; }
  2430. message UserDeviceGetResp { UserDeviceVo vo = 1; }
  2431. message UserDeviceListReq {
  2432. Page page = 1;
  2433. UserDeviceVo vo = 2;
  2434. repeated int64 excludeIds = 3; // 排除的ID
  2435. repeated int64 userIds = 4; // 用户ID
  2436. repeated int64 dids = 5; // device 表的 id
  2437. }
  2438. message UserDeviceListResp {
  2439. int64 total = 1;
  2440. repeated UserDeviceVo list = 2;
  2441. }
  2442. // 用户模块
  2443. service GoUserClient {
  2444. rpc Ping(Request) returns (Response);
  2445. // 用户app配置管理(ring)
  2446. rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo);
  2447. rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo);
  2448. rpc UserAppConfigDel(Ids) returns (Empty);
  2449. rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo);
  2450. rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes);
  2451. // Device Model
  2452. // DeviceAdd
  2453. rpc DeviceAdd(DeviceVo) returns (DeviceVo);
  2454. rpc DeviceUpdate(DeviceVo) returns (DeviceVo);
  2455. rpc DeviceDel(Ids) returns (Empty);
  2456. rpc DeviceGet(DeviceVo) returns (DeviceVo);
  2457. rpc DeviceList(DeviceListReq) returns (DeviceListRes);
  2458. // Account Model
  2459. // AccountAdd
  2460. rpc AccountAdd(AccountVo) returns (AccountVo);
  2461. rpc AccountUpdate(AccountVo) returns (AccountVo);
  2462. rpc AccountDel(Ids) returns (Empty);
  2463. rpc AccountGet(AccountVo) returns (AccountVo);
  2464. rpc AccountList(AccountListReq) returns (AccountListResp);
  2465. // AccountDevice Model
  2466. // AccountDeviceAdd
  2467. rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo);
  2468. rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo);
  2469. rpc AccountDeviceDel(Ids) returns (Empty);
  2470. rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo);
  2471. rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp);
  2472. // 用户白名单管理
  2473. rpc UserWhiteAdd(UserWhiteAddReq) returns (UserWhiteAddResp);
  2474. rpc UserWhiteUpdate(UserWhiteUpdateReq) returns (UserWhiteUpdateResp);
  2475. rpc UserWhiteDel(UserWhiteDelReq) returns (Empty);
  2476. rpc UserWhiteGet(UserWhiteGetReq) returns (UserWhiteGetResp);
  2477. rpc UserWhiteList(UserWhiteListReq) returns (UserWhiteListResp);
  2478. // 测试用户管理
  2479. rpc UserTestAdd(UserTestAddReq) returns (UserTestAddResp);
  2480. rpc UserTestUpdate(UserTestUpdateReq) returns (UserTestUpdateResp);
  2481. rpc UserTestDel(UserTestDelReq) returns (Empty);
  2482. rpc UserTestGet(UserTestGetReq) returns (UserTestGetResp);
  2483. rpc UserTestList(UserTestListReq) returns (UserTestListResp);
  2484. // User Model
  2485. // UserAdd
  2486. rpc UserAdd(UserAddReq) returns (UserAddResp);
  2487. rpc UserUpdate(UserUpdateReq) returns (UserUpdateResp);
  2488. rpc UserDel(UserDelReq) returns (Empty);
  2489. rpc UserGet(UserGetReq) returns (UserGetResp);
  2490. rpc UserList(UserListReq) returns (UserListResp);
  2491. // UserCredential Model
  2492. // UserCredentialAdd
  2493. rpc UserCredentialAdd(UserCredentialAddReq) returns (UserCredentialAddResp);
  2494. rpc UserCredentialUpdate(UserCredentialUpdateReq) returns (UserCredentialUpdateResp);
  2495. rpc UserCredentialDel(UserCredentialDelReq) returns (Empty);
  2496. rpc UserCredentialGet(UserCredentialGetReq) returns (UserCredentialGetResp);
  2497. rpc UserCredentialList(UserCredentialListReq) returns (UserCredentialListResp);
  2498. // UserDevice Model
  2499. // UserDeviceAdd
  2500. rpc UserDeviceAdd(UserDeviceAddReq) returns (UserDeviceAddResp);
  2501. rpc UserDeviceUpdate(UserDeviceUpdateReq) returns (UserDeviceUpdateResp);
  2502. rpc UserDeviceDel(UserDeviceDelReq) returns (Empty);
  2503. rpc UserDeviceGet(UserDeviceGetReq) returns (UserDeviceGetResp);
  2504. rpc UserDeviceList(UserDeviceListReq) returns (UserDeviceListResp);
  2505. //UserService
  2506. rpc UserServiceAdd(UserServiceAddReq) returns (UserServiceAddResp);
  2507. rpc UserServiceUpdate(UserServiceUpdateReq) returns (UserServiceUpdateResp);
  2508. rpc UserServiceDel(UserServiceDelReq) returns (Empty);
  2509. rpc UserServiceGet(UserServiceGetReq) returns (UserServiceGetResp);
  2510. rpc UserServiceList(UserServiceListReq) returns (UserServiceListResp);
  2511. }
  2512. // VpnTag
  2513. message VpnTagVo {
  2514. int64 id = 1;
  2515. string productCode = 2;
  2516. string type = 3;
  2517. string name = 4;
  2518. int64 sort = 5;
  2519. Status status = 6;
  2520. string remark = 7;
  2521. int64 createTime = 8;
  2522. int64 updateTime = 9;
  2523. string otherConfig = 10;
  2524. }
  2525. message VpnTagGetReq { VpnTagVo vo = 1; }
  2526. message VpnTagListReq {
  2527. Page page = 1;
  2528. VpnTagVo vo = 2;
  2529. repeated string productCodes = 3;
  2530. repeated int64 excludeIds = 4;
  2531. }
  2532. message VpnTagListResp {
  2533. int64 total = 1;
  2534. repeated VpnTagVo list = 2;
  2535. }
  2536. message VpnTagBatchAddReq { repeated VpnTagVo list = 1; }
  2537. message VpnTagBatchAddResp { repeated VpnTagVo list = 1; }
  2538. message VpnTagBatchUpdateReq { repeated VpnTagVo list = 1; }
  2539. message VpnTagBatchUpdateResp { repeated VpnTagVo list = 1; }
  2540. message VpnTagBatchDelReq { repeated int64 ids = 1; }
  2541. // VpnTag
  2542. message VpnGroupVo {
  2543. int64 id = 1;
  2544. string productCode = 2;
  2545. string name = 3;
  2546. string icon = 4;
  2547. int64 sort = 5;
  2548. Status status = 6;
  2549. string remark = 7;
  2550. int64 createTime = 8;
  2551. int64 updateTime = 9;
  2552. string version = 10;
  2553. string otherConfig = 11;
  2554. }
  2555. message VpnGroupExVo {
  2556. VpnGroupVo vo = 1;
  2557. repeated int64 tagIds = 2;
  2558. }
  2559. message VpnGroupAddReq {
  2560. VpnGroupVo vo = 1;
  2561. repeated int64 tagIds = 2;
  2562. }
  2563. message VpnGroupGetReq { VpnGroupVo vo = 1; }
  2564. message VpnGroupListReq {
  2565. Page page = 1;
  2566. VpnGroupVo vo = 2;
  2567. repeated string productCodes = 3;
  2568. repeated int64 excludeIds = 4;
  2569. }
  2570. message VpnGroupListResp {
  2571. int64 total = 1;
  2572. repeated VpnGroupVo list = 2;
  2573. }
  2574. message VpnGroupBatchAddReq { repeated VpnGroupExVo list = 1; }
  2575. message VpnGroupBatchAddResp { repeated VpnGroupExVo list = 1; }
  2576. message VpnGroupBatchUpdateReq { repeated VpnGroupExVo list = 1; }
  2577. message VpnGroupBatchUpdateResp { repeated VpnGroupExVo list = 1; }
  2578. message VpnGroupBatchDelReq { repeated int64 ids = 1; }
  2579. // VpnGroupTag
  2580. message VpnGroupTagVo {
  2581. int64 id = 1;
  2582. int64 groupId = 2;
  2583. int64 tagId = 3;
  2584. int64 createTime = 4;
  2585. int64 updateTime = 5;
  2586. }
  2587. message VpnGroupTagListReq {
  2588. Page page = 1;
  2589. VpnGroupTagVo vo = 2;
  2590. repeated int64 groupIds = 3;
  2591. repeated int64 tagIds = 4;
  2592. }
  2593. message VpnGroupTagListResp {
  2594. int64 total = 1;
  2595. repeated VpnGroupTagVo list = 2;
  2596. }
  2597. // VpnLocation
  2598. message VpnLocationVo {
  2599. int64 id = 1;
  2600. int64 groupId = 2;
  2601. string name = 3;
  2602. string code = 4;
  2603. string icon = 5;
  2604. int64 type = 6;
  2605. string displayPolicyConfig = 7;
  2606. string routePolicyConfig = 8;
  2607. int64 sort = 9;
  2608. Status status = 10;
  2609. string remark = 11;
  2610. int64 createTime = 12;
  2611. int64 updateTime = 13;
  2612. string version = 14;
  2613. string otherConfig = 15;
  2614. }
  2615. message VpnLocationExVo {
  2616. VpnLocationVo vo = 1;
  2617. string productCode = 2;
  2618. }
  2619. message VpnLocationGetReq { VpnLocationVo vo = 1; }
  2620. message VpnLocationListReq {
  2621. Page page = 1;
  2622. VpnLocationExVo vo = 2;
  2623. repeated int64 groupIds = 3;
  2624. repeated int64 excludeIds = 4;
  2625. repeated string productCodes = 5;
  2626. }
  2627. message VpnLocationListResp {
  2628. int64 total = 1;
  2629. repeated VpnLocationExVo list = 2;
  2630. }
  2631. message VpnLocationBatchAddReq { repeated VpnLocationVo list = 1; }
  2632. message VpnLocationBatchAddResp { repeated VpnLocationExVo list = 1; }
  2633. message VpnLocationBatchUpdateReq { repeated VpnLocationVo list = 1; }
  2634. message VpnLocationBatchUpdateResp { repeated VpnLocationExVo list = 1; }
  2635. message VpnLocationBatchDelReq { repeated int64 ids = 1; }
  2636. // VpnServer
  2637. message VpnServerVo {
  2638. int64 id = 1;
  2639. int64 instanceId = 2;
  2640. string name = 3;
  2641. string ip = 4;
  2642. int64 port = 5;
  2643. int64 pingPort = 6;
  2644. string netConfig = 7;
  2645. string routePolicyConfig = 8;
  2646. string serverInfo = 9;
  2647. Status status = 10;
  2648. string remark = 11;
  2649. int64 createTime = 12;
  2650. int64 updateTime = 13;
  2651. string version = 14;
  2652. string otherInfo = 15;
  2653. int64 monitorPort = 16;
  2654. string vpnConfig = 17;
  2655. }
  2656. message VpnServerExVo {
  2657. VpnServerVo vo = 1;
  2658. repeated int64 locationIds = 2;
  2659. }
  2660. message VpnServerListReq {
  2661. Page page = 1;
  2662. VpnServerVo vo = 2;
  2663. repeated int64 excludeIds = 3; // 排除的ID
  2664. repeated string productCodes = 4;
  2665. repeated int64 locationIds = 5;
  2666. repeated int64 instanceIds = 6;
  2667. }
  2668. message VpnServerListResp {
  2669. int64 total = 1;
  2670. repeated VpnServerVo list = 2;
  2671. }
  2672. message VpnServerExListResp {
  2673. int64 total = 1;
  2674. repeated VpnServerExVo list = 2;
  2675. }
  2676. message VpnServerAddReq {
  2677. VpnServerVo vo = 1;
  2678. repeated int64 locationIds = 2;
  2679. }
  2680. message VpnServerBatchAddReq { repeated VpnServerExVo list = 1; }
  2681. message VpnServerBatchAddResp { repeated VpnServerExVo list = 1; }
  2682. message VpnServerBatchUpdateReq { repeated VpnServerExVo list = 1; }
  2683. message VpnServerBatchUpdateResp { repeated VpnServerExVo list = 1; }
  2684. message VpnServerBatchDelReq { repeated int64 ids = 1; }
  2685. message VpnServerLocationVo {
  2686. int64 id = 1;
  2687. int64 serverId = 2;
  2688. int64 locationId = 3;
  2689. int64 createTime = 4;
  2690. int64 updateTime = 5;
  2691. Status status = 6;
  2692. }
  2693. message VpnServerLocationListReq {
  2694. Page page = 1;
  2695. VpnServerLocationVo vo = 2;
  2696. repeated int64 serverIds = 3;
  2697. repeated int64 locationIds = 4;
  2698. }
  2699. message VpnServerLocationListResp {
  2700. int64 total = 1;
  2701. repeated VpnServerLocationVo list = 2;
  2702. }
  2703. message VpnLocationServerCountVo {
  2704. int64 locationId = 1;
  2705. int64 serverCount = 2;
  2706. }
  2707. message VpnLocationServerCountReq {
  2708. Page page = 1;
  2709. Status status = 2;
  2710. repeated int64 serverIds = 3;
  2711. repeated int64 locationIds = 4;
  2712. }
  2713. message VpnLocationServerCountResp {
  2714. int64 total = 1;
  2715. repeated VpnLocationServerCountVo list = 2;
  2716. }
  2717. message VpnProbeTaskVo {
  2718. int64 id = 1;
  2719. string taskId = 2;
  2720. string filter = 3; // 筛选条件
  2721. string type = 4; // 类型
  2722. string uploadDomain = 5; // 配置
  2723. string params = 6;
  2724. int64 answer = 7;
  2725. float percentage = 8; // 进度百分比
  2726. string result = 9; // 结果
  2727. int64 userId = 10;
  2728. int64 createTime = 11;
  2729. int64 updateTime = 12;
  2730. }
  2731. message VpnProbeTaskListReq {
  2732. Page page = 1;
  2733. VpnProbeTaskVo vo = 2;
  2734. }
  2735. message VpnProbeTaskListResp {
  2736. int64 total = 1;
  2737. repeated VpnProbeTaskVo list = 2;
  2738. }
  2739. message VpnWithIPAndPortReq {
  2740. // 产品Code
  2741. string productCode = 1;
  2742. // 国家
  2743. string country = 2;
  2744. // 需要随机的总数
  2745. int64 limitCount = 3;
  2746. }
  2747. message VpnWithIPAndPortResp {
  2748. repeated VpnServerVo list = 1;
  2749. }
  2750. // VpnipWalledVo
  2751. message VpnipWalledVo {
  2752. int64 id = 1; // ID
  2753. int64 ipId = 2; // IP ID
  2754. string area = 3; // 地区
  2755. int64 walledTime = 4; // 被墙时间
  2756. string remark = 5; // 备注
  2757. int64 createTime = 6; // 创建时间
  2758. int64 createAt = 7; // 创建者ID
  2759. int64 updateTime = 8; // 更新时间
  2760. int64 updateAt = 9; // 更新者ID
  2761. }
  2762. message VpnipWalledAddReq { VpnipWalledVo vo = 1; }
  2763. message VpnipWalledAddResp { VpnipWalledVo vo = 1; }
  2764. message VpnipWalledUpdateReq { VpnipWalledVo vo = 1; }
  2765. message VpnipWalledUpdateResp { VpnipWalledVo vo = 1; }
  2766. message VpnipWalledGetReq { VpnipWalledVo vo = 1; }
  2767. message VpnipWalledGetResp { VpnipWalledVo vo = 1; }
  2768. message VpnipWalledListReq {
  2769. Page page = 1;
  2770. VpnipWalledVo vo = 2;
  2771. repeated int64 excludeIds = 3;
  2772. repeated int64 ipIds = 4;
  2773. repeated string ips = 5;
  2774. repeated string areas = 6;
  2775. }
  2776. message VpnipWalledListResp {
  2777. int64 total = 1;
  2778. repeated VpnipWalledVo list = 2;
  2779. }
  2780. message VpnipWalledBatchAddReq { repeated VpnipWalledVo list = 1; }
  2781. message VpnipWalledBatchAddResp { repeated VpnipWalledVo list = 1; }
  2782. message VpnipWalledBatchUpdateReq { repeated VpnipWalledVo list = 1; }
  2783. message VpnipWalledBatchUpdateResp { repeated VpnipWalledVo list = 1; }
  2784. // VpnipVo
  2785. message VpnipVo {
  2786. int64 id = 1; // ID
  2787. int64 rangeId = 2; // IP段ID
  2788. string ip = 3; // IP地址
  2789. string otherInfo = 4; // 其他信息,保留字段,用于扩展
  2790. Status status = 5; // 状态
  2791. string remark = 6; // 备注
  2792. int64 createTime = 7; // 创建时间
  2793. int64 createAt = 8; // 创建者ID
  2794. int64 updateTime = 9; // 更新时间
  2795. int64 updateAt = 10; // 更新者ID
  2796. }
  2797. message VpnipExVo {
  2798. VpnipVo vo = 1;
  2799. repeated VpnipWalledVo walledInfos = 2;
  2800. }
  2801. message VpnipAddReq { VpnipVo vo = 1; }
  2802. message VpnipAddResp { VpnipVo vo = 1; }
  2803. message VpnipExAddReq { VpnipExVo vo = 1; }
  2804. message VpnipExAddResp { VpnipExVo vo = 1; }
  2805. message VpnipUpdateReq { VpnipVo vo = 1; }
  2806. message VpnipUpdateResp { VpnipVo vo = 1; }
  2807. message VpnipExUpdateReq { VpnipExVo vo = 1; }
  2808. message VpnipExUpdateResp { VpnipExVo vo = 1; }
  2809. message VpnipGetReq { VpnipVo vo = 1; }
  2810. message VpnipGetResp { VpnipVo vo = 1; }
  2811. message VpnipExGetResp { VpnipExVo vo = 1; }
  2812. message VpnipListReq {
  2813. Page page = 1;
  2814. VpnipVo vo = 2;
  2815. repeated int64 excludeIds = 3;
  2816. repeated string ips = 4;
  2817. repeated int64 serverIds = 5;
  2818. repeated int64 instanceIds = 6;
  2819. repeated int64 rangeIds = 7;
  2820. }
  2821. message VpnipListResp {
  2822. int64 total = 1;
  2823. repeated VpnipVo list = 2;
  2824. }
  2825. message VpnipExListResp {
  2826. int64 total = 1;
  2827. repeated VpnipExVo list = 2;
  2828. }
  2829. message VpnipBatchAddReq { repeated VpnipVo list = 1; }
  2830. message VpnipBatchAddResp { repeated VpnipVo list = 1; }
  2831. message VpnipBatchUpdateReq { repeated VpnipVo list = 1; }
  2832. message VpnipBatchUpdateResp { repeated VpnipVo list = 1; }
  2833. message VpnipExBatchAddReq { repeated VpnipExVo list = 1; }
  2834. message VpnipExBatchAddResp { repeated VpnipExVo list = 1; }
  2835. message VpnipExBatchUpdateReq { repeated VpnipExVo list = 1; }
  2836. message VpnipExBatchUpdateResp { repeated VpnipExVo list = 1; }
  2837. // VpnipRangeVo
  2838. message VpnipRangeVo {
  2839. int64 id = 1; // ID
  2840. string name = 2; // 名称
  2841. string supplierId = 3; // 供应商ID
  2842. string startIP = 4; // 起始IP
  2843. string endIP = 5; // 结束IP
  2844. int64 expires = 6; // 到期日期
  2845. int64 sort = 7; // 排序
  2846. Status status = 8; // 状态
  2847. string remark = 9; // 备注
  2848. int64 createTime = 10; // 创建时间
  2849. int64 createAt = 11; // 创建者ID
  2850. int64 updateTime = 12; // 更新时间
  2851. int64 updateAt = 13; // 更新者ID
  2852. }
  2853. message VpnipRangeExVo {
  2854. VpnipRangeVo vo = 1;
  2855. repeated VpnipVo ipInfos = 2;
  2856. }
  2857. message VpnipRangeAddReq { VpnipRangeVo vo = 1; }
  2858. message VpnipRangeAddResp { VpnipRangeVo vo = 1; }
  2859. message VpnipRangeExAddReq { VpnipRangeExVo vo = 1; }
  2860. message VpnipRangeExAddResp { VpnipRangeExVo vo = 1; }
  2861. message VpnipRangeUpdateReq { VpnipRangeVo vo = 1; }
  2862. message VpnipRangeUpdateResp { VpnipRangeVo vo = 1; }
  2863. message VpnipRangeExUpdateReq { VpnipRangeExVo vo = 1; }
  2864. message VpnipRangeExUpdateResp { VpnipRangeExVo vo = 1; }
  2865. message VpnipRangeGetReq { VpnipRangeVo vo = 1; }
  2866. message VpnipRangeGetResp { VpnipRangeVo vo = 1; }
  2867. message VpnipRangeExGetResp { VpnipRangeExVo vo = 1; }
  2868. message VpnipRangeListReq {
  2869. Page page = 1;
  2870. VpnipRangeVo vo = 2;
  2871. repeated string names = 3;
  2872. repeated string ips = 4;
  2873. repeated int64 excludeIds = 5; // 排除的ID
  2874. }
  2875. message VpnipRangeListResp {
  2876. int64 total = 1;
  2877. repeated VpnipRangeVo list = 2;
  2878. }
  2879. message VpnipRangeExListResp {
  2880. int64 total = 1;
  2881. repeated VpnipRangeExVo list = 2;
  2882. }
  2883. message VpnipRangeBatchAddReq { repeated VpnipRangeVo list = 1; }
  2884. message VpnipRangeBatchAddResp { repeated VpnipRangeVo list = 1; }
  2885. message VpnipRangeBatchUpdateReq { repeated VpnipRangeVo list = 1; }
  2886. message VpnipRangeBatchUpdateResp { repeated VpnipRangeVo list = 1; }
  2887. message VpnipRangeExBatchAddReq { repeated VpnipRangeExVo list = 1; }
  2888. message VpnipRangeExBatchAddResp { repeated VpnipRangeExVo list = 1; }
  2889. message VpnipRangeExBatchUpdateReq { repeated VpnipRangeExVo list = 1; }
  2890. message VpnipRangeExBatchUpdateResp { repeated VpnipRangeExVo list = 1; }
  2891. // VpnipBindVo
  2892. message VpnipBindVo {
  2893. int64 id = 1; // ID
  2894. int64 ipId = 2; // IP ID
  2895. int64 serverId = 3; // 服务器ID
  2896. string batchId = 4; // 批次ID,用于批量操作和回滚
  2897. string prevBindId = 5; // 上一次绑定记录的ID,为空时表示之前未绑定
  2898. int64 bindTime = 6; // 绑定时间
  2899. int64 unbindTime = 7; // 解绑时间
  2900. int64 isCurrent = 8; // 是否为当前绑定记录
  2901. string remark = 9; // 备注
  2902. int64 createTime = 10; // 创建时间
  2903. int64 createAt = 11; // 创建者ID
  2904. int64 updateTime = 12; // 更新时间
  2905. int64 updateAt = 13; // 更新者ID
  2906. }
  2907. message VpnipBindAddReq { VpnipBindVo vo = 1; }
  2908. message VpnipBindAddResp { VpnipBindVo vo = 1; }
  2909. message VpnipBindUpdateReq { VpnipBindVo vo = 1; }
  2910. message VpnipBindUpdateResp { VpnipBindVo vo = 1; }
  2911. message VpnipBindGetReq { VpnipBindVo vo = 1; }
  2912. message VpnipBindGetResp { VpnipBindVo vo = 1; }
  2913. message VpnipBindListReq {
  2914. Page page = 1;
  2915. VpnipBindVo vo = 2;
  2916. repeated int64 excludeIds = 3;
  2917. repeated int64 ipIds = 4;
  2918. repeated int64 serverIds = 5;
  2919. repeated string ips = 6;
  2920. repeated int64 instanceIds = 7;
  2921. }
  2922. message VpnipBindListResp {
  2923. int64 total = 1;
  2924. repeated VpnipBindVo list = 2;
  2925. }
  2926. message VpnipBindBatchAddReq { repeated VpnipBindVo list = 1; }
  2927. message VpnipBindBatchAddResp { repeated VpnipBindVo list = 1; }
  2928. message VpnipBindBatchUpdateReq { repeated VpnipBindVo list = 1; }
  2929. message VpnipBindBatchUpdateResp { repeated VpnipBindVo list = 1; }
  2930. // VpnConfigTemplatePlanVo
  2931. message VpnConfigTemplatePlanVo {
  2932. int64 id = 1; // id
  2933. string productCode = 2; // 产品Code
  2934. string name = 3; // 配置名称
  2935. string config = 4; // 保留字段,用于扩展配置
  2936. int64 sort = 5; // 排序
  2937. Status status = 6; // 状态
  2938. string remark = 7; // 备注
  2939. int64 createTime = 8; // 创建时间
  2940. int64 createAt = 9; // 创建者Id
  2941. int64 updateTime = 10; // 更新时间
  2942. int64 updateAt = 11; // 更新者Id
  2943. string version = 12; // 数据版本
  2944. }
  2945. // VpnConfigTemplatePlanDetailVo
  2946. message VpnConfigTemplatePlanDetailVo {
  2947. int64 id = 1; // id
  2948. int64 planId = 2; // 配置模板主表id
  2949. string core = 3; // 内核
  2950. string name = 4; // 名称
  2951. string serverConfig = 5; // 服务端配置
  2952. string clientConfig = 6; // 客户端配置
  2953. string policyConfig = 7; // 策略配置
  2954. int64 sort = 8; // 排序
  2955. Status status = 9; // 状态
  2956. string remark = 10; // 备注
  2957. int64 createTime = 11; // 创建时间
  2958. int64 createAt = 12; // 创建者Id
  2959. int64 updateTime = 13; // 更新时间
  2960. int64 updateAt = 14; // 更新者Id
  2961. string version = 15; // 数据版本
  2962. }
  2963. message VpnConfigTemplatePlanAddReq {
  2964. VpnConfigTemplatePlanVo plan = 1;
  2965. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2966. }
  2967. message VpnConfigTemplatePlanAddResp {
  2968. VpnConfigTemplatePlanVo plan = 1;
  2969. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2970. }
  2971. message VpnConfigTemplatePlanUpdateReq {
  2972. VpnConfigTemplatePlanVo vo = 1;
  2973. bool withDetails = 2;
  2974. }
  2975. message VpnConfigTemplatePlanUpdateResp {
  2976. VpnConfigTemplatePlanVo plan = 1;
  2977. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2978. }
  2979. message VpnConfigTemplatePlanDelReq { repeated int64 ids = 1; }
  2980. message VpnConfigTemplatePlanGetReq {
  2981. VpnConfigTemplatePlanVo vo = 1;
  2982. bool withDetails = 2;
  2983. }
  2984. message VpnConfigTemplatePlanGetResp {
  2985. VpnConfigTemplatePlanVo plan = 1;
  2986. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2987. }
  2988. message VpnConfigTemplatePlanListReq {
  2989. Page page = 1;
  2990. VpnConfigTemplatePlanVo vo = 2;
  2991. repeated int64 excludeIds = 3;
  2992. repeated string productCodes = 4;
  2993. bool withDetails = 5;
  2994. }
  2995. message VpnConfigTemplatePlanListResp {
  2996. int64 total = 1;
  2997. repeated VpnConfigTemplatePlanGetResp list = 2;
  2998. }
  2999. message VpnConfigTemplatePlanDetailAddReq {
  3000. VpnConfigTemplatePlanDetailVo vo = 1;
  3001. }
  3002. message VpnConfigTemplatePlanDetailAddResp {
  3003. VpnConfigTemplatePlanDetailVo vo = 1;
  3004. }
  3005. message VpnConfigTemplatePlanDetailUpdateReq {
  3006. VpnConfigTemplatePlanDetailVo vo = 1;
  3007. }
  3008. message VpnConfigTemplatePlanDetailUpdateResp {
  3009. VpnConfigTemplatePlanDetailVo vo = 1;
  3010. }
  3011. message VpnConfigTemplatePlanDetailDelReq { repeated int64 ids = 1; }
  3012. message VpnConfigTemplatePlanDetailGetReq {
  3013. VpnConfigTemplatePlanDetailVo vo = 1;
  3014. }
  3015. message VpnConfigTemplatePlanDetailGetResp {
  3016. VpnConfigTemplatePlanDetailVo vo = 1;
  3017. }
  3018. message VpnConfigTemplatePlanDetailListReq {
  3019. Page page = 1;
  3020. VpnConfigTemplatePlanDetailVo vo = 2;
  3021. repeated int64 planIds = 3;
  3022. repeated int64 excludeIds = 4;
  3023. repeated string productCodes = 5;
  3024. }
  3025. message VpnConfigTemplatePlanDetailListResp {
  3026. int64 total = 1;
  3027. repeated VpnConfigTemplatePlanDetailVo list = 2;
  3028. }
  3029. // govpn 模块,VPN相关服务
  3030. service GoVpnClient {
  3031. rpc Ping(Request) returns (Response);
  3032. // 表的事务操作
  3033. rpc Transaction(TransactionReq) returns (Empty);
  3034. // VpnTag Model
  3035. // VpnTagAdd
  3036. rpc VpnTagAdd(VpnTagVo) returns (VpnTagVo);
  3037. rpc VpnTagUpdate(VpnTagVo) returns (VpnTagVo);
  3038. rpc VpnTagDel(Ids) returns (Empty);
  3039. rpc VpnTagGet(VpnTagGetReq) returns (VpnTagVo);
  3040. rpc VpnTagList(VpnTagListReq) returns (VpnTagListResp);
  3041. rpc VpnTagBatchAdd(VpnTagBatchAddReq) returns (VpnTagBatchAddResp);
  3042. rpc VpnTagBatchUpdate(VpnTagBatchUpdateReq) returns (VpnTagBatchUpdateResp);
  3043. // VpnGroup Model
  3044. // VpnGroupAdd
  3045. rpc VpnGroupAdd(VpnGroupAddReq) returns (VpnGroupVo);
  3046. rpc VpnGroupUpdate(VpnGroupAddReq) returns (Empty);
  3047. rpc VpnGroupDel(Ids) returns (Empty);
  3048. rpc VpnGroupGet(VpnGroupGetReq) returns (VpnGroupVo);
  3049. rpc VpnGroupList(VpnGroupListReq) returns (VpnGroupListResp);
  3050. rpc VpnGroupBatchAdd(VpnGroupBatchAddReq) returns (VpnGroupBatchAddResp);
  3051. rpc VpnGroupBatchUpdate(VpnGroupBatchUpdateReq) returns (VpnGroupBatchUpdateResp);
  3052. // VpnGroupTag Model
  3053. // VpnGroupTagAdd
  3054. rpc VpnGroupTagAdd(VpnGroupTagVo) returns (VpnGroupTagVo);
  3055. rpc VpnGroupTagUpdate(VpnGroupTagVo) returns (VpnGroupTagVo);
  3056. rpc VpnGroupTagDel(Ids) returns (Empty);
  3057. rpc VpnGroupTagGet(VpnGroupTagVo) returns (VpnGroupTagVo);
  3058. rpc VpnGroupTagList(VpnGroupTagListReq) returns (VpnGroupTagListResp);
  3059. // VpnLocation Model
  3060. // VpnLocationAdd
  3061. rpc VpnLocationAdd(VpnLocationVo) returns (VpnLocationVo);
  3062. rpc VpnLocationUpdate(VpnLocationVo) returns (Empty);
  3063. rpc VpnLocationDel(Ids) returns (Empty);
  3064. rpc VpnLocationGet(VpnLocationGetReq) returns (VpnLocationVo);
  3065. rpc VpnLocationList(VpnLocationListReq) returns (VpnLocationListResp);
  3066. rpc VpnLocationBatchAdd(VpnLocationBatchAddReq) returns (VpnLocationBatchAddResp);
  3067. rpc VpnLocationBatchUpdate(VpnLocationBatchUpdateReq) returns (VpnLocationBatchUpdateResp);
  3068. // VpnServer Model
  3069. // VpnServerAdd
  3070. rpc VpnServerAdd(VpnServerAddReq) returns (VpnServerAddReq);
  3071. rpc VpnServerUpdate(VpnServerAddReq) returns (VpnServerAddReq);
  3072. rpc VpnServerDel(Ids) returns (Empty);
  3073. rpc VpnServerGet(VpnServerVo) returns (VpnServerVo);
  3074. rpc VpnServerExGet(VpnServerVo) returns (VpnServerExVo);
  3075. rpc VpnServerList(VpnServerListReq) returns (VpnServerListResp);
  3076. rpc VpnServerExList(VpnServerListReq) returns (VpnServerExListResp);
  3077. rpc VpnServerBatchAdd(VpnServerBatchAddReq) returns (VpnServerBatchAddResp);
  3078. rpc VpnServerBatchUpdate(VpnServerBatchUpdateReq) returns (VpnServerBatchUpdateResp);
  3079. // VpnServerLocation Model
  3080. // VpnServerLocationAdd
  3081. rpc VpnServerLocationAdd(VpnServerLocationVo) returns (VpnServerLocationVo);
  3082. rpc VpnServerLocationUpdate(VpnServerLocationVo) returns (Empty);
  3083. rpc VpnServerLocationDel(Ids) returns (Empty);
  3084. rpc VpnServerLocationGet(VpnServerLocationVo) returns (VpnServerLocationVo);
  3085. rpc VpnServerLocationList(VpnServerLocationListReq) returns (VpnServerLocationListResp);
  3086. rpc VpnWithIPAndPort(VpnWithIPAndPortReq) returns (VpnWithIPAndPortResp);
  3087. // VpnLocationServerCount
  3088. rpc VpnLocationServerCount(VpnLocationServerCountReq) returns (VpnLocationServerCountResp);
  3089. // VpnProbeTask Model
  3090. // VpnProbeTaskAdd
  3091. rpc VpnProbeTaskAdd(VpnProbeTaskVo) returns (VpnProbeTaskVo);
  3092. rpc VpnProbeTaskUpdate(VpnProbeTaskVo) returns (Empty);
  3093. rpc VpnProbeTaskList(VpnProbeTaskListReq) returns (VpnProbeTaskListResp);
  3094. // VpnipWalled Model
  3095. // VpnipWalledAdd
  3096. rpc VpnipWalledAdd(VpnipWalledAddReq) returns (VpnipWalledAddResp);
  3097. rpc VpnipWalledUpdate(VpnipWalledUpdateReq) returns (VpnipWalledUpdateResp);
  3098. rpc VpnipWalledDel(Ids) returns (Empty);
  3099. rpc VpnipWalledGet(VpnipWalledGetReq) returns (VpnipWalledGetResp);
  3100. rpc VpnipWalledList(VpnipWalledListReq) returns (VpnipWalledListResp);
  3101. rpc VpnipWalledBatchAdd(VpnipWalledBatchAddReq) returns (VpnipWalledBatchAddResp);
  3102. rpc VpnipWalledBatchUpdate(VpnipWalledBatchUpdateReq) returns (VpnipWalledBatchUpdateResp);
  3103. // Vpnip Model
  3104. // VpnipAdd
  3105. rpc VpnipAdd(VpnipAddReq) returns (VpnipAddResp);
  3106. rpc VpnipExAdd(VpnipExAddReq) returns (VpnipExAddResp);
  3107. rpc VpnipUpdate(VpnipUpdateReq) returns (VpnipUpdateResp);
  3108. rpc VpnipExUpdate(VpnipExUpdateReq) returns (VpnipExUpdateResp);
  3109. rpc VpnipDel(Ids) returns (Empty);
  3110. rpc VpnipGet(VpnipGetReq) returns (VpnipGetResp);
  3111. rpc VpnipExGet(VpnipGetReq) returns (VpnipExGetResp);
  3112. rpc VpnipList(VpnipListReq) returns (VpnipListResp);
  3113. rpc VpnipExList(VpnipListReq) returns (VpnipExListResp);
  3114. rpc VpnipBatchAdd(VpnipBatchAddReq) returns (VpnipBatchAddResp);
  3115. rpc VpnipBatchUpdate(VpnipBatchUpdateReq) returns (VpnipBatchUpdateResp);
  3116. rpc VpnipExBatchAdd(VpnipExBatchAddReq) returns (VpnipExBatchAddResp);
  3117. rpc VpnipExBatchUpdate(VpnipExBatchUpdateReq) returns (VpnipExBatchUpdateResp);
  3118. // VpnipRange Model
  3119. // VpnipRangeAdd
  3120. rpc VpnipRangeAdd(VpnipRangeAddReq) returns (VpnipRangeAddResp);
  3121. // VpnipRangeExAdd 添加IP段及IP数据,如果IP数据已存在,会自动将已经存在的IP的 rangeId 更新为新增的IP段的ID
  3122. rpc VpnipRangeExAdd(VpnipRangeExAddReq) returns (VpnipRangeExAddResp);
  3123. rpc VpnipRangeUpdate(VpnipRangeUpdateReq) returns (VpnipRangeUpdateResp);
  3124. rpc VpnipRangeExUpdate(VpnipRangeExUpdateReq) returns (VpnipRangeExUpdateResp);
  3125. rpc VpnipRangeDel(Ids) returns (Empty);
  3126. rpc VpnipRangeGet(VpnipRangeGetReq) returns (VpnipRangeGetResp);
  3127. rpc VpnipRangeExGet(VpnipRangeGetReq) returns (VpnipRangeExGetResp);
  3128. rpc VpnipRangeList(VpnipRangeListReq) returns (VpnipRangeListResp);
  3129. rpc VpnipRangeExList(VpnipRangeListReq) returns (VpnipRangeExListResp);
  3130. rpc VpnipRangeBatchAdd(VpnipRangeBatchAddReq) returns (VpnipRangeBatchAddResp);
  3131. rpc VpnipRangeExBatchAdd(VpnipRangeExBatchAddReq) returns (VpnipRangeExBatchAddResp);
  3132. rpc VpnipRangeBatchUpdate(VpnipRangeBatchUpdateReq) returns (VpnipRangeBatchUpdateResp);
  3133. rpc VpnipRangeExBatchUpdate(VpnipRangeExBatchUpdateReq) returns (VpnipRangeExBatchUpdateResp);
  3134. // VpnipBind Model
  3135. // VpnipBindAdd
  3136. rpc VpnipBindAdd(VpnipBindAddReq) returns (VpnipBindAddResp);
  3137. rpc VpnipBindUpdate(VpnipBindUpdateReq) returns (VpnipBindUpdateResp);
  3138. rpc VpnipBindDel(Ids) returns (Empty);
  3139. rpc VpnipBindGet(VpnipBindGetReq) returns (VpnipBindGetResp);
  3140. rpc VpnipBindList(VpnipBindListReq) returns (VpnipBindListResp);
  3141. rpc VpnipBindBatchUpdate(VpnipBindBatchUpdateReq) returns (VpnipBindBatchUpdateResp);
  3142. // VpnipsBindServer 为一台服务器绑定一批新IP,会解绑上次绑定的IP,再绑定新的IP,仅需提供 ipId, serverId, Remark, createAt, updateAt 即可,其他字段会自动填充
  3143. rpc VpnipsBindServer(VpnipBindBatchAddReq) returns (VpnipBindBatchAddResp);
  3144. // VpnConfigTemplatePlan Model (Xray配置模板,jump那边叫做配置模板)
  3145. // VpnConfigTemplatePlanAdd 添加配置模板及模板详情
  3146. rpc VpnConfigTemplatePlanAdd(VpnConfigTemplatePlanAddReq) returns (VpnConfigTemplatePlanAddResp);
  3147. // VpnConfigTemplatePlanUpdate 更新配置模板(只更新模板,不更新模板详情,如果 withDetails 为 true,则返回结果中包含模板详情)
  3148. rpc VpnConfigTemplatePlanUpdate(VpnConfigTemplatePlanUpdateReq) returns (VpnConfigTemplatePlanUpdateResp);
  3149. // VpnConfigTemplatePlanDel 删除配置模板(会同时删除模板详情)
  3150. rpc VpnConfigTemplatePlanDel(VpnConfigTemplatePlanDelReq) returns (Empty);
  3151. // VpnConfigTemplatePlanGet 获取配置模板(如果 withDetails 为 true,则返回结果中包含模板详情)
  3152. rpc VpnConfigTemplatePlanGet(VpnConfigTemplatePlanGetReq) returns (VpnConfigTemplatePlanGetResp);
  3153. // VpnConfigTemplatePlanList 获取配置模板列表(如果 withDetails 为 true,则返回结果中包含模板详情)
  3154. rpc VpnConfigTemplatePlanList(VpnConfigTemplatePlanListReq) returns (VpnConfigTemplatePlanListResp);
  3155. // VpnConfigTemplatePlanDetail Model (Xray配置模板详情,jump那边叫做传输配置)
  3156. // VpnConfigTemplatePlanDetailAdd 添加模板详情
  3157. rpc VpnConfigTemplatePlanDetailAdd(VpnConfigTemplatePlanDetailAddReq) returns (VpnConfigTemplatePlanDetailAddResp);
  3158. rpc VpnConfigTemplatePlanDetailUpdate(VpnConfigTemplatePlanDetailUpdateReq) returns (VpnConfigTemplatePlanDetailUpdateResp);
  3159. rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq) returns (Empty);
  3160. rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq) returns (VpnConfigTemplatePlanDetailGetResp);
  3161. rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq) returns (VpnConfigTemplatePlanDetailListResp);
  3162. }