| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331 |
- syntax = "proto3";
- package gorpc;
- option go_package = "./pb";
- enum RegisterMode {
- RegisterModeUnknown = 0;
- RegisterModeGuest = 1;
- RegisterModeApp = 2;
- RegisterModeWeb = 3;
- RegisterModePc = 4;
- RegisterModeInvalid = 9999;
- }
- // enum Provider {
- // ProviderUnknown = 0;
- // ProviderGoogle = 1;
- // ProviderApple = 2;
- // ProviderMeta = 3;
- // ProviderGithub = 4;
- // }
- // 根据需要增加状态
- enum CommonResultCode {
- Success = 0;
- }
- enum Status {
- UnknownStatus = 0;
- StatusValid = 1;
- StatusInValid = 2;
- }
- enum BoolInt {
- BoolIntUnknown = 0;
- BoolIntTrue = 1;
- BoolIntFalse = 2;
- }
- message Empty {}
- message Int64SelectController {
- repeated int64 values = 1;
- bool exclude = 2;
- }
- message IntSelectController {
- repeated int32 values = 1;
- bool exclude = 2;
- }
- message StringSelectController {
- repeated string values = 1;
- bool exclude = 2;
- }
- message Page {
- message OrderItem {
- string column = 1;
- bool asc = 2;
- bool isFunc = 3;
- }
- int64 pageNo = 1;
- int64 pageSize = 2;
- int64 startTime = 3;
- int64 endTime = 4;
- repeated OrderItem sortBy = 5;
- bool ignoreTotal = 6; // 忽略总条数
- bool ignoreStat = 7; // 忽略总条数
- bool ignoreList = 8; // 忽略列表
- repeated int64 ids = 9;
- repeated string groupBy = 10;
- }
- message CommonResult {
- CommonResultCode code = 1;
- string msg = 2;
- }
- message BaseReq {
- int64 timeZoneOffset = 1;
- string lan = 2;
- }
- message DeleteIdResp { repeated int64 failedIds = 1; }
- message Ids { repeated int64 ids = 1; }
- message Request {}
- message Response { string msg = 1; }
- message TransactionOperation {
- string table = 1; // 表名
- string operate = 2; // delete,insert,update
- string data = 3; // json格式
- }
- message TransactionReq { repeated TransactionOperation transactions = 1; }
- message GameVo {
- int64 id = 1;
- string name = 2;
- string pkg = 3;
- string categories = 4;
- string icon = 5;
- string internal_icon = 6;
- string source_icon = 7;
- int64 status = 8;
- int64 state = 9;
- int64 enableRating = 10;
- int64 gameUpdateTime = 11;
- int64 gameBoostCount = 12;
- string gameBoostCountryCount = 13;
- int64 createTime = 14;
- int64 updateTime = 15;
- }
- message GameReq { GameVo vo = 1; }
- message GameListReq {
- Page page = 1;
- repeated string pkgs = 2;
- GameVo vo = 3;
- }
- message GameListRes {
- int64 total = 1;
- repeated GameVo list = 2;
- }
- message RelGameRankVo {
- int64 id = 1;
- int64 gameId = 2;
- int64 rankId = 3;
- int64 weight = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message RelGameRankReq { RelGameRankVo vo = 1; }
- message RelGameRankListReq {
- Page page = 1;
- RelGameRankVo vo = 2;
- }
- message RelGameRankListRes {
- int64 total = 1;
- repeated RelGameRankVo list = 2;
- }
- message RelGameVpnGroupVo {
- int64 id = 1;
- int64 gameId = 2;
- string productCode = 3;
- int64 vpnGroupId = 4;
- int64 status = 5;
- int64 createTime = 6;
- int64 updateTime = 7;
- }
- message RelGameVpnGroupReq { RelGameVpnGroupVo vo = 1; }
- message RelGameVpnGroupListReq {
- repeated int64 gameIds = 1;
- RelGameVpnGroupVo vo = 2;
- }
- message RelGameVpnGroupListRes {
- int64 total = 1;
- repeated RelGameVpnGroupVo list = 2;
- }
- message GameRedisHScanByNameReq {
- string name = 1;
- int64 cursor =2;
- int64 count =3;
- }
- message GameRedisHScanByNameResp {
- repeated int64 ids = 1;
- int64 cursor =2;
- }
- message GameCustomerVo {
- int64 id = 1;
- string name = 2;
- string pkg = 3;
- string icon = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message GameCustomerListReq {
- Page page = 1;
- repeated string pkgs = 2;
- GameCustomerVo vo = 3;
- }
- message GameCustomerListRes {
- int64 total = 1;
- repeated GameCustomerVo list = 2;
- }
- message GameCustomerAddResp {
- GameCustomerVo vo =1;
- bool ExistBoost =2;
- }
- message GameCategoryVo {
- int64 id = 1;
- string code =2;
- string name = 3;
- string described = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message GameCategoryReq { GameCategoryVo vo = 1; }
- message GameCategoryListReq {
- Page page = 1;
- GameCategoryVo vo = 3;
- }
- message GameCategoryListRes {
- int64 total = 1;
- repeated GameCategoryVo list = 2;
- }
- service GoGameClient {
- // 加速器游戏管理
- rpc GameAdd(GameVo) returns (GameVo);
- rpc GameUpdate(GameVo) returns (Empty);
- rpc GameDel(Ids) returns (Empty);
- rpc GameGet(GameReq) returns (GameVo);
- rpc GameList(GameListReq) returns (GameListRes);
- rpc GameAll(Request) returns (GameListRes);
- rpc GameRedisHScanByName(GameRedisHScanByNameReq) returns (GameRedisHScanByNameResp);
- // 游戏榜单关联关系
- rpc RelGameRankAdd(RelGameRankVo) returns (RelGameRankVo);
- rpc RelGameRankUpdate(RelGameRankVo) returns (Empty);
- rpc RelGameRankDel(Ids) returns (Empty);
- rpc RelGameRankGet(RelGameRankReq) returns (RelGameRankVo);
- rpc RelGameRankList(RelGameRankListReq) returns (RelGameRankListRes);
- // 游戏地域关联关系
- rpc RelGameVpnGroupAdd(RelGameVpnGroupVo) returns (RelGameVpnGroupVo);
- rpc RelGameVpnGroupUpdate(RelGameVpnGroupVo) returns (Empty);
- rpc RelGameVpnGroupDel(Ids) returns (Empty);
- rpc RelGameVpnGroupGet(RelGameVpnGroupReq) returns (RelGameVpnGroupVo);
- rpc RelGameVpnGroupList(RelGameVpnGroupListReq) returns (RelGameVpnGroupListRes);
- // 用户提交游戏
- rpc GameCustomerList(GameCustomerListReq) returns (GameCustomerListRes);
- rpc GameCustomerAdd(GameCustomerVo) returns (GameCustomerAddResp);
- rpc GameCustomerDel(Ids) returns (Empty);
- rpc GameCategoryAdd(GameCategoryVo) returns (GameCategoryVo);
- rpc GameCategoryUpdate(GameCategoryVo) returns (Empty);
- rpc GameCategoryDel(Ids) returns (Empty);
- rpc GameCategoryGet(GameCategoryReq) returns (GameCategoryVo);
- rpc GameCategoryList(GameCategoryListReq) returns (GameCategoryListRes);
- rpc GameCategoryAll(Request) returns (GameCategoryListRes);
- }
- message I18nVo {
- string code = 1;
- string value = 2;
- }
- message ConfigGetReq {
- int64 id = 1; // ID
- string code = 2; // 类型标识
- }
- // GlobalParam
- message GlobalParamVo {
- int64 id = 1;
- string paramKey = 2;
- string paramValue = 3;
- string valueType = 4;
- float minValue = 5;
- float maxValue = 6;
- string name = 7;
- BoolInt editable = 8;
- BoolInt nullable = 9;
- BoolInt hidden = 10;
- BoolInt mutiLang = 11;
- int64 sort = 12;
- string remark = 13;
- BoolInt apiExport = 14;
- string apiExportName = 15;
- int64 createTime = 16;
- int64 updateTime = 17;
- // valueType 为 string、text、json、string[], 且 mutiLang 为 true
- // 时,需要同时干查询/修改/插入多语言数据
- repeated I18nVo i18ns = 18;
- }
- message GlobalParamGetReq {
- GlobalParamVo vo = 1;
- string lang = 2;
- }
- message GlobalParamListReq {
- Page page = 1;
- GlobalParamVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- };
- message GlobalParamListResp {
- int64 total = 1;
- repeated GlobalParamVo list = 2;
- };
- // end GlobalParam
- // Product
- message ProductVo {
- int64 id = 1;
- string code = 2;
- string name = 3;
- string domain = 4;
- Status status = 5;
- string langs = 6;
- string defaultLang = 7;
- string remark = 8;
- int64 createTime = 9;
- int64 updateTime = 10;
- }
- message ProductListReq {
- Page page = 1;
- ProductVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ProductListResp {
- int64 total = 1;
- repeated ProductVo list = 2;
- }
- // end Product
- // ProductParam
- message ProductParamVo {
- int64 id = 1;
- string productCode = 2;
- string paramKey = 3;
- string paramValue = 4;
- string valueType = 5;
- float minValue = 6;
- float maxValue = 7;
- string name = 8;
- BoolInt editable = 9;
- BoolInt nullable = 10;
- BoolInt hidden = 11;
- BoolInt mutiLang = 12;
- int64 sort = 13;
- string remark = 14;
- BoolInt apiExport = 15;
- string apiExportName = 16;
- int64 createTime = 17;
- int64 updateTime = 18;
- // valueType 为 string、text、json、string[], 且 mutiLang 为 true
- // 时,需要同时干查询/修改/插入多语言数据
- repeated I18nVo i18ns = 19;
- }
- message ProductParamGetReq {
- ProductParamVo vo = 1;
- string lang = 2;
- }
- message ProductParamListReq {
- Page page = 1;
- ProductParamVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- };
- message ProductParamListResp {
- int64 total = 1;
- repeated ProductParamVo list = 2;
- };
- // end ProductParam
- // ProductAction
- message ProductActionVo {
- int64 id = 1;
- string productCode = 2;
- string imgUrl = 3;
- string actionType = 4;
- string actionData = 5;
- string title = 6;
- Status status = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- int64 sort = 10;
- }
- message ProductActionReq { ProductActionVo vo = 1; }
- message ProductActionListReq {
- Page page = 1;
- ProductActionVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ProductActionListResp {
- int64 total = 1;
- repeated ProductActionVo list = 2;
- }
- // end ProductAction
- // AreaParam
- message AreaParamVo {
- int64 id = 1;
- string productCode = 2;
- string name = 3;
- string areas = 4;
- string paramValue = 5;
- Status status = 6;
- int64 sort = 7;
- string remark = 8;
- int64 createTime = 9;
- int64 updateTime = 10;
- string version = 11;
- }
- message AreaParamListReq {
- Page page = 1;
- AreaParamVo vo = 2;
- repeated string productCodes = 3; // 产品code
- repeated int64 excludeIds = 4; // 排除的ID
- }
- message AreaParamListResp {
- int64 total = 1;
- repeated AreaParamVo list = 2;
- }
- // end AreaParam
- // NationalLanguage
- message NationalLanguageVo {
- int64 id = 1;
- string tbName = 2;
- int64 tbRowId = 3;
- string tbFieldName = 4;
- string lan = 5;
- string value = 6;
- Status status = 7;
- int64 updateTime = 8;
- int64 createTime = 9;
- }
- message NationalLanguageListReq {
- Page page = 1;
- NationalLanguageVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message NationalLanguageListResp {
- int64 total = 1;
- repeated NationalLanguageVo list = 2;
- }
- // end NationalLanguage
- // Tip
- message TipVo {
- int64 id = 1;
- string productCode = 2;
- string paramKey = 3;
- string paramValue = 4;
- string code = 5;
- int64 showType = 6;
- int64 sort = 7;
- string remark = 8;
- int64 createTime = 9;
- int64 updateTime = 10;
- repeated I18nVo i18ns = 11;
- }
- message TipGetReq {
- TipVo vo = 1;
- string lang = 2;
- }
- message TipListReq {
- Page page = 1;
- TipVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4; // 排除的ID
- }
- message TipListResp {
- int64 total = 1;
- repeated TipVo list = 2;
- }
- // end Tip
- // Dict
- message DictVo {
- int64 id = 1;
- string productCode = 2;
- int64 parentId = 3;
- string dataType = 4;
- string name = 5;
- string payload = 6;
- int64 sort = 7;
- Status status = 8;
- string remark = 9;
- int64 createTime = 10;
- int64 updateTime = 11;
- string payloadJson = 12;
- }
- message DictGetReq { DictVo vo = 1; }
- message DictListReq {
- Page page = 1;
- DictVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message DictListResp {
- int64 total = 1;
- repeated DictVo list = 2;
- }
- // end Dict
- // message UpgradeResVo {
- // int64 id = 1;
- // string title = 2;
- // string path = 3;
- // string fileMd5 = 4;
- // string filePath = 5;
- // string metadataId = 6;
- // string createdAt = 7;
- // string runtimeVersion = 8;
- // int64 runtimeVersionCode = 9;
- // string appVersionName = 10;
- // int64 appVersionCode = 11;
- // Status status = 12;
- // string remark = 13;
- // int64 createTime = 14;
- // int64 updateTime = 15;
- // int64 resSize = 16;
- // }
- // message UpgradeResConfigVo {
- // int64 id = 1;
- // int64 productId = 2;
- // string platform = 3;
- // string channel = 4;
- // int64 resId = 5;
- // int64 isForceUpdate = 6;
- // string forceIntro = 7;
- // string areaConfigs = 8;
- // string versionConfigs = 9;
- // int64 interval = 10;
- // int64 upgradeRate = 11;
- // string intro = 12;
- // string apis = 13;
- // Status status = 14;
- // string remark = 15;
- // string userIds = 16;
- // int64 createTime = 17;
- // int64 updateTime = 18;
- // string forceVersionConfigs = 19;
- // string forceAreaConfigs = 20;
- // string runtimeVersionConfigs = 21;
- // string title = 22;
- // int64 isSilent = 23;
- // }
- // message UpgradePkgVo {
- // int64 id = 1;
- // int64 productId = 2;
- // string platform = 3;
- // string channel = 4;
- // int64 versionCode = 5;
- // string versionName = 6;
- // string fileMd5 = 7;
- // string areaConfigs = 8;
- // string versionConfigs = 9;
- // int64 interval = 10;
- // int64 upgradeRate = 11;
- // string intro = 12;
- // string appStoreUrl = 13;
- // string url = 14;
- // string onlineUrls = 15;
- // string userIds = 16;
- // int64 isForceUpdate = 17;
- // string forceIntro = 18;
- // string forceVersionConfigs = 19;
- // Status status = 20;
- // string remark = 21;
- // int64 createTime = 22;
- // int64 updateTime = 23;
- // string title = 24;
- // string forceAreaConfigs = 25;
- // }
- // message UpgradeResConfigGetReq {
- // Page page = 1;
- // int64 id = 2;
- // }
- // message UpgradeResConfigListReq {
- // Page page = 1;
- // UpgradeResConfigVo vo = 2;
- // }
- // message UpgradeResConfigListResp {
- // int64 total = 1;
- // repeated UpgradeResConfigVo list = 2;
- // }
- // message UpgradePkgGetReq { UpgradePkgVo vo = 1; }
- // message UpgradePkgListReq {
- // Page page = 1;
- // UpgradePkgVo vo = 2;
- // }
- // message UpgradePkgListResp {
- // int64 total = 1;
- // repeated UpgradePkgVo list = 2;
- // }
- // message UpgradeResGetReq { UpgradeResVo vo = 1; }
- // message UpgradeResListReq {
- // Page page = 1;
- // UpgradeResVo vo = 2;
- // }
- // message UpgradeResListResp {
- // int64 total = 1;
- // repeated UpgradeResVo list = 2;
- // }
- // message ResourceDelReq {
- // repeated int64 ids = 1;
- // string fileMd5 = 2;
- // }
- // UpgradePkgPlan
- message UpgradePkgPlanVo {
- int64 id = 1;
- string productCode = 2; // 产品code
- string areas = 3; // 地区列表
- int64 sort = 4;
- Status status = 5; // 状态
- string remark = 6;
- int64 createTime = 7;
- int64 updateTime = 8;
- }
- message UpgradePkgPlanListReq {
- Page page = 1;
- UpgradePkgPlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message UpgradePkgPlanListResp {
- int64 total = 1;
- repeated UpgradePkgPlanVo list = 2;
- }
- // end UpgradePkgPlan
- // UpgradePkgPlanDetail
- message UpgradePkgPlanDetailVo {
- int64 id = 1;
- int64 planId = 2; // 方案ID
- string platform = 3; // 平台
- string channel = 4; // 渠道
- string name = 5; // 名称
- int64 ver = 6; // 版本号
- string url = 7; // 商店地址
- string websiteUrl = 8; // 官网地址
- string directUrl = 9; // 直接下载地址
- string md5 = 10; // MD5
- string info = 11; // 更新信息
- string testUpgradePolicyConfig = 12; // 测试更新策略配置
- string upgradePolicyConfig = 13; // 更新策略配置
- string forceUpgradePolicyConfig = 14; // 强制更新策略
- Status status = 15; // 状态
- string remark = 16;
- int64 createTime = 17;
- int64 updateTime = 18;
- }
- message UpgradePkgPlanDetailListReq {
- Page page = 1;
- UpgradePkgPlanDetailVo vo = 2;
- repeated int64 planIds = 3;
- }
- message UpgradePkgPlanDetailListResp {
- int64 total = 1;
- repeated UpgradePkgPlanDetailVo list = 2;
- }
- // end UpgradePkgPlanDetail
- // UpgradeResPlan
- message UpgradeResPlanVo {
- int64 id = 1;
- string productCode = 2; // 产品code
- string areas = 3; // 地区列表
- int64 sort = 4;
- Status status = 5; // 状态
- string remark = 6;
- int64 createTime = 7;
- int64 updateTime = 8;
- }
- message UpgradeResPlanListReq {
- Page page = 1;
- UpgradeResPlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message UpgradeResPlanListResp {
- int64 total = 1;
- repeated UpgradeResPlanVo list = 2;
- }
- // end UpgradeResPlan
- // UpgradeResPlanDetail
- message UpgradeResPlanDetailVo {
- int64 id = 1; // ID
- int64 planId = 2; // 方案ID
- string platform = 3; // 平台
- string channel = 4; // 渠道
- string name = 5; // 名称
- int64 ver = 6; // 资源版本号
- string url = 7; // 资源地址
- string info = 8; // 更新信息
- string md5 = 9; // 资源 md5值
- int64 size = 10; // 资源大小
- string testUpgradePolicyConfig = 11; // 测试更新策略配置
- string upgradePolicyConfig = 12; // 更新策略配置
- string forceUpgradePolicyConfig = 13; // 强制更新策略
- Status status = 14; // 状态,1=正常,2=冻结
- string remark = 15; // 备注
- int64 createTime = 16; // 创建时间秒
- int64 updateTime = 17; // 修改时间秒
- }
- message UpgradeResPlanDetailListReq {
- Page page = 1;
- UpgradeResPlanDetailVo vo = 2;
- repeated int64 planIds = 3;
- }
- message UpgradeResPlanDetailListResp {
- int64 total = 1;
- repeated UpgradeResPlanDetailVo list = 2;
- }
- // end UpgradeResPlanDetail
- // AdPlan
- message AdPlanVo {
- int64 id = 1;
- string productCode = 2; // 产品code
- string areas = 3; // 地区列表
- string config = 4; // 配置
- int64 sort = 5;
- Status status = 6; // 状态
- string remark = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- }
- message AdPlanListReq {
- Page page = 1;
- AdPlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message AdPlanListResp {
- int64 total = 1;
- repeated AdPlanVo list = 2;
- }
- // end AdPlan
- // AdPlanDetail
- message AdPlanDetailVo {
- int64 id = 1;
- int64 planId = 2; // 方案ID
- string adPlatform = 3; // 平台
- string adType = 4; // 广告类型
- string adSlot = 5; // 广告位置
- string adDatas = 6; // 广告资源
- string testPolicyConfig = 7; // 策略配置
- string policyConfig = 8; // 策略配置
- int64 sort = 9; // 排序
- Status status = 10; // 0未知,1正常,2暂停
- string remark = 11;
- int64 createTime = 12;
- int64 updateTime = 13;
- string version = 14;
- }
- message AdPlanDetailListReq {
- Page page = 1;
- AdPlanDetailVo vo = 2;
- repeated int64 planIds = 3;
- }
- message AdPlanDetailListResp {
- int64 total = 1;
- repeated AdPlanDetailVo list = 2;
- }
- // end AdPlanDetail
- // AdGlobalConfig
- message AdGlobalConfigVo {
- int64 id = 1;
- string productCode = 2; // 产品code
- string platforms = 3; // 按平台分类的广告配置JSON
- string remark = 4; // 备注
- int64 createTime = 5; // 创建时间
- int64 updateTime = 6; // 更新时间
- }
- message AdGlobalConfigGetReq {
- string productCode = 1; // 产品代码
- }
- // end AdGlobalConfig
- // JobBatch
- message JobBatchVo {
- int64 id = 1; // ID
- string name = 2; // 作业名称
- string type = 3; // 作业类型
- string initParams = 4; // 作业初始化参数
- string contextData =
- 5; // 上下文数据,可用于存储此次批量作业的任务过程中产生的通用的中间数据
- string beginHandler = 6; // 预处理函数/URL
- string afterHandler = 7; // 后处理函数/URL
- int64 concurrency = 8; // 并发控制数
- string retryPolicy = 9; // 子任务重试策略
- int64 startedTime = 10; // 批量作业开始时间
- int64 finishedTime = 11; // 批量作业完成时间
- string result = 12; // 批量作业返回结果
- string status = 13; // 批量作业完成状态
- string remark = 14; // 备注
- int64 createAt = 15; // 创建者ID
- int64 updateAt = 16; // 更新者ID
- int64 createTime = 17; // 创建时间
- int64 updateTime = 18; // 更新时间
- }
- message JobBatchWithTasksVo {
- JobBatchVo jobBatch = 1;
- repeated JobTasksVo jobTasks = 2;
- }
- message TimeRange {
- int64 start = 1;
- int64 end = 2;
- }
- message JobBatchListReq {
- Page page = 1;
- JobBatchVo vo = 2;
- TimeRange startedTimeRange = 3;
- TimeRange finishedTimeRange = 4;
- repeated string statuses = 5;
- repeated int64 excludeIds = 6;
- }
- message JobBatchListResp {
- int64 total = 1;
- repeated JobBatchVo list = 2;
- }
- message JobBatchListWithTasksResp {
- int64 total = 1;
- repeated JobBatchWithTasksVo list = 2;
- }
- // end JobBatch
- // JobTasks
- message JobTasksVo {
- int64 id = 1; // 任务id
- int64 batchId = 2; // 批量作业Id
- string name = 3; // 任务名称
- string initParams = 4; // 任务初始化配置及数据
- string runtimeData =
- 5; // 任务运行时数据,用于临时存储任务过程中各个关键节点的中间数据
- string externalRefs = 6; // 外部系统引用,用于记录与外部系统交互产生的关联标识
- int64 startedTime = 7; // 任务开始时间
- int64 finishedTime = 8; // 任务结束时间
- int64 retryCount = 9; // 当前已重试次数
- string result = 10; // 任务执行结果
- string status = 11; // 任务状态
- string remark = 12; // 备注
- int64 createAt = 13; // 创建者ID
- int64 updateAt = 14; // 更新者ID
- int64 createTime = 15; // 创建时间
- int64 updateTime = 16; // 更新时间
- }
- message JobTasksListReq {
- Page page = 1;
- JobTasksVo vo = 2;
- TimeRange startedTimeRange = 3;
- TimeRange finishedTimeRange = 4;
- repeated string statuses = 5;
- repeated int64 excludeIds = 6;
- }
- message JobTasksListResp {
- int64 total = 1;
- repeated JobTasksVo list = 2;
- }
- // end JobTasks
- // DeployConfig
- message DeployConfigVo {
- int64 id = 1; // ID
- string name = 2; // 名称
- string type = 3; // 类型
- string data = 4; // 数据
- Status status = 5; // 状态
- string remark = 6; // 备注
- int64 createTime = 7; // 创建时间
- int64 updateTime = 8; // 更新时间
- }
- message DeployConfigListReq {
- Page page = 1;
- DeployConfigVo vo = 2;
- repeated int64 excludeIds = 3;
- }
- message DeployConfigListResp {
- int64 total = 1;
- repeated DeployConfigVo list = 2;
- }
- // end DeployConfig
- // OperationLog
- message OperationLogVo {
- int64 id = 1;
- int64 sysUserId = 2;
- string productCode = 3;
- string model = 4;
- string action = 5;
- string details = 6;
- string result = 7;
- int64 updateTime = 8;
- int64 createTime = 9;
- }
- message OperationLogListReq {
- Page page = 1;
- OperationLogVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message OperationLogListResp {
- int64 total = 1;
- repeated OperationLogVo list = 2;
- }
- // end OperationLog
- // AnnouncePlan
- message AnnouncePlanVo {
- int64 id = 1;
- string productCode = 2; // 产品code
- string areas = 3; // 地区列表
- int64 sort = 4;
- Status status = 5; // 状态
- string remark = 6;
- int64 createTime = 7;
- int64 updateTime = 8;
- }
- message AnnouncePlanListReq {
- Page page = 1;
- AnnouncePlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message AnnouncePlanListResp {
- int64 total = 1;
- repeated AnnouncePlanVo list = 2;
- }
- // end AnnouncePlan
- // AnnouncePlanDetail
- message AnnouncePlanDetailVo {
- int64 id = 1;
- int64 planId = 2; // 方案ID
- string platforms = 3; // 平台
- string channels = 4; // 渠道
- string icon = 5; // 图标
- string title = 6; // 标题
- string content = 7; // 内容
- string url = 8; // 商店地址
- string buttonText = 9; // 按钮文本
- int64 closeable = 10; // 是否可关闭
- int64 sort = 11; // 排序
- string policyConfig = 12; // 更新策略配置
- Status status = 13; // 状态
- string remark = 14;
- int64 createTime = 15;
- int64 updateTime = 16;
- }
- message AnnouncePlanDetailListReq {
- Page page = 1;
- AnnouncePlanDetailVo vo = 2;
- repeated int64 planIds = 3;
- }
- message AnnouncePlanDetailListResp {
- int64 total = 1;
- repeated AnnouncePlanDetailVo list = 2;
- }
- // end AnnouncePlanDetail
- // ServiceTypes
- message ServiceTypesVo {
- int64 id = 1;
- string productCode = 2;
- string name = 3;
- int64 userLevel = 4;
- int64 deviceLimit = 5; // 可选字段,Go中是 *int64
- int64 sort = 6;
- string config = 7;
- Status status = 8;
- string remark = 9;
- int64 createTime = 10;
- int64 updateTime = 11;
- }
- message ServiceTypesGetReq {
- int64 id = 1;
- }
- message ServiceTypesListReq {
- Page page = 1;
- ServiceTypesVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ServiceTypesListResp {
- int64 total = 1;
- repeated ServiceTypesVo list = 2;
- }
- message ServiceTypesAddReq {
- ServiceTypesVo vo = 1;
- }
- message ServiceTypesUpdateReq {
- ServiceTypesVo vo = 1;
- }
- message ServiceTypesDelReq {
- int64 id = 1;
- }
- // end ServiceTypes
- // ServiceSets
- message ServiceSetsVo {
- int64 id = 1;
- string productCode = 2;
- int64 serviceTypeId = 3;
- string name = 4;
- int64 licenseDays = 5;
- string channel = 6;
- string channelItemId = 7;
- int64 refPortalServiceSetId = 8; // Go中是 sql.int64,转换为 int64
- string appleChannelItemId = 9;
- string googleChannelItemId = 10;
- string title = 11;
- string subTitle = 12;
- string introduce = 13;
- float orgPrice = 14;
- float price = 15;
- BoolInt display = 16;
- BoolInt isDefault = 17;
- BoolInt recommend = 18;
- BoolInt hidden = 19;
- int64 sort = 20;
- Status status = 21;
- string remark = 22;
- int64 createTime = 23;
- int64 updateTime = 24;
- }
- message ServiceSetsGetReq {
- int64 id = 1;
- }
- message ServiceSetsListReq {
- Page page = 1;
- ServiceSetsVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 serviceTypeIds = 4;
- repeated int64 excludeIds = 5;
- }
- message ServiceSetsListResp {
- int64 total = 1;
- repeated ServiceSetsVo list = 2;
- }
- message ServiceSetsAddReq {
- ServiceSetsVo vo = 1;
- }
- message ServiceSetsUpdateReq {
- ServiceSetsVo vo = 1;
- }
- message ServiceSetsDelReq {
- int64 id = 1;
- }
- // end ServiceSets
- message MessagePushVo {
- int64 id = 1;
- string status = 2;
- int64 operator = 3;
- string module = 4;
- string title = 5;
- string message = 6;
- string imgUrl = 7;
- string data = 8;
- string productCode = 9;
- int64 areaParam = 10;
- repeated string topics = 11;
- repeated string firebaseTokens = 12;
- int64 publishTime = 13;
- int64 createTime = 14;
- int64 updateTime = 15;
- }
- message MessagePushListReq {
- Page page = 1;
- MessagePushVo vo = 2;
- }
- message MessagePushListResp {
- int64 total = 1;
- repeated MessagePushVo list = 2;
- }
- // 基础服务: 产品管理,产品配置,升级配置、更新资源管理,资源版本管理,全局配置
- service GoPmpClient {
- rpc Ping(Request) returns (Response);
- // GlobalParamVo
- rpc GlobalParamAdd(GlobalParamVo) returns (GlobalParamVo);
- rpc GlobalParamUpdate(GlobalParamVo) returns (GlobalParamVo);
- rpc GlobalParamDel(Ids) returns (Empty);
- rpc GlobalParamGet(GlobalParamVo) returns (GlobalParamVo); // 兼容旧接口,新版本代码中请不要调用
- rpc GlobalParamGetWithLang(GlobalParamGetReq) returns (GlobalParamVo);
- rpc GlobalParamList(GlobalParamListReq) returns (GlobalParamListResp);
- // ProductVo
- rpc ProductAdd(ProductVo) returns (ProductVo);
- rpc ProductUpdate(ProductVo) returns (ProductVo);
- rpc ProductDel(Ids) returns (Empty);
- rpc ProductGet(ProductVo) returns (ProductVo);
- rpc ProductList(ProductListReq) returns (ProductListResp);
- rpc ProductAll(Request) returns (ProductListResp);
- // ProductParamVo
- rpc ProductParamAdd(ProductParamVo) returns (ProductParamVo);
- rpc ProductParamUpdate(ProductParamVo) returns (ProductParamVo);
- rpc ProductParamDel(Ids) returns (Empty);
- rpc ProductParamGet(ProductParamVo) returns (ProductParamVo); // 兼容旧接口,新版本代码中请不要调用
- rpc ProductParamGetWithLang(ProductParamGetReq) returns (ProductParamVo);
- rpc ProductParamList(ProductParamListReq) returns (ProductParamListResp);
- // ProductAction 产品行为配置
- rpc ProductActionAdd(ProductActionVo) returns (ProductActionVo);
- rpc ProductActionUpdate(ProductActionVo) returns (ProductActionVo);
- rpc ProductActionDel(Ids) returns (Empty);
- rpc ProductActionGet(ProductActionReq) returns (ProductActionVo);
- rpc ProductActionList(ProductActionListReq) returns (ProductActionListResp);
- // AreaParamVo
- rpc AreaParamAdd(AreaParamVo) returns (AreaParamVo);
- rpc AreaParamUpdate(AreaParamVo) returns (AreaParamVo);
- rpc AreaParamDel(Ids) returns (Empty);
- rpc AreaParamGet(AreaParamVo) returns (AreaParamVo);
- rpc AreaParamList(AreaParamListReq) returns (AreaParamListResp);
- // NationalLanguage
- rpc NationalLanguageAdd(NationalLanguageVo) returns (NationalLanguageVo);
- rpc NationalLanguageUpdate(NationalLanguageVo) returns (NationalLanguageVo);
- rpc NationalLanguageDel(Ids) returns (Empty);
- rpc NationalLanguageGet(NationalLanguageVo) returns (NationalLanguageVo);
- rpc NationalLanguageList(NationalLanguageListReq)
- returns (NationalLanguageListResp);
- // Tip
- rpc TipAdd(TipVo) returns (TipVo);
- rpc TipUpdate(TipVo) returns (TipVo);
- rpc TipDel(Ids) returns (Empty);
- rpc TipGet(TipGetReq) returns (TipVo);
- rpc TipList(TipListReq) returns (TipListResp);
- // Dict
- rpc DictAdd(DictVo) returns (DictVo);
- rpc DictUpdate(DictVo) returns (DictVo);
- rpc DictDel(Ids) returns (Empty);
- rpc DictGet(DictGetReq) returns (DictVo);
- rpc DictList(DictListReq) returns (DictListResp);
- // // UpgradeRes 热更新代码资源管理
- // rpc UpgradeResAdd(UpgradeResVo) returns (UpgradeResVo);
- // rpc UpgradeResUpdate(UpgradeResVo) returns (Empty);
- // rpc UpgradeResDel(ResourceDelReq) returns (Empty);
- // rpc UpgradeResGet(UpgradeResGetReq) returns (UpgradeResVo);
- // rpc UpgradeResList(UpgradeResListReq) returns (UpgradeResListResp);
- // // UpgradePkg app 包更新管理
- // rpc UpgradePkgAdd(UpgradePkgVo) returns (UpgradePkgVo);
- // rpc UpgradePkgUpdate(UpgradePkgVo) returns (Empty);
- // rpc UpgradePkgDel(Ids) returns (Empty);
- // rpc UpgradePkgGet(UpgradePkgGetReq) returns (UpgradePkgVo);
- // rpc UpgradePkgList(UpgradePkgListReq) returns (UpgradePkgListResp);
- // // UpgradeResConfig
- // 热更新【代码资源】配置管理,控制哪些版本地区的用户可以更新 rpc
- // UpgradeResConfigAdd(UpgradeResConfigVo) returns (UpgradeResConfigVo); rpc
- // UpgradeResConfigUpdate(UpgradeResConfigVo) returns (Empty); rpc
- // UpgradeResConfigDel(Ids) returns (Empty); rpc
- // UpgradeResConfigGet(UpgradeResConfigGetReq) returns (UpgradeResConfigVo);
- // rpc UpgradeResConfigList(UpgradeResConfigListReq)
- // returns (UpgradeResConfigListResp);
- // UpgradePkgPlan
- rpc UpgradePkgPlanAdd(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
- rpc UpgradePkgPlanUpdate(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
- rpc UpgradePkgPlanDel(Ids) returns (Empty);
- rpc UpgradePkgPlanGet(UpgradePkgPlanVo) returns (UpgradePkgPlanVo);
- rpc UpgradePkgPlanList(UpgradePkgPlanListReq)
- returns (UpgradePkgPlanListResp);
- // UpgradePkgPlanDetail
- rpc UpgradePkgPlanDetailAdd(UpgradePkgPlanDetailVo)
- returns (UpgradePkgPlanDetailVo);
- rpc UpgradePkgPlanDetailUpdate(UpgradePkgPlanDetailVo)
- returns (UpgradePkgPlanDetailVo);
- rpc UpgradePkgPlanDetailDel(Ids) returns (Empty);
- rpc UpgradePkgPlanDetailGet(UpgradePkgPlanDetailVo)
- returns (UpgradePkgPlanDetailVo);
- rpc UpgradePkgPlanDetailList(UpgradePkgPlanDetailListReq)
- returns (UpgradePkgPlanDetailListResp);
- // UpgradeResPlan
- rpc UpgradeResPlanAdd(UpgradeResPlanVo) returns (UpgradeResPlanVo);
- rpc UpgradeResPlanUpdate(UpgradeResPlanVo) returns (UpgradeResPlanVo);
- rpc UpgradeResPlanDel(Ids) returns (Empty);
- rpc UpgradeResPlanGet(UpgradeResPlanVo) returns (UpgradeResPlanVo);
- rpc UpgradeResPlanList(UpgradeResPlanListReq)
- returns (UpgradeResPlanListResp);
- // UpgradeResPlanDetail
- rpc UpgradeResPlanDetailAdd(UpgradeResPlanDetailVo)
- returns (UpgradeResPlanDetailVo);
- rpc UpgradeResPlanDetailUpdate(UpgradeResPlanDetailVo)
- returns (UpgradeResPlanDetailVo);
- rpc UpgradeResPlanDetailDel(Ids) returns (Empty);
- rpc UpgradeResPlanDetailGet(UpgradeResPlanDetailVo)
- returns (UpgradeResPlanDetailVo);
- rpc UpgradeResPlanDetailList(UpgradeResPlanDetailListReq)
- returns (UpgradeResPlanDetailListResp);
- // AdPlan
- rpc AdPlanAdd(AdPlanVo) returns (AdPlanVo);
- rpc AdPlanUpdate(AdPlanVo) returns (AdPlanVo);
- rpc AdPlanDel(Ids) returns (Empty);
- rpc AdPlanGet(AdPlanVo) returns (AdPlanVo);
- rpc AdPlanList(AdPlanListReq) returns (AdPlanListResp);
- // AdPlanDetail
- rpc AdPlanDetailAdd(AdPlanDetailVo) returns (AdPlanDetailVo);
- rpc AdPlanDetailUpdate(AdPlanDetailVo) returns (AdPlanDetailVo);
- rpc AdPlanDetailDel(Ids) returns (Empty);
- rpc AdPlanDetailGet(AdPlanDetailVo) returns (AdPlanDetailVo);
- rpc AdPlanDetailList(AdPlanDetailListReq) returns (AdPlanDetailListResp);
- // AdGlobalConfig
- rpc AdGlobalConfigGet(AdGlobalConfigGetReq) returns (AdGlobalConfigVo);
- rpc AdGlobalConfigUpdate(AdGlobalConfigVo) returns (AdGlobalConfigVo);
- // JobBatch
- rpc JobBatchAdd(JobBatchVo) returns (JobBatchVo);
- rpc JobBatchAddWithTasks(JobBatchWithTasksVo) returns (JobBatchWithTasksVo);
- rpc JobBatchUpdate(JobBatchVo) returns (JobBatchVo);
- rpc JobBatchDel(Ids) returns (Empty);
- rpc JobBatchGet(JobBatchVo) returns (JobBatchVo);
- rpc JobBatchGetWithTasks(JobBatchVo) returns (JobBatchWithTasksVo);
- rpc JobBatchList(JobBatchListReq) returns (JobBatchListResp);
- rpc JobBatchListWithTasks(JobBatchListReq)
- returns (JobBatchListWithTasksResp);
- // JobTasks
- rpc JobTasksAdd(JobTasksVo) returns (JobTasksVo);
- rpc JobTasksUpdate(JobTasksVo) returns (JobTasksVo);
- rpc JobTasksDel(Ids) returns (Empty);
- rpc JobTasksGet(JobTasksVo) returns (JobTasksVo);
- rpc JobTasksList(JobTasksListReq) returns (JobTasksListResp);
- // DeployConfig
- rpc DeployConfigAdd(DeployConfigVo) returns (DeployConfigVo);
- rpc DeployConfigUpdate(DeployConfigVo) returns (DeployConfigVo);
- rpc DeployConfigDel(Ids) returns (Empty);
- rpc DeployConfigGet(DeployConfigVo) returns (DeployConfigVo);
- rpc DeployConfigList(DeployConfigListReq) returns (DeployConfigListResp);
- // OperationLog
- rpc OperationLogAdd(OperationLogVo) returns (OperationLogVo);
- rpc OperationLogUpdate(OperationLogVo) returns (OperationLogVo);
- rpc OperationLogGet(OperationLogVo) returns (OperationLogVo);
- rpc OperationLogList(OperationLogListReq) returns (OperationLogListResp);
- // AnnouncePlan
- rpc AnnouncePlanAdd(AnnouncePlanVo) returns (AnnouncePlanVo);
- rpc AnnouncePlanUpdate(AnnouncePlanVo) returns (AnnouncePlanVo);
- rpc AnnouncePlanDel(Ids) returns (Empty);
- rpc AnnouncePlanGet(AnnouncePlanVo) returns (AnnouncePlanVo);
- rpc AnnouncePlanList(AnnouncePlanListReq) returns (AnnouncePlanListResp);
- // AnnouncePlanDetail
- rpc AnnouncePlanDetailAdd(AnnouncePlanDetailVo)
- returns (AnnouncePlanDetailVo);
- rpc AnnouncePlanDetailUpdate(AnnouncePlanDetailVo)
- returns (AnnouncePlanDetailVo);
- rpc AnnouncePlanDetailDel(Ids) returns (Empty);
- rpc AnnouncePlanDetailGet(AnnouncePlanDetailVo)
- returns (AnnouncePlanDetailVo);
- rpc AnnouncePlanDetailList(AnnouncePlanDetailListReq)
- returns (AnnouncePlanDetailListResp);
- // ServiceTypes
- rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesVo);
- rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesVo);
- rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
- rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesVo);
- rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
- // ServiceSets
- rpc ServiceSetsAdd(ServiceSetsAddReq) returns (ServiceSetsVo);
- rpc ServiceSetsUpdate(ServiceSetsUpdateReq) returns (ServiceSetsVo);
- rpc ServiceSetsDel(ServiceSetsDelReq) returns (Empty);
- rpc ServiceSetsGet(ServiceSetsGetReq) returns (ServiceSetsVo);
- rpc ServiceSetsList(ServiceSetsListReq) returns (ServiceSetsListResp);
- // MessagePush
- rpc MessagePushAdd(MessagePushVo) returns (MessagePushVo);
- rpc MessagePushUpdate(MessagePushVo) returns (MessagePushVo);
- rpc MessagePushList(MessagePushListReq) returns (MessagePushListResp);
- }
- message ShortDramaEpisodeVo {
- int64 id = 1;
- int64 dramaId = 2;
- int64 type = 3;
- string name = 4;
- int64 sort = 5;
- string videos = 6;
- string subtitles = 7;
- Status status = 8;
- int64 createTime = 9;
- int64 updateTime = 10;
- string danmakuUrl = 11;
- }
- message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
- message ShortDramaEpisodeListReq {
- Page page = 1;
- ShortDramaEpisodeVo vo = 2;
- repeated int64 dramaIds = 3;
- }
- message ShortDramaEpisodeListResp {
- int64 total = 1;
- repeated ShortDramaEpisodeVo list = 2;
- }
- message ShortDramaEpisodeBatchAddReq {
- int64 dramaId = 1;
- repeated ShortDramaEpisodeVo episodes = 2;
- }
- message ShortDramaEpisodeBatchRefreshUpdateTimeReq {
- int64 dramaId = 1;
- }
- message ShortDramaLanguageVo {
- int64 id = 1;
- int64 dramaId = 2;
- string lang = 3;
- string title = 4;
- string description = 5;
- string covers = 6;
- string coverDominantColor = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- }
- message ShortDramaVo {
- int64 id = 1;
- string productCodes = 2;
- string title = 3;
- string description = 4;
- string covers = 5;
- string coverDominantColor = 6;
- string type = 7;
- string tags = 8;
- string releaseRegions = 9;
- int64 releaseDate = 10;
- int64 totalEpisodes = 11;
- int64 completedStatus = 12;
- string copyrightSupplier = 13;
- string copyrightDoc = 14;
- int64 copyrightPurchaseDate = 15;
- int64 copyrightExpireDate = 16;
- int64 status = 17;
- int64 createTime = 18;
- int64 updateTime = 19;
- string ghostCutId = 20;
- int64 recommend = 21;
- string otherConfig = 22;
- repeated ShortDramaLanguageVo shortDramaLanguages = 23;
- int64 mainEpisodeCount = 24;
- int64 trailerEpisodeCount = 25;
- int64 copyrightId = 26;
- int64 creator = 27;
- int64 modifier = 28;
- }
- message ShortDramaGetReq { ShortDramaVo vo = 1; string productCode = 2; string countryCode = 3; string lang = 4;}
- message ShortDramaListReq {
- Page page = 1;
- ShortDramaVo vo = 2;
- repeated int64 excludeIds = 3;
- string productCode = 4;
- string countryCode = 5;
- string lang = 6;
- }
- message ShortDramaListResp {
- int64 total = 1;
- repeated ShortDramaVo list = 2;
- }
- message ShortDramaLanguageListReq {
- Page page = 1;
- ShortDramaLanguageVo vo = 2;
-
- }
- message ShortDramaLanguageListResp {
- int64 total = 1;
- repeated ShortDramaLanguageVo list = 2;
- }
- message ShortDramaEpisodeCountVo {
- int64 dramaId = 1;
- int64 episodeCount = 2;
- }
- message ShortDramaEpisodeCountReq {
- Page page = 1;
- Status status = 2;
- int64 type = 3;
- repeated int64 dramaIds = 4;
- }
- message ShortDramaEpisodeCountResp {
- int64 total = 1;
- repeated ShortDramaEpisodeCountVo list = 2;
- }
- message ShortDramaCheckNameReq {
- string title = 1; // 短剧名称
- int64 id = 2; // 编辑时排除当前短剧ID
- }
- message ShortDramaCheckNameResp {
- bool exists = 1; // 是否存在
- }
- message ShortDramaUpdateModifierReq {
- int64 id = 1;
- int64 modifier = 2;
- }
- message SetTotalStatsReq {
- int64 dramaId = 1;
- string country = 2;
- int64 todayPlayCount = 3;
- int64 weeklyPlayCount = 4;
- int64 monthlyPlayCount = 5;
- }
- message ShortDramaStatsPlaysTotalVo {
- int64 id = 1;
- int64 dramaId = 2;
- string country = 3;
- int64 todayPlayCount = 4;
- int64 weeklyPlayCount = 5;
- int64 monthlyPlayCount = 6;
- int64 createTime = 7;
- int64 updateTime = 8;
- }
- message ShortDramaStatsPlaysTotalListReq {
- Page page = 1;
- string country = 2; // 国家代码
- }
- message ShortDramaStatsPlaysTotalListResp {
- int64 total = 1;
- repeated ShortDramaStatsPlaysTotalVo list = 2;
- }
- service GoShortDramaClient {
- // ShortDrama
- rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
- rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
- rpc ShortDramaDel(Ids) returns (Empty);
- rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
- rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
- rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
- // ShortDramaLanguage
- rpc ShortDramaLanguageList(ShortDramaLanguageListReq) returns (ShortDramaLanguageListResp);
- // ShortDramaEpisode
- rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
- rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
- rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
- rpc ShortDramaEpisodeDel(Ids) returns (Empty);
- rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq) returns (ShortDramaEpisodeVo);
- rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq) returns (ShortDramaEpisodeListResp);
- rpc ShortDramaEpisodeBatchRefreshUpdateTime(ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
- // ShortDramaEpisodeCount
- rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq) returns (ShortDramaEpisodeCountResp);
- rpc ShortDramaCheckName(ShortDramaCheckNameReq) returns (ShortDramaCheckNameResp);
- // ShortDramaStats
- rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
- // ShortDramaStatsPlaysTotal
- rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq) returns (ShortDramaStatsPlaysTotalListResp);
- }
- // 根据需要增加状态
- message SysUserVo {
- int64 id = 1; // ID
- string username = 2; // 登录名
- string password = 3; // 登录密码
- string nickname = 4; // 昵称
- string avatar = 5; // 头像
- string email = 6; // 邮箱
- string phone = 7; // 手机号
- string remark = 8; // 备注
- BoolInt isSuperAdmin = 9; // 是否为超级管理员 1是 2否
- int64 permsLevel = 10; // 权限等级 值越大 权限越小
- Status status = 11; // 状态 1正常 2冻结
- int64 createTime = 12; // 创建时间
- int64 updateTime = 13; // 修改时间
- }
- message SysRoleVo {
- int64 id = 1; // ID
- string productCode = 2; // 所属产品
- string name = 3; // 角色名
- string remark = 4; // 备注
- Status status = 5; // 状态 1启用 2禁用
- int64 createTime = 6; // 创建时间
- int64 updateTime = 7; // 修改时间
- int64 permsLevel = 8; // 权限等级 值越大 权限越小
- }
- message SysPermVo {
- int64 id = 1; // ID
- string name = 2; // 权限名
- string code = 3; // 权限code
- string remark = 4; // 备注
- Status status = 5; // 状态 1启用 2禁用
- int64 createTime = 6; // 创建时间
- int64 updateTime = 7; // 修改时间
- }
- message SysUserRoleVo {
- int64 id = 1; // ID
- int64 userId = 2; // 用户ID
- int64 roleId = 3; // 角色ID
- int64 createTime = 4; // 创建时间
- int64 updateTime = 5; // 修改时间
- }
- message SysRolePermVo {
- int64 id = 1; // ID
- int64 roleId = 2; // 角色ID
- int64 permId = 3; // 权限ID
- int64 createTime = 4; // 创建时间
- int64 updateTime = 5; // 修改时间
- }
- message SysUserPermVo {
- int64 id = 1; // ID
- int64 userId = 2; // 用户ID
- int64 permId = 3; // 权限ID
- string effect = 4; // 权限控制策略 ALLOW允许 DENY拒绝
- int64 createTime = 5; // 创建时间
- int64 updateTime = 6; // 修改时间
- }
- message SysPermRule {
- int64 permId = 1;
- string effect = 2; // ALLOW允许 DENY拒绝
- }
- message SysUserWithRoleIdsAndPermRules {
- SysUserVo user = 1; // 用户信息
- repeated int64 roleIds = 2; // 角色
- repeated SysPermRule permRules = 3; // 权限
- }
- message SysUserWithRolesAndPerms {
- SysUserVo user = 1; // 用户信息
- repeated SysRoleVo roles = 2; // 角色
- repeated SysPermVo perms = 3; // 权限
- }
- message SysUserGetReq { SysUserVo vo = 1; }
- message SysUserListReq {
- Page page = 1;
- SysUserVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message SysUserListResp {
- int64 total = 1;
- repeated SysUserVo list = 2;
- }
- message SysUserListWithRolesAndPermsResp {
- int64 total = 1;
- repeated SysUserWithRolesAndPerms list = 2;
- }
- message SysRoleWithPermIds {
- SysRoleVo role = 1;
- repeated int64 permIds = 2;
- }
- message SysRoleWithPerms {
- SysRoleVo role = 1;
- repeated SysPermVo perms = 2;
- }
- message SysRoleGetReq { SysRoleVo vo = 1; }
- message SysRoleListReq {
- Page page = 1;
- SysRoleVo vo = 2;
- repeated string productCodes = 3; // 所属产品
- repeated int64 excludeIds = 4; // 排除的ID
- }
- message SysRoleListResp {
- int64 total = 1;
- repeated SysRoleVo list = 2;
- }
- message SysRoleListWithPermsResp {
- int64 total = 1;
- repeated SysRoleWithPerms list = 2;
- }
- message SysPermGetReq { SysPermVo vo = 1; }
- message SysPermListReq {
- Page page = 1;
- SysPermVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message SysPermListResp {
- int64 total = 1;
- repeated SysPermVo list = 2;
- }
- message SysUserRoleGetReq { SysUserRoleVo vo = 1; }
- message SysUserRoleListReq {
- Page page = 1;
- SysUserRoleVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message SysUserRoleListResp {
- int64 total = 1;
- repeated SysUserRoleVo list = 2;
- }
- message SysRolePermGetReq { SysRolePermVo vo = 1; }
- message SysRolePermListReq {
- Page page = 1;
- SysRolePermVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message SysRolePermListResp {
- int64 total = 1;
- repeated SysRolePermVo list = 2;
- }
- message SysUserPermGetReq { SysUserPermVo vo = 1; }
- message SysUserPermListReq {
- Page page = 1;
- SysUserPermVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message SysUserPermListResp {
- int64 total = 1;
- repeated SysUserPermVo list = 2;
- }
- service GoSysClient {
- rpc Ping(Request) returns (Response);
- // 用户管理
- rpc SysUserAdd(SysUserVo) returns (SysUserVo);
- rpc SysUserUpdate(SysUserVo) returns (SysUserVo);
- rpc SysUserDelete(Ids) returns (Empty);
- rpc SysUserGet(SysUserGetReq) returns (SysUserVo);
- rpc SysUserList(SysUserListReq) returns (SysUserListResp);
- rpc SysUserAddWithRolesAndPerms(SysUserWithRoleIdsAndPermRules)
- returns (SysUserWithRolesAndPerms);
- rpc SysUserUpdateWithRolesAndPerms(SysUserWithRoleIdsAndPermRules)
- returns (SysUserWithRolesAndPerms);
- rpc SysUserGetWithRolesAndPerms(SysUserGetReq)
- returns (SysUserWithRolesAndPerms);
- rpc SysUserListWithRolesAndPerms(SysUserListReq)
- returns (SysUserListWithRolesAndPermsResp);
- // 角色管理
- rpc SysRoleAdd(SysRoleVo) returns (SysRoleVo);
- rpc SysRoleUpdate(SysRoleVo) returns (SysRoleVo);
- rpc SysRoleDelete(Ids) returns (Empty);
- rpc SysRoleGet(SysRoleGetReq) returns (SysRoleVo);
- rpc SysRoleList(SysRoleListReq) returns (SysRoleListResp);
- rpc SysRoleAddWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
- rpc SysRoleUpdateWithPerms(SysRoleWithPermIds) returns (SysRoleWithPerms);
- rpc SysRoleGetWithPerms(SysRoleGetReq) returns (SysRoleWithPerms);
- rpc SysRoleListWithPerms(SysRoleListReq) returns (SysRoleListWithPermsResp);
- // 权限管理
- rpc SysPermAdd(SysPermVo) returns (SysPermVo);
- rpc SysPermUpdate(SysPermVo) returns (SysPermVo);
- rpc SysPermDelete(Ids) returns (Empty);
- rpc SysPermGet(SysPermGetReq) returns (SysPermVo);
- rpc SysPermList(SysPermListReq) returns (SysPermListResp);
- // 用户角色管理
- rpc SysUserRoleAdd(SysUserRoleVo) returns (SysUserRoleVo);
- rpc SysUserRoleUpdate(SysUserRoleVo) returns (SysUserRoleVo);
- rpc SysUserRoleDelete(Ids) returns (Empty);
- rpc SysUserRoleGet(SysUserRoleGetReq) returns (SysUserRoleVo);
- rpc SysUserRoleList(SysUserRoleListReq) returns (SysUserRoleListResp);
- // 角色权限管理
- rpc SysRolePermAdd(SysRolePermVo) returns (SysRolePermVo);
- rpc SysRolePermUpdate(SysRolePermVo) returns (SysRolePermVo);
- rpc SysRolePermDelete(Ids) returns (Empty);
- rpc SysRolePermGet(SysRolePermGetReq) returns (SysRolePermVo);
- rpc SysRolePermList(SysRolePermListReq) returns (SysRolePermListResp);
- // 用户权限管理
- rpc SysUserPermAdd(SysUserPermVo) returns (SysUserPermVo);
- rpc SysUserPermUpdate(SysUserPermVo) returns (SysUserPermVo);
- rpc SysUserPermDelete(Ids) returns (Empty);
- rpc SysUserPermGet(SysUserPermGetReq) returns (SysUserPermVo);
- rpc SysUserPermList(SysUserPermListReq) returns (SysUserPermListResp);
- }
- // Account
- message AccountVo {
- int64 id = 1; // 主键ID
- string userUuid = 2; // 用户UUID
- string productCode = 3; // 产品ID
- string username = 4; // 用户名
- string password = 5; // 密码
- string accountKey = 6; // 账号KEY
- string accountPassword = 7; // 账号密码
- int64 accountType = 8; // 账号类型
- int64 registMode = 9; // 注册方式
- string provider = 10; // 授权登录标识
- BoolInt whitelistUser = 11; // 白名单用户
- BoolInt activated = 12; // 是否激活
- string config = 13; // 配置
- Status status = 14; // 状态
- string avatar = 15; // 头像
- string area = 16; // 指定地区
- string remark = 17; // 备注
- string deviceId = 18; // 设备ID
- string platform = 19; // 平台
- string channel = 20; // 渠道
- string deviceModel = 21; // 设备型号
- string deviceOs = 22; // 设备系统
- int64 timezone = 23; // 时区
- string lang = 24; // 语言
- string ip = 25; // IP
- string country = 26; // 国家
- string province = 27; // 省份
- string city = 28; // 城市
- string isp = 29; // ISP
- int64 appVer = 30; // 产品版本号
- int64 appRuntimeCode = 31; // 产品运行码
- int64 createTime = 32; // 创建时间
- int64 updateTime = 33; // 更新时间
- string version = 34; // 数据版本
- string sessionId = 35; // 登录凭证
- int64 sessionCreateTime = 36; // 凭证创建时间
- }
- message AccountListReq {
- Page page = 1;
- AccountVo vo = 2;
- repeated string productCodes = 3; // 产品code
- repeated int64 excludeIds = 4; // 排除的ID
- }
- message AccountListResp {
- int64 total = 1;
- repeated AccountVo list = 2;
- }
- // AccountDevice
- message AccountDeviceVo {
- int64 id = 1;
- int64 accountId = 2; // 用户ID
- int64 deviceId = 3; // 设备ID
- string sessionId = 4; // 登录凭证
- int64 sessionCreateTime = 5; // 凭证创建时间
- int64 updateTime = 6;
- int64 createTime = 7;
- }
- message AccountDeviceListReq {
- Page page = 1;
- AccountDeviceVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- }
- message AccountDeviceListResp {
- int64 total = 1;
- repeated AccountDeviceVo list = 2;
- }
- message DeviceVo {
- int64 id = 1;
- string userUuid = 2;
- string productCode = 3;
- string deviceId = 4;
- string accountKey = 5;
- string accountPassword = 6;
- string platform = 7;
- string channel = 8;
- string referChannel = 9;
- string deviceModel = 10;
- string deviceOs = 11;
- int64 timezone = 12;
- string lang = 13;
- int64 appVer = 14;
- string ip = 15;
- string country = 16;
- string province = 17;
- string city = 18;
- string isp = 19;
- int64 createTime = 20;
- int64 updateTime = 21;
- Status status = 22;
- string refer = 23;
- int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户
- int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户
- string mockCountry = 26; // 指定国家
- string mockApi = 27; // 指定API
- string mockRouter = 28; // 指定路由
- }
- message DeviceListReq {
- Page page = 1;
- DeviceVo vo = 2;
- repeated string productCodes = 3; // 产品code
- repeated int64 excludeIds = 4; // 排除的ID
- repeated string dateRange = 5; // 日期范围
- int64 createStartTime = 6; // 创建开始时间
- int64 createEndTime = 7; // 创建结束时间
- }
- message DeviceListRes {
- int64 total = 1;
- repeated DeviceVo list = 2;
- }
- message UserAppConfigVo {
- int64 id = 1;
- string deviceId = 2;
- string key = 3;
- string value = 4;
- Status status = 5;
- int64 createTime = 6;
- int64 updateTime = 7;
- }
- message UserAppConfigGetReq { UserAppConfigVo vo = 1; }
- message UserAppConfigListReq {
- Page page = 1;
- UserAppConfigVo vo = 2;
- }
- message UserAppConfigListRes {
- int64 total = 1;
- repeated UserAppConfigVo list = 2;
- }
- // 用户模块
- service GoUserClient {
- rpc Ping(Request) returns (Response);
- // 用户app配置管理(ring)
- rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo);
- rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo);
- rpc UserAppConfigDel(Ids) returns (Empty);
- rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo);
- rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes);
- // 设备管理
- rpc DeviceAdd(DeviceVo) returns (DeviceVo);
- rpc DeviceUpdate(DeviceVo) returns (DeviceVo);
- rpc DeviceDel(Ids) returns (Empty);
- rpc DeviceGet(DeviceVo) returns (DeviceVo);
- rpc DeviceList(DeviceListReq) returns (DeviceListRes);
- // Account
- rpc AccountAdd(AccountVo) returns (AccountVo);
- rpc AccountUpdate(AccountVo) returns (AccountVo);
- rpc AccountDel(Ids) returns (Empty);
- rpc AccountGet(AccountVo) returns (AccountVo);
- rpc AccountList(AccountListReq) returns (AccountListResp);
- // AccountDevice
- rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo);
- rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo);
- rpc AccountDeviceDel(Ids) returns (Empty);
- rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo);
- rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp);
- }
- // VpnTag
- message VpnTagVo {
- int64 id = 1;
- string productCode = 2;
- string type = 3;
- string name = 4;
- int64 sort = 5;
- Status status = 6;
- string remark = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- string otherConfig = 10;
- }
- message VpnTagGetReq { VpnTagVo vo = 1; }
- message VpnTagListReq {
- Page page = 1;
- VpnTagVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message VpnTagListResp {
- int64 total = 1;
- repeated VpnTagVo list = 2;
- }
- message VpnTagBatchAddReq { repeated VpnTagVo list = 1; }
- message VpnTagBatchAddResp { repeated VpnTagVo list = 1; }
- message VpnTagBatchUpdateReq { repeated VpnTagVo list = 1; }
- message VpnTagBatchUpdateResp { repeated VpnTagVo list = 1; }
- message VpnTagBatchDelReq { repeated int64 ids = 1; }
- // VpnTag
- message VpnGroupVo {
- int64 id = 1;
- string productCode = 2;
- string name = 3;
- string icon = 4;
- int64 sort = 5;
- Status status = 6;
- string remark = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- string version = 10;
- string otherConfig = 11;
- }
- message VpnGroupExVo {
- VpnGroupVo vo = 1;
- repeated int64 tagIds = 2;
- }
- message VpnGroupAddReq {
- VpnGroupVo vo = 1;
- repeated int64 tagIds = 2;
- }
- message VpnGroupGetReq { VpnGroupVo vo = 1; }
- message VpnGroupListReq {
- Page page = 1;
- VpnGroupVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message VpnGroupListResp {
- int64 total = 1;
- repeated VpnGroupVo list = 2;
- }
- message VpnGroupBatchAddReq { repeated VpnGroupExVo list = 1; }
- message VpnGroupBatchAddResp { repeated VpnGroupExVo list = 1; }
- message VpnGroupBatchUpdateReq { repeated VpnGroupExVo list = 1; }
- message VpnGroupBatchUpdateResp { repeated VpnGroupExVo list = 1; }
- message VpnGroupBatchDelReq { repeated int64 ids = 1; }
- // VpnGroupTag
- message VpnGroupTagVo {
- int64 id = 1;
- int64 groupId = 2;
- int64 tagId = 3;
- int64 createTime = 4;
- int64 updateTime = 5;
- }
- message VpnGroupTagListReq {
- Page page = 1;
- VpnGroupTagVo vo = 2;
- repeated int64 groupIds = 3;
- repeated int64 tagIds = 4;
- }
- message VpnGroupTagListResp {
- int64 total = 1;
- repeated VpnGroupTagVo list = 2;
- }
- // VpnLocation
- message VpnLocationVo {
- int64 id = 1;
- int64 groupId = 2;
- string name = 3;
- string code = 4;
- string icon = 5;
- int64 type = 6;
- string displayPolicyConfig = 7;
- string routePolicyConfig = 8;
- int64 sort = 9;
- Status status = 10;
- string remark = 11;
- int64 createTime = 12;
- int64 updateTime = 13;
- string version = 14;
- string otherConfig = 15;
- }
- message VpnLocationExVo {
- VpnLocationVo vo = 1;
- string productCode = 2;
- }
- message VpnLocationGetReq { VpnLocationVo vo = 1; }
- message VpnLocationListReq {
- Page page = 1;
- VpnLocationExVo vo = 2;
- repeated int64 groupIds = 3;
- repeated int64 excludeIds = 4;
- repeated string productCodes = 5;
- }
- message VpnLocationListResp {
- int64 total = 1;
- repeated VpnLocationExVo list = 2;
- }
- message VpnLocationBatchAddReq { repeated VpnLocationVo list = 1; }
- message VpnLocationBatchAddResp { repeated VpnLocationExVo list = 1; }
- message VpnLocationBatchUpdateReq { repeated VpnLocationVo list = 1; }
- message VpnLocationBatchUpdateResp { repeated VpnLocationExVo list = 1; }
- message VpnLocationBatchDelReq { repeated int64 ids = 1; }
- // VpnServer
- message VpnServerVo {
- int64 id = 1;
- int64 instanceId = 2;
- string name = 3;
- string ip = 4;
- int64 port = 5;
- int64 pingPort = 6;
- string netConfig = 7;
- string routePolicyConfig = 8;
- string serverInfo = 9;
- Status status = 10;
- string remark = 11;
- int64 createTime = 12;
- int64 updateTime = 13;
- string version = 14;
- string otherInfo = 15;
- int64 monitorPort = 16;
- }
- message VpnServerExVo {
- VpnServerVo vo = 1;
- repeated int64 locationIds = 2;
- }
- message VpnServerListReq {
- Page page = 1;
- VpnServerVo vo = 2;
- repeated int64 excludeIds = 3; // 排除的ID
- repeated string productCodes = 4;
- repeated int64 locationIds = 5;
- repeated int64 instanceIds = 6;
- }
- message VpnServerListResp {
- int64 total = 1;
- repeated VpnServerVo list = 2;
- }
- message VpnServerExListResp {
- int64 total = 1;
- repeated VpnServerExVo list = 2;
- }
- message VpnServerAddReq {
- VpnServerVo vo = 1;
- repeated int64 locationIds = 2;
- }
- message VpnServerBatchAddReq { repeated VpnServerExVo list = 1; }
- message VpnServerBatchAddResp { repeated VpnServerExVo list = 1; }
- message VpnServerBatchUpdateReq { repeated VpnServerExVo list = 1; }
- message VpnServerBatchUpdateResp { repeated VpnServerExVo list = 1; }
- message VpnServerBatchDelReq { repeated int64 ids = 1; }
- message VpnServerLocationVo {
- int64 id = 1;
- int64 serverId = 2;
- int64 locationId = 3;
- int64 createTime = 4;
- int64 updateTime = 5;
- Status status = 6;
- }
- message VpnServerLocationListReq {
- Page page = 1;
- VpnServerLocationVo vo = 2;
- repeated int64 serverIds = 3;
- repeated int64 locationIds = 4;
- }
- message VpnServerLocationListResp {
- int64 total = 1;
- repeated VpnServerLocationVo list = 2;
- }
- message VpnLocationServerCountVo {
- int64 locationId = 1;
- int64 serverCount = 2;
- }
- message VpnLocationServerCountReq {
- Page page = 1;
- Status status = 2;
- repeated int64 serverIds = 3;
- repeated int64 locationIds = 4;
- }
- message VpnLocationServerCountResp {
- int64 total = 1;
- repeated VpnLocationServerCountVo list = 2;
- }
- message VpnProbeTaskVo {
- int64 id = 1;
- string taskId = 2;
- string filter = 3; // 筛选条件
- string type = 4; // 类型
- string uploadDomain = 5; // 配置
- string params = 6;
- int64 answer = 7;
- float percentage = 8; // 进度百分比
- string result = 9; // 结果
- int64 userId = 10;
- int64 createTime = 11;
- int64 updateTime = 12;
- }
- message VpnProbeTaskListReq {
- Page page = 1;
- VpnProbeTaskVo vo = 2;
- }
- message VpnProbeTaskListResp {
- int64 total = 1;
- repeated VpnProbeTaskVo list = 2;
- }
- // govpn 模块,VPN相关服务
- service GoVpnClient {
- rpc Ping(Request) returns (Response);
- // 表的事务操作
- rpc Transaction(TransactionReq) returns (Empty);
- // VpnTag
- rpc VpnTagAdd(VpnTagVo) returns (VpnTagVo);
- rpc VpnTagUpdate(VpnTagVo) returns (VpnTagVo);
- rpc VpnTagDel(Ids) returns (Empty);
- rpc VpnTagGet(VpnTagGetReq) returns (VpnTagVo);
- rpc VpnTagList(VpnTagListReq) returns (VpnTagListResp);
- rpc VpnTagBatchAdd(VpnTagBatchAddReq) returns (VpnTagBatchAddResp);
- rpc VpnTagBatchUpdate(VpnTagBatchUpdateReq) returns (VpnTagBatchUpdateResp);
- // VpnGroup
- rpc VpnGroupAdd(VpnGroupAddReq) returns (VpnGroupVo);
- rpc VpnGroupUpdate(VpnGroupAddReq) returns (Empty);
- rpc VpnGroupDel(Ids) returns (Empty);
- rpc VpnGroupGet(VpnGroupGetReq) returns (VpnGroupVo);
- rpc VpnGroupList(VpnGroupListReq) returns (VpnGroupListResp);
- rpc VpnGroupBatchAdd(VpnGroupBatchAddReq) returns (VpnGroupBatchAddResp);
- rpc VpnGroupBatchUpdate(VpnGroupBatchUpdateReq)
- returns (VpnGroupBatchUpdateResp);
- // VpnGroupTag
- rpc VpnGroupTagAdd(VpnGroupTagVo) returns (VpnGroupTagVo);
- rpc VpnGroupTagUpdate(VpnGroupTagVo) returns (VpnGroupTagVo);
- rpc VpnGroupTagDel(Ids) returns (Empty);
- rpc VpnGroupTagGet(VpnGroupTagVo) returns (VpnGroupTagVo);
- rpc VpnGroupTagList(VpnGroupTagListReq) returns (VpnGroupTagListResp);
- // VpnLocation
- rpc VpnLocationAdd(VpnLocationVo) returns (VpnLocationVo);
- rpc VpnLocationUpdate(VpnLocationVo) returns (Empty);
- rpc VpnLocationDel(Ids) returns (Empty);
- rpc VpnLocationGet(VpnLocationGetReq) returns (VpnLocationVo);
- rpc VpnLocationList(VpnLocationListReq) returns (VpnLocationListResp);
- rpc VpnLocationBatchAdd(VpnLocationBatchAddReq)
- returns (VpnLocationBatchAddResp);
- rpc VpnLocationBatchUpdate(VpnLocationBatchUpdateReq)
- returns (VpnLocationBatchUpdateResp);
- // VpnServer
- rpc VpnServerAdd(VpnServerAddReq) returns (VpnServerAddReq);
- rpc VpnServerUpdate(VpnServerAddReq) returns (VpnServerAddReq);
- rpc VpnServerDel(Ids) returns (Empty);
- rpc VpnServerGet(VpnServerVo) returns (VpnServerVo);
- rpc VpnServerList(VpnServerListReq) returns (VpnServerListResp);
- rpc VpnServerExList(VpnServerListReq) returns (VpnServerExListResp);
- rpc VpnServerBatchAdd(VpnServerBatchAddReq) returns (VpnServerBatchAddResp);
- rpc VpnServerBatchUpdate(VpnServerBatchUpdateReq)
- returns (VpnServerBatchUpdateResp);
- // VpnServerLocation
- rpc VpnServerLocationAdd(VpnServerLocationVo) returns (VpnServerLocationVo);
- rpc VpnServerLocationUpdate(VpnServerLocationVo) returns (Empty);
- rpc VpnServerLocationDel(Ids) returns (Empty);
- rpc VpnServerLocationGet(VpnServerLocationVo) returns (VpnServerLocationVo);
- rpc VpnServerLocationList(VpnServerLocationListReq)
- returns (VpnServerLocationListResp);
- // VpnLocationServerCount
- rpc VpnLocationServerCount(VpnLocationServerCountReq)
- returns (VpnLocationServerCountResp);
- // VpnProbeTask
- rpc VpnProbeTaskAdd(VpnProbeTaskVo) returns (VpnProbeTaskVo);
- rpc VpnProbeTaskUpdate(VpnProbeTaskVo) returns (Empty);
- rpc VpnProbeTaskList(VpnProbeTaskListReq) returns (VpnProbeTaskListResp);
- }
|