gorpc.proto 112 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673
  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. // ServiceTypes
  233. message ServiceTypesVo {
  234. int64 id = 1; // ID
  235. string productCode = 2; // 产品标识
  236. string code = 3; // 权益标识
  237. string name = 4; // 权益名称
  238. int64 sort = 5; // 排序
  239. Status status = 6; // 状态 1启用 2禁用
  240. string remark = 7; // 备注
  241. int64 createTime = 8; // 创建时间
  242. int64 createAt = 9; // 创建者ID
  243. int64 updateTime = 10; // 更新时间
  244. int64 updateAt = 11; // 更新者ID
  245. }
  246. message ServiceTypesWithValueVo {
  247. ServiceTypesVo vo = 1;
  248. int64 value = 2;
  249. }
  250. message ServiceTypesGetReq { ServiceTypesVo vo = 1; }
  251. message ServiceTypesGetResp { ServiceTypesVo vo = 1; }
  252. message ServiceTypesGetWithValueReq {
  253. int64 serviceBoxId = 1;
  254. string productCode = 2;
  255. string serviceBoxCode = 3;
  256. int64 serviceTypeId = 4;
  257. string serviceTypeCode = 5;
  258. }
  259. message ServiceTypesGetWithValueResp {
  260. ServiceTypesVo vo = 1;
  261. int64 value = 2;
  262. }
  263. message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
  264. message ServiceTypesAddResp { ServiceTypesVo vo = 1; }
  265. message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
  266. message ServiceTypesUpdateResp { ServiceTypesVo vo = 1; }
  267. message ServiceTypesDelReq { repeated int64 ids = 1; }
  268. message ServiceTypesListReq {
  269. Page page = 1;
  270. ServiceTypesVo vo = 2;
  271. repeated string productCodes = 3;
  272. repeated int64 excludeIds = 4;
  273. }
  274. message ServiceTypesListResp {
  275. int64 total = 1;
  276. repeated ServiceTypesVo list = 2;
  277. }
  278. message ServiceTypesListWithValueReq {
  279. Page page = 1;
  280. ServiceTypesVo vo = 2;
  281. repeated int64 serviceBoxIds = 3;
  282. repeated string productCodes = 4;
  283. repeated string serviceBoxCodes = 5;
  284. repeated int64 excludeIds = 6;
  285. }
  286. message ServiceTypesListWithValueResp {
  287. int64 total = 1;
  288. repeated ServiceTypesWithValueVo list = 2;
  289. }
  290. // end ServiceTypes
  291. // ServiceBox
  292. message ServiceBoxVo {
  293. int64 id = 1; // ID
  294. string productCode = 2; // 产品标识
  295. string code = 3; // 礼包标识
  296. string name = 4; // 礼包名称
  297. int64 sort = 5; // 排序
  298. Status status = 6; // 状态 1启用 2禁用
  299. string remark = 7; // 备注
  300. int64 createTime = 8; // 创建时间
  301. int64 createAt = 9; // 创建者ID
  302. int64 updateTime = 10; // 更新时间
  303. int64 updateAt = 11; // 更新者ID
  304. }
  305. message ServiceBoxWithDetailsVo {
  306. ServiceBoxVo serviceBox = 1;
  307. repeated ServiceTypesWithValueVo serviceTypes = 2;
  308. }
  309. message ServiceBoxWithDurationVo {
  310. ServiceBoxVo serviceBox = 1;
  311. int64 licenseDurationDay = 2;
  312. int64 licenseDurationMinutes = 3;
  313. BoolInt isMaster = 4;
  314. int64 bindId = 5;
  315. }
  316. message ServiceBoxWithDurationAndDetailsVo {
  317. ServiceBoxWithDurationVo serviceBox = 1;
  318. repeated ServiceTypesWithValueVo serviceTypes = 2;
  319. }
  320. message ServiceBoxGetReq { ServiceBoxVo vo = 1; }
  321. message ServiceBoxGetResp { ServiceBoxVo vo = 1; }
  322. message ServiceBoxGetWithDetailsReq {
  323. ServiceBoxVo vo = 1;
  324. }
  325. message ServiceBoxGetWithDetailsResp {
  326. ServiceBoxVo serviceBox = 1;
  327. repeated ServiceTypesWithValueVo serviceTypes = 2;
  328. }
  329. message ServiceBoxAddReq { ServiceBoxVo vo = 1; }
  330. message ServiceBoxAddResp { ServiceBoxVo vo = 1; }
  331. message ServiceBoxAddWithDetailsReq {
  332. ServiceBoxVo serviceBox = 1;
  333. repeated ServiceTypesWithValueVo serviceTypes = 2;
  334. }
  335. message ServiceBoxAddWithDetailsResp {
  336. ServiceBoxVo serviceBox = 1;
  337. repeated ServiceTypesWithValueVo serviceTypes = 2;
  338. }
  339. message ServiceBoxUpdateReq { ServiceBoxVo vo = 1; }
  340. message ServiceBoxUpdateResp { ServiceBoxVo vo = 1; }
  341. message ServiceBoxUpdateWithDetailsReq {
  342. ServiceBoxVo serviceBox = 1;
  343. repeated ServiceTypesWithValueVo serviceTypes = 2;
  344. }
  345. message ServiceBoxUpdateWithDetailsResp {
  346. ServiceBoxVo serviceBox = 1;
  347. repeated ServiceTypesWithValueVo serviceTypes = 2;
  348. }
  349. message ServiceBoxDelReq { repeated int64 ids = 1; }
  350. message ServiceBoxListReq {
  351. Page page = 1;
  352. ServiceBoxVo vo = 2;
  353. repeated string productCodes = 3;
  354. repeated int64 excludeIds = 4;
  355. }
  356. message ServiceBoxListResp {
  357. int64 total = 1;
  358. repeated ServiceBoxVo list = 2;
  359. }
  360. message ServiceBoxListWithDetailsReq {
  361. Page page = 1;
  362. ServiceBoxVo vo = 2;
  363. repeated string productCodes = 3;
  364. repeated int64 excludeIds = 4;
  365. }
  366. message ServiceBoxListWithDetailsResp {
  367. int64 total = 1;
  368. repeated ServiceBoxWithDetailsVo list = 2;
  369. }
  370. // end ServiceBox
  371. // ServiceBoxTypes
  372. message ServiceBoxTypesVo {
  373. int64 id = 1; // ID
  374. int64 serviceBoxId = 2; // 礼包ID
  375. int64 serviceTypeId = 3; // 权益ID
  376. int64 serviceValue = 4; // 权益值 根据不同的 serviceTypeId,这里的值的含义不同
  377. int64 createTime = 5; // 创建时间
  378. int64 createAt = 6; // 创建者ID
  379. int64 updateTime = 7; // 更新时间
  380. int64 updateAt = 8; // 更新者ID
  381. }
  382. message ServiceBoxTypesGetReq { ServiceBoxTypesVo vo = 1; }
  383. message ServiceBoxTypesGetResp { ServiceBoxTypesVo vo = 1; }
  384. message ServiceBoxTypesAddReq { ServiceBoxTypesVo vo = 1; }
  385. message ServiceBoxTypesAddResp { ServiceBoxTypesVo vo = 1; }
  386. message ServiceBoxTypesUpdateReq { ServiceBoxTypesVo vo = 1; }
  387. message ServiceBoxTypesUpdateResp { ServiceBoxTypesVo vo = 1; }
  388. message ServiceBoxTypesDelReq { repeated int64 ids = 1; }
  389. message ServiceBoxTypesListReq {
  390. Page page = 1;
  391. ServiceBoxTypesVo vo = 2;
  392. repeated int64 serviceBoxIds = 3;
  393. repeated int64 serviceTypeIds = 4;
  394. repeated int64 excludeIds = 5;
  395. int64 boxStatus = 6;
  396. }
  397. message ServiceBoxTypesListResp {
  398. int64 total = 1;
  399. repeated ServiceBoxTypesVo list = 2;
  400. }
  401. // end ServiceBoxTypes
  402. // SubscribePeriodType 订阅周期类型
  403. enum SubscribePeriodType {
  404. SubscribePeriodTypeUnknown = 0;
  405. SubscribePeriodTypeDay = 1;
  406. SubscribePeriodTypeWeek = 2;
  407. SubscribePeriodTypeMonth = 3;
  408. SubscribePeriodTypeYear = 4;
  409. }
  410. // ServicePlan
  411. message ServicePlanVo {
  412. int64 id = 1; // ID
  413. string productCode = 2; // 产品标识
  414. string code = 3; // 套餐code
  415. string name = 4; // 套餐名称
  416. string title = 5; // 标题(默认值,对外显示)
  417. string subTitle = 6; // 副标题(默认值,对外显示)
  418. string introduce = 7; // 简介(默认值,对外显示)
  419. string tag = 8; // 标签内容(默认值,对外显示)
  420. float orgPrice = 9; // 原价(默认值)
  421. float price = 10; // 现价(默认值)
  422. int64 currency = 11; // 价格货币类型(默认值)
  423. BoolInt recommend = 12; // 是否推荐套餐(默认值) 1推荐 2不推荐
  424. BoolInt isDefault = 13; // 是否默认套餐(默认值) 1默认 2不默认
  425. BoolInt subscribeType = 14; // 订阅类型 1订阅类型 2非订阅类型
  426. SubscribePeriodType subscribePeriodType = 15; // 订阅周期类型 1Day 2Week 3Month 4Year(仅当订阅类型为1时有效)
  427. int64 subscribePeriodValue = 16; // 订阅周期值(仅当订阅类型为1时有效)
  428. int64 priority = 17; // 套餐使用优先级
  429. int64 mergeRule = 18; // 套餐合并规则(规则一样的套餐包含的权益可以合并到一起)
  430. int64 sort = 19; // 排序
  431. Status status = 20; // 状态 1启用 2禁用
  432. string remark = 21; // 备注
  433. int64 createTime = 22; // 创建时间
  434. int64 createAt = 23; // 创建者ID
  435. int64 updateTime = 24; // 更新时间
  436. int64 updateAt = 25; // 更新者ID
  437. }
  438. message ServicePlanWithBoxesVo {
  439. ServicePlanVo servicePlan = 1;
  440. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  441. }
  442. message ServicePlanWithBoxesAndDetailsVo {
  443. ServicePlanVo servicePlan = 1;
  444. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  445. }
  446. message ServicePlanGetReq { ServicePlanVo vo = 1; }
  447. message ServicePlanGetResp { ServicePlanVo vo = 1; }
  448. message ServicePlanGetWithBoxesReq { ServicePlanVo vo = 1; }
  449. message ServicePlanGetWithBoxesResp {
  450. ServicePlanVo servicePlan = 1;
  451. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  452. }
  453. message ServicePlanGetWithBoxesAndDetailsReq { ServicePlanVo vo = 1; }
  454. message ServicePlanGetWithBoxesAndDetailsResp {
  455. ServicePlanVo servicePlan = 1;
  456. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  457. }
  458. message ServicePlanAddReq { ServicePlanVo vo = 1; }
  459. message ServicePlanAddResp { ServicePlanVo vo = 1; }
  460. message ServicePlanAddWithBoxesReq {
  461. ServicePlanVo servicePlan = 1;
  462. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  463. }
  464. message ServicePlanAddWithBoxesResp {
  465. ServicePlanVo servicePlan = 1;
  466. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  467. }
  468. message ServicePlanAddWithBoxesAndDetailsReq {
  469. ServicePlanVo servicePlan = 1;
  470. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  471. }
  472. message ServicePlanAddWithBoxesAndDetailsResp {
  473. ServicePlanVo servicePlan = 1;
  474. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  475. }
  476. message ServicePlanUpdateReq { ServicePlanVo vo = 1; }
  477. message ServicePlanUpdateResp { ServicePlanVo vo = 1; }
  478. message ServicePlanUpdateWithBoxesReq {
  479. ServicePlanVo servicePlan = 1;
  480. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  481. }
  482. message ServicePlanUpdateWithBoxesResp {
  483. ServicePlanVo servicePlan = 1;
  484. repeated ServiceBoxWithDurationVo serviceBoxes = 2;
  485. }
  486. message ServicePlanUpdateWithBoxesAndDetailsReq {
  487. ServicePlanVo servicePlan = 1;
  488. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  489. }
  490. message ServicePlanUpdateWithBoxesAndDetailsResp {
  491. ServicePlanVo servicePlan = 1;
  492. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 2;
  493. }
  494. message ServicePlanDelReq { repeated int64 ids = 1; }
  495. message ServicePlanListReq {
  496. Page page = 1;
  497. ServicePlanVo vo = 2;
  498. repeated string productCodes = 3;
  499. repeated int64 excludeIds = 4;
  500. }
  501. message ServicePlanListResp {
  502. int64 total = 1;
  503. repeated ServicePlanVo list = 2;
  504. }
  505. message ServicePlanListWithBoxesReq {
  506. Page page = 1;
  507. ServicePlanVo vo = 2;
  508. repeated string productCodes = 3;
  509. repeated int64 excludeIds = 4;
  510. }
  511. message ServicePlanListWithBoxesResp {
  512. int64 total = 1;
  513. repeated ServicePlanWithBoxesVo list = 2;
  514. }
  515. message ServicePlanListWithBoxesAndDetailsReq {
  516. Page page = 1;
  517. ServicePlanVo vo = 2;
  518. repeated string productCodes = 3;
  519. repeated int64 excludeIds = 4;
  520. }
  521. message ServicePlanListWithBoxesAndDetailsResp {
  522. int64 total = 1;
  523. repeated ServicePlanWithBoxesAndDetailsVo list = 2;
  524. }
  525. // end ServicePlan
  526. // ServicePlanBoxes
  527. message ServicePlanBoxesVo {
  528. int64 id = 1; // ID
  529. int64 servicePlanId = 2; // 套餐ID
  530. int64 serviceBoxId = 3; // 礼包ID
  531. int64 licenseDurationDay = 4; // 礼包持续天数
  532. int64 licenseDurationMinutes = 5; // 礼包额外持续分钟数
  533. BoolInt isMaster = 6; // 是否主礼包 1是 2否
  534. int64 createTime = 7; // 创建时间
  535. int64 createAt = 8; // 创建者ID
  536. int64 updateTime = 9; // 更新时间
  537. int64 updateAt = 10; // 更新者ID
  538. }
  539. message ServicePlanBoxesGetReq { ServicePlanBoxesVo vo = 1; }
  540. message ServicePlanBoxesGetResp { ServicePlanBoxesVo vo = 1; }
  541. message ServicePlanBoxesAddReq { ServicePlanBoxesVo vo = 1; }
  542. message ServicePlanBoxesAddResp { ServicePlanBoxesVo vo = 1; }
  543. message ServicePlanBoxesUpdateReq { ServicePlanBoxesVo vo = 1; }
  544. message ServicePlanBoxesUpdateResp { ServicePlanBoxesVo vo = 1; }
  545. message ServicePlanBoxesDelReq { repeated int64 ids = 1; }
  546. message ServicePlanBoxesListReq {
  547. Page page = 1;
  548. ServicePlanBoxesVo vo = 2;
  549. repeated int64 servicePlanIds = 3;
  550. repeated int64 serviceBoxIds = 4;
  551. repeated int64 excludeIds = 5;
  552. int64 planStatus = 6;
  553. }
  554. message ServicePlanBoxesListResp {
  555. int64 total = 1;
  556. repeated ServicePlanBoxesVo list = 2;
  557. }
  558. // end ServicePlanBoxes
  559. // ServicePlanChannel
  560. message ServicePlanChannelVo {
  561. int64 id = 1; // ID
  562. string productCode = 2; // 产品标识
  563. string channel = 3; // 渠道标识
  564. string channelItemId = 4; // 套餐唯一ID或商店SKUID
  565. int64 servicePlanId = 5; // 套餐ID
  566. string title = 6; // 自定义标题(对外显示)
  567. string subTitle = 7; // 自定义副标题(对外显示)
  568. string introduce = 8; // 自定义简介(对外显示)
  569. string tag = 9; // 自定义标签内容(对外显示)
  570. float orgPrice = 10; // 在该渠道下的原价
  571. float price = 11; // 在该渠道下的现价
  572. int64 currency = 12; // 价格货币类型
  573. BoolInt recommend = 13; // 是否推荐商品(默认值) 1推荐 2不推荐
  574. BoolInt isDefault = 14; // 是否默认商品(默认值) 1默认 2不默认
  575. string displayPolicyConfig = 15; // 显示策略
  576. int64 sort = 16; // 排序
  577. Status status = 17; // 状态 1启用 2禁用
  578. string remark = 18; // 备注
  579. int64 createTime = 19; // 创建时间
  580. int64 createAt = 20; // 创建者ID
  581. int64 updateTime = 21; // 更新时间
  582. int64 updateAt = 22; // 更新者ID
  583. }
  584. message ServicePlanChannelWithPlanVo {
  585. ServicePlanChannelVo servicePlanChannel = 1;
  586. ServicePlanVo servicePlan = 2;
  587. }
  588. message ServicePlanChannelWithPlanAndBoxesVo {
  589. ServicePlanChannelVo servicePlanChannel = 1;
  590. ServicePlanVo servicePlan = 2;
  591. repeated ServiceBoxWithDurationVo serviceBoxes = 3;
  592. }
  593. message ServicePlanChannelWithPlanAndBoxesAndDetailsVo {
  594. ServicePlanChannelVo servicePlanChannel = 1;
  595. ServicePlanVo servicePlan = 2;
  596. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 3;
  597. }
  598. message ServicePlanChannelGetReq { ServicePlanChannelVo vo = 1; }
  599. message ServicePlanChannelGetResp { ServicePlanChannelVo vo = 1; }
  600. message ServicePlanChannelGetWithPlanReq { ServicePlanChannelVo vo = 1; }
  601. message ServicePlanChannelGetWithPlanResp {
  602. ServicePlanChannelVo servicePlanChannel = 1;
  603. ServicePlanVo servicePlan = 2;
  604. }
  605. message ServicePlanChannelGetWithPlanAndBoxesReq { ServicePlanChannelVo vo = 1; }
  606. message ServicePlanChannelGetWithPlanAndBoxesResp {
  607. ServicePlanChannelVo servicePlanChannel = 1;
  608. ServicePlanVo servicePlan = 2;
  609. repeated ServiceBoxWithDurationVo serviceBoxes = 3;
  610. }
  611. message ServicePlanChannelGetWithPlanAndBoxesAndDetailsReq { ServicePlanChannelVo vo = 1; }
  612. message ServicePlanChannelGetWithPlanAndBoxesAndDetailsResp {
  613. ServicePlanChannelVo servicePlanChannel = 1;
  614. ServicePlanVo servicePlan = 2;
  615. repeated ServiceBoxWithDurationAndDetailsVo serviceBoxes = 3;
  616. }
  617. message ServicePlanChannelAddReq { ServicePlanChannelVo vo = 1; }
  618. message ServicePlanChannelAddResp { ServicePlanChannelVo vo = 1; }
  619. message ServicePlanChannelUpdateReq { ServicePlanChannelVo vo = 1; }
  620. message ServicePlanChannelUpdateResp { ServicePlanChannelVo vo = 1; }
  621. message ServicePlanChannelDelReq { repeated int64 ids = 1; }
  622. message ServicePlanChannelListReq {
  623. Page page = 1;
  624. ServicePlanChannelVo vo = 2;
  625. repeated string productCodes = 3;
  626. repeated string channels = 4;
  627. repeated string channelItemIds = 5;
  628. repeated int64 servicePlanIds = 6;
  629. repeated int64 excludeIds = 7;
  630. }
  631. message ServicePlanChannelListResp {
  632. int64 total = 1;
  633. repeated ServicePlanChannelVo list = 2;
  634. }
  635. message ServicePlanChannelListWithPlanReq {
  636. Page page = 1;
  637. ServicePlanChannelVo vo = 2;
  638. repeated string productCodes = 3;
  639. repeated string channels = 4;
  640. repeated string channelItemIds = 5;
  641. repeated int64 servicePlanIds = 6;
  642. repeated int64 excludeIds = 7;
  643. }
  644. message ServicePlanChannelListWithPlanResp {
  645. int64 total = 1;
  646. repeated ServicePlanChannelWithPlanVo list = 2;
  647. }
  648. message ServicePlanChannelListWithPlanAndBoxesReq {
  649. Page page = 1;
  650. ServicePlanChannelVo vo = 2;
  651. repeated string productCodes = 3;
  652. repeated string channels = 4;
  653. repeated string channelItemIds = 5;
  654. repeated int64 servicePlanIds = 6;
  655. repeated int64 excludeIds = 7;
  656. }
  657. message ServicePlanChannelListWithPlanAndBoxesResp {
  658. int64 total = 1;
  659. repeated ServicePlanChannelWithPlanAndBoxesVo list = 2;
  660. }
  661. message ServicePlanChannelListWithPlanAndBoxesAndDetailsReq {
  662. Page page = 1;
  663. ServicePlanChannelVo vo = 2;
  664. repeated string productCodes = 3;
  665. repeated string channels = 4;
  666. repeated string channelItemIds = 5;
  667. repeated int64 servicePlanIds = 6;
  668. repeated int64 excludeIds = 7;
  669. }
  670. message ServicePlanChannelListWithPlanAndBoxesAndDetailsResp {
  671. int64 total = 1;
  672. repeated ServicePlanChannelWithPlanAndBoxesAndDetailsVo list = 2;
  673. }
  674. // end ServicePlanChannel
  675. service GoPlanClient {
  676. /** ServiceTypes Model */
  677. // ServiceTypesAdd
  678. rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesAddResp);
  679. rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesUpdateResp);
  680. rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
  681. rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesGetResp);
  682. rpc ServiceTypesGetWithValue(ServiceTypesGetWithValueReq) returns (ServiceTypesGetWithValueResp);
  683. rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
  684. rpc ServiceTypesListWithValue(ServiceTypesListWithValueReq) returns (ServiceTypesListWithValueResp);
  685. /** ServiceBox Model */
  686. // ServiceBoxAdd
  687. rpc ServiceBoxAdd(ServiceBoxAddReq) returns (ServiceBoxAddResp);
  688. rpc ServiceBoxAddWithDetails(ServiceBoxAddWithDetailsReq) returns (ServiceBoxAddWithDetailsResp);
  689. rpc ServiceBoxUpdate(ServiceBoxUpdateReq) returns (ServiceBoxUpdateResp);
  690. rpc ServiceBoxUpdateWithDetails(ServiceBoxUpdateWithDetailsReq) returns (ServiceBoxUpdateWithDetailsResp);
  691. rpc ServiceBoxDel(ServiceBoxDelReq) returns (Empty);
  692. rpc ServiceBoxGet(ServiceBoxGetReq) returns (ServiceBoxGetResp);
  693. rpc ServiceBoxGetWithDetails(ServiceBoxGetWithDetailsReq) returns (ServiceBoxGetWithDetailsResp);
  694. rpc ServiceBoxList(ServiceBoxListReq) returns (ServiceBoxListResp);
  695. rpc ServiceBoxListWithDetails(ServiceBoxListWithDetailsReq) returns (ServiceBoxListWithDetailsResp);
  696. /** ServiceBoxTypes Model */
  697. // ServiceBoxTypesAdd
  698. rpc ServiceBoxTypesAdd(ServiceBoxTypesAddReq) returns (ServiceBoxTypesAddResp);
  699. rpc ServiceBoxTypesUpdate(ServiceBoxTypesUpdateReq) returns (ServiceBoxTypesUpdateResp);
  700. rpc ServiceBoxTypesDel(ServiceBoxTypesDelReq) returns (Empty);
  701. rpc ServiceBoxTypesGet(ServiceBoxTypesGetReq) returns (ServiceBoxTypesGetResp);
  702. rpc ServiceBoxTypesList(ServiceBoxTypesListReq) returns (ServiceBoxTypesListResp);
  703. /** ServicePlan Model */
  704. // ServicePlanAdd
  705. rpc ServicePlanAdd(ServicePlanAddReq) returns (ServicePlanAddResp);
  706. rpc ServicePlanAddWithBoxes(ServicePlanAddWithBoxesReq) returns (ServicePlanAddWithBoxesResp);
  707. rpc ServicePlanAddWithBoxesAndDetails(ServicePlanAddWithBoxesAndDetailsReq) returns (ServicePlanAddWithBoxesAndDetailsResp);
  708. rpc ServicePlanUpdate(ServicePlanUpdateReq) returns (ServicePlanUpdateResp);
  709. rpc ServicePlanUpdateWithBoxes(ServicePlanUpdateWithBoxesReq) returns (ServicePlanUpdateWithBoxesResp);
  710. rpc ServicePlanUpdateWithBoxesAndDetails(ServicePlanUpdateWithBoxesAndDetailsReq) returns (ServicePlanUpdateWithBoxesAndDetailsResp);
  711. rpc ServicePlanDel(ServicePlanDelReq) returns (Empty);
  712. rpc ServicePlanGet(ServicePlanGetReq) returns (ServicePlanGetResp);
  713. rpc ServicePlanGetWithBoxes(ServicePlanGetWithBoxesReq) returns (ServicePlanGetWithBoxesResp);
  714. rpc ServicePlanGetWithBoxesAndDetails(ServicePlanGetWithBoxesAndDetailsReq) returns (ServicePlanGetWithBoxesAndDetailsResp);
  715. rpc ServicePlanList(ServicePlanListReq) returns (ServicePlanListResp);
  716. rpc ServicePlanListWithBoxes(ServicePlanListWithBoxesReq) returns (ServicePlanListWithBoxesResp);
  717. rpc ServicePlanListWithBoxesAndDetails(ServicePlanListWithBoxesAndDetailsReq) returns (ServicePlanListWithBoxesAndDetailsResp);
  718. /** ServicePlanBoxes Model */
  719. // ServicePlanBoxesAdd
  720. rpc ServicePlanBoxesAdd(ServicePlanBoxesAddReq) returns (ServicePlanBoxesAddResp);
  721. rpc ServicePlanBoxesUpdate(ServicePlanBoxesUpdateReq) returns (ServicePlanBoxesUpdateResp);
  722. rpc ServicePlanBoxesDel(ServicePlanBoxesDelReq) returns (Empty);
  723. rpc ServicePlanBoxesGet(ServicePlanBoxesGetReq) returns (ServicePlanBoxesGetResp);
  724. rpc ServicePlanBoxesList(ServicePlanBoxesListReq) returns (ServicePlanBoxesListResp);
  725. /** ServicePlanChannel Model */
  726. // ServicePlanChannelAdd
  727. rpc ServicePlanChannelAdd(ServicePlanChannelAddReq) returns (ServicePlanChannelAddResp);
  728. rpc ServicePlanChannelUpdate(ServicePlanChannelUpdateReq) returns (ServicePlanChannelUpdateResp);
  729. rpc ServicePlanChannelDel(ServicePlanChannelDelReq) returns (Empty);
  730. rpc ServicePlanChannelGet(ServicePlanChannelGetReq) returns (ServicePlanChannelGetResp);
  731. rpc ServicePlanChannelGetWithPlan(ServicePlanChannelGetWithPlanReq) returns (ServicePlanChannelGetWithPlanResp);
  732. rpc ServicePlanChannelGetWithPlanAndBoxes(ServicePlanChannelGetWithPlanAndBoxesReq) returns (ServicePlanChannelGetWithPlanAndBoxesResp);
  733. rpc ServicePlanChannelGetWithPlanAndBoxesAndDetails(ServicePlanChannelGetWithPlanAndBoxesAndDetailsReq) returns (ServicePlanChannelGetWithPlanAndBoxesAndDetailsResp);
  734. rpc ServicePlanChannelList(ServicePlanChannelListReq) returns (ServicePlanChannelListResp);
  735. rpc ServicePlanChannelListWithPlan(ServicePlanChannelListWithPlanReq) returns (ServicePlanChannelListWithPlanResp);
  736. rpc ServicePlanChannelListWithPlanAndBoxes(ServicePlanChannelListWithPlanAndBoxesReq) returns (ServicePlanChannelListWithPlanAndBoxesResp);
  737. rpc ServicePlanChannelListWithPlanAndBoxesAndDetails(ServicePlanChannelListWithPlanAndBoxesAndDetailsReq) returns (ServicePlanChannelListWithPlanAndBoxesAndDetailsResp);
  738. }
  739. message I18nVo {
  740. string code = 1;
  741. string value = 2;
  742. }
  743. message ConfigGetReq {
  744. int64 id = 1; // ID
  745. string code = 2; // 类型标识
  746. }
  747. // GlobalParam
  748. message GlobalParamVo {
  749. int64 id = 1;
  750. string paramKey = 2;
  751. string paramValue = 3;
  752. string valueType = 4;
  753. float minValue = 5;
  754. float maxValue = 6;
  755. string name = 7;
  756. BoolInt editable = 8;
  757. BoolInt nullable = 9;
  758. BoolInt hidden = 10;
  759. BoolInt mutiLang = 11;
  760. int64 sort = 12;
  761. string remark = 13;
  762. BoolInt apiExport = 14;
  763. string apiExportName = 15;
  764. int64 createTime = 16;
  765. int64 updateTime = 17;
  766. // valueType 为 string、text、json、string[], 且 mutiLang 为 true 时,需要同时干查询/修改/插入多语言数据
  767. repeated I18nVo i18ns = 18;
  768. }
  769. message GlobalParamGetReq {
  770. GlobalParamVo vo = 1;
  771. string lang = 2;
  772. }
  773. message GlobalParamListReq {
  774. Page page = 1;
  775. GlobalParamVo vo = 2;
  776. repeated int64 excludeIds = 3; // 排除的ID
  777. };
  778. message GlobalParamListResp {
  779. int64 total = 1;
  780. repeated GlobalParamVo list = 2;
  781. };
  782. // end GlobalParam
  783. // Product
  784. message ProductVo {
  785. int64 id = 1;
  786. string code = 2;
  787. string name = 3;
  788. string domain = 4;
  789. Status status = 5;
  790. string langs = 6;
  791. string defaultLang = 7;
  792. string remark = 8;
  793. int64 createTime = 9;
  794. int64 updateTime = 10;
  795. }
  796. message ProductListReq {
  797. Page page = 1;
  798. ProductVo vo = 2;
  799. repeated string productCodes = 3;
  800. repeated int64 excludeIds = 4;
  801. }
  802. message ProductListResp {
  803. int64 total = 1;
  804. repeated ProductVo list = 2;
  805. }
  806. // end Product
  807. // ProductParam
  808. message ProductParamVo {
  809. int64 id = 1;
  810. string productCode = 2;
  811. string paramKey = 3;
  812. string paramValue = 4;
  813. string valueType = 5;
  814. float minValue = 6;
  815. float maxValue = 7;
  816. string name = 8;
  817. BoolInt editable = 9;
  818. BoolInt nullable = 10;
  819. BoolInt hidden = 11;
  820. BoolInt mutiLang = 12;
  821. int64 sort = 13;
  822. string remark = 14;
  823. BoolInt apiExport = 15;
  824. string apiExportName = 16;
  825. int64 createTime = 17;
  826. int64 updateTime = 18;
  827. // valueType 为 string、text、json、string[], 且 mutiLang 为 true
  828. // 时,需要同时干查询/修改/插入多语言数据
  829. repeated I18nVo i18ns = 19;
  830. }
  831. message ProductParamGetReq {
  832. ProductParamVo vo = 1;
  833. string lang = 2;
  834. }
  835. message ProductParamListReq {
  836. Page page = 1;
  837. ProductParamVo vo = 2;
  838. repeated string productCodes = 3;
  839. repeated int64 excludeIds = 4;
  840. };
  841. message ProductParamListResp {
  842. int64 total = 1;
  843. repeated ProductParamVo list = 2;
  844. };
  845. // end ProductParam
  846. // ProductAction
  847. message ProductActionVo {
  848. int64 id = 1;
  849. int64 groupId = 2;
  850. string productCode = 3;
  851. string imgUrl = 4;
  852. string actionType = 5;
  853. string actionData = 6;
  854. string title = 7;
  855. Status status = 8;
  856. int64 createTime = 9;
  857. int64 updateTime = 10;
  858. int64 sort = 11;
  859. string versionPolicy = 12;
  860. string platform = 13;
  861. string channel = 14;
  862. }
  863. message ProductActionReq { ProductActionVo vo = 1; }
  864. message ProductActionListReq {
  865. Page page = 1;
  866. ProductActionVo vo = 2;
  867. repeated string productCodes = 3;
  868. repeated int64 excludeIds = 4;
  869. repeated int64 groupIds = 5;
  870. }
  871. message ProductActionListResp {
  872. int64 total = 1;
  873. repeated ProductActionVo list = 2;
  874. }
  875. // end ProductAction
  876. // ProductActionGroup 产品行为分组
  877. message ProductActionGroupVo {
  878. int64 id = 1;
  879. string productCode = 2;
  880. string area = 3; // 地区,存储json字符串
  881. string platform = 4; // 平台,存储json字符串
  882. string channel = 5; // 渠道,存储json字符串
  883. string versionPolicy = 6; // 版本策略,存储json字符串
  884. int64 sort = 7; // 排序
  885. Status status = 8; // 状态 0未知 1正常 2禁用
  886. string title = 9; // 标题
  887. int64 createTime = 10;
  888. int64 updateTime = 11;
  889. }
  890. message ProductActionGroupReq { ProductActionGroupVo vo = 1; }
  891. message ProductActionGroupListReq {
  892. Page page = 1;
  893. ProductActionGroupVo vo = 2;
  894. repeated string productCodes = 3;
  895. repeated int64 excludeIds = 4;
  896. }
  897. message ProductActionGroupListResp {
  898. int64 total = 1;
  899. repeated ProductActionGroupVo list = 2;
  900. }
  901. message ProductActionGroupDisableReq { repeated int64 ids = 1; }
  902. message ProductActionGroupEnableReq { repeated int64 ids = 1; }
  903. // end ProductActionGroup
  904. // ProductActionPolicyGroup 产品行为策略分组
  905. message ProductActionPolicyGroupVo {
  906. int64 id = 1;
  907. string productCode = 2;
  908. int64 groupId = 3; // productActionGroupID
  909. string platform = 4; // 平台,存储json字符串
  910. string channel = 5; // 渠道,存储json字符串
  911. string versionPolicy = 6; // 版本策略,存储json字符串
  912. int64 sort = 7; // 排序
  913. Status status = 8; // 状态 0未知 1正常 2禁用
  914. string title = 9; // 标题
  915. int64 createTime = 10;
  916. int64 updateTime = 11;
  917. string Position = 12;
  918. }
  919. message ProductActionPolicyGroupReq { ProductActionPolicyGroupVo vo = 1; }
  920. message ProductActionPolicyGroupListReq {
  921. Page page = 1;
  922. ProductActionPolicyGroupVo vo = 2;
  923. repeated string productCodes = 3;
  924. repeated int64 excludeIds = 4;
  925. repeated int64 groupIds = 5;
  926. }
  927. message ProductActionPolicyGroupListResp {
  928. int64 total = 1;
  929. repeated ProductActionPolicyGroupVo list = 2;
  930. }
  931. message ProductActionPolicyGroupDisableReq { repeated int64 ids = 1; }
  932. message ProductActionPolicyGroupEnableReq { repeated int64 ids = 1; }
  933. // end ProductActionPolicyGroup
  934. // ProductActionType 产品行为类型
  935. message ProductActionTypeVo {
  936. int64 id = 1;
  937. string name = 2; // 名称
  938. string description = 3; // 描述
  939. int64 createTime = 4;
  940. int64 updateTime = 5;
  941. }
  942. message ProductActionTypeReq { ProductActionTypeVo vo = 1; }
  943. message ProductActionTypeListReq {
  944. Page page = 1;
  945. ProductActionTypeVo vo = 2;
  946. repeated int64 excludeIds = 3;
  947. }
  948. message ProductActionTypeListResp {
  949. int64 total = 1;
  950. repeated ProductActionTypeVo list = 2;
  951. }
  952. // end ProductActionType
  953. // AreaParam
  954. message AreaParamVo {
  955. int64 id = 1;
  956. string productCode = 2;
  957. string name = 3;
  958. string areas = 4;
  959. string paramValue = 5;
  960. Status status = 6;
  961. int64 sort = 7;
  962. string remark = 8;
  963. int64 createTime = 9;
  964. int64 updateTime = 10;
  965. string version = 11;
  966. }
  967. message AreaParamListReq {
  968. Page page = 1;
  969. AreaParamVo vo = 2;
  970. repeated string productCodes = 3; // 产品code
  971. repeated int64 excludeIds = 4; // 排除的ID
  972. }
  973. message AreaParamListResp {
  974. int64 total = 1;
  975. repeated AreaParamVo list = 2;
  976. }
  977. // end AreaParam
  978. // NationalLanguage
  979. message NationalLanguageVo {
  980. int64 id = 1;
  981. string tbName = 2;
  982. int64 tbRowId = 3;
  983. string tbFieldName = 4;
  984. string lan = 5;
  985. string value = 6;
  986. Status status = 7;
  987. int64 updateTime = 8;
  988. int64 createTime = 9;
  989. }
  990. message NationalLanguageListReq {
  991. Page page = 1;
  992. NationalLanguageVo vo = 2;
  993. repeated int64 excludeIds = 3; // 排除的ID
  994. }
  995. message NationalLanguageListResp {
  996. int64 total = 1;
  997. repeated NationalLanguageVo list = 2;
  998. }
  999. // end NationalLanguage
  1000. // Tip
  1001. message TipVo {
  1002. int64 id = 1;
  1003. string productCode = 2;
  1004. string paramKey = 3;
  1005. string paramValue = 4;
  1006. string code = 5;
  1007. int64 showType = 6;
  1008. int64 sort = 7;
  1009. string remark = 8;
  1010. int64 createTime = 9;
  1011. int64 updateTime = 10;
  1012. repeated I18nVo i18ns = 11;
  1013. }
  1014. message TipGetReq {
  1015. TipVo vo = 1;
  1016. string lang = 2;
  1017. }
  1018. message TipListReq {
  1019. Page page = 1;
  1020. TipVo vo = 2;
  1021. repeated string productCodes = 3;
  1022. repeated int64 excludeIds = 4; // 排除的ID
  1023. }
  1024. message TipListResp {
  1025. int64 total = 1;
  1026. repeated TipVo list = 2;
  1027. }
  1028. // end Tip
  1029. // Dict
  1030. message DictVo {
  1031. int64 id = 1;
  1032. string productCode = 2;
  1033. int64 parentId = 3;
  1034. string dataType = 4;
  1035. string name = 5;
  1036. string payload = 6;
  1037. int64 sort = 7;
  1038. Status status = 8;
  1039. string remark = 9;
  1040. int64 createTime = 10;
  1041. int64 updateTime = 11;
  1042. string payloadJson = 12;
  1043. }
  1044. message DictGetReq { DictVo vo = 1; }
  1045. message DictListReq {
  1046. Page page = 1;
  1047. DictVo vo = 2;
  1048. repeated string productCodes = 3;
  1049. repeated int64 excludeIds = 4;
  1050. }
  1051. message DictListResp {
  1052. int64 total = 1;
  1053. repeated DictVo list = 2;
  1054. }
  1055. // end Dict
  1056. // message UpgradeResVo {
  1057. // int64 id = 1;
  1058. // string title = 2;
  1059. // string path = 3;
  1060. // string fileMd5 = 4;
  1061. // string filePath = 5;
  1062. // string metadataId = 6;
  1063. // string createdAt = 7;
  1064. // string runtimeVersion = 8;
  1065. // int64 runtimeVersionCode = 9;
  1066. // string appVersionName = 10;
  1067. // int64 appVersionCode = 11;
  1068. // Status status = 12;
  1069. // string remark = 13;
  1070. // int64 createTime = 14;
  1071. // int64 updateTime = 15;
  1072. // int64 resSize = 16;
  1073. // }
  1074. // message UpgradeResConfigVo {
  1075. // int64 id = 1;
  1076. // int64 productId = 2;
  1077. // string platform = 3;
  1078. // string channel = 4;
  1079. // int64 resId = 5;
  1080. // int64 isForceUpdate = 6;
  1081. // string forceIntro = 7;
  1082. // string areaConfigs = 8;
  1083. // string versionConfigs = 9;
  1084. // int64 interval = 10;
  1085. // int64 upgradeRate = 11;
  1086. // string intro = 12;
  1087. // string apis = 13;
  1088. // Status status = 14;
  1089. // string remark = 15;
  1090. // string userIds = 16;
  1091. // int64 createTime = 17;
  1092. // int64 updateTime = 18;
  1093. // string forceVersionConfigs = 19;
  1094. // string forceAreaConfigs = 20;
  1095. // string runtimeVersionConfigs = 21;
  1096. // string title = 22;
  1097. // int64 isSilent = 23;
  1098. // }
  1099. // message UpgradePkgVo {
  1100. // int64 id = 1;
  1101. // int64 productId = 2;
  1102. // string platform = 3;
  1103. // string channel = 4;
  1104. // int64 versionCode = 5;
  1105. // string versionName = 6;
  1106. // string fileMd5 = 7;
  1107. // string areaConfigs = 8;
  1108. // string versionConfigs = 9;
  1109. // int64 interval = 10;
  1110. // int64 upgradeRate = 11;
  1111. // string intro = 12;
  1112. // string appStoreUrl = 13;
  1113. // string url = 14;
  1114. // string onlineUrls = 15;
  1115. // string userIds = 16;
  1116. // int64 isForceUpdate = 17;
  1117. // string forceIntro = 18;
  1118. // string forceVersionConfigs = 19;
  1119. // Status status = 20;
  1120. // string remark = 21;
  1121. // int64 createTime = 22;
  1122. // int64 updateTime = 23;
  1123. // string title = 24;
  1124. // string forceAreaConfigs = 25;
  1125. // }
  1126. // message UpgradeResConfigGetReq {
  1127. // Page page = 1;
  1128. // int64 id = 2;
  1129. // }
  1130. // message UpgradeResConfigListReq {
  1131. // Page page = 1;
  1132. // UpgradeResConfigVo vo = 2;
  1133. // }
  1134. // message UpgradeResConfigListResp {
  1135. // int64 total = 1;
  1136. // repeated UpgradeResConfigVo list = 2;
  1137. // }
  1138. // message UpgradePkgGetReq { UpgradePkgVo vo = 1; }
  1139. // message UpgradePkgListReq {
  1140. // Page page = 1;
  1141. // UpgradePkgVo vo = 2;
  1142. // }
  1143. // message UpgradePkgListResp {
  1144. // int64 total = 1;
  1145. // repeated UpgradePkgVo list = 2;
  1146. // }
  1147. // message UpgradeResGetReq { UpgradeResVo vo = 1; }
  1148. // message UpgradeResListReq {
  1149. // Page page = 1;
  1150. // UpgradeResVo vo = 2;
  1151. // }
  1152. // message UpgradeResListResp {
  1153. // int64 total = 1;
  1154. // repeated UpgradeResVo list = 2;
  1155. // }
  1156. // message ResourceDelReq {
  1157. // repeated int64 ids = 1;
  1158. // string fileMd5 = 2;
  1159. // }
  1160. // UpgradePkgPlan
  1161. message UpgradePkgPlanVo {
  1162. int64 id = 1;
  1163. string productCode = 2; // 产品code
  1164. string areas = 3; // 地区列表
  1165. int64 sort = 4;
  1166. Status status = 5; // 状态
  1167. string remark = 6;
  1168. int64 createTime = 7;
  1169. int64 updateTime = 8;
  1170. }
  1171. message UpgradePkgPlanListReq {
  1172. Page page = 1;
  1173. UpgradePkgPlanVo vo = 2;
  1174. repeated string productCodes = 3;
  1175. repeated int64 excludeIds = 4;
  1176. }
  1177. message UpgradePkgPlanListResp {
  1178. int64 total = 1;
  1179. repeated UpgradePkgPlanVo list = 2;
  1180. }
  1181. // end UpgradePkgPlan
  1182. // UpgradePkgPlanDetail
  1183. message UpgradePkgPlanDetailVo {
  1184. int64 id = 1;
  1185. int64 planId = 2; // 方案ID
  1186. string platform = 3; // 平台
  1187. string channel = 4; // 渠道
  1188. string name = 5; // 名称
  1189. int64 ver = 6; // 版本号
  1190. string url = 7; // 商店地址
  1191. string websiteUrl = 8; // 官网地址
  1192. string directUrl = 9; // 直接下载地址
  1193. string md5 = 10; // MD5
  1194. string info = 11; // 更新信息
  1195. string testUpgradePolicyConfig = 12; // 测试更新策略配置
  1196. string upgradePolicyConfig = 13; // 更新策略配置
  1197. string forceUpgradePolicyConfig = 14; // 强制更新策略
  1198. Status status = 15; // 状态
  1199. string remark = 16;
  1200. int64 createTime = 17;
  1201. int64 updateTime = 18;
  1202. }
  1203. message UpgradePkgPlanDetailListReq {
  1204. Page page = 1;
  1205. UpgradePkgPlanDetailVo vo = 2;
  1206. repeated int64 planIds = 3;
  1207. }
  1208. message UpgradePkgPlanDetailListResp {
  1209. int64 total = 1;
  1210. repeated UpgradePkgPlanDetailVo list = 2;
  1211. }
  1212. // end UpgradePkgPlanDetail
  1213. // UpgradeResPlan
  1214. message UpgradeResPlanVo {
  1215. int64 id = 1;
  1216. string productCode = 2; // 产品code
  1217. string areas = 3; // 地区列表
  1218. int64 sort = 4;
  1219. Status status = 5; // 状态
  1220. string remark = 6;
  1221. int64 createTime = 7;
  1222. int64 updateTime = 8;
  1223. }
  1224. message UpgradeResPlanListReq {
  1225. Page page = 1;
  1226. UpgradeResPlanVo vo = 2;
  1227. repeated string productCodes = 3;
  1228. repeated int64 excludeIds = 4;
  1229. }
  1230. message UpgradeResPlanListResp {
  1231. int64 total = 1;
  1232. repeated UpgradeResPlanVo list = 2;
  1233. }
  1234. // end UpgradeResPlan
  1235. // UpgradeResPlanDetail
  1236. message UpgradeResPlanDetailVo {
  1237. int64 id = 1; // ID
  1238. int64 planId = 2; // 方案ID
  1239. string platform = 3; // 平台
  1240. string channel = 4; // 渠道
  1241. string name = 5; // 名称
  1242. int64 ver = 6; // 资源版本号
  1243. string url = 7; // 资源地址
  1244. string info = 8; // 更新信息
  1245. string md5 = 9; // 资源 md5值
  1246. int64 size = 10; // 资源大小
  1247. string testUpgradePolicyConfig = 11; // 测试更新策略配置
  1248. string upgradePolicyConfig = 12; // 更新策略配置
  1249. string forceUpgradePolicyConfig = 13; // 强制更新策略
  1250. Status status = 14; // 状态,1=正常,2=冻结
  1251. string remark = 15; // 备注
  1252. int64 createTime = 16; // 创建时间秒
  1253. int64 updateTime = 17; // 修改时间秒
  1254. }
  1255. message UpgradeResPlanDetailListReq {
  1256. Page page = 1;
  1257. UpgradeResPlanDetailVo vo = 2;
  1258. repeated int64 planIds = 3;
  1259. }
  1260. message UpgradeResPlanDetailListResp {
  1261. int64 total = 1;
  1262. repeated UpgradeResPlanDetailVo list = 2;
  1263. }
  1264. // end UpgradeResPlanDetail
  1265. // AdPlan
  1266. message AdPlanVo {
  1267. int64 id = 1;
  1268. string productCode = 2; // 产品code
  1269. string areas = 3; // 地区列表
  1270. string config = 4; // 配置
  1271. int64 sort = 5;
  1272. Status status = 6; // 状态
  1273. string remark = 7;
  1274. int64 createTime = 8;
  1275. int64 updateTime = 9;
  1276. }
  1277. message AdPlanListReq {
  1278. Page page = 1;
  1279. AdPlanVo vo = 2;
  1280. repeated string productCodes = 3;
  1281. repeated int64 excludeIds = 4;
  1282. }
  1283. message AdPlanListResp {
  1284. int64 total = 1;
  1285. repeated AdPlanVo list = 2;
  1286. }
  1287. // end AdPlan
  1288. // AdPlanDetail
  1289. message AdPlanDetailVo {
  1290. int64 id = 1;
  1291. int64 planId = 2; // 方案ID
  1292. string adPlatform = 3; // 平台
  1293. string adType = 4; // 广告类型
  1294. string adSlot = 5; // 广告位置
  1295. string adDatas = 6; // 广告资源
  1296. string testPolicyConfig = 7; // 策略配置
  1297. string policyConfig = 8; // 策略配置
  1298. int64 sort = 9; // 排序
  1299. Status status = 10; // 0未知,1正常,2暂停
  1300. string remark = 11;
  1301. int64 createTime = 12;
  1302. int64 updateTime = 13;
  1303. string version = 14;
  1304. }
  1305. message AdPlanDetailListReq {
  1306. Page page = 1;
  1307. AdPlanDetailVo vo = 2;
  1308. repeated int64 planIds = 3;
  1309. }
  1310. message AdPlanDetailListResp {
  1311. int64 total = 1;
  1312. repeated AdPlanDetailVo list = 2;
  1313. }
  1314. // end AdPlanDetail
  1315. // AdGlobalConfig
  1316. message AdGlobalConfigVo {
  1317. int64 id = 1;
  1318. string productCode = 2; // 产品code
  1319. string platforms = 3; // 按平台分类的广告配置JSON
  1320. string remark = 4; // 备注
  1321. int64 createTime = 5; // 创建时间
  1322. int64 updateTime = 6; // 更新时间
  1323. }
  1324. message AdGlobalConfigGetReq {
  1325. string productCode = 1; // 产品代码
  1326. }
  1327. // end AdGlobalConfig
  1328. // JobBatch
  1329. message JobBatchVo {
  1330. int64 id = 1; // ID
  1331. string name = 2; // 作业名称
  1332. string type = 3; // 作业类型
  1333. string initParams = 4; // 作业初始化参数
  1334. string contextData = 5; // 上下文数据,可用于存储此次批量作业的任务过程中产生的通用的中间数据
  1335. string beginHandler = 6; // 预处理函数/URL
  1336. string afterHandler = 7; // 后处理函数/URL
  1337. int64 concurrency = 8; // 并发控制数
  1338. string retryPolicy = 9; // 子任务重试策略
  1339. int64 startedTime = 10; // 批量作业开始时间
  1340. int64 finishedTime = 11; // 批量作业完成时间
  1341. string result = 12; // 批量作业返回结果
  1342. string status = 13; // 批量作业完成状态
  1343. string remark = 14; // 备注
  1344. int64 createAt = 15; // 创建者ID
  1345. int64 updateAt = 16; // 更新者ID
  1346. int64 createTime = 17; // 创建时间
  1347. int64 updateTime = 18; // 更新时间
  1348. }
  1349. message JobBatchWithTasksVo {
  1350. JobBatchVo jobBatch = 1;
  1351. repeated JobTasksVo jobTasks = 2;
  1352. }
  1353. message TimeRange {
  1354. int64 start = 1;
  1355. int64 end = 2;
  1356. }
  1357. message JobBatchListReq {
  1358. Page page = 1;
  1359. JobBatchVo vo = 2;
  1360. TimeRange startedTimeRange = 3;
  1361. TimeRange finishedTimeRange = 4;
  1362. repeated string statuses = 5;
  1363. repeated int64 excludeIds = 6;
  1364. }
  1365. message JobBatchListResp {
  1366. int64 total = 1;
  1367. repeated JobBatchVo list = 2;
  1368. }
  1369. message JobBatchListWithTasksResp {
  1370. int64 total = 1;
  1371. repeated JobBatchWithTasksVo list = 2;
  1372. }
  1373. // end JobBatch
  1374. // JobTasks
  1375. message JobTasksVo {
  1376. int64 id = 1; // 任务id
  1377. int64 batchId = 2; // 批量作业Id
  1378. string name = 3; // 任务名称
  1379. string initParams = 4; // 任务初始化配置及数据
  1380. string runtimeData = 5; // 任务运行时数据,用于临时存储任务过程中各个关键节点的中间数据
  1381. string externalRefs = 6; // 外部系统引用,用于记录与外部系统交互产生的关联标识
  1382. int64 startedTime = 7; // 任务开始时间
  1383. int64 finishedTime = 8; // 任务结束时间
  1384. int64 retryCount = 9; // 当前已重试次数
  1385. string result = 10; // 任务执行结果
  1386. string status = 11; // 任务状态
  1387. string remark = 12; // 备注
  1388. int64 createAt = 13; // 创建者ID
  1389. int64 updateAt = 14; // 更新者ID
  1390. int64 createTime = 15; // 创建时间
  1391. int64 updateTime = 16; // 更新时间
  1392. }
  1393. message JobTasksListReq {
  1394. Page page = 1;
  1395. JobTasksVo vo = 2;
  1396. TimeRange startedTimeRange = 3;
  1397. TimeRange finishedTimeRange = 4;
  1398. repeated string statuses = 5;
  1399. repeated int64 excludeIds = 6;
  1400. }
  1401. message JobTasksListResp {
  1402. int64 total = 1;
  1403. repeated JobTasksVo list = 2;
  1404. }
  1405. // end JobTasks
  1406. // DeployConfig
  1407. message DeployConfigVo {
  1408. int64 id = 1; // ID
  1409. string name = 2; // 名称
  1410. string type = 3; // 类型
  1411. string data = 4; // 数据
  1412. Status status = 5; // 状态
  1413. string remark = 6; // 备注
  1414. int64 createTime = 7; // 创建时间
  1415. int64 updateTime = 8; // 更新时间
  1416. }
  1417. message DeployConfigListReq {
  1418. Page page = 1;
  1419. DeployConfigVo vo = 2;
  1420. repeated int64 excludeIds = 3;
  1421. }
  1422. message DeployConfigListResp {
  1423. int64 total = 1;
  1424. repeated DeployConfigVo list = 2;
  1425. }
  1426. // end DeployConfig
  1427. // OperationLog
  1428. message OperationLogVo {
  1429. int64 id = 1;
  1430. int64 sysUserId = 2;
  1431. string productCode = 3;
  1432. string model = 4;
  1433. string action = 5;
  1434. string details = 6;
  1435. string result = 7;
  1436. int64 updateTime = 8;
  1437. int64 createTime = 9;
  1438. }
  1439. message OperationLogListReq {
  1440. Page page = 1;
  1441. OperationLogVo vo = 2;
  1442. repeated string productCodes = 3;
  1443. repeated int64 excludeIds = 4;
  1444. }
  1445. message OperationLogListResp {
  1446. int64 total = 1;
  1447. repeated OperationLogVo list = 2;
  1448. }
  1449. // end OperationLog
  1450. // AnnouncePlan
  1451. message AnnouncePlanVo {
  1452. int64 id = 1;
  1453. string productCode = 2; // 产品code
  1454. string areas = 3; // 地区列表
  1455. int64 sort = 4;
  1456. Status status = 5; // 状态
  1457. string remark = 6;
  1458. int64 createTime = 7;
  1459. int64 updateTime = 8;
  1460. }
  1461. message AnnouncePlanListReq {
  1462. Page page = 1;
  1463. AnnouncePlanVo vo = 2;
  1464. repeated string productCodes = 3;
  1465. repeated int64 excludeIds = 4;
  1466. }
  1467. message AnnouncePlanListResp {
  1468. int64 total = 1;
  1469. repeated AnnouncePlanVo list = 2;
  1470. }
  1471. // end AnnouncePlan
  1472. // AnnouncePlanDetail
  1473. message AnnouncePlanDetailVo {
  1474. int64 id = 1;
  1475. int64 planId = 2; // 方案ID
  1476. string platforms = 3; // 平台
  1477. string channels = 4; // 渠道
  1478. string icon = 5; // 图标
  1479. string title = 6; // 标题
  1480. string content = 7; // 内容
  1481. string url = 8; // 商店地址
  1482. string buttonText = 9; // 按钮文本
  1483. int64 closeable = 10; // 是否可关闭
  1484. int64 sort = 11; // 排序
  1485. string policyConfig = 12; // 更新策略配置
  1486. Status status = 13; // 状态
  1487. string remark = 14;
  1488. int64 createTime = 15;
  1489. int64 updateTime = 16;
  1490. }
  1491. message AnnouncePlanDetailListReq {
  1492. Page page = 1;
  1493. AnnouncePlanDetailVo vo = 2;
  1494. repeated int64 planIds = 3;
  1495. }
  1496. message AnnouncePlanDetailListResp {
  1497. int64 total = 1;
  1498. repeated AnnouncePlanDetailVo list = 2;
  1499. }
  1500. // end AnnouncePlanDetail
  1501. message MessagePushVo {
  1502. int64 id = 1;
  1503. string status = 2;
  1504. int64 operator = 3;
  1505. string module = 4;
  1506. string title = 5;
  1507. string message = 6;
  1508. string imgUrl = 7;
  1509. string data = 8;
  1510. string productCode = 9;
  1511. int64 areaParam = 10;
  1512. repeated string topics = 11;
  1513. repeated string firebaseTokens = 12;
  1514. int64 publishTime = 13;
  1515. int64 createTime = 14;
  1516. int64 updateTime = 15;
  1517. string pushType = 16;
  1518. int64 publishCount = 17;
  1519. string exData = 18;
  1520. }
  1521. message MessagePushListReq {
  1522. Page page = 1;
  1523. MessagePushVo vo = 2;
  1524. }
  1525. message MessagePushListResp {
  1526. int64 total = 1;
  1527. repeated MessagePushVo list = 2;
  1528. }
  1529. // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
  1530. service GoPmpClient {
  1531. rpc Ping(Request) returns (Response);
  1532. // GlobalParamVo Model
  1533. // GlobalParamAdd
  1534. rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
  1535. rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
  1536. rpc GlobalParamDel(Ids) returns (Empty);
  1537. rpc GlobalParamGet(GlobalParamVo) returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
  1538. rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
  1539. rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
  1540. // ProductVo Model
  1541. // ProductAdd
  1542. rpc ProductAdd(ProductVo) returns (ProductVo);
  1543. rpc ProductUpdate(ProductVo) returns (ProductVo);
  1544. rpc ProductDel(Ids) returns (Empty);
  1545. rpc ProductGet(ProductVo) returns (ProductVo);
  1546. rpc ProductList(ProductListReq) returns (ProductListResp);
  1547. rpc ProductAll(Request) returns (ProductListResp);
  1548. // ProductParamVo Model
  1549. // ProductParamAdd
  1550. rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
  1551. rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
  1552. rpc ProductParamDel(Ids) returns (Empty);
  1553. rpc ProductParamGet(ProductParamVo) returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
  1554. rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
  1555. rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
  1556. // ProductAction 产品行为配置
  1557. rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
  1558. rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
  1559. rpc ProductActionDel(Ids) returns (Empty);
  1560. rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
  1561. rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
  1562. // ProductActionGroup 产品行为分组
  1563. rpc ProductActionGroupAdd(ProductActionGroupVo) returns (ProductActionGroupVo);
  1564. rpc ProductActionGroupUpdate(ProductActionGroupVo) returns (ProductActionGroupVo);
  1565. rpc ProductActionGroupDel(Ids) returns (Empty);
  1566. rpc ProductActionGroupGet(ProductActionGroupReq) returns (ProductActionGroupVo);
  1567. rpc ProductActionGroupList(ProductActionGroupListReq) returns (ProductActionGroupListResp);
  1568. rpc ProductActionGroupDisable(ProductActionGroupDisableReq) returns (Empty);
  1569. rpc ProductActionGroupEnable(ProductActionGroupEnableReq) returns (Empty);
  1570. // ProductActionPolicyGroup 产品行为策略分组
  1571. rpc ProductActionPolicyGroupAdd(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1572. rpc ProductActionPolicyGroupUpdate(ProductActionPolicyGroupVo) returns (ProductActionPolicyGroupVo);
  1573. rpc ProductActionPolicyGroupDel(Ids) returns (Empty);
  1574. rpc ProductActionPolicyGroupGet(ProductActionPolicyGroupReq) returns (ProductActionPolicyGroupVo);
  1575. rpc ProductActionPolicyGroupList(ProductActionPolicyGroupListReq) returns (ProductActionPolicyGroupListResp);
  1576. rpc ProductActionPolicyGroupDisable(ProductActionPolicyGroupDisableReq) returns (Empty);
  1577. rpc ProductActionPolicyGroupEnable(ProductActionPolicyGroupEnableReq) returns (Empty);
  1578. // ProductActionType 产品行为类型
  1579. rpc ProductActionTypeAdd(ProductActionTypeVo) returns (ProductActionTypeVo);
  1580. rpc ProductActionTypeUpdate(ProductActionTypeVo) returns (ProductActionTypeVo);
  1581. rpc ProductActionTypeDel(Ids) returns (Empty);
  1582. rpc ProductActionTypeGet(ProductActionTypeReq) returns (ProductActionTypeVo);
  1583. rpc ProductActionTypeList(ProductActionTypeListReq) returns (ProductActionTypeListResp);
  1584. // AreaParamVo Model
  1585. // AreaParamAdd
  1586. rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
  1587. rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
  1588. rpc AreaParamDel(Ids) returns (Empty);
  1589. rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
  1590. rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
  1591. // NationalLanguage Model
  1592. // NationalLanguageAdd
  1593. rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
  1594. rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
  1595. rpc NationalLanguageDel(Ids) returns (Empty);
  1596. rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
  1597. rpc NationalLanguageList(NationalLanguageListReq) returns (NationalLanguageListResp);
  1598. // Tip Model
  1599. // TipAdd
  1600. rpc TipAdd(TipVo) returns (TipVo);
  1601. rpc TipUpdate(TipVo) returns (TipVo);
  1602. rpc TipDel(Ids) returns (Empty);
  1603. rpc TipGet(TipGetReq) returns (TipVo);
  1604. rpc TipList(TipListReq) returns (TipListResp);
  1605. // Dict Model
  1606. // DictAdd
  1607. rpc DictAdd(DictVo) returns (DictVo);
  1608. rpc DictUpdate(DictVo) returns (DictVo);
  1609. rpc DictDel(Ids) returns (Empty);
  1610. rpc DictGet(DictGetReq) returns (DictVo);
  1611. rpc DictList(DictListReq) returns (DictListResp);
  1612. // // UpgradeRes 热更新代码资源管理
  1613. // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
  1614. // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
  1615. // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
  1616. // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
  1617. // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
  1618. // // UpgradePkg app 包更新管理
  1619. // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
  1620. // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
  1621. // rpc UpgradePkgDel(Ids) returns (Empty);
  1622. // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
  1623. // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
  1624. // // UpgradeResConfig Model
  1625. // // UpgradeResConfigAdd
  1626. // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新
  1627. // rpc UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo);
  1628. // rpc UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty);
  1629. // rpc UpgradeResConfigDel(Ids) returns (Empty);
  1630. // rpc UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
  1631. // rpc UpgradeResConfigList(UpgradeResConfigListReq) returns (UpgradeResConfigListResp);
  1632. // UpgradePkgPlan Model
  1633. // UpgradePkgPlanAdd
  1634. rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1635. rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1636. rpc UpgradePkgPlanDel(Ids) returns (Empty);
  1637. rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
  1638. rpc UpgradePkgPlanList(UpgradePkgPlanListReq) returns (UpgradePkgPlanListResp);
  1639. // UpgradePkgPlanDetail Model
  1640. // UpgradePkgPlanDetailAdd
  1641. rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1642. rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1643. rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
  1644. rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo) returns (UpgradePkgPlanDetailVo);
  1645. rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq) returns (UpgradePkgPlanDetailListResp);
  1646. // UpgradeResPlan Model
  1647. // UpgradeResPlanAdd
  1648. rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1649. rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1650. rpc UpgradeResPlanDel(Ids) returns (Empty);
  1651. rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
  1652. rpc UpgradeResPlanList(UpgradeResPlanListReq) returns (UpgradeResPlanListResp);
  1653. // UpgradeResPlanDetail Model
  1654. // UpgradeResPlanDetailAdd
  1655. rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1656. rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1657. rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
  1658. rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo) returns (UpgradeResPlanDetailVo);
  1659. rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq) returns (UpgradeResPlanDetailListResp);
  1660. // AdPlan Model
  1661. // AdPlanAdd
  1662. rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
  1663. rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
  1664. rpc AdPlanDel(Ids) returns (Empty);
  1665. rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
  1666. rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
  1667. // AdPlanDetail Model
  1668. // AdPlanDetailAdd
  1669. rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
  1670. rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
  1671. rpc AdPlanDetailDel(Ids) returns (Empty);
  1672. rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
  1673. rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
  1674. // AdGlobalConfig Model
  1675. // AdGlobalConfigGet
  1676. rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
  1677. rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
  1678. // JobBatch Model
  1679. // JobBatchAdd
  1680. rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
  1681. rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
  1682. rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
  1683. rpc JobBatchDel(Ids) returns (Empty);
  1684. rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
  1685. rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
  1686. rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
  1687. rpc JobBatchListWithTasks(JobBatchListReq) returns (JobBatchListWithTasksResp);
  1688. // JobTasks Model
  1689. // JobTasksAdd
  1690. rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
  1691. rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
  1692. rpc JobTasksDel(Ids) returns (Empty);
  1693. rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
  1694. rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
  1695. // DeployConfig Model
  1696. // DeployConfigAdd
  1697. rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
  1698. rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
  1699. rpc DeployConfigDel(Ids) returns (Empty);
  1700. rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
  1701. rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
  1702. // OperationLog Model
  1703. // OperationLogAdd
  1704. rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
  1705. rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
  1706. rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
  1707. rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
  1708. // AnnouncePlan Model
  1709. // AnnouncePlanAdd
  1710. rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
  1711. rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
  1712. rpc AnnouncePlanDel(Ids) returns (Empty);
  1713. rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
  1714. rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
  1715. // AnnouncePlanDetail Model
  1716. // AnnouncePlanDetailAdd
  1717. rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1718. rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1719. rpc AnnouncePlanDetailDel(Ids) returns (Empty);
  1720. rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo) returns (AnnouncePlanDetailVo);
  1721. rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq) returns (AnnouncePlanDetailListResp);
  1722. // MessagePush Model
  1723. // MessagePushAdd
  1724. rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
  1725. rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
  1726. rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
  1727. }
  1728. message ShortDramaEpisodeVo {
  1729. int64 id = 1;
  1730. int64 dramaId = 2;
  1731. int64 type = 3;
  1732. string name = 4;
  1733. int64 sort = 5;
  1734. string videos = 6;
  1735. string subtitles = 7;
  1736. Status status = 8;
  1737. int64 createTime = 9;
  1738. int64 updateTime = 10;
  1739. string danmakuUrl = 11;
  1740. }
  1741. message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
  1742. message ShortDramaEpisodeListReq {
  1743. Page page = 1;
  1744. ShortDramaEpisodeVo vo = 2;
  1745. repeated int64 dramaIds = 3;
  1746. }
  1747. message ShortDramaEpisodeListResp {
  1748. int64 total = 1;
  1749. repeated ShortDramaEpisodeVo list = 2;
  1750. }
  1751. message ShortDramaEpisodeBatchAddReq {
  1752. int64 dramaId = 1;
  1753. repeated ShortDramaEpisodeVo episodes = 2;
  1754. }
  1755. message ShortDramaEpisodeBatchRefreshUpdateTimeReq { int64 dramaId = 1; }
  1756. message ShortDramaLanguageVo {
  1757. int64 id = 1;
  1758. int64 dramaId = 2;
  1759. string lang = 3;
  1760. string title = 4;
  1761. string description = 5;
  1762. string covers = 6;
  1763. string coverDominantColor = 7;
  1764. int64 createTime = 8;
  1765. int64 updateTime = 9;
  1766. }
  1767. message ShortDramaVo {
  1768. int64 id = 1;
  1769. string productCodes = 2;
  1770. string title = 3;
  1771. string description = 4;
  1772. string covers = 5;
  1773. string coverDominantColor = 6;
  1774. string type = 7;
  1775. string tags = 8;
  1776. string releaseRegions = 9;
  1777. int64 releaseDate = 10;
  1778. int64 totalEpisodes = 11;
  1779. int64 completedStatus = 12;
  1780. string copyrightSupplier = 13;
  1781. string copyrightDoc = 14;
  1782. int64 copyrightPurchaseDate = 15;
  1783. int64 copyrightExpireDate = 16;
  1784. int64 status = 17;
  1785. int64 createTime = 18;
  1786. int64 updateTime = 19;
  1787. string ghostCutId = 20;
  1788. int64 recommend = 21;
  1789. string otherConfig = 22;
  1790. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  1791. int64 mainEpisodeCount = 24;
  1792. int64 trailerEpisodeCount = 25;
  1793. int64 copyrightId = 26;
  1794. int64 creator = 27;
  1795. int64 modifier = 28;
  1796. string operationTags = 29;
  1797. string extraInfo = 30;
  1798. int64 schedulePublishTime = 31;
  1799. int64 publishTime = 32;
  1800. }
  1801. message ShortDramaGetReq {
  1802. ShortDramaVo vo = 1;
  1803. string productCode = 2;
  1804. string countryCode = 3;
  1805. string lang = 4;
  1806. }
  1807. message ShortDramaListReq {
  1808. Page page = 1;
  1809. ShortDramaVo vo = 2;
  1810. repeated int64 excludeIds = 3;
  1811. string productCode = 4;
  1812. string countryCode = 5;
  1813. string lang = 6;
  1814. string publishTimeStart = 7;
  1815. string publishTimeEnd = 8;
  1816. repeated int64 statusList = 9;
  1817. }
  1818. message ShortDramaListResp {
  1819. int64 total = 1;
  1820. repeated ShortDramaVo list = 2;
  1821. }
  1822. message ShortDramaLanguageListReq {
  1823. Page page = 1;
  1824. ShortDramaLanguageVo vo = 2;
  1825. }
  1826. message ShortDramaLanguageListResp {
  1827. int64 total = 1;
  1828. repeated ShortDramaLanguageVo list = 2;
  1829. }
  1830. message ShortDramaEpisodeCountVo {
  1831. int64 dramaId = 1;
  1832. int64 episodeCount = 2;
  1833. }
  1834. message ShortDramaEpisodeCountReq {
  1835. Page page = 1;
  1836. Status status = 2;
  1837. int64 type = 3;
  1838. repeated int64 dramaIds = 4;
  1839. }
  1840. message ShortDramaEpisodeCountResp {
  1841. int64 total = 1;
  1842. repeated ShortDramaEpisodeCountVo list = 2;
  1843. }
  1844. message ShortDramaCheckNameReq {
  1845. string title = 1; // 短剧名称
  1846. int64 id = 2; // 编辑时排除当前短剧ID
  1847. }
  1848. message ShortDramaCheckNameResp {
  1849. bool exists = 1; // 是否存在
  1850. }
  1851. message ShortDramaUpdateModifierReq {
  1852. int64 id = 1;
  1853. int64 modifier = 2;
  1854. }
  1855. message ShortDramaUpdateReleaseRegionsReq {
  1856. int64 id = 1;
  1857. string releaseRegions = 2;
  1858. }
  1859. message ShortDramaCopyrightInfoVo {
  1860. int64 id = 1;
  1861. int64 copyrightId = 2;
  1862. string releaseRegions = 3;
  1863. }
  1864. message ShortDramaFindIdsWithCopyrightResp {
  1865. repeated ShortDramaCopyrightInfoVo list = 1;
  1866. }
  1867. message SetTotalStatsReq {
  1868. int64 dramaId = 1;
  1869. string country = 2;
  1870. int64 todayPlayCount = 3;
  1871. int64 weeklyPlayCount = 4;
  1872. int64 monthlyPlayCount = 5;
  1873. }
  1874. message ShortDramaStatsPlaysTotalVo {
  1875. int64 id = 1;
  1876. int64 dramaId = 2;
  1877. string country = 3;
  1878. int64 todayPlayCount = 4;
  1879. int64 weeklyPlayCount = 5;
  1880. int64 monthlyPlayCount = 6;
  1881. int64 createTime = 7;
  1882. int64 updateTime = 8;
  1883. }
  1884. message ShortDramaStatsPlaysTotalListReq {
  1885. Page page = 1;
  1886. string country = 2; // 国家代码
  1887. }
  1888. message ShortDramaStatsPlaysTotalListResp {
  1889. int64 total = 1;
  1890. repeated ShortDramaStatsPlaysTotalVo list = 2;
  1891. }
  1892. message FindSchedulePublishListReq { int64 status = 1; }
  1893. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  1894. message PublishScheduleDramaReq {
  1895. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  1896. int64 targetStatus = 2; // 目标状态
  1897. }
  1898. service GoShortDramaClient {
  1899. // ShortDrama
  1900. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  1901. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  1902. rpc ShortDramaDel(Ids) returns (Empty);
  1903. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  1904. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  1905. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  1906. rpc ShortDramaUpdateReleaseRegions(ShortDramaUpdateReleaseRegionsReq)
  1907. returns (Empty);
  1908. rpc ShortDramaFindIdsWithCopyright(Empty)
  1909. returns (ShortDramaFindIdsWithCopyrightResp);
  1910. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  1911. returns (FindSchedulePublishListResp);
  1912. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  1913. // ShortDramaLanguage
  1914. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  1915. returns (ShortDramaLanguageListResp);
  1916. // ShortDramaEpisode
  1917. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  1918. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  1919. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  1920. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  1921. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  1922. returns (ShortDramaEpisodeVo);
  1923. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  1924. returns (ShortDramaEpisodeListResp);
  1925. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  1926. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  1927. // ShortDramaEpisodeCount
  1928. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  1929. returns (ShortDramaEpisodeCountResp);
  1930. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  1931. returns (ShortDramaCheckNameResp);
  1932. // ShortDramaStats
  1933. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  1934. // ShortDramaStatsPlaysTotal
  1935. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  1936. returns (ShortDramaStatsPlaysTotalListResp);
  1937. }
  1938. // 根据需要增加状态
  1939. message SysUserVo {
  1940. int64 id = 1; // ID
  1941. string username = 2; // 登录名
  1942. string password = 3; // 登录密码
  1943. string nickname = 4; // 昵称
  1944. string avatar = 5; // 头像
  1945. string email = 6; // 邮箱
  1946. string phone = 7; // 手机号
  1947. string remark = 8; // 备注
  1948. BoolInt isSuperAdmin = 9; // 是否为超级管理员 1是 2否
  1949. int64 permsLevel = 10; // 权限等级 值越大 权限越小
  1950. Status status = 11; // 状态 1正常 2冻结
  1951. int64 createTime = 12; // 创建时间
  1952. int64 updateTime = 13; // 修改时间
  1953. }
  1954. message SysRoleVo {
  1955. int64 id = 1; // ID
  1956. string productCode = 2; // 所属产品
  1957. string name = 3; // 角色名
  1958. string remark = 4; // 备注
  1959. Status status = 5; // 状态 1启用 2禁用
  1960. int64 createTime = 6; // 创建时间
  1961. int64 updateTime = 7; // 修改时间
  1962. int64 permsLevel = 8; // 权限等级 值越大 权限越小
  1963. }
  1964. message SysPermVo {
  1965. int64 id = 1; // ID
  1966. string name = 2; // 权限名
  1967. string code = 3; // 权限code
  1968. string remark = 4; // 备注
  1969. Status status = 5; // 状态 1启用 2禁用
  1970. int64 createTime = 6; // 创建时间
  1971. int64 updateTime = 7; // 修改时间
  1972. }
  1973. message SysUserRoleVo {
  1974. int64 id = 1; // ID
  1975. int64 userId = 2; // 用户ID
  1976. int64 roleId = 3; // 角色ID
  1977. int64 createTime = 4; // 创建时间
  1978. int64 updateTime = 5; // 修改时间
  1979. }
  1980. message SysRolePermVo {
  1981. int64 id = 1; // ID
  1982. int64 roleId = 2; // 角色ID
  1983. int64 permId = 3; // 权限ID
  1984. int64 createTime = 4; // 创建时间
  1985. int64 updateTime = 5; // 修改时间
  1986. }
  1987. message SysUserPermVo {
  1988. int64 id = 1; // ID
  1989. int64 userId = 2; // 用户ID
  1990. int64 permId = 3; // 权限ID
  1991. string effect = 4; // 权限控制策略 ALLOW允许 DENY拒绝
  1992. int64 createTime = 5; // 创建时间
  1993. int64 updateTime = 6; // 修改时间
  1994. }
  1995. message SysPermRule {
  1996. int64 permId = 1;
  1997. string effect = 2; // ALLOW允许 DENY拒绝
  1998. }
  1999. message SysUserWithRoleIdsAndPermRules {
  2000. SysUserVo user = 1; // 用户信息
  2001. repeated int64 roleIds = 2; // 角色
  2002. repeated SysPermRule permRules = 3; // 权限
  2003. }
  2004. message SysUserWithRolesAndPerms {
  2005. SysUserVo user = 1; // 用户信息
  2006. repeated SysRoleVo roles = 2; // 角色
  2007. repeated SysPermVo perms = 3; // 权限
  2008. }
  2009. message SysUserGetReq { SysUserVo vo = 1; }
  2010. message SysUserListReq {
  2011. Page page = 1;
  2012. SysUserVo vo = 2;
  2013. repeated int64 excludeIds = 3; // 排除的ID
  2014. }
  2015. message SysUserListResp {
  2016. int64 total = 1;
  2017. repeated SysUserVo list = 2;
  2018. }
  2019. message SysUserListWithRolesAndPermsResp {
  2020. int64 total = 1;
  2021. repeated SysUserWithRolesAndPerms list = 2;
  2022. }
  2023. message SysRoleWithPermIds {
  2024. SysRoleVo role = 1;
  2025. repeated int64 permIds = 2;
  2026. }
  2027. message SysRoleWithPerms {
  2028. SysRoleVo role = 1;
  2029. repeated SysPermVo perms = 2;
  2030. }
  2031. message SysRoleGetReq { SysRoleVo vo = 1; }
  2032. message SysRoleListReq {
  2033. Page page = 1;
  2034. SysRoleVo vo = 2;
  2035. repeated string productCodes = 3; // 所属产品
  2036. repeated int64 excludeIds = 4; // 排除的ID
  2037. }
  2038. message SysRoleListResp {
  2039. int64 total = 1;
  2040. repeated SysRoleVo list = 2;
  2041. }
  2042. message SysRoleListWithPermsResp {
  2043. int64 total = 1;
  2044. repeated SysRoleWithPerms list = 2;
  2045. }
  2046. message SysPermGetReq { SysPermVo vo = 1; }
  2047. message SysPermListReq {
  2048. Page page = 1;
  2049. SysPermVo vo = 2;
  2050. repeated int64 excludeIds = 3; // 排除的ID
  2051. }
  2052. message SysPermListResp {
  2053. int64 total = 1;
  2054. repeated SysPermVo list = 2;
  2055. }
  2056. message SysUserRoleGetReq { SysUserRoleVo vo = 1; }
  2057. message SysUserRoleListReq {
  2058. Page page = 1;
  2059. SysUserRoleVo vo = 2;
  2060. repeated int64 excludeIds = 3; // 排除的ID
  2061. }
  2062. message SysUserRoleListResp {
  2063. int64 total = 1;
  2064. repeated SysUserRoleVo list = 2;
  2065. }
  2066. message SysRolePermGetReq { SysRolePermVo vo = 1; }
  2067. message SysRolePermListReq {
  2068. Page page = 1;
  2069. SysRolePermVo vo = 2;
  2070. repeated int64 excludeIds = 3; // 排除的ID
  2071. }
  2072. message SysRolePermListResp {
  2073. int64 total = 1;
  2074. repeated SysRolePermVo list = 2;
  2075. }
  2076. message SysUserPermGetReq { SysUserPermVo vo = 1; }
  2077. message SysUserPermListReq {
  2078. Page page = 1;
  2079. SysUserPermVo vo = 2;
  2080. repeated int64 excludeIds = 3; // 排除的ID
  2081. }
  2082. message SysUserPermListResp {
  2083. int64 total = 1;
  2084. repeated SysUserPermVo list = 2;
  2085. }
  2086. service GoSysClient {
  2087. rpc Ping(Request) returns (Response);
  2088. // 用户管理
  2089. rpc SysUserAdd(SysUserVo) returns (SysUserVo);
  2090. rpc SysUserUpdate(SysUserVo) returns (SysUserVo);
  2091. rpc SysUserDelete(Ids) returns (Empty);
  2092. rpc SysUserGet(SysUserGetReq) returns (SysUserVo);
  2093. rpc SysUserList(SysUserListReq) returns (SysUserListResp);
  2094. rpc SysUserAddWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  2095. rpc SysUserUpdateWithRolesAndPerms(SysUserWithRoleIdsAndPermRules) returns (SysUserWithRolesAndPerms);
  2096. rpc SysUserGetWithRolesAndPerms(SysUserGetReq) returns (SysUserWithRolesAndPerms);
  2097. rpc SysUserListWithRolesAndPerms(SysUserListReq) returns (SysUserListWithRolesAndPermsResp);
  2098. // 角色管理
  2099. rpc SysRoleAdd(SysRoleVo) returns (SysRoleVo);
  2100. rpc SysRoleUpdate(SysRoleVo) returns (SysRoleVo);
  2101. rpc SysRoleDelete(Ids) returns (Empty);
  2102. rpc SysRoleGet(SysRoleGetReq) returns (SysRoleVo);
  2103. rpc SysRoleList(SysRoleListReq) returns (SysRoleListResp);
  2104. rpc SysRoleAddWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  2105. rpc SysRoleUpdateWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
  2106. rpc SysRoleGetWithPerms(SysRoleGetReq) returns (SysRoleWithPerms);
  2107. rpc SysRoleListWithPerms(SysRoleListReq) returns (SysRoleListWithPermsResp);
  2108. // 权限管理
  2109. rpc SysPermAdd(SysPermVo) returns (SysPermVo);
  2110. rpc SysPermUpdate(SysPermVo) returns (SysPermVo);
  2111. rpc SysPermDelete(Ids) returns (Empty);
  2112. rpc SysPermGet(SysPermGetReq) returns (SysPermVo);
  2113. rpc SysPermList(SysPermListReq) returns (SysPermListResp);
  2114. // 用户角色管理
  2115. rpc SysUserRoleAdd(SysUserRoleVo) returns (SysUserRoleVo);
  2116. rpc SysUserRoleUpdate(SysUserRoleVo) returns (SysUserRoleVo);
  2117. rpc SysUserRoleDelete(Ids) returns (Empty);
  2118. rpc SysUserRoleGet(SysUserRoleGetReq) returns (SysUserRoleVo);
  2119. rpc SysUserRoleList(SysUserRoleListReq) returns (SysUserRoleListResp);
  2120. // 角色权限管理
  2121. rpc SysRolePermAdd(SysRolePermVo) returns (SysRolePermVo);
  2122. rpc SysRolePermUpdate(SysRolePermVo) returns (SysRolePermVo);
  2123. rpc SysRolePermDelete(Ids) returns (Empty);
  2124. rpc SysRolePermGet(SysRolePermGetReq) returns (SysRolePermVo);
  2125. rpc SysRolePermList(SysRolePermListReq) returns (SysRolePermListResp);
  2126. // 用户权限管理
  2127. rpc SysUserPermAdd(SysUserPermVo) returns (SysUserPermVo);
  2128. rpc SysUserPermUpdate(SysUserPermVo) returns (SysUserPermVo);
  2129. rpc SysUserPermDelete(Ids) returns (Empty);
  2130. rpc SysUserPermGet(SysUserPermGetReq) returns (SysUserPermVo);
  2131. rpc SysUserPermList(SysUserPermListReq) returns (SysUserPermListResp);
  2132. }
  2133. // 白名单表
  2134. message UserWhiteVo {
  2135. int64 id = 1; // 主键ID
  2136. string userIdentifier = 2; // 用户
  2137. UserType userType = 3; // 用户类型 1 设备 2 账号
  2138. Status status = 4; // 状态
  2139. int64 createTime = 5; // 创建时间
  2140. int64 updateTime = 6; // 更新时间
  2141. }
  2142. // 测试用户表
  2143. message UserTestVo {
  2144. int64 id = 1; // 主键ID
  2145. string userIdentifier = 2; // 用户
  2146. UserType userType = 3; // 用户类型 1 设备 2 账号
  2147. string area = 4; // 指定地区
  2148. string apis = 5; // 指定接口
  2149. string routers = 6; // 指定路由
  2150. Status status = 7; // 状态
  2151. int64 createTime = 8; // 创建时间
  2152. int64 updateTime = 9; // 更新时间
  2153. }
  2154. // Account
  2155. message AccountVo {
  2156. int64 id = 1; // 主键ID
  2157. string userUuid = 2; // 用户UUID
  2158. string productCode = 3; // 产品ID
  2159. string username = 4; // 用户名
  2160. string password = 5; // 密码
  2161. string accountKey = 6; // 账号KEY
  2162. string accountPassword = 7; // 账号密码
  2163. int64 accountType = 8; // 账号类型
  2164. int64 registMode = 9; // 注册方式
  2165. string provider = 10; // 授权登录标识
  2166. BoolInt whitelistUser = 11; // 白名单用户
  2167. BoolInt activated = 12; // 是否激活
  2168. string config = 13; // 配置
  2169. Status status = 14; // 状态
  2170. string avatar = 15; // 头像
  2171. string area = 16; // 指定地区
  2172. string remark = 17; // 备注
  2173. string deviceId = 18; // 设备ID
  2174. string platform = 19; // 平台
  2175. string channel = 20; // 渠道
  2176. string deviceModel = 21; // 设备型号
  2177. string deviceOs = 22; // 设备系统
  2178. int64 timezone = 23; // 时区
  2179. string lang = 24; // 语言
  2180. string ip = 25; // IP
  2181. string country = 26; // 国家
  2182. string province = 27; // 省份
  2183. string city = 28; // 城市
  2184. string isp = 29; // ISP
  2185. int64 appVer = 30; // 产品版本号
  2186. int64 appRuntimeCode = 31; // 产品运行码
  2187. int64 createTime = 32; // 创建时间
  2188. int64 updateTime = 33; // 更新时间
  2189. string version = 34; // 数据版本
  2190. string sessionId = 35; // 登录凭证
  2191. int64 sessionCreateTime = 36; // 凭证创建时间
  2192. }
  2193. message AccountListReq {
  2194. Page page = 1;
  2195. AccountVo vo = 2;
  2196. repeated string productCodes = 3; // 产品code
  2197. repeated int64 excludeIds = 4; // 排除的ID
  2198. }
  2199. message AccountListResp {
  2200. int64 total = 1;
  2201. repeated AccountVo list = 2;
  2202. }
  2203. // AccountDevice
  2204. message AccountDeviceVo {
  2205. int64 id = 1;
  2206. int64 accountId = 2; // 用户ID
  2207. int64 deviceId = 3; // 设备ID
  2208. string sessionId = 4; // 登录凭证
  2209. int64 sessionCreateTime = 5; // 凭证创建时间
  2210. int64 updateTime = 6;
  2211. int64 createTime = 7;
  2212. }
  2213. message AccountDeviceListReq {
  2214. Page page = 1;
  2215. AccountDeviceVo vo = 2;
  2216. repeated int64 excludeIds = 3; // 排除的ID
  2217. }
  2218. message AccountDeviceListResp {
  2219. int64 total = 1;
  2220. repeated AccountDeviceVo list = 2;
  2221. }
  2222. message UserWhiteListReq {
  2223. Page page = 1;
  2224. UserWhiteVo vo = 2;
  2225. repeated int64 excludeIds = 3; // 排除的ID
  2226. }
  2227. message UserWhiteListResp {
  2228. int64 total = 1;
  2229. repeated UserWhiteVo list = 2;
  2230. }
  2231. message UserWhiteAddReq { UserWhiteVo vo = 1; }
  2232. message UserWhiteAddResp { UserWhiteVo vo = 1; }
  2233. message UserWhiteGetReq { UserWhiteVo vo = 1; }
  2234. message UserWhiteGetResp { UserWhiteVo vo = 1; }
  2235. message UserWhiteUpdateReq { UserWhiteVo vo = 1; }
  2236. message UserWhiteUpdateResp { UserWhiteVo vo = 1; }
  2237. message UserWhiteDelReq { repeated int64 ids = 1; }
  2238. message UserTestListReq {
  2239. Page page = 1;
  2240. UserTestVo vo = 2;
  2241. repeated int64 excludeIds = 3; // 排除的ID
  2242. }
  2243. message UserTestListResp {
  2244. int64 total = 1;
  2245. repeated UserTestVo list = 2;
  2246. }
  2247. message UserTestAddReq { UserTestVo vo = 1; }
  2248. message UserTestAddResp { UserTestVo vo = 1; }
  2249. message UserTestGetReq { UserTestVo vo = 1; }
  2250. message UserTestGetResp { UserTestVo vo = 1; }
  2251. message UserTestUpdateReq { UserTestVo vo = 1; }
  2252. message UserTestUpdateResp { UserTestVo vo = 1; }
  2253. message UserTestDelReq { repeated int64 ids = 1; }
  2254. // 用户服务订阅权益表
  2255. message UserServiceVo {
  2256. int64 id = 1; // 主键ID
  2257. string userUuid = 2; // 用户UUID
  2258. string productCode = 3; // 产品ID
  2259. int64 ownerId = 4; // 服务所有者ID
  2260. // int64 servicePlanId = 5; // 服务计划ID
  2261. // int64 serviceTypeId = 6; // 服务类型ID
  2262. int64 licenseDays = 7; // 授权天数
  2263. int64 licenseMinutes = 8; // 授权分钟数
  2264. int64 userLevel = 9; // 用户等级
  2265. int64 deviceLimit = 10; // 设备数量限制
  2266. int64 speedLimit = 11; // 速度限制
  2267. int64 trafficLimit = 12; // 流量限制
  2268. // int64 state = 13; // 状态
  2269. Status status = 14; // 状态
  2270. int64 createTime = 15; // 创建时间
  2271. int64 updateTime = 16; // 更新时间
  2272. int64 startTime = 17; // 套餐开始时间
  2273. }
  2274. message UserServiceAddReq { UserServiceVo vo = 1; }
  2275. message UserServiceAddResp { UserServiceVo vo = 1; }
  2276. message UserServiceUpdateReq { UserServiceVo vo = 1; }
  2277. message UserServiceUpdateResp { UserServiceVo vo = 1; }
  2278. message UserServiceDelReq { repeated int64 ids = 1; }
  2279. message UserServiceGetReq { UserServiceVo vo = 1; }
  2280. message UserServiceGetResp { UserServiceVo vo = 1; }
  2281. message UserServiceListReq {
  2282. Page page = 1;
  2283. UserServiceVo vo = 2;
  2284. repeated int64 excludeIds = 3; // 排除的ID
  2285. repeated int64 userIds = 4; // 用户ID
  2286. repeated int64 dids = 5; // device 表的 id
  2287. }
  2288. message UserServiceListResp {
  2289. int64 total = 1;
  2290. repeated UserServiceVo list = 2;
  2291. }
  2292. message DeviceVo {
  2293. int64 id = 1;
  2294. string userUuid = 2;
  2295. string productCode = 3;
  2296. string deviceId = 4;
  2297. string accountKey = 5;
  2298. string accountPassword = 6;
  2299. string platform = 7;
  2300. string channel = 8;
  2301. string referChannel = 9;
  2302. string deviceModel = 10;
  2303. string deviceOs = 11;
  2304. int64 timezone = 12;
  2305. string lang = 13;
  2306. int64 appVer = 14;
  2307. string ip = 15;
  2308. string country = 16;
  2309. string province = 17;
  2310. string city = 18;
  2311. string isp = 19;
  2312. int64 createTime = 20;
  2313. int64 updateTime = 21;
  2314. Status status = 22;
  2315. string refer = 23;
  2316. int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户
  2317. int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户
  2318. string mockCountry = 26; // 指定国家
  2319. string mockApi = 27; // 指定API
  2320. string mockRouter = 28; // 指定路由
  2321. string referSubChannel = 29;
  2322. string firebaseToken = 30; // firebase token
  2323. string appVerName = 31; // 版本
  2324. }
  2325. message DeviceListReq {
  2326. Page page = 1;
  2327. DeviceVo vo = 2;
  2328. repeated string productCodes = 3; // 产品code
  2329. repeated int64 excludeIds = 4; // 排除的ID
  2330. repeated string dateRange = 5; // 日期范围
  2331. int64 createStartTime = 6; // 创建开始时间
  2332. int64 createEndTime = 7; // 创建结束时间
  2333. repeated string deviceIds = 8; // 设备IDs
  2334. string country = 9; // 国家
  2335. string vn = 10; // 运营商
  2336. }
  2337. message DeviceListRes {
  2338. int64 total = 1;
  2339. repeated DeviceVo list = 2;
  2340. }
  2341. message UserAppConfigVo {
  2342. int64 id = 1;
  2343. string deviceId = 2;
  2344. string key = 3;
  2345. string value = 4;
  2346. Status status = 5;
  2347. int64 createTime = 6;
  2348. int64 updateTime = 7;
  2349. }
  2350. message UserAppConfigGetReq { UserAppConfigVo vo = 1; }
  2351. message UserAppConfigListReq {
  2352. Page page = 1;
  2353. UserAppConfigVo vo = 2;
  2354. }
  2355. message UserAppConfigListRes {
  2356. int64 total = 1;
  2357. repeated UserAppConfigVo list = 2;
  2358. }
  2359. message UserVo {
  2360. int64 id = 1; // ID
  2361. string productCode = 2; // 产品标识
  2362. string uuid = 3; // 用户唯一ID
  2363. string deviceId = 4; // 注册时使用的设备ID
  2364. int64 accountType = 5; // 值为1时表示实体尚未注册账号, 为其他值时表示实体已经注册了账号(为了让 productCode+deviceId+accountType 能唯一确定一个用户)
  2365. string registType = 6; // 注册方式 normal email phone wechat qq google apple (其实可以通过查询 user_credential 中最早的一条记录的 identityType 来确定)
  2366. int64 registFrom = 7; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  2367. string referChannel = 8; // 推广渠道
  2368. string referSubChannel = 9; // 推广子渠道
  2369. string nickname = 10; // 用户昵称
  2370. string avatar = 11; // 用户头像地址
  2371. string config = 12; // 保留字段,用于扩展
  2372. Status status = 13; // 状态 1: 正常 2: 冻结
  2373. int64 createTime = 14; // 创建时间
  2374. int64 updateTime = 15; // 修改时间
  2375. }
  2376. message UserAddReq { UserVo vo = 1; }
  2377. message UserAddResp { UserVo vo = 1; }
  2378. message UserUpdateReq { UserVo vo = 1; }
  2379. message UserUpdateResp { UserVo vo = 1; }
  2380. message UserDelReq { repeated int64 ids = 1; }
  2381. message UserGetReq { UserVo vo = 1; }
  2382. message UserGetResp { UserVo vo = 1; }
  2383. message UserListReq {
  2384. Page page = 1;
  2385. UserVo vo = 2;
  2386. repeated int64 excludeIds = 3; // 排除的ID
  2387. repeated string productCodes = 4; // 产品code
  2388. repeated string uuids = 5; // 用户唯一ID
  2389. repeated string deviceIds = 6; // 设备ID (device 表的 id)
  2390. }
  2391. message UserListResp {
  2392. int64 total = 1;
  2393. repeated UserVo list = 2;
  2394. }
  2395. message UserCredentialVo {
  2396. int64 id = 1; // ID
  2397. int64 userId = 2; // 用户ID
  2398. string productCode = 3; // 产品标识
  2399. string identityType = 4; // 凭证类型: username, email, phone, wechat, qq, google, apple 等
  2400. string identifier = 5; // 凭证标识
  2401. string credential = 6; // 凭证密钥(密码/token)
  2402. int64 isVerified = 7; // 是否已验证 1: 已验证 2: 未验证
  2403. int64 registFrom = 8; // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
  2404. Status status = 9; // 状态 1: 正常 2: 禁用
  2405. int64 createTime = 10; // 创建时间/注册时间
  2406. int64 updateTime = 11; // 更新时间
  2407. }
  2408. message UserCredentialAddReq { UserCredentialVo vo = 1; }
  2409. message UserCredentialAddResp { UserCredentialVo vo = 1; }
  2410. message UserCredentialUpdateReq { UserCredentialVo vo = 1; }
  2411. message UserCredentialUpdateResp { UserCredentialVo vo = 1; }
  2412. message UserCredentialDelReq { repeated int64 ids = 1; }
  2413. message UserCredentialGetReq { UserCredentialVo vo = 1; }
  2414. message UserCredentialGetResp { UserCredentialVo vo = 1; }
  2415. message UserCredentialListReq {
  2416. Page page = 1;
  2417. UserCredentialVo vo = 2;
  2418. repeated int64 excludeIds = 3; // 排除的ID
  2419. repeated int64 userIds = 4; // 用户ID
  2420. }
  2421. message UserCredentialListResp {
  2422. int64 total = 1;
  2423. repeated UserCredentialVo list = 2;
  2424. }
  2425. message UserDeviceVo {
  2426. int64 id = 1; // ID
  2427. int64 userId = 2; // 用户ID
  2428. int64 did = 3; // 设备ID
  2429. string sessionId = 4; // 登录凭证
  2430. int64 sessionCreateTime = 5; // 凭证创建时间
  2431. Status status = 6; // 状态 1: 正常 2: 禁用
  2432. int64 updateTime = 7; // 更新时间
  2433. int64 createTime = 8; // 创建时间
  2434. }
  2435. message UserDeviceAddReq { UserDeviceVo vo = 1; }
  2436. message UserDeviceAddResp { UserDeviceVo vo = 1; }
  2437. message UserDeviceUpdateReq { UserDeviceVo vo = 1; }
  2438. message UserDeviceUpdateResp { UserDeviceVo vo = 1; }
  2439. message UserDeviceDelReq { repeated int64 ids = 1; }
  2440. message UserDeviceGetReq { UserDeviceVo vo = 1; }
  2441. message UserDeviceGetResp { UserDeviceVo vo = 1; }
  2442. message UserDeviceListReq {
  2443. Page page = 1;
  2444. UserDeviceVo vo = 2;
  2445. repeated int64 excludeIds = 3; // 排除的ID
  2446. repeated int64 userIds = 4; // 用户ID
  2447. repeated int64 dids = 5; // device 表的 id
  2448. }
  2449. message UserDeviceListResp {
  2450. int64 total = 1;
  2451. repeated UserDeviceVo list = 2;
  2452. }
  2453. // 用户模块
  2454. service GoUserClient {
  2455. rpc Ping(Request) returns (Response);
  2456. // 用户app配置管理(ring)
  2457. rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo);
  2458. rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo);
  2459. rpc UserAppConfigDel(Ids) returns (Empty);
  2460. rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo);
  2461. rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes);
  2462. // Device Model
  2463. // DeviceAdd
  2464. rpc DeviceAdd(DeviceVo) returns (DeviceVo);
  2465. rpc DeviceUpdate(DeviceVo) returns (DeviceVo);
  2466. rpc DeviceDel(Ids) returns (Empty);
  2467. rpc DeviceGet(DeviceVo) returns (DeviceVo);
  2468. rpc DeviceList(DeviceListReq) returns (DeviceListRes);
  2469. // Account Model
  2470. // AccountAdd
  2471. rpc AccountAdd(AccountVo) returns (AccountVo);
  2472. rpc AccountUpdate(AccountVo) returns (AccountVo);
  2473. rpc AccountDel(Ids) returns (Empty);
  2474. rpc AccountGet(AccountVo) returns (AccountVo);
  2475. rpc AccountList(AccountListReq) returns (AccountListResp);
  2476. // AccountDevice Model
  2477. // AccountDeviceAdd
  2478. rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo);
  2479. rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo);
  2480. rpc AccountDeviceDel(Ids) returns (Empty);
  2481. rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo);
  2482. rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp);
  2483. // 用户白名单管理
  2484. rpc UserWhiteAdd(UserWhiteAddReq) returns (UserWhiteAddResp);
  2485. rpc UserWhiteUpdate(UserWhiteUpdateReq) returns (UserWhiteUpdateResp);
  2486. rpc UserWhiteDel(UserWhiteDelReq) returns (Empty);
  2487. rpc UserWhiteGet(UserWhiteGetReq) returns (UserWhiteGetResp);
  2488. rpc UserWhiteList(UserWhiteListReq) returns (UserWhiteListResp);
  2489. // 测试用户管理
  2490. rpc UserTestAdd(UserTestAddReq) returns (UserTestAddResp);
  2491. rpc UserTestUpdate(UserTestUpdateReq) returns (UserTestUpdateResp);
  2492. rpc UserTestDel(UserTestDelReq) returns (Empty);
  2493. rpc UserTestGet(UserTestGetReq) returns (UserTestGetResp);
  2494. rpc UserTestList(UserTestListReq) returns (UserTestListResp);
  2495. // User Model
  2496. // UserAdd
  2497. rpc UserAdd(UserAddReq) returns (UserAddResp);
  2498. rpc UserUpdate(UserUpdateReq) returns (UserUpdateResp);
  2499. rpc UserDel(UserDelReq) returns (Empty);
  2500. rpc UserGet(UserGetReq) returns (UserGetResp);
  2501. rpc UserList(UserListReq) returns (UserListResp);
  2502. // UserCredential Model
  2503. // UserCredentialAdd
  2504. rpc UserCredentialAdd(UserCredentialAddReq) returns (UserCredentialAddResp);
  2505. rpc UserCredentialUpdate(UserCredentialUpdateReq) returns (UserCredentialUpdateResp);
  2506. rpc UserCredentialDel(UserCredentialDelReq) returns (Empty);
  2507. rpc UserCredentialGet(UserCredentialGetReq) returns (UserCredentialGetResp);
  2508. rpc UserCredentialList(UserCredentialListReq) returns (UserCredentialListResp);
  2509. // UserDevice Model
  2510. // UserDeviceAdd
  2511. rpc UserDeviceAdd(UserDeviceAddReq) returns (UserDeviceAddResp);
  2512. rpc UserDeviceUpdate(UserDeviceUpdateReq) returns (UserDeviceUpdateResp);
  2513. rpc UserDeviceDel(UserDeviceDelReq) returns (Empty);
  2514. rpc UserDeviceGet(UserDeviceGetReq) returns (UserDeviceGetResp);
  2515. rpc UserDeviceList(UserDeviceListReq) returns (UserDeviceListResp);
  2516. //UserService
  2517. rpc UserServiceAdd(UserServiceAddReq) returns (UserServiceAddResp);
  2518. rpc UserServiceUpdate(UserServiceUpdateReq) returns (UserServiceUpdateResp);
  2519. rpc UserServiceDel(UserServiceDelReq) returns (Empty);
  2520. rpc UserServiceGet(UserServiceGetReq) returns (UserServiceGetResp);
  2521. rpc UserServiceList(UserServiceListReq) returns (UserServiceListResp);
  2522. }
  2523. // VpnTag
  2524. message VpnTagVo {
  2525. int64 id = 1;
  2526. string productCode = 2;
  2527. string type = 3;
  2528. string name = 4;
  2529. int64 sort = 5;
  2530. Status status = 6;
  2531. string remark = 7;
  2532. int64 createTime = 8;
  2533. int64 updateTime = 9;
  2534. string otherConfig = 10;
  2535. }
  2536. message VpnTagGetReq { VpnTagVo vo = 1; }
  2537. message VpnTagListReq {
  2538. Page page = 1;
  2539. VpnTagVo vo = 2;
  2540. repeated string productCodes = 3;
  2541. repeated int64 excludeIds = 4;
  2542. }
  2543. message VpnTagListResp {
  2544. int64 total = 1;
  2545. repeated VpnTagVo list = 2;
  2546. }
  2547. message VpnTagBatchAddReq { repeated VpnTagVo list = 1; }
  2548. message VpnTagBatchAddResp { repeated VpnTagVo list = 1; }
  2549. message VpnTagBatchUpdateReq { repeated VpnTagVo list = 1; }
  2550. message VpnTagBatchUpdateResp { repeated VpnTagVo list = 1; }
  2551. message VpnTagBatchDelReq { repeated int64 ids = 1; }
  2552. // VpnTag
  2553. message VpnGroupVo {
  2554. int64 id = 1;
  2555. string productCode = 2;
  2556. string name = 3;
  2557. string icon = 4;
  2558. int64 sort = 5;
  2559. Status status = 6;
  2560. string remark = 7;
  2561. int64 createTime = 8;
  2562. int64 updateTime = 9;
  2563. string version = 10;
  2564. string otherConfig = 11;
  2565. }
  2566. message VpnGroupExVo {
  2567. VpnGroupVo vo = 1;
  2568. repeated int64 tagIds = 2;
  2569. }
  2570. message VpnGroupAddReq {
  2571. VpnGroupVo vo = 1;
  2572. repeated int64 tagIds = 2;
  2573. }
  2574. message VpnGroupGetReq { VpnGroupVo vo = 1; }
  2575. message VpnGroupListReq {
  2576. Page page = 1;
  2577. VpnGroupVo vo = 2;
  2578. repeated string productCodes = 3;
  2579. repeated int64 excludeIds = 4;
  2580. }
  2581. message VpnGroupListResp {
  2582. int64 total = 1;
  2583. repeated VpnGroupVo list = 2;
  2584. }
  2585. message VpnGroupBatchAddReq { repeated VpnGroupExVo list = 1; }
  2586. message VpnGroupBatchAddResp { repeated VpnGroupExVo list = 1; }
  2587. message VpnGroupBatchUpdateReq { repeated VpnGroupExVo list = 1; }
  2588. message VpnGroupBatchUpdateResp { repeated VpnGroupExVo list = 1; }
  2589. message VpnGroupBatchDelReq { repeated int64 ids = 1; }
  2590. // VpnGroupTag
  2591. message VpnGroupTagVo {
  2592. int64 id = 1;
  2593. int64 groupId = 2;
  2594. int64 tagId = 3;
  2595. int64 createTime = 4;
  2596. int64 updateTime = 5;
  2597. }
  2598. message VpnGroupTagListReq {
  2599. Page page = 1;
  2600. VpnGroupTagVo vo = 2;
  2601. repeated int64 groupIds = 3;
  2602. repeated int64 tagIds = 4;
  2603. }
  2604. message VpnGroupTagListResp {
  2605. int64 total = 1;
  2606. repeated VpnGroupTagVo list = 2;
  2607. }
  2608. // VpnLocation
  2609. message VpnLocationVo {
  2610. int64 id = 1;
  2611. int64 groupId = 2;
  2612. string name = 3;
  2613. string code = 4;
  2614. string icon = 5;
  2615. int64 type = 6;
  2616. string displayPolicyConfig = 7;
  2617. string routePolicyConfig = 8;
  2618. int64 sort = 9;
  2619. Status status = 10;
  2620. string remark = 11;
  2621. int64 createTime = 12;
  2622. int64 updateTime = 13;
  2623. string version = 14;
  2624. string otherConfig = 15;
  2625. }
  2626. message VpnLocationExVo {
  2627. VpnLocationVo vo = 1;
  2628. string productCode = 2;
  2629. }
  2630. message VpnLocationGetReq { VpnLocationVo vo = 1; }
  2631. message VpnLocationListReq {
  2632. Page page = 1;
  2633. VpnLocationExVo vo = 2;
  2634. repeated int64 groupIds = 3;
  2635. repeated int64 excludeIds = 4;
  2636. repeated string productCodes = 5;
  2637. }
  2638. message VpnLocationListResp {
  2639. int64 total = 1;
  2640. repeated VpnLocationExVo list = 2;
  2641. }
  2642. message VpnLocationBatchAddReq { repeated VpnLocationVo list = 1; }
  2643. message VpnLocationBatchAddResp { repeated VpnLocationExVo list = 1; }
  2644. message VpnLocationBatchUpdateReq { repeated VpnLocationVo list = 1; }
  2645. message VpnLocationBatchUpdateResp { repeated VpnLocationExVo list = 1; }
  2646. message VpnLocationBatchDelReq { repeated int64 ids = 1; }
  2647. // VpnServer
  2648. message VpnServerVo {
  2649. int64 id = 1;
  2650. int64 instanceId = 2;
  2651. string name = 3;
  2652. string ip = 4;
  2653. int64 port = 5;
  2654. int64 pingPort = 6;
  2655. string netConfig = 7;
  2656. string routePolicyConfig = 8;
  2657. string serverInfo = 9;
  2658. Status status = 10;
  2659. string remark = 11;
  2660. int64 createTime = 12;
  2661. int64 updateTime = 13;
  2662. string version = 14;
  2663. string otherInfo = 15;
  2664. int64 monitorPort = 16;
  2665. string vpnConfig = 17;
  2666. }
  2667. message VpnServerExVo {
  2668. VpnServerVo vo = 1;
  2669. repeated int64 locationIds = 2;
  2670. }
  2671. message VpnServerListReq {
  2672. Page page = 1;
  2673. VpnServerVo vo = 2;
  2674. repeated int64 excludeIds = 3; // 排除的ID
  2675. repeated string productCodes = 4;
  2676. repeated int64 locationIds = 5;
  2677. repeated int64 instanceIds = 6;
  2678. }
  2679. message VpnServerListResp {
  2680. int64 total = 1;
  2681. repeated VpnServerVo list = 2;
  2682. }
  2683. message VpnServerExListResp {
  2684. int64 total = 1;
  2685. repeated VpnServerExVo list = 2;
  2686. }
  2687. message VpnServerAddReq {
  2688. VpnServerVo vo = 1;
  2689. repeated int64 locationIds = 2;
  2690. }
  2691. message VpnServerBatchAddReq { repeated VpnServerExVo list = 1; }
  2692. message VpnServerBatchAddResp { repeated VpnServerExVo list = 1; }
  2693. message VpnServerBatchUpdateReq { repeated VpnServerExVo list = 1; }
  2694. message VpnServerBatchUpdateResp { repeated VpnServerExVo list = 1; }
  2695. message VpnServerBatchDelReq { repeated int64 ids = 1; }
  2696. message VpnServerLocationVo {
  2697. int64 id = 1;
  2698. int64 serverId = 2;
  2699. int64 locationId = 3;
  2700. int64 createTime = 4;
  2701. int64 updateTime = 5;
  2702. Status status = 6;
  2703. }
  2704. message VpnServerLocationListReq {
  2705. Page page = 1;
  2706. VpnServerLocationVo vo = 2;
  2707. repeated int64 serverIds = 3;
  2708. repeated int64 locationIds = 4;
  2709. }
  2710. message VpnServerLocationListResp {
  2711. int64 total = 1;
  2712. repeated VpnServerLocationVo list = 2;
  2713. }
  2714. message VpnLocationServerCountVo {
  2715. int64 locationId = 1;
  2716. int64 serverCount = 2;
  2717. }
  2718. message VpnLocationServerCountReq {
  2719. Page page = 1;
  2720. Status status = 2;
  2721. repeated int64 serverIds = 3;
  2722. repeated int64 locationIds = 4;
  2723. }
  2724. message VpnLocationServerCountResp {
  2725. int64 total = 1;
  2726. repeated VpnLocationServerCountVo list = 2;
  2727. }
  2728. message VpnProbeTaskVo {
  2729. int64 id = 1;
  2730. string taskId = 2;
  2731. string filter = 3; // 筛选条件
  2732. string type = 4; // 类型
  2733. string uploadDomain = 5; // 配置
  2734. string params = 6;
  2735. int64 answer = 7;
  2736. float percentage = 8; // 进度百分比
  2737. string result = 9; // 结果
  2738. int64 userId = 10;
  2739. int64 createTime = 11;
  2740. int64 updateTime = 12;
  2741. }
  2742. message VpnProbeTaskListReq {
  2743. Page page = 1;
  2744. VpnProbeTaskVo vo = 2;
  2745. }
  2746. message VpnProbeTaskListResp {
  2747. int64 total = 1;
  2748. repeated VpnProbeTaskVo list = 2;
  2749. }
  2750. message VpnWithIPAndPortReq {
  2751. // 产品Code
  2752. string productCode = 1;
  2753. // 国家
  2754. string country = 2;
  2755. // 需要随机的总数
  2756. int64 limitCount = 3;
  2757. }
  2758. message VpnWithIPAndPortResp {
  2759. repeated VpnServerVo list = 1;
  2760. }
  2761. // VpnipWalledVo
  2762. message VpnipWalledVo {
  2763. int64 id = 1; // ID
  2764. int64 ipId = 2; // IP ID
  2765. string area = 3; // 地区
  2766. int64 walledTime = 4; // 被墙时间
  2767. string remark = 5; // 备注
  2768. int64 createTime = 6; // 创建时间
  2769. int64 createAt = 7; // 创建者ID
  2770. int64 updateTime = 8; // 更新时间
  2771. int64 updateAt = 9; // 更新者ID
  2772. }
  2773. message VpnipWalledAddReq { VpnipWalledVo vo = 1; }
  2774. message VpnipWalledAddResp { VpnipWalledVo vo = 1; }
  2775. message VpnipWalledUpdateReq { VpnipWalledVo vo = 1; }
  2776. message VpnipWalledUpdateResp { VpnipWalledVo vo = 1; }
  2777. message VpnipWalledGetReq { VpnipWalledVo vo = 1; }
  2778. message VpnipWalledGetResp { VpnipWalledVo vo = 1; }
  2779. message VpnipWalledListReq {
  2780. Page page = 1;
  2781. VpnipWalledVo vo = 2;
  2782. repeated int64 excludeIds = 3;
  2783. repeated int64 ipIds = 4;
  2784. repeated string ips = 5;
  2785. repeated string areas = 6;
  2786. }
  2787. message VpnipWalledListResp {
  2788. int64 total = 1;
  2789. repeated VpnipWalledVo list = 2;
  2790. }
  2791. message VpnipWalledBatchAddReq { repeated VpnipWalledVo list = 1; }
  2792. message VpnipWalledBatchAddResp { repeated VpnipWalledVo list = 1; }
  2793. message VpnipWalledBatchUpdateReq { repeated VpnipWalledVo list = 1; }
  2794. message VpnipWalledBatchUpdateResp { repeated VpnipWalledVo list = 1; }
  2795. // VpnipVo
  2796. message VpnipVo {
  2797. int64 id = 1; // ID
  2798. int64 rangeId = 2; // IP段ID
  2799. string ip = 3; // IP地址
  2800. string otherInfo = 4; // 其他信息,保留字段,用于扩展
  2801. Status status = 5; // 状态
  2802. string remark = 6; // 备注
  2803. int64 createTime = 7; // 创建时间
  2804. int64 createAt = 8; // 创建者ID
  2805. int64 updateTime = 9; // 更新时间
  2806. int64 updateAt = 10; // 更新者ID
  2807. }
  2808. message VpnipExVo {
  2809. VpnipVo vo = 1;
  2810. repeated VpnipWalledVo walledInfos = 2;
  2811. }
  2812. message VpnipAddReq { VpnipVo vo = 1; }
  2813. message VpnipAddResp { VpnipVo vo = 1; }
  2814. message VpnipExAddReq { VpnipExVo vo = 1; }
  2815. message VpnipExAddResp { VpnipExVo vo = 1; }
  2816. message VpnipUpdateReq { VpnipVo vo = 1; }
  2817. message VpnipUpdateResp { VpnipVo vo = 1; }
  2818. message VpnipExUpdateReq { VpnipExVo vo = 1; }
  2819. message VpnipExUpdateResp { VpnipExVo vo = 1; }
  2820. message VpnipGetReq { VpnipVo vo = 1; }
  2821. message VpnipGetResp { VpnipVo vo = 1; }
  2822. message VpnipExGetResp { VpnipExVo vo = 1; }
  2823. message VpnipListReq {
  2824. Page page = 1;
  2825. VpnipVo vo = 2;
  2826. repeated int64 excludeIds = 3;
  2827. repeated string ips = 4;
  2828. repeated int64 serverIds = 5;
  2829. repeated int64 instanceIds = 6;
  2830. repeated int64 rangeIds = 7;
  2831. }
  2832. message VpnipListResp {
  2833. int64 total = 1;
  2834. repeated VpnipVo list = 2;
  2835. }
  2836. message VpnipExListResp {
  2837. int64 total = 1;
  2838. repeated VpnipExVo list = 2;
  2839. }
  2840. message VpnipBatchAddReq { repeated VpnipVo list = 1; }
  2841. message VpnipBatchAddResp { repeated VpnipVo list = 1; }
  2842. message VpnipBatchUpdateReq { repeated VpnipVo list = 1; }
  2843. message VpnipBatchUpdateResp { repeated VpnipVo list = 1; }
  2844. message VpnipExBatchAddReq { repeated VpnipExVo list = 1; }
  2845. message VpnipExBatchAddResp { repeated VpnipExVo list = 1; }
  2846. message VpnipExBatchUpdateReq { repeated VpnipExVo list = 1; }
  2847. message VpnipExBatchUpdateResp { repeated VpnipExVo list = 1; }
  2848. // VpnipRangeVo
  2849. message VpnipRangeVo {
  2850. int64 id = 1; // ID
  2851. string name = 2; // 名称
  2852. string supplierId = 3; // 供应商ID
  2853. string startIP = 4; // 起始IP
  2854. string endIP = 5; // 结束IP
  2855. int64 expires = 6; // 到期日期
  2856. int64 sort = 7; // 排序
  2857. Status status = 8; // 状态
  2858. string remark = 9; // 备注
  2859. int64 createTime = 10; // 创建时间
  2860. int64 createAt = 11; // 创建者ID
  2861. int64 updateTime = 12; // 更新时间
  2862. int64 updateAt = 13; // 更新者ID
  2863. }
  2864. message VpnipRangeExVo {
  2865. VpnipRangeVo vo = 1;
  2866. repeated VpnipVo ipInfos = 2;
  2867. }
  2868. message VpnipRangeAddReq { VpnipRangeVo vo = 1; }
  2869. message VpnipRangeAddResp { VpnipRangeVo vo = 1; }
  2870. message VpnipRangeExAddReq { VpnipRangeExVo vo = 1; }
  2871. message VpnipRangeExAddResp { VpnipRangeExVo vo = 1; }
  2872. message VpnipRangeUpdateReq { VpnipRangeVo vo = 1; }
  2873. message VpnipRangeUpdateResp { VpnipRangeVo vo = 1; }
  2874. message VpnipRangeExUpdateReq { VpnipRangeExVo vo = 1; }
  2875. message VpnipRangeExUpdateResp { VpnipRangeExVo vo = 1; }
  2876. message VpnipRangeGetReq { VpnipRangeVo vo = 1; }
  2877. message VpnipRangeGetResp { VpnipRangeVo vo = 1; }
  2878. message VpnipRangeExGetResp { VpnipRangeExVo vo = 1; }
  2879. message VpnipRangeListReq {
  2880. Page page = 1;
  2881. VpnipRangeVo vo = 2;
  2882. repeated string names = 3;
  2883. repeated string ips = 4;
  2884. repeated int64 excludeIds = 5; // 排除的ID
  2885. }
  2886. message VpnipRangeListResp {
  2887. int64 total = 1;
  2888. repeated VpnipRangeVo list = 2;
  2889. }
  2890. message VpnipRangeExListResp {
  2891. int64 total = 1;
  2892. repeated VpnipRangeExVo list = 2;
  2893. }
  2894. message VpnipRangeBatchAddReq { repeated VpnipRangeVo list = 1; }
  2895. message VpnipRangeBatchAddResp { repeated VpnipRangeVo list = 1; }
  2896. message VpnipRangeBatchUpdateReq { repeated VpnipRangeVo list = 1; }
  2897. message VpnipRangeBatchUpdateResp { repeated VpnipRangeVo list = 1; }
  2898. message VpnipRangeExBatchAddReq { repeated VpnipRangeExVo list = 1; }
  2899. message VpnipRangeExBatchAddResp { repeated VpnipRangeExVo list = 1; }
  2900. message VpnipRangeExBatchUpdateReq { repeated VpnipRangeExVo list = 1; }
  2901. message VpnipRangeExBatchUpdateResp { repeated VpnipRangeExVo list = 1; }
  2902. // VpnipBindVo
  2903. message VpnipBindVo {
  2904. int64 id = 1; // ID
  2905. int64 ipId = 2; // IP ID
  2906. int64 serverId = 3; // 服务器ID
  2907. string batchId = 4; // 批次ID,用于批量操作和回滚
  2908. string prevBindId = 5; // 上一次绑定记录的ID,为空时表示之前未绑定
  2909. int64 bindTime = 6; // 绑定时间
  2910. int64 unbindTime = 7; // 解绑时间
  2911. int64 isCurrent = 8; // 是否为当前绑定记录
  2912. string remark = 9; // 备注
  2913. int64 createTime = 10; // 创建时间
  2914. int64 createAt = 11; // 创建者ID
  2915. int64 updateTime = 12; // 更新时间
  2916. int64 updateAt = 13; // 更新者ID
  2917. }
  2918. message VpnipBindAddReq { VpnipBindVo vo = 1; }
  2919. message VpnipBindAddResp { VpnipBindVo vo = 1; }
  2920. message VpnipBindUpdateReq { VpnipBindVo vo = 1; }
  2921. message VpnipBindUpdateResp { VpnipBindVo vo = 1; }
  2922. message VpnipBindGetReq { VpnipBindVo vo = 1; }
  2923. message VpnipBindGetResp { VpnipBindVo vo = 1; }
  2924. message VpnipBindListReq {
  2925. Page page = 1;
  2926. VpnipBindVo vo = 2;
  2927. repeated int64 excludeIds = 3;
  2928. repeated int64 ipIds = 4;
  2929. repeated int64 serverIds = 5;
  2930. repeated string ips = 6;
  2931. repeated int64 instanceIds = 7;
  2932. }
  2933. message VpnipBindListResp {
  2934. int64 total = 1;
  2935. repeated VpnipBindVo list = 2;
  2936. }
  2937. message VpnipBindBatchAddReq { repeated VpnipBindVo list = 1; }
  2938. message VpnipBindBatchAddResp { repeated VpnipBindVo list = 1; }
  2939. message VpnipBindBatchUpdateReq { repeated VpnipBindVo list = 1; }
  2940. message VpnipBindBatchUpdateResp { repeated VpnipBindVo list = 1; }
  2941. // VpnConfigTemplatePlanVo
  2942. message VpnConfigTemplatePlanVo {
  2943. int64 id = 1; // id
  2944. string productCode = 2; // 产品Code
  2945. string name = 3; // 配置名称
  2946. string config = 4; // 保留字段,用于扩展配置
  2947. int64 sort = 5; // 排序
  2948. Status status = 6; // 状态
  2949. string remark = 7; // 备注
  2950. int64 createTime = 8; // 创建时间
  2951. int64 createAt = 9; // 创建者Id
  2952. int64 updateTime = 10; // 更新时间
  2953. int64 updateAt = 11; // 更新者Id
  2954. string version = 12; // 数据版本
  2955. }
  2956. // VpnConfigTemplatePlanDetailVo
  2957. message VpnConfigTemplatePlanDetailVo {
  2958. int64 id = 1; // id
  2959. int64 planId = 2; // 配置模板主表id
  2960. string core = 3; // 内核
  2961. string name = 4; // 名称
  2962. string serverConfig = 5; // 服务端配置
  2963. string clientConfig = 6; // 客户端配置
  2964. string policyConfig = 7; // 策略配置
  2965. int64 sort = 8; // 排序
  2966. Status status = 9; // 状态
  2967. string remark = 10; // 备注
  2968. int64 createTime = 11; // 创建时间
  2969. int64 createAt = 12; // 创建者Id
  2970. int64 updateTime = 13; // 更新时间
  2971. int64 updateAt = 14; // 更新者Id
  2972. string version = 15; // 数据版本
  2973. }
  2974. message VpnConfigTemplatePlanAddReq {
  2975. VpnConfigTemplatePlanVo plan = 1;
  2976. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2977. }
  2978. message VpnConfigTemplatePlanAddResp {
  2979. VpnConfigTemplatePlanVo plan = 1;
  2980. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2981. }
  2982. message VpnConfigTemplatePlanUpdateReq {
  2983. VpnConfigTemplatePlanVo vo = 1;
  2984. bool withDetails = 2;
  2985. }
  2986. message VpnConfigTemplatePlanUpdateResp {
  2987. VpnConfigTemplatePlanVo plan = 1;
  2988. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2989. }
  2990. message VpnConfigTemplatePlanDelReq { repeated int64 ids = 1; }
  2991. message VpnConfigTemplatePlanGetReq {
  2992. VpnConfigTemplatePlanVo vo = 1;
  2993. bool withDetails = 2;
  2994. }
  2995. message VpnConfigTemplatePlanGetResp {
  2996. VpnConfigTemplatePlanVo plan = 1;
  2997. repeated VpnConfigTemplatePlanDetailVo details = 2;
  2998. }
  2999. message VpnConfigTemplatePlanListReq {
  3000. Page page = 1;
  3001. VpnConfigTemplatePlanVo vo = 2;
  3002. repeated int64 excludeIds = 3;
  3003. repeated string productCodes = 4;
  3004. bool withDetails = 5;
  3005. }
  3006. message VpnConfigTemplatePlanListResp {
  3007. int64 total = 1;
  3008. repeated VpnConfigTemplatePlanGetResp list = 2;
  3009. }
  3010. message VpnConfigTemplatePlanDetailAddReq {
  3011. VpnConfigTemplatePlanDetailVo vo = 1;
  3012. }
  3013. message VpnConfigTemplatePlanDetailAddResp {
  3014. VpnConfigTemplatePlanDetailVo vo = 1;
  3015. }
  3016. message VpnConfigTemplatePlanDetailUpdateReq {
  3017. VpnConfigTemplatePlanDetailVo vo = 1;
  3018. }
  3019. message VpnConfigTemplatePlanDetailUpdateResp {
  3020. VpnConfigTemplatePlanDetailVo vo = 1;
  3021. }
  3022. message VpnConfigTemplatePlanDetailDelReq { repeated int64 ids = 1; }
  3023. message VpnConfigTemplatePlanDetailGetReq {
  3024. VpnConfigTemplatePlanDetailVo vo = 1;
  3025. }
  3026. message VpnConfigTemplatePlanDetailGetResp {
  3027. VpnConfigTemplatePlanDetailVo vo = 1;
  3028. }
  3029. message VpnConfigTemplatePlanDetailListReq {
  3030. Page page = 1;
  3031. VpnConfigTemplatePlanDetailVo vo = 2;
  3032. repeated int64 planIds = 3;
  3033. repeated int64 excludeIds = 4;
  3034. repeated string productCodes = 5;
  3035. }
  3036. message VpnConfigTemplatePlanDetailListResp {
  3037. int64 total = 1;
  3038. repeated VpnConfigTemplatePlanDetailVo list = 2;
  3039. }
  3040. // govpn 模块,VPN相关服务
  3041. service GoVpnClient {
  3042. rpc Ping(Request) returns (Response);
  3043. // 表的事务操作
  3044. rpc Transaction(TransactionReq) returns (Empty);
  3045. /** VpnTag Model */
  3046. // VpnTagAdd
  3047. rpc VpnTagAdd(VpnTagVo) returns (VpnTagVo);
  3048. rpc VpnTagUpdate(VpnTagVo) returns (VpnTagVo);
  3049. rpc VpnTagDel(Ids) returns (Empty);
  3050. rpc VpnTagGet(VpnTagGetReq) returns (VpnTagVo);
  3051. rpc VpnTagList(VpnTagListReq) returns (VpnTagListResp);
  3052. rpc VpnTagBatchAdd(VpnTagBatchAddReq) returns (VpnTagBatchAddResp);
  3053. rpc VpnTagBatchUpdate(VpnTagBatchUpdateReq) returns (VpnTagBatchUpdateResp);
  3054. /** VpnGroup Model */
  3055. // VpnGroupAdd
  3056. rpc VpnGroupAdd(VpnGroupAddReq) returns (VpnGroupVo);
  3057. rpc VpnGroupUpdate(VpnGroupAddReq) returns (Empty);
  3058. rpc VpnGroupDel(Ids) returns (Empty);
  3059. rpc VpnGroupGet(VpnGroupGetReq) returns (VpnGroupVo);
  3060. rpc VpnGroupList(VpnGroupListReq) returns (VpnGroupListResp);
  3061. rpc VpnGroupBatchAdd(VpnGroupBatchAddReq) returns (VpnGroupBatchAddResp);
  3062. rpc VpnGroupBatchUpdate(VpnGroupBatchUpdateReq) returns (VpnGroupBatchUpdateResp);
  3063. /** VpnGroupTag Model */
  3064. // VpnGroupTagAdd
  3065. rpc VpnGroupTagAdd(VpnGroupTagVo) returns (VpnGroupTagVo);
  3066. rpc VpnGroupTagUpdate(VpnGroupTagVo) returns (VpnGroupTagVo);
  3067. rpc VpnGroupTagDel(Ids) returns (Empty);
  3068. rpc VpnGroupTagGet(VpnGroupTagVo) returns (VpnGroupTagVo);
  3069. rpc VpnGroupTagList(VpnGroupTagListReq) returns (VpnGroupTagListResp);
  3070. /** VpnLocation Model */
  3071. // VpnLocationAdd
  3072. rpc VpnLocationAdd(VpnLocationVo) returns (VpnLocationVo);
  3073. rpc VpnLocationUpdate(VpnLocationVo) returns (Empty);
  3074. rpc VpnLocationDel(Ids) returns (Empty);
  3075. rpc VpnLocationGet(VpnLocationGetReq) returns (VpnLocationVo);
  3076. rpc VpnLocationList(VpnLocationListReq) returns (VpnLocationListResp);
  3077. rpc VpnLocationBatchAdd(VpnLocationBatchAddReq) returns (VpnLocationBatchAddResp);
  3078. rpc VpnLocationBatchUpdate(VpnLocationBatchUpdateReq) returns (VpnLocationBatchUpdateResp);
  3079. /** VpnServer Model */
  3080. // VpnServerAdd
  3081. rpc VpnServerAdd(VpnServerAddReq) returns (VpnServerAddReq);
  3082. rpc VpnServerUpdate(VpnServerAddReq) returns (VpnServerAddReq);
  3083. rpc VpnServerDel(Ids) returns (Empty);
  3084. rpc VpnServerGet(VpnServerVo) returns (VpnServerVo);
  3085. rpc VpnServerExGet(VpnServerVo) returns (VpnServerExVo);
  3086. rpc VpnServerList(VpnServerListReq) returns (VpnServerListResp);
  3087. rpc VpnServerExList(VpnServerListReq) returns (VpnServerExListResp);
  3088. rpc VpnServerBatchAdd(VpnServerBatchAddReq) returns (VpnServerBatchAddResp);
  3089. rpc VpnServerBatchUpdate(VpnServerBatchUpdateReq) returns (VpnServerBatchUpdateResp);
  3090. /** VpnServerLocation Model */
  3091. // VpnServerLocationAdd
  3092. rpc VpnServerLocationAdd(VpnServerLocationVo) returns (VpnServerLocationVo);
  3093. rpc VpnServerLocationUpdate(VpnServerLocationVo) returns (Empty);
  3094. rpc VpnServerLocationDel(Ids) returns (Empty);
  3095. rpc VpnServerLocationGet(VpnServerLocationVo) returns (VpnServerLocationVo);
  3096. rpc VpnServerLocationList(VpnServerLocationListReq) returns (VpnServerLocationListResp);
  3097. rpc VpnWithIPAndPort(VpnWithIPAndPortReq) returns (VpnWithIPAndPortResp);
  3098. // VpnLocationServerCount
  3099. rpc VpnLocationServerCount(VpnLocationServerCountReq) returns (VpnLocationServerCountResp);
  3100. /** VpnProbeTask Model */
  3101. // VpnProbeTaskAdd
  3102. rpc VpnProbeTaskAdd(VpnProbeTaskVo) returns (VpnProbeTaskVo);
  3103. rpc VpnProbeTaskUpdate(VpnProbeTaskVo) returns (Empty);
  3104. rpc VpnProbeTaskList(VpnProbeTaskListReq) returns (VpnProbeTaskListResp);
  3105. /** VpnipWalled Model */
  3106. // VpnipWalledAdd
  3107. rpc VpnipWalledAdd(VpnipWalledAddReq) returns (VpnipWalledAddResp);
  3108. rpc VpnipWalledUpdate(VpnipWalledUpdateReq) returns (VpnipWalledUpdateResp);
  3109. rpc VpnipWalledDel(Ids) returns (Empty);
  3110. rpc VpnipWalledGet(VpnipWalledGetReq) returns (VpnipWalledGetResp);
  3111. rpc VpnipWalledList(VpnipWalledListReq) returns (VpnipWalledListResp);
  3112. rpc VpnipWalledBatchAdd(VpnipWalledBatchAddReq) returns (VpnipWalledBatchAddResp);
  3113. rpc VpnipWalledBatchUpdate(VpnipWalledBatchUpdateReq) returns (VpnipWalledBatchUpdateResp);
  3114. /** Vpnip Model */
  3115. // VpnipAdd
  3116. rpc VpnipAdd(VpnipAddReq) returns (VpnipAddResp);
  3117. rpc VpnipExAdd(VpnipExAddReq) returns (VpnipExAddResp);
  3118. rpc VpnipUpdate(VpnipUpdateReq) returns (VpnipUpdateResp);
  3119. rpc VpnipExUpdate(VpnipExUpdateReq) returns (VpnipExUpdateResp);
  3120. rpc VpnipDel(Ids) returns (Empty);
  3121. rpc VpnipGet(VpnipGetReq) returns (VpnipGetResp);
  3122. rpc VpnipExGet(VpnipGetReq) returns (VpnipExGetResp);
  3123. rpc VpnipList(VpnipListReq) returns (VpnipListResp);
  3124. rpc VpnipExList(VpnipListReq) returns (VpnipExListResp);
  3125. rpc VpnipBatchAdd(VpnipBatchAddReq) returns (VpnipBatchAddResp);
  3126. rpc VpnipBatchUpdate(VpnipBatchUpdateReq) returns (VpnipBatchUpdateResp);
  3127. rpc VpnipExBatchAdd(VpnipExBatchAddReq) returns (VpnipExBatchAddResp);
  3128. rpc VpnipExBatchUpdate(VpnipExBatchUpdateReq) returns (VpnipExBatchUpdateResp);
  3129. /** VpnipRange Model */
  3130. // VpnipRangeAdd
  3131. rpc VpnipRangeAdd(VpnipRangeAddReq) returns (VpnipRangeAddResp);
  3132. // VpnipRangeExAdd 添加IP段及IP数据,如果IP数据已存在,会自动将已经存在的IP的 rangeId 更新为新增的IP段的ID
  3133. rpc VpnipRangeExAdd(VpnipRangeExAddReq) returns (VpnipRangeExAddResp);
  3134. rpc VpnipRangeUpdate(VpnipRangeUpdateReq) returns (VpnipRangeUpdateResp);
  3135. rpc VpnipRangeExUpdate(VpnipRangeExUpdateReq) returns (VpnipRangeExUpdateResp);
  3136. rpc VpnipRangeDel(Ids) returns (Empty);
  3137. rpc VpnipRangeGet(VpnipRangeGetReq) returns (VpnipRangeGetResp);
  3138. rpc VpnipRangeExGet(VpnipRangeGetReq) returns (VpnipRangeExGetResp);
  3139. rpc VpnipRangeList(VpnipRangeListReq) returns (VpnipRangeListResp);
  3140. rpc VpnipRangeExList(VpnipRangeListReq) returns (VpnipRangeExListResp);
  3141. rpc VpnipRangeBatchAdd(VpnipRangeBatchAddReq) returns (VpnipRangeBatchAddResp);
  3142. rpc VpnipRangeExBatchAdd(VpnipRangeExBatchAddReq) returns (VpnipRangeExBatchAddResp);
  3143. rpc VpnipRangeBatchUpdate(VpnipRangeBatchUpdateReq) returns (VpnipRangeBatchUpdateResp);
  3144. rpc VpnipRangeExBatchUpdate(VpnipRangeExBatchUpdateReq) returns (VpnipRangeExBatchUpdateResp);
  3145. /** VpnipBind Model */
  3146. // VpnipBindAdd
  3147. rpc VpnipBindAdd(VpnipBindAddReq) returns (VpnipBindAddResp);
  3148. rpc VpnipBindUpdate(VpnipBindUpdateReq) returns (VpnipBindUpdateResp);
  3149. rpc VpnipBindDel(Ids) returns (Empty);
  3150. rpc VpnipBindGet(VpnipBindGetReq) returns (VpnipBindGetResp);
  3151. rpc VpnipBindList(VpnipBindListReq) returns (VpnipBindListResp);
  3152. rpc VpnipBindBatchUpdate(VpnipBindBatchUpdateReq) returns (VpnipBindBatchUpdateResp);
  3153. // VpnipsBindServer 为一台服务器绑定一批新IP,会解绑上次绑定的IP,再绑定新的IP,仅需提供 ipId, serverId, Remark, createAt, updateAt 即可,其他字段会自动填充
  3154. rpc VpnipsBindServer(VpnipBindBatchAddReq) returns (VpnipBindBatchAddResp);
  3155. /** VpnConfigTemplatePlan Model (Xray配置模板,jump那边叫做配置模板)*/
  3156. // VpnConfigTemplatePlanAdd 添加配置模板及模板详情
  3157. rpc VpnConfigTemplatePlanAdd(VpnConfigTemplatePlanAddReq) returns (VpnConfigTemplatePlanAddResp);
  3158. // VpnConfigTemplatePlanUpdate 更新配置模板(只更新模板,不更新模板详情,如果 withDetails 为 true,则返回结果中包含模板详情)
  3159. rpc VpnConfigTemplatePlanUpdate(VpnConfigTemplatePlanUpdateReq) returns (VpnConfigTemplatePlanUpdateResp);
  3160. // VpnConfigTemplatePlanDel 删除配置模板(会同时删除模板详情)
  3161. rpc VpnConfigTemplatePlanDel(VpnConfigTemplatePlanDelReq) returns (Empty);
  3162. // VpnConfigTemplatePlanGet 获取配置模板(如果 withDetails 为 true,则返回结果中包含模板详情)
  3163. rpc VpnConfigTemplatePlanGet(VpnConfigTemplatePlanGetReq) returns (VpnConfigTemplatePlanGetResp);
  3164. // VpnConfigTemplatePlanList 获取配置模板列表(如果 withDetails 为 true,则返回结果中包含模板详情)
  3165. rpc VpnConfigTemplatePlanList(VpnConfigTemplatePlanListReq) returns (VpnConfigTemplatePlanListResp);
  3166. /** VpnConfigTemplatePlanDetail Model (Xray配置模板详情,jump那边叫做传输配置)*/
  3167. // VpnConfigTemplatePlanDetailAdd 添加模板详情
  3168. rpc VpnConfigTemplatePlanDetailAdd(VpnConfigTemplatePlanDetailAddReq) returns (VpnConfigTemplatePlanDetailAddResp);
  3169. rpc VpnConfigTemplatePlanDetailUpdate(VpnConfigTemplatePlanDetailUpdateReq) returns (VpnConfigTemplatePlanDetailUpdateResp);
  3170. rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq) returns (Empty);
  3171. rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq) returns (VpnConfigTemplatePlanDetailGetResp);
  3172. rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq) returns (VpnConfigTemplatePlanDetailListResp);
  3173. }