gorpc.proto 112 KB

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