gorpc.proto 105 KB

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