gorpc.proto 81 KB

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