dynamic.proto 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811
  1. syntax = "proto3";
  2. package bilibili.app.dynamic.v2;
  3. import "google/protobuf/any.proto";
  4. import "bilibili/app/archive/middleware/v1/preload.proto";
  5. import "bilibili/dagw/component/avatar/v1/avatar.proto";
  6. // v2动态, rpc 按字母顺序排列
  7. service Dynamic {
  8. //
  9. rpc AlumniDynamics (AlumniDynamicsReq) returns (AlumniDynamicsReply);
  10. //
  11. rpc CampusBillBoard (CampusBillBoardReq) returns (CampusBillBoardReply);
  12. //
  13. rpc CampusEntryTab(CampusEntryTabReq) returns (CampusEntryTabResp);
  14. //
  15. rpc CampusFeedback(CampusFeedbackReq) returns (CampusFeedbackReply);
  16. //
  17. rpc CampusHomePages(CampusHomePagesReq) returns (CampusHomePagesReply);
  18. //
  19. rpc CampusMateLikeList(CampusMateLikeListReq) returns (CampusMateLikeListReply);
  20. //
  21. rpc CampusMngDetail(CampusMngDetailReq) returns (CampusMngDetailReply);
  22. //
  23. rpc CampusMngQuizOperate(CampusMngQuizOperateReq) returns (CampusMngQuizOperateReply);
  24. //
  25. rpc CampusMngSubmit(CampusMngSubmitReq) returns (CampusMngSubmitReply);
  26. //
  27. rpc CampusRcmd(CampusRcmdReq) returns (CampusRcmdReply);
  28. //
  29. rpc CampusRcmdFeed(CampusRcmdFeedReq) returns (CampusRcmdFeedReply);
  30. //
  31. rpc CampusRecommend(CampusRecommendReq) returns (CampusRecommendReply);
  32. //
  33. rpc CampusRedDot(CampusRedDotReq) returns (CampusRedDotReply);
  34. //
  35. rpc CampusSquare(CampusSquareReq) returns (CampusSquareReply);
  36. //
  37. rpc CampusTopicRcmdFeed(CampusTopicRcmdFeedReq) returns (CampusTopicRcmdFeedReply);
  38. // 动态通用附加卡-follow/取消follow
  39. rpc DynAdditionCommonFollow(DynAdditionCommonFollowReq) returns (DynAdditionCommonFollowReply);
  40. // 动态综合页
  41. rpc DynAll(DynAllReq) returns (DynAllReply);
  42. // 综合页最近访问 - 个人feed流
  43. rpc DynAllPersonal(DynAllPersonalReq) returns (DynAllPersonalReply);
  44. // 综合页最近访问 - 标记已读
  45. rpc DynAllUpdOffset(DynAllUpdOffsetReq) returns (NoReply);
  46. // 动态详情页
  47. rpc DynDetail(DynDetailReq) returns (DynDetailReply);
  48. // 批量动态id获取动态详情
  49. rpc DynDetails(DynDetailsReq) returns (DynDetailsReply);
  50. // 动态发布生成临时卡
  51. rpc DynFakeCard(DynFakeCardReq) returns (DynFakeCardReply);
  52. //
  53. rpc DynFriend(DynFriendReq) returns (DynFriendReply);
  54. // 轻浏览
  55. rpc DynLight(DynLightReq) returns (DynLightReply);
  56. // 网关调用 - 查看更多-列表
  57. rpc DynMixUpListViewMore(DynMixUpListViewMoreReq) returns (DynMixUpListViewMoreReply);
  58. // 关注推荐up主换一换
  59. rpc DynRcmdUpExchange(DynRcmdUpExchangeReq) returns (DynRcmdUpExchangeReply);
  60. //
  61. rpc DynSearch(DynSearchReq) returns (DynSearchReply);
  62. //
  63. rpc DynServerDetails(DynServerDetailsReq) returns (DynServerDetailsReply);
  64. // 空间页动态
  65. rpc DynSpace(DynSpaceReq) returns (DynSpaceRsp);
  66. //
  67. rpc DynSpaceSearchDetails(DynSpaceSearchDetailsReq) returns (DynSpaceSearchDetailsReply);
  68. //
  69. rpc DynTab(DynTabReq) returns (DynTabReply);
  70. // 动态点赞
  71. rpc DynThumb(DynThumbReq) returns (NoReply);
  72. // 未登录页分区UP主推荐
  73. rpc DynUnLoginRcmd(DynRcmdReq) returns (DynRcmdReply);
  74. // 动态视频页
  75. rpc DynVideo(DynVideoReq) returns (DynVideoReply);
  76. // 视频页最近访问 - 个人feed流
  77. rpc DynVideoPersonal(DynVideoPersonalReq) returns (DynVideoPersonalReply);
  78. // 视频页最近访问 - 标记已读
  79. rpc DynVideoUpdOffset(DynVideoUpdOffsetReq) returns (NoReply);
  80. //
  81. rpc DynVote(DynVoteReq) returns (DynVoteReply);
  82. //
  83. rpc FeedFilter(FeedFilterReq) returns (FeedFilterReply);
  84. //
  85. rpc FetchTabSetting(NoReq) returns (FetchTabSettingReply);
  86. //
  87. rpc HomeSubscribe(HomeSubscribeReq) returns (HomeSubscribeReply);
  88. //
  89. rpc LbsPoi(LbsPoiReq) returns (LbsPoiReply);
  90. //
  91. rpc LegacyTopicFeed(LegacyTopicFeedReq) returns (LegacyTopicFeedReply);
  92. // 点赞列表
  93. rpc LikeList(LikeListReq) returns (LikeListReply);
  94. //
  95. rpc OfficialAccounts(OfficialAccountsReq) returns (OfficialAccountsReply);
  96. //
  97. rpc OfficialDynamics(OfficialDynamicsReq) returns (OfficialDynamicsReply);
  98. // 新版动态转发点赞列表 需要登录
  99. rpc ReactionList(ReactionListReq) returns (ReactionListReply);
  100. // 转发列表
  101. rpc RepostList(RepostListReq) returns (RepostListRsp);
  102. //
  103. rpc SchoolRecommend(SchoolRecommendReq) returns (SchoolRecommendReply);
  104. //
  105. rpc SchoolSearch(SchoolSearchReq) returns (SchoolSearchReply);
  106. //
  107. rpc SetDecision(SetDecisionReq) returns (NoReply);
  108. //
  109. rpc SetRecentCampus(SetRecentCampusReq) returns (NoReply);
  110. //
  111. rpc SubscribeCampus(SubscribeCampusReq) returns (NoReply);
  112. //
  113. rpc TopicList(TopicListReq) returns (TopicListReply);
  114. //
  115. rpc TopicSquare(TopicSquareReq) returns (TopicSquareReply);
  116. //
  117. rpc UnfollowMatch(UnfollowMatchReq) returns (NoReply);
  118. //
  119. rpc UpdateTabSetting(UpdateTabSettingReq) returns (NoReply);
  120. }
  121. //
  122. enum AddButtonBgStyle {
  123. fill = 0; // 默认填充
  124. stroke = 1; // 描边
  125. gray = 2; // 置灰
  126. }
  127. // 按钮类型
  128. enum AddButtonType {
  129. bt_none = 0; // 占位
  130. bt_jump = 1; // 跳转
  131. bt_button = 2; // 按钮
  132. }
  133. // 活动皮肤
  134. message AdditionalActSkin {
  135. // 动画SVGA资源
  136. string svga = 1;
  137. // 动画SVGA最后一帧图片资源
  138. string last_image = 2;
  139. // 动画播放次数
  140. int64 play_times = 3;
  141. }
  142. // 动态-附加卡-按钮
  143. message AdditionalButton {
  144. // 按钮类型
  145. AddButtonType type = 1;
  146. // jump-跳转样式
  147. AdditionalButtonStyle jump_style = 2;
  148. // jump-跳转链接
  149. string jump_url = 3;
  150. // button-未点样式
  151. AdditionalButtonStyle uncheck = 4;
  152. // button-已点样式
  153. AdditionalButtonStyle check = 5;
  154. // button-当前状态
  155. AdditionalButtonStatus status = 6;
  156. // 按钮点击样式
  157. AdditionalButtonClickType click_type = 7;
  158. }
  159. // 附加卡按钮点击类型
  160. enum AdditionalButtonClickType {
  161. click_none = 0; // 通用按钮
  162. click_up = 1; // 预约卡按钮
  163. }
  164. //
  165. message AdditionalButtonInteractive {
  166. // 是否弹窗
  167. string popups = 1;
  168. // 弹窗确认文案
  169. string confirm = 2;
  170. // 弹窗取消文案
  171. string cancel = 3;
  172. //
  173. string desc = 4;
  174. }
  175. //
  176. message AdditionalButtonShare {
  177. //
  178. int32 show = 1;
  179. //
  180. string icon = 2;
  181. //
  182. string text = 3;
  183. }
  184. // 附加卡按钮状态
  185. enum AdditionalButtonStatus {
  186. none = 0; //
  187. uncheck = 1; //
  188. check = 2; //
  189. }
  190. // 动态-附加卡-按钮样式
  191. message AdditionalButtonStyle {
  192. // icon
  193. string icon = 1;
  194. // 文案
  195. string text = 2;
  196. // 按钮点击交互
  197. AdditionalButtonInteractive interactive = 3;
  198. // 当前按钮填充样式
  199. AddButtonBgStyle bg_style = 4;
  200. // toast文案, 当disable=1时有效
  201. string toast = 5;
  202. // 当前按钮样式,
  203. // 0:高亮 1:置灰(按钮不可点击)
  204. DisableState disable = 6;
  205. //
  206. AdditionalButtonShare share = 7;
  207. }
  208. // 动态-附加卡-番剧卡
  209. message AdditionalPGC {
  210. // 头部说明文案
  211. string head_text = 1;
  212. // 标题
  213. string title = 2;
  214. // 展示图
  215. string image_url = 3;
  216. // 描述文字1
  217. string desc_text_1 = 4;
  218. // 描述文字2
  219. string desc_text_2 = 5;
  220. // 点击跳转链接
  221. string url = 6;
  222. // 按钮
  223. AdditionalButton button = 7;
  224. // 头部icon
  225. string head_icon = 8;
  226. // style
  227. ImageStyle style = 9;
  228. // 动态本身的类型 type
  229. string type = 10;
  230. }
  231. //
  232. enum AdditionalShareShowType {
  233. st_none = 0; //
  234. st_show = 1; //
  235. }
  236. // 枚举-动态附加卡
  237. enum AdditionalType {
  238. additional_none = 0; // 占位
  239. additional_type_pgc = 1; // 附加卡-追番
  240. additional_type_goods = 2; // 附加卡-商品
  241. additional_type_vote = 3; // 附加卡投票
  242. additional_type_common = 4; // 附加通用卡
  243. additional_type_esport = 5; // 附加电竞卡
  244. additional_type_up_rcmd = 6; // 附加UP主推荐卡
  245. additional_type_ugc = 7; // 附加卡-ugc
  246. additional_type_up_reservation = 8; // UP主预约卡
  247. }
  248. // 动态-附加卡-专栏
  249. message AdditionArticle {
  250. //
  251. string title = 1;
  252. //
  253. MdlDynDrawItem cover = 2;
  254. //
  255. string desc_text_left = 3;
  256. //
  257. string desc_text_right = 4;
  258. //
  259. string uri = 5;
  260. //
  261. string card_type = 6;
  262. }
  263. // 动态-附加卡-通用卡
  264. message AdditionCommon {
  265. // 头部说明文案
  266. string head_text = 1;
  267. // 标题
  268. string title = 2;
  269. // 展示图
  270. string image_url = 3;
  271. // 描述文字1
  272. string desc_text_1 = 4;
  273. // 描述文字2
  274. string desc_text_2 = 5;
  275. // 点击跳转链接
  276. string url = 6;
  277. // 按钮
  278. AdditionalButton button = 7;
  279. // 头部icon
  280. string head_icon = 8;
  281. // style
  282. ImageStyle style = 9;
  283. // 动态本身的类型 type
  284. string type = 10;
  285. // 附加卡类型
  286. string card_type = 11; // ogv manga
  287. }
  288. // 动态-附加卡-电竞卡
  289. message AdditionEsport {
  290. // 电竞类型
  291. EspaceStyle style = 1;
  292. oneof item {
  293. // moba类
  294. AdditionEsportMoba addition_esport_moba = 2;
  295. }
  296. // 动态本身的类型 type
  297. string type = 3;
  298. // 附加卡类型
  299. string card_type = 4; // ogv manga
  300. }
  301. // 动态-附加卡-电竞卡-moba类
  302. message AdditionEsportMoba {
  303. // 头部说明文案
  304. string head_text = 1;
  305. // 标题
  306. string title = 2;
  307. // 战队列表
  308. repeated MatchTeam match_team = 3;
  309. // 比赛信息
  310. AdditionEsportMobaStatus addition_esport_moba_status = 4;
  311. // 卡片跳转
  312. string uri = 5;
  313. // 按钮
  314. AdditionalButton button = 6;
  315. // 副标题
  316. string sub_title = 7;
  317. // 动态本身的类型 type
  318. string type = 10;
  319. // 附加卡类型
  320. string card_type = 11;
  321. // 附加卡图标
  322. string head_icon = 12;
  323. }
  324. // 动态-附加卡-电竞卡-moba类-比赛信息
  325. message AdditionEsportMobaStatus {
  326. // 文案类
  327. repeated AdditionEsportMobaStatusDesc addition_esport_moba_status_desc = 1;
  328. // 比赛状态文案
  329. string title = 2;
  330. // 比赛状态状态
  331. int32 status = 3;
  332. // 日间色值
  333. string color = 4;
  334. // 夜间色值
  335. string night_color = 5;
  336. }
  337. // 动态-附加卡-电竞卡-moba类-比赛信息-文案类
  338. message AdditionEsportMobaStatusDesc {
  339. // 文案
  340. string title = 1;
  341. // 日间色值
  342. string color = 2;
  343. // 夜间色值
  344. string night_color = 3;
  345. }
  346. // 动态-附加卡-商品卡
  347. message AdditionGoods {
  348. // 推荐文案
  349. string rcmd_desc = 1;
  350. // 商品信息
  351. repeated GoodsItem goods_items = 2;
  352. // 附加卡类型
  353. string card_type = 3;
  354. // 头部icon
  355. string icon = 4;
  356. // 商品附加卡整卡跳转
  357. string uri = 5;
  358. // 商品类型
  359. // 1:淘宝 2:会员购,注:实际是获取的goods_items里面的第一个source_type
  360. int32 source_type = 6;
  361. //
  362. int32 jump_type = 7;
  363. //
  364. string app_name = 8;
  365. //
  366. string ad_mark_icon = 9;
  367. }
  368. // 动态-附加卡-直播附加卡
  369. message AdditionLiveRoom {
  370. //
  371. string title = 1;
  372. //
  373. string cover = 2;
  374. //
  375. VideoBadge badge = 3;
  376. //
  377. CoverIconWithText desc_text_upper = 4;
  378. //
  379. string desc_text_lower = 5;
  380. //
  381. string uri = 6;
  382. //
  383. string card_type = 7;
  384. }
  385. // 动态-附加卡-UGC视频附加卡
  386. message AdditionUgc {
  387. // 说明文案
  388. string head_text = 1;
  389. // 稿件标题
  390. string title = 2;
  391. // 封面
  392. string cover = 3;
  393. // 描述文字1
  394. string desc_text_1 = 4;
  395. // 描述文字2
  396. string desc_text_2 = 5;
  397. // 接秒开
  398. string uri = 6;
  399. // 时长
  400. string duration = 7;
  401. // 标题支持换行-标题支持单行和双行,本期不支持填充up昵称,支持双行展示,字段默认为true
  402. bool line_feed = 8;
  403. // 附加卡类型
  404. string card_type = 9;
  405. }
  406. // up主预约发布卡
  407. message AdditionUP {
  408. // 标题
  409. string title = 1;
  410. // 高亮文本,描述文字1
  411. HighlightText desc_text_1 = 2;
  412. // 描述文字2
  413. string desc_text_2 = 3;
  414. // 点击跳转链接
  415. string url = 4;
  416. // 按钮
  417. AdditionalButton button = 5;
  418. // 附加卡类型
  419. string card_type = 6;
  420. // 预约人数(用于预约人数变化)
  421. int64 reserve_total = 7;
  422. // 活动皮肤
  423. AdditionalActSkin act_skin = 8;
  424. // 预约id
  425. int64 rid = 9;
  426. //
  427. int32 lottery_type = 10;
  428. //
  429. HighlightText desc_text3 = 11;
  430. //
  431. int64 up_mid = 12;
  432. //
  433. AdditionUserInfo user_info = 13;
  434. //
  435. string dynamic_id = 14;
  436. //
  437. bool show_text2 = 15;
  438. //
  439. int64 dyn_type = 16;
  440. //
  441. string business_id = 17;
  442. //
  443. string badge_text = 18;
  444. //
  445. bool is_premiere = 19;
  446. }
  447. //
  448. message AdditionUserInfo {
  449. //
  450. string name = 1;
  451. //
  452. string face = 2;
  453. }
  454. // 动态-附加卡-投票
  455. message AdditionVote {
  456. // 封面图
  457. string image_url = 1;
  458. // 标题
  459. string title = 2;
  460. // 展示项1
  461. string text_1 = 3;
  462. // button文案
  463. string button_text = 4;
  464. // 点击跳转链接
  465. string url = 5;
  466. }
  467. // 动态模块-投票
  468. message AdditionVote2 {
  469. // 投票类型
  470. AdditionVoteType addition_vote_type = 1;
  471. // 投票ID
  472. int64 vote_id = 2;
  473. // 标题
  474. string title = 3;
  475. // 已过期: xxx人参与· 投票已过期。button 展示去查看
  476. // 未过期: xxx人参与· 剩xx天xx时xx分。button展示去投票
  477. string label = 4;
  478. // 剩余时间
  479. int64 deadline = 5;
  480. // 生效文案
  481. string open_text = 6;
  482. // 过期文案
  483. string close_text = 7;
  484. // 已投票
  485. string voted_text = 8;
  486. // 投票状态
  487. AdditionVoteState state = 9;
  488. // 投票信息
  489. oneof item {
  490. //
  491. AdditionVoteWord addition_vote_word = 10;
  492. //
  493. AdditionVotePic addition_vote_pic = 11;
  494. //
  495. AdditionVoteDefaule addition_vote_defaule = 12;
  496. }
  497. // 业务类型
  498. // 0:动态投票 1:话题h5组件
  499. int32 biz_type = 13;
  500. // 投票总人数
  501. int64 total = 14;
  502. // 附加卡类型
  503. string card_type = 15;
  504. // 异常提示
  505. string tips = 16;
  506. // 跳转地址
  507. string uri = 17;
  508. // 是否投票
  509. bool is_voted = 18;
  510. // 投票最多多选个数,单选为1
  511. int32 choice_cnt = 19;
  512. // 是否默认选中分享到动态
  513. bool defaule_select_share = 20;
  514. }
  515. // 外露投票
  516. message AdditionVoteDefaule {
  517. // 图片 多张
  518. repeated string cover = 1;
  519. }
  520. // 外露图片类型
  521. message AdditionVotePic {
  522. // 图片投票详情
  523. repeated AdditionVotePicItem item = 1;
  524. }
  525. // 图片投票详情
  526. message AdditionVotePicItem {
  527. // 选项索引,从1开始
  528. int32 opt_idx = 1;
  529. // 图片
  530. string cover = 2;
  531. // 选中状态
  532. bool is_vote = 3;
  533. // 人数
  534. int32 total = 4;
  535. // 占比
  536. double persent = 5;
  537. // 标题文案
  538. string title = 6;
  539. // 是否投票人数最多的选项
  540. bool is_max_option = 7;
  541. }
  542. // 投票状态
  543. enum AdditionVoteState {
  544. addition_vote_state_none = 0; //
  545. addition_vote_state_open = 1; //
  546. addition_vote_state_close = 2; //
  547. }
  548. // 投票类型
  549. enum AdditionVoteType {
  550. addition_vote_type_none = 0; //
  551. addition_vote_type_word = 1; //
  552. addition_vote_type_pic = 2; //
  553. addition_vote_type_default = 3; //
  554. }
  555. // 外露文字类型
  556. message AdditionVoteWord {
  557. // 外露文字投票详情
  558. repeated AdditionVoteWordItem item = 1;
  559. }
  560. // 外露文字投票详情
  561. message AdditionVoteWordItem {
  562. // 选项索引,从1开始
  563. int32 opt_idx = 1;
  564. // 文案
  565. string title = 2;
  566. // 选中状态
  567. bool is_vote = 3;
  568. // 人数
  569. int32 total = 4;
  570. // 占比
  571. double persent = 5;
  572. // 是否投票人数最多的选项
  573. bool is_max_option = 6;
  574. }
  575. // 综合页请求广告所需字段,由客户端-网关透传
  576. message AdParam {
  577. // 综合页请求广告所需字段,由客户端-网关透传
  578. string ad_extra = 1;
  579. // request_id
  580. string request_id = 2;
  581. }
  582. //
  583. message AlumniDynamicsReply {
  584. //
  585. repeated DynamicItem list = 1;
  586. //
  587. string toast = 2;
  588. }
  589. //
  590. message AlumniDynamicsReq {
  591. //
  592. int64 campus_id = 1;
  593. //
  594. int32 first_time = 2;
  595. //
  596. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  597. //
  598. int32 local_time = 4;
  599. //
  600. int32 page = 5;
  601. //
  602. int32 from_type = 6;
  603. }
  604. //
  605. message CampusBannerInfo {
  606. //
  607. string image = 1;
  608. //
  609. string jump_url = 2;
  610. }
  611. //
  612. message CampusBillboardInternalReq {
  613. //
  614. int64 mid = 1;
  615. //
  616. int64 campus_id = 2;
  617. //
  618. string version_code = 3;
  619. }
  620. //
  621. message CampusBillBoardReply {
  622. //
  623. string title = 1;
  624. //
  625. string help_uri = 2;
  626. //
  627. string campus_name = 3;
  628. //
  629. int64 build_time = 4;
  630. //
  631. string version_code = 5;
  632. //
  633. repeated OfficialItem list = 6;
  634. //
  635. string share_uri = 7;
  636. //
  637. int32 bind_notice = 8;
  638. //
  639. string update_toast = 9;
  640. //
  641. int64 campus_id = 10;
  642. //
  643. CampusFeatureProgress open_progress = 11;
  644. }
  645. //
  646. message CampusBillBoardReq {
  647. //
  648. int64 campus_id = 1;
  649. //
  650. string version_code = 2;
  651. //
  652. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  653. //
  654. CampusReqFromType from_type = 4;
  655. }
  656. //
  657. message CampusEntryTabReq {
  658. //
  659. int64 campus_id = 1;
  660. }
  661. //
  662. message CampusEntryTabResp {
  663. //
  664. CampusEntryType entry_type = 1;
  665. }
  666. //
  667. enum CampusEntryType {
  668. //
  669. NONE = 0;
  670. //
  671. ENTRY_DYNAMIC = 1;
  672. //
  673. ENTRY_HOME = 2;
  674. }
  675. //
  676. message CampusFeatureProgress {
  677. //
  678. int64 progress_full = 1;
  679. //
  680. int64 progress_achieved = 2;
  681. //
  682. string desc_title = 3;
  683. //
  684. string desc_1 = 4;
  685. //
  686. CampusLabel btn = 5;
  687. }
  688. //
  689. message CampusFeedbackInfo {
  690. //
  691. int32 biz_type = 1;
  692. //
  693. int64 biz_id = 2;
  694. //
  695. int64 campus_id = 3;
  696. //
  697. string reason = 4;
  698. }
  699. //
  700. message CampusFeedbackReply {
  701. //
  702. string message = 1;
  703. }
  704. //
  705. message CampusFeedbackReq {
  706. //
  707. repeated CampusFeedbackInfo infos = 1;
  708. //
  709. int32 from = 2;
  710. }
  711. //
  712. message CampusHomePagesReply {
  713. //
  714. CampusRcmdTop top = 1;
  715. //
  716. CampusTop campus_top = 2;
  717. //
  718. int32 page_type = 3;
  719. }
  720. //
  721. message CampusHomePagesReq {
  722. //
  723. int64 campus_id = 1;
  724. //
  725. string campus_name = 2;
  726. //
  727. double lat = 3;
  728. //
  729. double lng = 4;
  730. //
  731. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
  732. //
  733. int32 page_type = 6;
  734. }
  735. //
  736. enum CampusRcmdReqFrom {
  737. CAMPUS_RCMD_FROM_UNKNOWN = 0;
  738. CAMPUS_RCMD_FROM_HOME_UN_OPEN = 1;
  739. CAMPUS_RCMD_FROM_VISIT_OTHER = 2;
  740. CAMPUS_RCMD_FROM_HOME_MOMENT = 3;
  741. CAMPUS_RCMD_FROM_DYN_MOMENT = 4;
  742. CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT = 5;
  743. }
  744. //
  745. enum CampusHomePageType {
  746. //
  747. PAGE_MAJOR = 0;
  748. //
  749. PAGE_SUBORDINATE = 1;
  750. //
  751. PAGE_MAJOR_DETAIL = 2;
  752. }
  753. //
  754. message CampusHomeRcmdTopic {
  755. //
  756. ModuleTitle title = 1;
  757. //
  758. repeated TopicItem topic = 2;
  759. }
  760. //
  761. message CampusInfo {
  762. //
  763. int64 campus_id = 1;
  764. //
  765. string campus_name = 2;
  766. //
  767. string desc = 3;
  768. //
  769. int64 online = 4;
  770. //
  771. string url = 5;
  772. }
  773. //
  774. message CampusLabel {
  775. //
  776. string text = 1;
  777. //
  778. string url = 2;
  779. //
  780. string desc = 3;
  781. }
  782. //
  783. message CampusMateLikeListReply {
  784. //
  785. repeated ModuleAuthor list = 1;
  786. }
  787. //
  788. message CampusMateLikeListReq {
  789. //
  790. int64 dynamic_id = 1;
  791. //
  792. CampusReqFromType from_type = 2;
  793. }
  794. //
  795. enum CampusMngAuditStatus {
  796. //
  797. campus_mng_audit_none = 0;
  798. //
  799. campus_mng_audit_in_process = 1;
  800. //
  801. campus_mng_audit_failed = 2;
  802. }
  803. //
  804. message CampusMngBadge {
  805. //
  806. string title = 1;
  807. //
  808. string badge_url = 2;
  809. //
  810. string upload_hint_msg = 3;
  811. }
  812. //
  813. message CampusMngBasicInfo {
  814. //
  815. int64 campus_id = 1;
  816. //
  817. string campus_name = 2;
  818. //
  819. string hint_msg = 3;
  820. }
  821. //
  822. message CampusMngDetailReply {
  823. //
  824. repeated CampusMngItem items = 1;
  825. //
  826. string top_hint_bar_msg = 2;
  827. //
  828. string bottom_submit_hint_msg = 3;
  829. //
  830. int64 campus_id = 4;
  831. //
  832. string campus_name = 5;
  833. }
  834. //
  835. message CampusMngDetailReq {
  836. //
  837. int64 campus_id = 1;
  838. }
  839. //
  840. message CampusMngItem {
  841. //
  842. int32 audit_status = 1;
  843. //
  844. string audit_message = 2;
  845. //
  846. int32 item_type = 3;
  847. //
  848. string mng_item_id = 4;
  849. //
  850. bool is_del = 5;
  851. // Oneof field:
  852. oneof item {
  853. //
  854. CampusMngBasicInfo basic_info = 6;
  855. //
  856. CampusMngBadge badge = 7;
  857. //
  858. string slogan = 8;
  859. //
  860. CampusMngQuiz quiz = 9;
  861. }
  862. }
  863. //
  864. enum CampusMngItemType {
  865. //
  866. campus_mng_none = 0;
  867. //
  868. campus_mng_basic_info = 1;
  869. //
  870. campus_mng_badge = 2;
  871. //
  872. campus_mng_slogan = 3;
  873. //
  874. campus_mng_quiz = 4;
  875. }
  876. //
  877. message CampusMngQuiz {
  878. //
  879. string title = 1;
  880. //
  881. CampusLabel more_label = 2;
  882. //
  883. string add_label = 3;
  884. //
  885. string submit_label = 4;
  886. //
  887. int64 quiz_count = 5;
  888. }
  889. //
  890. enum CampusMngQuizAction {
  891. //
  892. campus_mng_quiz_act_list = 0;
  893. //
  894. campus_mng_quiz_act_add = 1;
  895. //
  896. campus_mng_quiz_act_del = 2;
  897. }
  898. //
  899. message CampusMngQuizDetail {
  900. //
  901. int64 quiz_id = 1;
  902. //
  903. string question = 2;
  904. //
  905. string correct_answer = 3;
  906. //
  907. repeated string wrong_answer_list = 4;
  908. //
  909. int32 audit_status = 5;
  910. //
  911. string audit_message = 6;
  912. }
  913. //
  914. message CampusMngQuizOperateReply {
  915. //
  916. string toast = 1;
  917. //
  918. repeated CampusMngQuizDetail quiz = 2;
  919. //
  920. int64 quiz_total = 3;
  921. }
  922. //
  923. message CampusMngQuizOperateReq {
  924. //
  925. int32 action = 1;
  926. //
  927. int64 campus_id = 2;
  928. //
  929. repeated CampusMngQuizDetail quiz = 3;
  930. }
  931. //
  932. message CampusMngSlogan {
  933. //
  934. string title = 1;
  935. //
  936. string slogan = 2;
  937. //
  938. string input_hint_msg = 3;
  939. }
  940. //
  941. message CampusMngSubmitReply {
  942. //
  943. string toast = 1;
  944. }
  945. //
  946. message CampusMngSubmitReq {
  947. //
  948. int64 campus_id = 1;
  949. //
  950. repeated CampusMngItem modified_items = 2;
  951. }
  952. //
  953. message CampusNoticeInfo {
  954. //
  955. string title = 1;
  956. //
  957. string desc = 2;
  958. //
  959. CampusLabel button = 3;
  960. }
  961. //
  962. enum CampusOnlineStatus {
  963. //
  964. campus_online_offline = 0;
  965. //
  966. campus_online_online = 1;
  967. }
  968. //
  969. message CampusRcmdFeedReply {
  970. //
  971. repeated DynamicItem list = 1;
  972. //
  973. string toast = 2;
  974. //
  975. GuideBarInfo guide_bar = 3;
  976. //
  977. bool has_more = 4;
  978. //
  979. bool update = 5;
  980. }
  981. //
  982. message CampusRcmdFeedReq {
  983. //
  984. int64 campus_id = 1;
  985. //
  986. int32 first_time = 2;
  987. //
  988. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  989. //
  990. int32 local_time = 4;
  991. //
  992. int32 page = 5;
  993. //
  994. int32 scroll = 6;
  995. //
  996. string view_dyn_id = 7;
  997. //
  998. CampusReqFromType from_type = 8;
  999. }
  1000. //
  1001. message CampusRcmdInfo {
  1002. //
  1003. string title = 1;
  1004. //
  1005. repeated CampusRcmdItem items = 2;
  1006. }
  1007. //
  1008. message CampusRcmdItem {
  1009. //
  1010. string title = 1;
  1011. //
  1012. repeated RcmdItem items = 2;
  1013. //
  1014. int64 campus_id = 3;
  1015. //
  1016. CampusLabel entry_label = 4;
  1017. }
  1018. //
  1019. message CampusRcmdReply {
  1020. //
  1021. CampusRcmdTop top = 1;
  1022. //
  1023. CampusRcmdInfo rcmd = 2;
  1024. //
  1025. CampusTop campus_top = 3;
  1026. //
  1027. int32 page_type = 4;
  1028. //
  1029. int32 jump_home_pop = 5;
  1030. }
  1031. //
  1032. message CampusRcmdReq {
  1033. //
  1034. int64 campus_id = 1;
  1035. //
  1036. string campus_name = 2;
  1037. //
  1038. double lat = 3;
  1039. //
  1040. double lng = 4;
  1041. //
  1042. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
  1043. //
  1044. CampusReqFromType from_type = 6;
  1045. //
  1046. CampusHomePageType page_type = 7;
  1047. }
  1048. //
  1049. message CampusRcmdTop {
  1050. //
  1051. int64 campus_id = 1;
  1052. //
  1053. string campus_name = 2;
  1054. //
  1055. string title = 3;
  1056. //
  1057. string desc = 4;
  1058. //
  1059. int32 type = 5;
  1060. //
  1061. RcmdTopButton button = 6;
  1062. //
  1063. CampusLabel switch_label = 7;
  1064. //
  1065. CampusLabel notice_label = 8;
  1066. //
  1067. string desc2 = 9;
  1068. //
  1069. string desc3 = 10;
  1070. //
  1071. CampusLabel invite_label = 11;
  1072. //
  1073. CampusLabel reserve_label = 12;
  1074. //
  1075. int64 reserve_number = 13;
  1076. //
  1077. int64 max_reserve = 14;
  1078. //
  1079. CampusLabel school_label = 15;
  1080. //
  1081. CampusLabel mng_label = 16;
  1082. //
  1083. CampusHomeRcmdTopic rcmd_topic = 17;
  1084. //
  1085. bool audit_before_open = 18;
  1086. //
  1087. string audit_message = 19;
  1088. }
  1089. //
  1090. message CampusRecommendReply {
  1091. //
  1092. repeated RcmdItem items = 1;
  1093. //
  1094. bool has_more = 2;
  1095. }
  1096. //
  1097. message CampusRecommendReq {
  1098. //
  1099. int64 campus_id = 1;
  1100. //
  1101. int64 page_no = 2;
  1102. //
  1103. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  1104. //
  1105. CampusRcmdReqFrom from = 4;
  1106. }
  1107. //
  1108. message CampusRedDotReply {
  1109. //
  1110. int32 red_dot = 1;
  1111. }
  1112. //
  1113. message CampusRedDotReq {
  1114. //
  1115. int64 campus_id = 1;
  1116. //
  1117. CampusReqFromType from_type = 2;
  1118. }
  1119. //
  1120. enum CampusReqFromType {
  1121. //
  1122. DYNAMIC = 0;
  1123. //
  1124. HOME = 1;
  1125. }
  1126. //
  1127. message CampusShowTabInfo {
  1128. //
  1129. string name = 1;
  1130. //
  1131. string url = 2;
  1132. //
  1133. int32 type = 3;
  1134. //
  1135. int32 red_dot = 4;
  1136. //
  1137. string icon_url = 5;
  1138. }
  1139. //
  1140. message CampusSquareReply {
  1141. //
  1142. string title = 1;
  1143. //
  1144. repeated RcmdCampusBrief list = 2;
  1145. //
  1146. CampusLabel button = 3;
  1147. }
  1148. //
  1149. message CampusSquareReq {
  1150. //
  1151. int64 campus_id = 1;
  1152. //
  1153. double lat = 2;
  1154. //
  1155. double lng = 3;
  1156. }
  1157. //
  1158. enum CampusTabType {
  1159. campus_none = 0; //
  1160. campus_school = 1; //
  1161. campus_dynamic = 2; //
  1162. campus_account = 3; //
  1163. campus_billboard = 4; //
  1164. campus_topic = 5; //
  1165. campues_other = 6; //
  1166. }
  1167. //
  1168. message CampusTop {
  1169. //
  1170. int64 campus_id = 1;
  1171. //
  1172. string campus_name = 2;
  1173. //
  1174. repeated CampusShowTabInfo tabs = 3;
  1175. //
  1176. CampusLabel switch_label = 4;
  1177. //
  1178. string title = 5;
  1179. //
  1180. repeated CampusBannerInfo banner = 6;
  1181. //
  1182. CampusLabel invite_label = 7;
  1183. //
  1184. CampusNoticeInfo notice = 8;
  1185. //
  1186. TopicSquareInfo topic_square = 9;
  1187. //
  1188. string campus_badge = 10;
  1189. //
  1190. string campus_background = 11;
  1191. //
  1192. string campus_motto = 12;
  1193. //
  1194. CampusLabel mng_entry = 13;
  1195. //
  1196. string campus_intro = 14;
  1197. //
  1198. string campus_name_link = 15;
  1199. //
  1200. string bottom_left_text = 16;
  1201. }
  1202. //
  1203. message CampusTopicRcmdFeedReply {
  1204. //
  1205. repeated DynamicItem list = 1;
  1206. //
  1207. string toast = 2;
  1208. //
  1209. bool has_more = 3;
  1210. //
  1211. string offset = 4;
  1212. //
  1213. IconButton join_discuss = 5;
  1214. }
  1215. //
  1216. message CampusTopicRcmdFeedReq {
  1217. //
  1218. int64 campus_id = 1;
  1219. //
  1220. string offset = 2;
  1221. //
  1222. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  1223. //
  1224. int32 local_time = 4;
  1225. //
  1226. CampusReqFromType from_type = 5;
  1227. }
  1228. //
  1229. message CardParagraph {
  1230. //
  1231. ModuleAdditional additional_card = 1;
  1232. //
  1233. string biz_id = 3;
  1234. //
  1235. LinkNodeType biz_type = 2;
  1236. }
  1237. // 动态卡片列表
  1238. message CardVideoDynList {
  1239. // 动态列表
  1240. repeated DynamicItem list = 1;
  1241. // 更新的动态数
  1242. int64 update_num = 2;
  1243. // 历史偏移
  1244. string history_offset = 3;
  1245. // 更新基础信息
  1246. string update_baseline = 4;
  1247. // 是否还有更多数据
  1248. bool has_more = 5;
  1249. }
  1250. // 视频页-我的追番
  1251. message CardVideoFollowList {
  1252. // 查看全部(跳转链接)
  1253. string view_all_link = 1;
  1254. // 追番列表
  1255. repeated FollowListItem list = 2;
  1256. }
  1257. // 视频页-最近访问
  1258. message CardVideoUpList {
  1259. // 标题展示文案
  1260. string title = 1;
  1261. // up主列表
  1262. repeated UpListItem list = 2;
  1263. // 服务端生成的透传上报字段
  1264. string footprint = 3;
  1265. // 直播数
  1266. int32 show_live_num = 4;
  1267. // 跳转label
  1268. UpListMoreLabel more_label = 5;
  1269. // 标题开关(综合页)
  1270. int32 title_switch = 6;
  1271. // 是否展示右上角查看更多label
  1272. bool show_more_label = 7;
  1273. // 是否在快速消费页查看更多按钮
  1274. bool show_in_personal = 8;
  1275. // 是否展示右侧查看更多按钮
  1276. bool show_more_button = 9;
  1277. //
  1278. repeated UpListItem list_second = 10;
  1279. }
  1280. //
  1281. message ChannelInfo {
  1282. //
  1283. int64 channel_id = 1;
  1284. //
  1285. string channel_name = 2;
  1286. //
  1287. string desc = 3;
  1288. //
  1289. bool is_atten = 4;
  1290. //
  1291. string type_icon = 5;
  1292. //
  1293. repeated RcmdItem items = 6;
  1294. //
  1295. string icon = 7;
  1296. //
  1297. string jump_uri = 8;
  1298. }
  1299. // 评论外露展示项
  1300. message CmtShowItem {
  1301. // 用户mid
  1302. int64 uid = 1;
  1303. // 用户昵称
  1304. string uname = 2;
  1305. // 点击跳转链接
  1306. string uri = 3;
  1307. // 评论内容
  1308. string comment = 4;
  1309. }
  1310. //
  1311. message Colors {
  1312. //
  1313. string color_day = 1;
  1314. //
  1315. string color_night = 2;
  1316. }
  1317. // 精选评论区
  1318. message CommentDetail {
  1319. // 该功能能不能用
  1320. bool can_modify = 1;
  1321. // up关闭评论区功能 1允许关闭 0允许开放
  1322. // 精选评论区功能 1允许停止评论精选 0允许评论精选
  1323. int64 status = 2;
  1324. }
  1325. //
  1326. message Config {
  1327. //
  1328. bool story_vertical_exp = 1;
  1329. //
  1330. int64 detail_view_bits = 2;
  1331. }
  1332. //
  1333. enum CoverIcon {
  1334. cover_icon_none = 0; // 占位 啥都不展示
  1335. cover_icon_play = 1; // 播放icon
  1336. cover_icon_danmaku = 2; //
  1337. cover_icon_up = 3; //
  1338. cover_icon_vt = 4; // ? 竖屏模式 icon
  1339. }
  1340. //
  1341. message CoverIconWithText {
  1342. //
  1343. int32 icon = 1;
  1344. //
  1345. string text = 2;
  1346. }
  1347. // 装扮卡片-粉丝勋章信息
  1348. message DecoCardFan {
  1349. // 是否是粉丝
  1350. int32 is_fan = 1;
  1351. // 数量
  1352. int32 number = 2;
  1353. // 数量 str
  1354. string number_str = 3;
  1355. // 颜色
  1356. string color = 4;
  1357. }
  1358. // 装扮卡片
  1359. message DecorateCard {
  1360. // 装扮卡片id
  1361. int64 id = 1;
  1362. // 装扮卡片链接
  1363. string card_url = 2;
  1364. // 装扮卡片点击跳转链接
  1365. string jump_url = 3;
  1366. // 粉丝样式
  1367. DecoCardFan fan = 4;
  1368. }
  1369. // 文本描述
  1370. message Description {
  1371. // 文本内容
  1372. string text = 1;
  1373. // 文本类型
  1374. DescType type = 2;
  1375. // 点击跳转链接
  1376. string uri = 3;
  1377. // emoji类型
  1378. EmojiType emoji_type = 4;
  1379. // 商品类型
  1380. string goods_type = 5;
  1381. // 前置Icon
  1382. string icon_url = 6;
  1383. // icon_name
  1384. string icon_name = 7;
  1385. // 资源ID
  1386. string rid = 8;
  1387. // 商品卡特殊字段
  1388. ModuleDescGoods goods = 9;
  1389. // 文本原始文案
  1390. string orig_text = 10;
  1391. //
  1392. int32 emoji_size = 11;
  1393. //
  1394. EmojiSizeSpec emoji_size_spec = 12;
  1395. }
  1396. // 文本类型
  1397. enum DescType {
  1398. desc_type_none = 0; // 占位
  1399. desc_type_text = 1; // 文本
  1400. desc_type_aite = 2; // @
  1401. desc_type_lottery = 3; // 抽奖
  1402. desc_type_vote = 4; // 投票
  1403. desc_type_topic = 5; // 话题
  1404. desc_type_goods = 6; // 商品
  1405. desc_type_bv = 7; // bv
  1406. desc_type_av = 8; // av
  1407. desc_type_emoji = 9; // 表情
  1408. desc_type_user = 10; // 外露用户
  1409. desc_type_cv = 11; // 专栏
  1410. desc_type_vc = 12; // 小视频
  1411. desc_type_web = 13; // 网址
  1412. desc_type_taobao = 14; // 淘宝
  1413. desc_type_mail = 15; // 邮箱
  1414. desc_type_ogv_season = 16; // 番剧season
  1415. desc_type_ogv_ep = 17; // 番剧ep
  1416. desc_type_search_word = 18; //
  1417. }
  1418. // 尺寸信息
  1419. message Dimension {
  1420. //
  1421. int64 height = 1;
  1422. //
  1423. int64 width = 2;
  1424. //
  1425. int64 rotate = 3;
  1426. }
  1427. //
  1428. enum DisableState {
  1429. highlight = 0; // 高亮
  1430. gary = 1; // 置灰(按钮不可点击)
  1431. }
  1432. // 动态通用附加卡-follow/取消follow-响应
  1433. message DynAdditionCommonFollowReply {
  1434. //
  1435. AdditionalButtonStatus status = 1;
  1436. }
  1437. // 动态通用附加卡-follow/取消follow-请求
  1438. message DynAdditionCommonFollowReq {
  1439. //
  1440. AdditionalButtonStatus status = 1;
  1441. //
  1442. string dyn_id = 2;
  1443. //
  1444. string card_type = 3;
  1445. }
  1446. // 最近访问-个人feed流列表-返回
  1447. message DynAllPersonalReply {
  1448. // 动态列表
  1449. repeated DynamicItem list = 1;
  1450. // 偏移量
  1451. string offset = 2;
  1452. // 是否还有更多数据
  1453. bool has_more = 3;
  1454. // 已读进度
  1455. string read_offset = 4;
  1456. // 关注状态
  1457. Relation relation = 5;
  1458. // 顶部预约卡
  1459. TopAdditionUP addition_up = 6;
  1460. //
  1461. string title = 7;
  1462. //
  1463. string title_sub = 8;
  1464. }
  1465. // 最近访问-个人feed流列表-请求
  1466. message DynAllPersonalReq {
  1467. // 被访问者的 UID
  1468. int64 host_uid = 1;
  1469. // 偏移量 第一页可传空
  1470. string offset = 2;
  1471. // 标明下拉几次
  1472. int32 page = 3;
  1473. // 是否是预加载 默认是1;客户端预加载。1:是预加载,不更新已读进度,不会影响小红点;0:非预加载,更新已读进度
  1474. int32 is_preload = 4;
  1475. // 秒开参数 新版本废弃,统一使用player_args
  1476. PlayurlParam playurl_param = 5;
  1477. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1478. int32 local_time = 6;
  1479. // 服务端生成的透传上报字段
  1480. string footprint = 7;
  1481. // 来源
  1482. string from = 8;
  1483. // 秒开用
  1484. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9;
  1485. //
  1486. string personal_extra = 10;
  1487. }
  1488. // 动态综合页-响应
  1489. message DynAllReply {
  1490. // 卡片列表
  1491. DynamicList dynamic_list = 1;
  1492. // 顶部up list
  1493. CardVideoUpList up_list = 2;
  1494. // 话题广场
  1495. TopicList topic_list = 3;
  1496. // 无关注推荐
  1497. Unfollow unfollow = 4;
  1498. // 分区UP推荐
  1499. DynRegionRcmd region_rcmd = 5;
  1500. //
  1501. Config config = 6;
  1502. }
  1503. // 动态综合页-请求
  1504. message DynAllReq {
  1505. // 透传 update_baseline
  1506. string update_baseline = 1;
  1507. // 透传 history_offset
  1508. string offset = 2;
  1509. // 向下翻页数
  1510. int32 page = 3;
  1511. // 刷新方式 1向上刷新 2向下翻页
  1512. Refresh refresh_type = 4;
  1513. // 秒开参数 新版本废弃,统一使用player_args
  1514. PlayurlParam playurl_param = 5;
  1515. // 综合页当前更新的最大值
  1516. string assist_baseline = 6;
  1517. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1518. int32 local_time = 7;
  1519. // 推荐up主入参(new的时候传)
  1520. RcmdUPsParam rcmd_ups_param = 8;
  1521. // 广告参数
  1522. AdParam ad_param = 9;
  1523. // 是否冷启
  1524. int32 cold_start = 10;
  1525. // 来源
  1526. string from = 11;
  1527. // 秒开参数
  1528. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 12;
  1529. //
  1530. int64 tab_recall_uid = 13;
  1531. //
  1532. int32 tab_recall_type = 14;
  1533. }
  1534. // 最近访问-标记已读-请求
  1535. message DynAllUpdOffsetReq {
  1536. // 被访问者的UID
  1537. int64 host_uid = 1;
  1538. // 用户已读进度
  1539. string read_offset = 2;
  1540. // 服务端生成的透传上报字段
  1541. string footprint = 3;
  1542. //
  1543. string personal_extra = 4;
  1544. }
  1545. // 动态卡片
  1546. message DynamicItem {
  1547. // 动态卡片类型
  1548. DynamicType card_type = 1;
  1549. // 转发类型下,源卡片类型
  1550. DynamicType item_type = 2;
  1551. // 模块内容
  1552. repeated Module modules = 3;
  1553. // 操作相关字段
  1554. Extend extend = 4;
  1555. // 该卡片下面是否含有折叠卡
  1556. int32 has_fold = 5;
  1557. // 透传到客户端的埋点字段。
  1558. string server_info = 6;
  1559. }
  1560. //动态卡片列表
  1561. message DynamicList {
  1562. // 动态列表
  1563. repeated DynamicItem list = 1;
  1564. // 更新的动态数
  1565. int64 update_num = 2;
  1566. // 历史偏移
  1567. string history_offset = 3;
  1568. // 更新基础信息
  1569. string update_baseline = 4;
  1570. // 是否还有更多数据
  1571. bool has_more = 5;
  1572. }
  1573. // 枚举-动态类型
  1574. enum DynamicType {
  1575. dyn_none = 0; // 占位
  1576. forward = 1; // 转发
  1577. av = 2; // 稿件: ugc、小视频、短视频、UGC转PGC
  1578. pgc = 3; // pgc:番剧、PGC番剧、PGC电影、PGC电视剧、PGC国创、PGC纪录片
  1579. courses = 4; // 付费更新批次
  1580. fold = 5; // 折叠
  1581. word = 6; // 纯文字
  1582. draw = 7; // 图文
  1583. article = 8; // 专栏 原仅phone端
  1584. music = 9; // 音频 原仅phone端
  1585. common_square = 10; // 通用卡 方形
  1586. common_vertical = 11; // 通用卡 竖形
  1587. live = 12; // 直播卡 只有转发态
  1588. medialist = 13; // 播单 原仅phone端 只有转发态
  1589. courses_season = 14; // 付费更新批次 只有转发态
  1590. ad = 15; // 广告卡
  1591. applet = 16; // 小程序卡
  1592. subscription = 17; // 订阅卡
  1593. live_rcmd = 18; // 直播推荐卡
  1594. banner = 19; // 通栏
  1595. ugc_season = 20; // 合集卡
  1596. subscription_new = 21; // 新订阅卡
  1597. story = 22; //
  1598. topic_rcmd = 23; //
  1599. cour_up = 24; //
  1600. topic_set = 25; //
  1601. notice = 26; //
  1602. text_notice = 27; //
  1603. }
  1604. // 动态详情页-响应
  1605. message DynDetailReply {
  1606. // 动态详情
  1607. DynamicItem item = 1;
  1608. }
  1609. // 动态详情页-请求
  1610. message DynDetailReq {
  1611. // up主uid
  1612. int64 uid = 1;
  1613. // 动态ID
  1614. string dynamic_id = 2;
  1615. // 动态类型
  1616. int64 dyn_type = 3;
  1617. // 业务方资源id
  1618. int64 rid = 4;
  1619. // 广告参数
  1620. AdParam ad_param = 5;
  1621. // From来源
  1622. string from = 6;
  1623. // 秒开参数
  1624. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7;
  1625. // 分享id
  1626. string share_id = 8;
  1627. // 分享类型
  1628. // 1:文字 2:图片 3:链接 4:视频 5:音频
  1629. int32 share_mode = 9;
  1630. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1631. int32 local_time = 10;
  1632. // pattern
  1633. string pattern = 11;
  1634. //
  1635. Config config = 12;
  1636. }
  1637. // 批量动态id获取动态详情-响应
  1638. message DynDetailsReply {
  1639. // 动态列表
  1640. repeated DynamicItem list = 1;
  1641. }
  1642. // 批量动态id获取动态详情-请求
  1643. message DynDetailsReq {
  1644. // 动态id
  1645. string dynamic_ids = 1;
  1646. // 秒开参数 新版本废弃,统一使用player_args
  1647. PlayurlParam playurl_param = 2;
  1648. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1649. int32 local_time = 3;
  1650. // 秒开参数
  1651. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  1652. //
  1653. Config config = 5;
  1654. }
  1655. // 动态小卡类型
  1656. enum DynExtendType {
  1657. dyn_ext_type_none = 0; // 占位
  1658. dyn_ext_type_topic = 1; // 话题小卡
  1659. dyn_ext_type_lbs = 2; // lbs小卡
  1660. dyn_ext_type_hot = 3; // 热门小卡
  1661. dyn_ext_type_game = 4; // 游戏小卡
  1662. dyn_ext_type_common = 5; // 通用小卡
  1663. dyn_ext_type_biliCut = 6; // 必剪小卡
  1664. dyn_ext_type_ogv = 7; // ogv小卡
  1665. dyn_ext_type_auto_ogv = 8; // 自动附加ogv小卡
  1666. }
  1667. // 动态发布生成临时卡-响应
  1668. message DynFakeCardReply {
  1669. // 动态卡片
  1670. DynamicItem item = 1;
  1671. }
  1672. // 动态发布生成临时卡-请求
  1673. message DynFakeCardReq {
  1674. //卡片内容json string
  1675. string content = 1;
  1676. }
  1677. //
  1678. message DynFeatureGate {
  1679. //
  1680. bool enhanced_interaction = 1;
  1681. }
  1682. //
  1683. message DynFriendReply {
  1684. //
  1685. repeated DynamicItem dyn_list = 1;
  1686. //
  1687. bool has_more = 2;
  1688. //
  1689. string offset = 3;
  1690. }
  1691. //
  1692. message DynFriendReq {
  1693. //
  1694. string offset = 1;
  1695. //
  1696. int32 local_time = 2;
  1697. //
  1698. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  1699. }
  1700. // 轻浏览-响应
  1701. message DynLightReply {
  1702. // 卡片列表
  1703. DynamicList dynamic_list = 1;
  1704. }
  1705. // 轻浏览-请求
  1706. message DynLightReq {
  1707. // 透传 history_offset
  1708. string history_offset = 1;
  1709. // 向下翻页数
  1710. int32 page = 2;
  1711. // 来源
  1712. string from = 3;
  1713. // 秒开参数
  1714. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  1715. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1716. int32 local_time = 5;
  1717. //
  1718. int32 from_type = 6;
  1719. //
  1720. int64 fake_uid = 7;
  1721. }
  1722. // 查看更多-列表-响应
  1723. message DynMixUpListViewMoreReply {
  1724. //
  1725. repeated MixUpListItem items = 1;
  1726. //
  1727. string search_default_text = 2;
  1728. // 排序类型列表
  1729. repeated SortType sort_types = 3;
  1730. // 是否展示更多的排序策略
  1731. bool show_more_sort_types = 4;
  1732. // 默认排序策略
  1733. int32 default_sort_type = 5;
  1734. }
  1735. // 查看更多-请求
  1736. message DynMixUpListViewMoreReq {
  1737. // 排序策略
  1738. // 1:推荐排序 2:最常访问 3:最近关注,其他值为默认排序
  1739. int32 sort_type = 1;
  1740. }
  1741. // 动态模块类型
  1742. enum DynModuleType {
  1743. module_none = 0; // 占位
  1744. module_author = 1; // 发布人模块
  1745. module_dispute = 2; // 争议小黄条
  1746. module_desc = 3; // 描述文案
  1747. module_dynamic = 4; // 动态卡片
  1748. module_forward = 5; // 转发模块
  1749. module_likeUser = 6; // 点赞用户(废弃)
  1750. module_extend = 7; // 小卡模块
  1751. module_additional = 8; // 附加卡
  1752. module_stat = 9; // 计数信息
  1753. module_fold = 10; // 折叠
  1754. module_comment = 11; // 评论外露(废弃)
  1755. module_interaction = 12; // 外露交互模块(点赞、评论)
  1756. module_author_forward = 13; // 转发卡的发布人模块
  1757. module_ad = 14; // 广告卡模块
  1758. module_banner = 15; // 通栏模块
  1759. module_item_null = 16; // 获取物料失败模块
  1760. module_share_info = 17; // 分享组件
  1761. module_recommend = 18; // 相关推荐模块
  1762. module_stat_forward = 19; // 转发卡计数信息
  1763. module_top = 20; // 顶部模块
  1764. module_bottom = 21; // 底部模块
  1765. module_story = 22; //
  1766. module_topic = 23; //
  1767. module_topic_details_ext = 24; //
  1768. module_top_tag = 25; //
  1769. module_topic_brief = 26; //
  1770. module_title = 27; //
  1771. module_button = 28;
  1772. module_notice = 29;
  1773. module_opus_summary = 30;
  1774. module_copyright = 31;
  1775. module_paragraph = 32;
  1776. module_blocked = 33;
  1777. module_text_notice = 34;
  1778. module_opus_collection = 35;
  1779. }
  1780. // 推荐页-响应
  1781. message DynRcmdReply {
  1782. // 推荐页返回参数
  1783. DynRegionRcmd region_rcmd = 1;
  1784. //
  1785. DynamicList dynamic_list = 2;
  1786. }
  1787. // 推荐页-请求
  1788. message DynRcmdReq {
  1789. // 秒开参数
  1790. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 1;
  1791. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1792. int32 local_time = 2;
  1793. //
  1794. int64 fake_uid = 3;
  1795. //
  1796. bool is_refresh = 4;
  1797. }
  1798. // 关注推荐up主换一换-响应
  1799. message DynRcmdUpExchangeReply {
  1800. // 无关注推荐
  1801. Unfollow unfollow = 1;
  1802. }
  1803. // 关注推荐up主换一换-请求
  1804. message DynRcmdUpExchangeReq {
  1805. // 登录用户id
  1806. int64 uid = 1;
  1807. // 上一次不感兴趣的ts,单位:秒;该字段透传给搜索
  1808. int64 dislikeTs = 2;
  1809. // 需要与服务端确认或参照客户端现有参数
  1810. string from = 3;
  1811. }
  1812. // 推荐页返回参数
  1813. message DynRegionRcmd {
  1814. // 分区推荐项目列表
  1815. repeated DynRegionRcmdItem items = 1;
  1816. // 分区聚类推荐选项
  1817. RcmdOption opts = 2;
  1818. }
  1819. // 分区推荐项目
  1820. message DynRegionRcmdItem {
  1821. // 分区id
  1822. int64 rid = 1;
  1823. // 标题
  1824. string title = 2;
  1825. // 推荐模块
  1826. repeated ModuleRcmd items = 3;
  1827. }
  1828. //
  1829. message DynScreenTab {
  1830. //
  1831. string title = 1;
  1832. //
  1833. string name = 2;
  1834. //
  1835. bool default_tab = 3;
  1836. //
  1837. bool strategy_show_on_entrance = 4;
  1838. //
  1839. bool strategy_show_on_refresh = 5;
  1840. //
  1841. bool strategy_show_on_pull_up = 6;
  1842. }
  1843. //
  1844. message DynSearchReply {
  1845. //
  1846. SearchChannel channel_info = 1;
  1847. //
  1848. SearchTopic search_topic = 2;
  1849. //
  1850. SearchInfo search_info = 3;
  1851. }
  1852. //
  1853. message DynSearchReq {
  1854. //
  1855. string keyword = 1;
  1856. //
  1857. int32 page = 2;
  1858. //
  1859. int32 local_time = 3;
  1860. //
  1861. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  1862. }
  1863. //
  1864. message DynServerDetailsReply {
  1865. //
  1866. map<int64, DynamicItem> items = 1;
  1867. }
  1868. //
  1869. message DynServerDetailsReq {
  1870. //
  1871. int32 local_time = 2;
  1872. //
  1873. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  1874. //
  1875. string mobi_app = 4;
  1876. //
  1877. string device = 5;
  1878. //
  1879. string buvid = 6;
  1880. //
  1881. int64 build = 7;
  1882. //
  1883. int64 mid = 8;
  1884. //
  1885. string platform = 9;
  1886. //
  1887. bool is_master = 10;
  1888. //
  1889. repeated int64 top_dynamic_ids = 11;
  1890. }
  1891. // 空间页动态-请求
  1892. message DynSpaceReq {
  1893. // 被访问者,也就是空间主人的uid
  1894. int64 host_uid = 1;
  1895. // 动态偏移history_offset
  1896. string history_offset = 2;
  1897. // 秒开参数
  1898. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
  1899. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  1900. int32 local_time = 4;
  1901. // 向下翻页数,默认从1开始
  1902. int64 page = 5;
  1903. // 来源,空间页:space,直播tab:live
  1904. string from = 6;
  1905. }
  1906. // 空间页动态-响应
  1907. message DynSpaceRsp {
  1908. // 卡片列表
  1909. repeated DynamicItem list = 1;
  1910. // 历史偏移
  1911. string history_offset = 2;
  1912. // 是否还有更多数据
  1913. bool has_more = 3;
  1914. }
  1915. //
  1916. message DynSpaceSearchDetailsReply {
  1917. //
  1918. map<int64, DynamicItem> items = 1;
  1919. }
  1920. //
  1921. message DynSpaceSearchDetailsReq {
  1922. //
  1923. repeated string search_words = 2;
  1924. //
  1925. int32 local_time = 3;
  1926. //
  1927. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  1928. //
  1929. string mobi_app = 5;
  1930. //
  1931. string device = 6;
  1932. //
  1933. string buvid = 7;
  1934. //
  1935. int64 build = 8;
  1936. //
  1937. int64 mid = 9;
  1938. //
  1939. string platform = 10;
  1940. //
  1941. string ip = 11;
  1942. //
  1943. int32 net_type = 12;
  1944. //
  1945. int32 tf_type = 13;
  1946. }
  1947. //
  1948. message DynTab {
  1949. //
  1950. string title = 1;
  1951. //
  1952. string uri = 2;
  1953. //
  1954. string bubble = 3;
  1955. //
  1956. int32 red_point = 4;
  1957. //
  1958. int64 city_id = 5;
  1959. //
  1960. int32 is_popup = 6;
  1961. //
  1962. Popup popup = 7;
  1963. //
  1964. bool default_tab = 8;
  1965. //
  1966. string sub_title = 9;
  1967. //
  1968. string anchor = 10;
  1969. //
  1970. string internal_test = 11;
  1971. //
  1972. int32 type = 12;
  1973. //
  1974. DynTab back_up = 13;
  1975. }
  1976. //
  1977. message DynTabReply {
  1978. //
  1979. repeated DynTab dyn_tab = 1;
  1980. //
  1981. repeated DynScreenTab screen_tab = 2;
  1982. }
  1983. //
  1984. message DynTabReq {
  1985. //
  1986. int32 teenagers_mode = 1;
  1987. //
  1988. CampusReqFromType from_type = 2;
  1989. }
  1990. // 动态点赞-请求
  1991. message DynThumbReq {
  1992. // 用户uid
  1993. int64 uid = 1;
  1994. // 动态id
  1995. string dyn_id = 2;
  1996. // 动态类型(透传extend中的dyn_type)
  1997. int64 dyn_type = 3;
  1998. // 业务方资源id
  1999. string rid = 4;
  2000. // 点赞类型
  2001. ThumbType type = 5;
  2002. }
  2003. // 最近访问-个人feed流列表-响应
  2004. message DynVideoPersonalReply {
  2005. // 动态列表
  2006. repeated DynamicItem list = 1;
  2007. // 偏移量
  2008. string offset = 2;
  2009. // 是否还有更多数据
  2010. bool has_more = 3;
  2011. // 已读进度
  2012. string read_offset = 4;
  2013. // 关注状态
  2014. Relation relation = 5;
  2015. // 顶部预约卡
  2016. TopAdditionUP addition_up = 6;
  2017. //
  2018. string title = 7;
  2019. //
  2020. string title_sub = 8;
  2021. }
  2022. // 最近访问-个人feed流列表-请求
  2023. message DynVideoPersonalReq {
  2024. // 被访问者的 UID
  2025. int64 host_uid = 1;
  2026. // 偏移量 第一页可传空
  2027. string offset = 2;
  2028. // 标明下拉几次
  2029. int32 page = 3;
  2030. // 是否是预加载
  2031. int32 is_preload = 4;
  2032. // 秒开参数 新版本废弃,统一使用player_args
  2033. PlayurlParam playurl_param = 5;
  2034. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  2035. int32 local_time = 6;
  2036. // 服务端生成的透传上报字段
  2037. string footprint = 7;
  2038. // 来源
  2039. string from = 8;
  2040. // 秒开参数
  2041. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9;
  2042. //
  2043. int64 pegasus_avid = 10;
  2044. //
  2045. string personal_extra = 11;
  2046. }
  2047. // 动态视频页-响应
  2048. message DynVideoReply {
  2049. // 卡片列表
  2050. CardVideoDynList dynamic_list = 1;
  2051. // 动态卡片
  2052. CardVideoUpList video_up_list = 2;
  2053. // 视频页-我的追番
  2054. CardVideoFollowList video_follow_list = 3;
  2055. }
  2056. // 动态视频页-请求
  2057. message DynVideoReq {
  2058. // 透传 update_baseline
  2059. string update_baseline = 1;
  2060. // 透传 history_offset
  2061. string offset = 2;
  2062. // 向下翻页数
  2063. int32 page = 3;
  2064. // 刷新方式
  2065. // 1:向上刷新 2:向下翻页
  2066. Refresh refresh_type = 4;
  2067. // 秒开参数 新版本废弃,统一使用player_args
  2068. PlayurlParam playurl_param = 5;
  2069. // 综合页当前更新的最大值
  2070. string assist_baseline = 6;
  2071. // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8
  2072. int32 local_time = 7;
  2073. // 来源
  2074. string from = 8;
  2075. // 秒开参数
  2076. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9;
  2077. }
  2078. // 最近访问-标记已读-请求
  2079. message DynVideoUpdOffsetReq {
  2080. // 被访问者的UID
  2081. int64 host_uid = 1;
  2082. // 用户已读进度
  2083. string read_offset = 2;
  2084. // 服务端生成的透传上报字段
  2085. string footprint = 3;
  2086. //
  2087. string personal_extra = 4;
  2088. }
  2089. // 投票操作-响应
  2090. message DynVoteReply {
  2091. // 投票详情
  2092. AdditionVote2 item = 1;
  2093. // 投票操作返回状态
  2094. string toast = 2;
  2095. }
  2096. // 投票操作-请求
  2097. message DynVoteReq {
  2098. // 投票ID
  2099. int64 vote_id = 1;
  2100. // 选项索引数组
  2101. repeated int64 votes = 2;
  2102. // 状态
  2103. VoteStatus status = 3;
  2104. // 动态ID
  2105. string dynamic_id = 4;
  2106. // 是否分享
  2107. bool share = 5;
  2108. }
  2109. //
  2110. message EmojiSizeSpec {
  2111. //
  2112. int64 width = 1;
  2113. }
  2114. // 表情包类型
  2115. enum EmojiType {
  2116. emoji_none = 0; // 占位
  2117. emoji_old = 1; // emoji旧类型
  2118. emoji_new = 2; // emoji新类型
  2119. vip = 3; // 大会员表情
  2120. }
  2121. //
  2122. message EmoteNode {
  2123. //
  2124. string emote_url = 2;
  2125. //
  2126. EmoteSize emote_width = 3;
  2127. //
  2128. ImgInlineCfg inline_img_cfg = 5;
  2129. //
  2130. bool is_inline_img = 4;
  2131. //
  2132. WordNode raw_text = 1;
  2133. }
  2134. //
  2135. message EmoteSize {
  2136. //
  2137. double width = 1;
  2138. //
  2139. int32 emoji_size = 2;
  2140. }
  2141. // 附加大卡-电竞卡样式
  2142. enum EspaceStyle {
  2143. moba = 0; // moba类
  2144. }
  2145. // 扩展字段,用于动态部分操作使用
  2146. message Extend {
  2147. // 动态id
  2148. string dyn_id_str = 1;
  2149. // 业务方id
  2150. string business_id = 2;
  2151. // 源动态id
  2152. string orig_dyn_id_str = 3;
  2153. // 转发卡:用户名
  2154. string orig_name = 4;
  2155. // 转发卡:图片url
  2156. string orig_img_url = 5;
  2157. // 转发卡:文字内容
  2158. repeated Description orig_desc = 6;
  2159. // 填充文字内容
  2160. repeated Description desc = 7;
  2161. // 被转发的源动态类型
  2162. DynamicType orig_dyn_type = 8;
  2163. // 分享到站外展示类型
  2164. string share_type = 9;
  2165. // 分享的场景
  2166. string share_scene = 10;
  2167. // 是否快速转发
  2168. bool is_fast_share = 11;
  2169. // r_type 分享和转发
  2170. int32 r_type = 12;
  2171. // 数据源的动态类型
  2172. int64 dyn_type = 13;
  2173. // 用户id
  2174. int64 uid = 14;
  2175. // 卡片跳转
  2176. string card_url = 15;
  2177. // 透传字段
  2178. google.protobuf.Any source_content = 16;
  2179. // 转发卡:用户头像
  2180. string orig_face = 17;
  2181. // 评论跳转
  2182. ExtendReply reply = 18;
  2183. //
  2184. string track_id = 19;
  2185. //
  2186. ModuleOpusSummary opus_summary = 20;
  2187. //
  2188. OnlyFansProperty only_fans_property = 21;
  2189. //
  2190. DynFeatureGate feature_gate = 22;
  2191. //
  2192. bool is_in_audit = 23;
  2193. //
  2194. map<string, string> history_report = 24;
  2195. }
  2196. // 评论扩展
  2197. message ExtendReply {
  2198. // 基础跳转地址
  2199. string uri = 1;
  2200. // 参数部分
  2201. repeated ExtendReplyParam params = 2;
  2202. }
  2203. // 评论扩展参数部分
  2204. message ExtendReplyParam {
  2205. // 参数名
  2206. string key = 1;
  2207. // 参数值
  2208. string value = 2;
  2209. }
  2210. // 动态-拓展小卡模块-通用小卡
  2211. message ExtInfoCommon {
  2212. // 标题
  2213. string title = 1;
  2214. // 跳转地址
  2215. string uri = 2;
  2216. // 小图标
  2217. string icon = 3;
  2218. // poiType
  2219. int32 poi_type = 4;
  2220. // 类型
  2221. DynExtendType type = 5;
  2222. // 客户端埋点用
  2223. string sub_module = 6;
  2224. // 行动点文案
  2225. string action_text = 7;
  2226. // 行动点链接
  2227. string action_url = 8;
  2228. // 资源rid
  2229. int64 rid = 9;
  2230. // 轻浏览是否展示
  2231. bool is_show_light = 10;
  2232. }
  2233. // 动态-拓展小卡模块-游戏小卡
  2234. message ExtInfoGame {
  2235. // 标题
  2236. string title = 1;
  2237. // 跳转地址
  2238. string uri = 2;
  2239. // 小图标
  2240. string icon = 3;
  2241. }
  2242. // 动态-拓展小卡模块-热门小卡
  2243. message ExtInfoHot {
  2244. // 标题
  2245. string title = 1;
  2246. // 跳转地址
  2247. string uri = 2;
  2248. // 小图标
  2249. string icon = 3;
  2250. }
  2251. // 动态-拓展小卡模块-lbs小卡
  2252. message ExtInfoLBS {
  2253. // 标题
  2254. string title = 1;
  2255. // 跳转地址
  2256. string uri = 2;
  2257. // 小图标
  2258. string icon = 3;
  2259. // poiType
  2260. int32 poi_type = 4;
  2261. }
  2262. // 动态-拓展小卡模块-ogv小卡
  2263. message ExtInfoOGV {
  2264. // ogv小卡
  2265. repeated InfoOGV info_ogv = 1;
  2266. }
  2267. // 动态-拓展小卡模块-话题小卡
  2268. message ExtInfoTopic {
  2269. // 标题-话题名
  2270. string title = 1;
  2271. // 跳转地址
  2272. string uri = 2;
  2273. // 小图标
  2274. string icon = 3;
  2275. }
  2276. //
  2277. message FeedFilterReply {
  2278. //
  2279. string offset = 1;
  2280. //
  2281. bool has_more = 2;
  2282. //
  2283. repeated DynamicItem list = 3;
  2284. }
  2285. //
  2286. message FeedFilterReq {
  2287. //
  2288. string offset = 1;
  2289. //
  2290. string tab = 2;
  2291. //
  2292. int32 local_time = 3;
  2293. //
  2294. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  2295. //
  2296. AdParam ad_param = 5;
  2297. //
  2298. int32 cold_start = 6;
  2299. //
  2300. int64 page = 7;
  2301. }
  2302. //
  2303. message FetchTabSettingReply {
  2304. //
  2305. int32 status = 1;
  2306. }
  2307. // 折叠类型
  2308. enum FoldType {
  2309. FoldTypeZore = 0; // 占位
  2310. FoldTypePublish = 1; // 用户发布折叠
  2311. FoldTypeFrequent = 2; // 转发超频折叠
  2312. FoldTypeUnite = 3; // 联合投稿折叠
  2313. FoldTypeLimit = 4; // 动态受限折叠
  2314. FoldTypeTopicMerged = 5;
  2315. }
  2316. // 视频页-我的追番-番剧信息
  2317. message FollowListItem {
  2318. // season_id
  2319. int64 season_id = 1;
  2320. // 标题
  2321. string title = 2;
  2322. // 封面图
  2323. string cover = 3;
  2324. // 跳转链接
  2325. string url = 4;
  2326. // new_ep
  2327. NewEP new_ep = 5;
  2328. // 子标题
  2329. string sub_title = 6;
  2330. // 卡片位次
  2331. int64 pos = 7;
  2332. }
  2333. //
  2334. enum FollowType {
  2335. ft_not_follow = 0; //
  2336. ft_follow = 1; //
  2337. }
  2338. // 动态-附加卡-商品卡-商品
  2339. message GoodsItem {
  2340. // 图片
  2341. string cover = 1;
  2342. // schemaPackageName(Android用)
  2343. string schema_package_name = 2;
  2344. // 商品类型
  2345. // 1:淘宝 2:会员购
  2346. int32 source_type = 3;
  2347. // 跳转链接
  2348. string jump_url = 4;
  2349. // 跳转文案
  2350. string jump_desc = 5;
  2351. // 标题
  2352. string title = 6;
  2353. // 摘要
  2354. string brief = 7;
  2355. // 价格
  2356. string price = 8;
  2357. // item_id
  2358. int64 item_id = 9;
  2359. // schema_url
  2360. string schema_url = 10;
  2361. // open_white_list
  2362. repeated string open_white_list = 11;
  2363. // use_web_v2
  2364. bool user_web_v2 = 12;
  2365. // ad mark
  2366. string ad_mark = 13;
  2367. //
  2368. string app_name = 14;
  2369. //
  2370. GoodsJumpType jump_type = 15;
  2371. }
  2372. //
  2373. enum GoodsJumpType {
  2374. goods_none = 0;
  2375. goods_schema = 1;
  2376. goods_url = 2;
  2377. }
  2378. //
  2379. message GuideBarInfo {
  2380. //
  2381. int32 show = 1;
  2382. //
  2383. int32 page = 2;
  2384. //
  2385. int32 position = 3;
  2386. //
  2387. string desc = 4;
  2388. //
  2389. int32 jump_page = 5;
  2390. //
  2391. int32 jump_position = 6;
  2392. }
  2393. // 高亮文本
  2394. message HighlightText {
  2395. // 展示文本
  2396. string text = 1;
  2397. // 高亮类型
  2398. HighlightTextStyle text_style = 2;
  2399. //
  2400. string jump_url = 3;
  2401. //
  2402. string icon = 4;
  2403. }
  2404. // 文本高亮枚举
  2405. enum HighlightTextStyle {
  2406. style_none = 0; // 默认
  2407. style_highlight = 1; // 高亮
  2408. }
  2409. //
  2410. enum HomePageTabSttingStatus {
  2411. SETTING_INVALID = 0;
  2412. SETTING_OPEN = 1;
  2413. SETTING_CLOSE = 2;
  2414. }
  2415. //
  2416. message HomeSubscribeReply {
  2417. //
  2418. int32 online = 1;
  2419. }
  2420. //
  2421. message HomeSubscribeReq {
  2422. //
  2423. int64 campus_id = 1;
  2424. //
  2425. string campus_name = 2;
  2426. }
  2427. //
  2428. message IconBadge {
  2429. //
  2430. string icon_bg_url = 1;
  2431. //
  2432. string text = 2;
  2433. }
  2434. //
  2435. message IconButton {
  2436. //
  2437. string text = 1;
  2438. //
  2439. string icon_head = 2;
  2440. //
  2441. string icon_tail = 3;
  2442. //
  2443. string jump_uri = 4;
  2444. }
  2445. //
  2446. enum IconResLocal {
  2447. ICON_RES_LOCAL_NONE = 0;
  2448. ICON_RES_LOCAL_LIVE = 1;
  2449. }
  2450. //
  2451. message ImageSet {
  2452. //
  2453. string img_day = 1;
  2454. //
  2455. string img_dark = 2;
  2456. }
  2457. // 枚举-附加卡样式
  2458. enum ImageStyle {
  2459. add_style_vertical = 0; //
  2460. add_style_square = 1; //
  2461. }
  2462. //
  2463. message ImgInlineCfg {
  2464. //
  2465. double width = 1;
  2466. //
  2467. double height = 2;
  2468. //
  2469. Colors color = 3;
  2470. }
  2471. // 动态-拓展小卡模块-ogv小卡-(one of 片单、榜单、分区)
  2472. message InfoOGV {
  2473. // 标题
  2474. string title = 1;
  2475. // 跳转地址
  2476. string uri = 2;
  2477. // 小图标
  2478. string icon = 3;
  2479. // 客户端埋点用
  2480. string sub_module = 4;
  2481. }
  2482. //
  2483. message InteractionFace {
  2484. //
  2485. int64 mid = 1;
  2486. //
  2487. string face = 2;
  2488. }
  2489. // 外露交互模块
  2490. message InteractionItem {
  2491. // 外露模块类型
  2492. LocalIconType icon_type = 1;
  2493. // 外露模块文案
  2494. repeated Description desc = 2;
  2495. // 外露模块uri相关 根据type不同用法不同
  2496. string uri = 3;
  2497. // 动态id
  2498. string dynamic_id = 4;
  2499. // 评论mid
  2500. int64 comment_mid = 6;
  2501. //
  2502. repeated InteractionFace faces = 7;
  2503. //
  2504. InteractionStat stat = 8;
  2505. //
  2506. string icon = 9;
  2507. }
  2508. //
  2509. message InteractionStat {
  2510. //
  2511. int64 like = 1;
  2512. }
  2513. //
  2514. message LbsPoiDetail {
  2515. //
  2516. string poi = 1;
  2517. //
  2518. int64 type = 2;
  2519. //
  2520. repeated string base_pic = 3;
  2521. //
  2522. repeated string cover = 4;
  2523. //
  2524. string address = 5;
  2525. //
  2526. string title = 6;
  2527. }
  2528. //
  2529. message LbsPoiReply {
  2530. //
  2531. bool has_more = 1;
  2532. //
  2533. string offset = 2;
  2534. //
  2535. LbsPoiDetail detail = 3;
  2536. //
  2537. repeated DynamicItem list = 4;
  2538. }
  2539. //
  2540. message LbsPoiReq {
  2541. //
  2542. string poi = 1;
  2543. //
  2544. int64 type = 2;
  2545. //
  2546. string offset = 3;
  2547. //
  2548. int32 refresh_type = 4;
  2549. //
  2550. int32 local_time = 5;
  2551. //
  2552. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6;
  2553. }
  2554. //
  2555. message LegacyTopicFeedReply {
  2556. //
  2557. repeated DynamicItem list = 1;
  2558. //
  2559. bool has_more = 2;
  2560. //
  2561. string offset = 3;
  2562. //
  2563. repeated SortType supported_sort_types = 4;
  2564. //
  2565. repeated SortType feed_card_filters = 5;
  2566. }
  2567. //
  2568. message LegacyTopicFeedReq {
  2569. //
  2570. int64 topic_id = 1;
  2571. //
  2572. string topic_name = 2;
  2573. //
  2574. string offset = 3;
  2575. //
  2576. SortType sort_type = 4;
  2577. //
  2578. SortType card_filter = 5;
  2579. }
  2580. //
  2581. enum LightFromType {
  2582. from_login = 0; //
  2583. from_unlogin = 1; //
  2584. }
  2585. // 点赞动画
  2586. message LikeAnimation {
  2587. // 开始动画
  2588. string begin = 1;
  2589. // 过程动画
  2590. string proc = 2;
  2591. // 结束动画
  2592. string end = 3;
  2593. // id
  2594. int64 like_icon_id = 4;
  2595. }
  2596. // 点赞拓展信息
  2597. message LikeInfo {
  2598. // 点赞动画
  2599. LikeAnimation animation = 1;
  2600. // 是否点赞
  2601. bool is_like = 2;
  2602. }
  2603. // 点赞列表-响应
  2604. message LikeListReply {
  2605. // 用户模块列表
  2606. repeated ModuleAuthor list = 1;
  2607. // 是否还有更多数据
  2608. bool has_more = 2;
  2609. // 点赞总数
  2610. int64 total_count = 3;
  2611. }
  2612. // 点赞列表-请求
  2613. message LikeListReq {
  2614. // 动态ID
  2615. string dynamic_id = 1;
  2616. // 动态类型
  2617. int64 dyn_type = 2;
  2618. // 业务方资源id
  2619. int64 rid = 3;
  2620. //上一页最后一个uid
  2621. int64 uid_offset = 4;
  2622. // 下拉页数
  2623. int32 page = 5;
  2624. }
  2625. // 点赞用户
  2626. message LikeUser {
  2627. // 用户mid
  2628. int64 uid = 1;
  2629. // 用户昵称
  2630. string uname = 2;
  2631. // 点击跳转链接
  2632. string uri = 3;
  2633. }
  2634. //
  2635. message LineParagraph {
  2636. //
  2637. MdlDynDrawItem pic = 1;
  2638. }
  2639. //
  2640. message LinkNode {
  2641. //
  2642. string show_text = 1;
  2643. //
  2644. string link = 2;
  2645. //
  2646. string icon = 3;
  2647. //
  2648. string icon_suffix = 4;
  2649. //
  2650. string link_type = 5;
  2651. //
  2652. LinkNodeType link_type_enum = 6;
  2653. //
  2654. string biz_id = 7;
  2655. //
  2656. int64 timestamp = 8;
  2657. //
  2658. GoodsItem goods_item = 9;
  2659. //
  2660. NoteVideoTS note_video_ts = 10;
  2661. }
  2662. //
  2663. enum LinkNodeType {
  2664. INVALID = 0;
  2665. VIDEO = 1;
  2666. RESERVE = 2;
  2667. VOTE = 3;
  2668. LIVE = 4;
  2669. LOTTERY = 5;
  2670. MATCH = 6;
  2671. GOODS = 7;
  2672. OGV_SS = 8;
  2673. OGV_EP = 9;
  2674. MANGA = 10;
  2675. CHEESE = 11;
  2676. VIDEO_TS = 12;
  2677. AT = 13;
  2678. HASH_TAG = 14;
  2679. ARTICLE = 15;
  2680. URL = 16;
  2681. MAIL = 17;
  2682. LBS = 18;
  2683. ACTIVITY = 19;
  2684. ATTACH_CARD_OFFICIAL_ACTIVITY = 20;
  2685. GAME = 21;
  2686. DECORATION = 22;
  2687. UP_TOPIC = 23;
  2688. UP_ACTIVITY = 24;
  2689. UP_MAOER = 25;
  2690. MEMBER_GOODS = 26;
  2691. OPENMALL_UP_ITEMS = 27;
  2692. SEARCH = 28;
  2693. }
  2694. // 直播信息
  2695. message LiveInfo {
  2696. // 是否在直播
  2697. // 0:未直播 1:正在直播 (废弃)
  2698. int32 is_living = 1;
  2699. // 跳转链接
  2700. string uri = 2;
  2701. // 直播状态
  2702. LiveState live_state = 3;
  2703. }
  2704. //
  2705. message LivePendant {
  2706. //
  2707. string text = 1;
  2708. //
  2709. string icon = 2;
  2710. //
  2711. int64 pendant_id = 3;
  2712. }
  2713. // 直播状态
  2714. enum LiveState {
  2715. live_none = 0; // 未直播
  2716. live_live = 1; // 直播中
  2717. live_rotation = 2; // 轮播中
  2718. }
  2719. // 外露模块类型
  2720. enum LocalIconType {
  2721. local_icon_comment = 0; //
  2722. local_icon_like = 1; //
  2723. local_icon_avatar = 2;
  2724. local_icon_cover = 3;
  2725. local_icon_like_and_forward = 4;
  2726. }
  2727. // 动态-附加卡-电竞卡-战队
  2728. message MatchTeam {
  2729. // 战队ID
  2730. int64 id = 1;
  2731. // 战队名
  2732. string name = 2;
  2733. // 战队图标
  2734. string cover = 3;
  2735. // 日间色值
  2736. string color = 4;
  2737. // 夜间色值
  2738. string night_color = 5;
  2739. }
  2740. //
  2741. enum MdlBlockedStyle {
  2742. BLOCKED_STYLE_DEFAULT = 0;
  2743. BLOCKED_STYLE_IN_AUDIT = 1;
  2744. BLOCKED_STYLE_ONLY_FANS_LIST = 2;
  2745. BLOCKED_STYLE_ONLY_FANS_VIDEO = 3;
  2746. }
  2747. // 动态列表渲染部分-详情模块-小程序/小游戏
  2748. message MdlDynApplet {
  2749. // 小程序id
  2750. int64 id = 1;
  2751. // 跳转地址
  2752. string uri = 2;
  2753. // 主标题
  2754. string title = 4;
  2755. // 副标题
  2756. string sub_title = 5;
  2757. // 封面图
  2758. string cover = 6;
  2759. // 小程序icon
  2760. string icon = 7;
  2761. // 小程序标题
  2762. string label = 8;
  2763. // 按钮文案
  2764. string button_title = 9;
  2765. }
  2766. // 动态-详情模块-稿件
  2767. message MdlDynArchive {
  2768. // 标题
  2769. string title = 1;
  2770. // 封面图
  2771. string cover = 2;
  2772. // 秒开地址
  2773. string uri = 3;
  2774. // 视频封面展示项 1
  2775. string cover_left_text_1 = 4;
  2776. // 视频封面展示项 2
  2777. string cover_left_text_2 = 5;
  2778. // 封面视频展示项 3
  2779. string cover_left_text_3 = 6;
  2780. // avid
  2781. int64 avid = 7;
  2782. // cid
  2783. int64 cid = 8;
  2784. // 视频源类型
  2785. MediaType media_type = 9;
  2786. // 尺寸信息
  2787. Dimension dimension = 10;
  2788. // 角标,多个角标之前有间距
  2789. repeated VideoBadge badge = 11;
  2790. // 是否能够自动播放
  2791. bool can_play= 12;
  2792. // stype
  2793. VideoType stype = 13;
  2794. // 是否PGC
  2795. bool isPGC = 14;
  2796. // inline播放地址
  2797. string inlineURL = 15;
  2798. // PGC的epid
  2799. int64 EpisodeId = 16;
  2800. // 子类型
  2801. int32 SubType = 17;
  2802. // PGC的ssid
  2803. int64 PgcSeasonId = 18;
  2804. // 播放按钮
  2805. string play_icon = 19;
  2806. // 时长
  2807. int64 duration = 20;
  2808. // 跳转地址
  2809. string jump_url = 21;
  2810. // 番剧是否为预览视频
  2811. bool is_preview = 22;
  2812. // 新角标,多个角标之前没有间距
  2813. repeated VideoBadge badge_category = 23;
  2814. // 当前是否是pgc正片
  2815. bool is_feature = 24;
  2816. // 是否是预约召回
  2817. ReserveType reserve_type = 25;
  2818. // bvid
  2819. string bvid = 26;
  2820. // 播放数
  2821. int32 view = 27;
  2822. //
  2823. bool show_premiere_badge = 28;
  2824. //
  2825. bool premiere_card = 29;
  2826. //
  2827. bool show_progress = 30;
  2828. //
  2829. int64 part_duration = 31;
  2830. //
  2831. int64 part_progress = 32;
  2832. }
  2833. // 动态列表渲染部分-详情模块-专栏模块
  2834. message MdlDynArticle {
  2835. // 专栏id
  2836. int64 id = 1;
  2837. // 跳转地址
  2838. string uri = 2;
  2839. // 标题
  2840. string title = 3;
  2841. // 文案部分
  2842. string desc = 4;
  2843. // 配图
  2844. repeated string covers = 5;
  2845. // 阅读量标签
  2846. string label = 6;
  2847. // 模板类型
  2848. int32 templateID = 7;
  2849. }
  2850. // 动态列表渲染部分-详情模块-通用
  2851. message MdlDynCommon {
  2852. // 物料id
  2853. int64 oid = 1;
  2854. // 跳转地址
  2855. string uri = 2;
  2856. // 标题
  2857. string title = 3;
  2858. // 描述 漫画卡标题下第一行
  2859. string desc = 4;
  2860. // 封面
  2861. string cover = 5;
  2862. // 标签1 漫画卡标题下第二行
  2863. string label = 6;
  2864. // 所属业务类型
  2865. int32 bizType = 7;
  2866. // 镜像数据ID
  2867. int64 sketchID = 8;
  2868. // 卡片样式
  2869. MdlDynCommonType style = 9;
  2870. // 角标
  2871. repeated VideoBadge badge = 10;
  2872. //
  2873. AdditionalButton button = 11;
  2874. }
  2875. //
  2876. enum MdlDynCommonType {
  2877. mdl_dyn_common_none = 0; //
  2878. mdl_dyn_common_square = 1; //
  2879. mdl_dyn_common_vertica = 2; //
  2880. }
  2881. // 动态-详情模块-付费课程批次
  2882. message MdlDynCourBatch {
  2883. // 标题
  2884. string title = 1;
  2885. // 封面图
  2886. string cover = 2;
  2887. // 跳转地址
  2888. string uri = 3;
  2889. // 展示项 1(本集标题)
  2890. string text_1 = 4;
  2891. // 展示项 2(更新了多少个视频)
  2892. string text_2 = 5;
  2893. // 角标
  2894. VideoBadge badge = 6;
  2895. // 播放按钮
  2896. string play_icon = 7;
  2897. //
  2898. bool can_play = 8;
  2899. //
  2900. bool is_preview = 9;
  2901. //
  2902. string cover_left_text_1 = 10;
  2903. //
  2904. string cover_left_text_2 = 11;
  2905. //
  2906. string cover_left_text_3 = 12;
  2907. //
  2908. int64 avid = 13;
  2909. //
  2910. int64 cid = 14;
  2911. //
  2912. int64 epid = 15;
  2913. //
  2914. int64 duration = 16;
  2915. //
  2916. int64 season_id = 17;
  2917. }
  2918. // 动态-详情模块-付费课程系列
  2919. message MdlDynCourSeason {
  2920. // 标题
  2921. string title = 1;
  2922. // 封面图
  2923. string cover = 2;
  2924. // 跳转地址
  2925. string uri = 3;
  2926. // 展示项 1(更新信息)
  2927. string text_1 = 4;
  2928. // 描述信息
  2929. string desc = 5;
  2930. // 角标
  2931. VideoBadge badge = 6;
  2932. // 播放按钮
  2933. string play_icon = 7;
  2934. //
  2935. bool can_play = 8;
  2936. //
  2937. bool is_preview = 9;
  2938. //
  2939. int64 avid = 10;
  2940. //
  2941. int64 cid = 11;
  2942. //
  2943. int64 epid = 12;
  2944. //
  2945. int64 duration = 13;
  2946. //
  2947. int64 season_id = 14;
  2948. }
  2949. //
  2950. message MdlDynCourUp {
  2951. //
  2952. string title = 1;
  2953. //
  2954. string desc = 2;
  2955. //
  2956. string cover = 3;
  2957. //
  2958. string uri = 4;
  2959. //
  2960. string text_1 = 5;
  2961. //
  2962. VideoBadge badge = 6;
  2963. //
  2964. string play_icon = 7;
  2965. //
  2966. bool can_play = 8;
  2967. //
  2968. bool is_preview = 9;
  2969. //
  2970. int64 avid = 10;
  2971. //
  2972. int64 cid = 11;
  2973. //
  2974. int64 epid = 12;
  2975. //
  2976. int64 duration = 13;
  2977. //
  2978. int64 season_id = 14;
  2979. }
  2980. // 动态列表渲染部分-详情模块-图文模块
  2981. message MdlDynDraw {
  2982. // 图片
  2983. repeated MdlDynDrawItem items = 1;
  2984. // 跳转地址
  2985. string uri = 2;
  2986. // 图文ID
  2987. int64 id = 3;
  2988. //
  2989. bool is_draw_first = 4;
  2990. //
  2991. bool is_big_cover = 5;
  2992. //
  2993. bool is_article_cover = 6;
  2994. }
  2995. // 动态列表渲染部分-详情模块-图文
  2996. message MdlDynDrawItem {
  2997. // 图片链接
  2998. string src = 1;
  2999. // 图片宽度
  3000. int64 width = 2;
  3001. // 图片高度
  3002. int64 height = 3;
  3003. // 图片大小
  3004. float size = 4;
  3005. // 图片标签
  3006. repeated MdlDynDrawTag tags = 5;
  3007. }
  3008. // 动态列表渲染部分-详情模块-图文-标签
  3009. message MdlDynDrawTag {
  3010. // 标签类型
  3011. MdlDynDrawTagType type = 1;
  3012. // 标签详情
  3013. MdlDynDrawTagItem item = 2;
  3014. }
  3015. // 动态列表部分-详情模块-图文-标签详情
  3016. message MdlDynDrawTagItem {
  3017. // 跳转链接
  3018. string url = 1;
  3019. // 标签内容
  3020. string text = 2;
  3021. // 坐标-x
  3022. int64 x = 3;
  3023. // 坐标-y
  3024. int64 y = 4;
  3025. // 方向
  3026. int32 orientation = 5;
  3027. // 来源
  3028. // 0:未知 1:淘宝 2:自营
  3029. int32 source = 6;
  3030. // 商品id
  3031. int64 item_id = 7;
  3032. // 用户mid
  3033. int64 mid = 8;
  3034. // 话题id
  3035. int64 tid = 9;
  3036. // lbs信息
  3037. string poi = 10;
  3038. // 商品标签链接
  3039. string schema_url = 11;
  3040. }
  3041. // 图文标签类型
  3042. enum MdlDynDrawTagType {
  3043. mdl_draw_tag_none = 0; // 占位
  3044. mdl_draw_tag_common = 1; // 普通标签
  3045. mdl_draw_tag_goods = 2; // 商品标签
  3046. mdl_draw_tag_user = 3; // 用户昵称
  3047. mdl_draw_tag_topic = 4; // 话题名称
  3048. mdl_draw_tag_lbs = 5; // lbs标签
  3049. }
  3050. // 动态列表渲染部分-详情模块-转发模块
  3051. message MdlDynForward {
  3052. // 动态转发核心模块 套娃
  3053. DynamicItem item = 1;
  3054. // 透传类型
  3055. // 0:分享 1:转发
  3056. int32 rtype = 2;
  3057. }
  3058. // 动态列表渲染部分-详情模块-直播
  3059. message MdlDynLive {
  3060. // 房间号
  3061. int64 id = 1;
  3062. // 跳转地址
  3063. string uri = 2;
  3064. // 直播间标题
  3065. string title = 3;
  3066. // 直播间封面
  3067. string cover = 4;
  3068. // 标题1 例: 陪伴学习
  3069. string cover_label = 5;
  3070. // 标题2 例: 54.6万人气
  3071. string cover_label2 = 6;
  3072. // 直播状态
  3073. LiveState live_state = 7;
  3074. // 直播角标
  3075. VideoBadge badge = 8;
  3076. // 是否是预约召回
  3077. ReserveType reserve_type = 9;
  3078. }
  3079. // 动态列表渲染部分-详情模块-直播推荐
  3080. message MdlDynLiveRcmd {
  3081. // 直播数据
  3082. string content = 1;
  3083. // 是否是预约召回
  3084. ReserveType reserve_type = 2;
  3085. //
  3086. LivePendant pendant = 3;
  3087. }
  3088. // 动态列表渲染部分-详情模块-播单
  3089. message MdlDynMedialist {
  3090. // 播单id
  3091. int64 id = 1;
  3092. // 跳转地址
  3093. string uri = 2;
  3094. // 主标题
  3095. string title = 3;
  3096. // 副标题
  3097. string sub_title = 4;
  3098. // 封面图
  3099. string cover = 5;
  3100. // 封面类型
  3101. int32 cover_type = 6;
  3102. // 角标
  3103. VideoBadge badge = 7;
  3104. }
  3105. // 动态列表渲染部分-详情模块-音频模块
  3106. message MdlDynMusic {
  3107. // 音频id
  3108. int64 id = 1;
  3109. // 跳转地址
  3110. string uri = 2;
  3111. // upId
  3112. int64 up_id = 3;
  3113. // 歌名
  3114. string title = 4;
  3115. // 专辑封面
  3116. string cover = 5;
  3117. // 展示项1
  3118. string label1 = 6;
  3119. // upper
  3120. string upper = 7;
  3121. }
  3122. // 动态-详情模块-pgc
  3123. message MdlDynPGC {
  3124. // 标题
  3125. string title = 1;
  3126. // 封面图
  3127. string cover = 2;
  3128. // 秒开地址
  3129. string uri = 3;
  3130. // 视频封面展示项 1
  3131. string cover_left_text_1 = 4;
  3132. // 视频封面展示项 2
  3133. string cover_left_text_2 = 5;
  3134. // 封面视频展示项 3
  3135. string cover_left_text_3 = 6;
  3136. // cid
  3137. int64 cid = 7;
  3138. // season_id
  3139. int64 season_id = 8;
  3140. // epid
  3141. int64 epid = 9;
  3142. // aid
  3143. int64 aid = 10;
  3144. // 视频源类型
  3145. MediaType media_type = 11;
  3146. // 番剧类型
  3147. VideoSubType sub_type = 12;
  3148. // 番剧是否为预览视频
  3149. bool is_preview = 13;
  3150. // 尺寸信息
  3151. Dimension dimension = 14;
  3152. // 角标,多个角标之前有间距
  3153. repeated VideoBadge badge = 15;
  3154. // 是否能够自动播放
  3155. bool can_play= 16;
  3156. // season
  3157. PGCSeason season = 17;
  3158. // 播放按钮
  3159. string play_icon = 18;
  3160. // 时长
  3161. int64 duration = 19;
  3162. // 跳转地址
  3163. string jump_url = 20;
  3164. // 新角标,多个角标之前没有间距
  3165. repeated VideoBadge badge_category = 21;
  3166. // 当前是否是pgc正片
  3167. bool is_feature = 22;
  3168. }
  3169. // 动态列表渲染部分-详情模块-订阅卡
  3170. message MdlDynSubscription {
  3171. // 卡片物料id
  3172. int64 id = 1;
  3173. // 广告创意id
  3174. int64 ad_id = 2;
  3175. // 跳转地址
  3176. string uri = 3;
  3177. // 标题
  3178. string title = 4;
  3179. // 封面图
  3180. string cover = 5;
  3181. // 广告标题
  3182. string ad_title = 6;
  3183. // 角标
  3184. VideoBadge badge = 7;
  3185. // 小提示
  3186. string tips = 8;
  3187. }
  3188. // 动态新附加卡
  3189. message MdlDynSubscriptionNew {
  3190. //样式类型
  3191. MdlDynSubscriptionNewStyle style = 1;
  3192. // 新订阅卡数据
  3193. oneof item {
  3194. //
  3195. MdlDynSubscription dyn_subscription = 2;
  3196. // 直播推荐
  3197. MdlDynLiveRcmd dyn_live_rcmd = 3;
  3198. }
  3199. }
  3200. //
  3201. enum MdlDynSubscriptionNewStyle {
  3202. mdl_dyn_subscription_new_style_nont = 0; // 占位
  3203. mdl_dyn_subscription_new_style_live = 1; // 直播
  3204. mdl_dyn_subscription_new_style_draw = 2; // 图文
  3205. }
  3206. //
  3207. message MdlDynTopicSet {
  3208. //
  3209. repeated TopicItem topics = 1;
  3210. //
  3211. IconButton more_btn = 2;
  3212. //
  3213. int64 topic_set_id = 3;
  3214. //
  3215. int64 push_id = 4;
  3216. }
  3217. // 动态列表渲染部分-UGC合集
  3218. message MdlDynUGCSeason {
  3219. // 标题
  3220. string title = 1;
  3221. // 封面图
  3222. string cover = 2;
  3223. // 秒开地址
  3224. string uri = 3;
  3225. // 视频封面展示项 1
  3226. string cover_left_text_1 = 4;
  3227. // 视频封面展示项 2
  3228. string cover_left_text_2 = 5;
  3229. // 封面视频展示项 3
  3230. string cover_left_text_3 = 6;
  3231. // 卡片物料id
  3232. int64 id = 7;
  3233. // inline播放地址
  3234. string inlineURL = 8;
  3235. // 是否能够自动播放
  3236. bool can_play= 9;
  3237. // 播放按钮
  3238. string play_icon = 10;
  3239. // avid
  3240. int64 avid = 11;
  3241. // cid
  3242. int64 cid = 12;
  3243. // 尺寸信息
  3244. Dimension dimension = 13;
  3245. // 时长
  3246. int64 duration = 14;
  3247. // 跳转地址
  3248. string jump_url = 15;
  3249. }
  3250. // 播放器类型
  3251. enum MediaType {
  3252. MediaTypeNone = 0; // 本地
  3253. MediaTypeUGC = 1; // UGC
  3254. MediaTypePGC = 2; // PGC
  3255. MediaTypeLive = 3; // 直播
  3256. MediaTypeVCS = 4; // 小视频
  3257. }
  3258. // 查看更多-列表单条数据
  3259. message MixUpListItem {
  3260. // 用户mid
  3261. int64 uid = 1;
  3262. // 特别关注
  3263. // 0:否 1:是
  3264. int32 special_attention = 2;
  3265. // 小红点状态
  3266. // 0:没有 1:有
  3267. int32 reddot_state = 3;
  3268. // 直播信息
  3269. MixUpListLiveItem live_info = 4;
  3270. // 昵称
  3271. string name = 5;
  3272. // 头像
  3273. string face = 6;
  3274. // 认证信息
  3275. OfficialVerify official = 7;
  3276. // 大会员信息
  3277. VipInfo vip = 8;
  3278. // 关注状态
  3279. Relation relation = 9;
  3280. //
  3281. int32 permire_state = 10;
  3282. //
  3283. string uri = 11;
  3284. }
  3285. message MixUpListLiveItem {
  3286. // 直播状态
  3287. // 0:未直播 1:直播中
  3288. bool status = 1;
  3289. // 房间号
  3290. int64 room_id = 2;
  3291. // 跳转地址
  3292. string uri = 3;
  3293. }
  3294. // 动态模块
  3295. message Module {
  3296. // 类型
  3297. DynModuleType module_type = 1;
  3298. oneof module_item {
  3299. // 用户模块 1
  3300. ModuleAuthor module_author = 2;
  3301. // 争议黄条模块 2
  3302. ModuleDispute module_dispute = 3;
  3303. // 动态正文模块 3
  3304. ModuleDesc module_desc = 4;
  3305. // 动态卡模块 4
  3306. ModuleDynamic module_dynamic = 5;
  3307. // 点赞外露(废弃)
  3308. ModuleLikeUser module_likeUser = 6;
  3309. // 小卡模块 6
  3310. ModuleExtend module_extend = 7;
  3311. // 大卡模块 5
  3312. ModuleAdditional module_additional = 8;
  3313. // 计数模块 8
  3314. ModuleStat module_stat = 9;
  3315. // 折叠模块 9
  3316. ModuleFold module_fold = 10;
  3317. // 评论外露(废弃)
  3318. ModuleComment module_comment = 11;
  3319. // 外露交互模块(点赞、评论) 7
  3320. ModuleInteraction module_interaction = 12;
  3321. // 转发卡-原卡用户模块
  3322. ModuleAuthorForward module_author_forward = 13;
  3323. // 广告卡
  3324. ModuleAd module_ad = 14;
  3325. // 通栏
  3326. ModuleBanner module_banner = 15;
  3327. // 获取物料失败
  3328. ModuleItemNull module_item_null = 16;
  3329. // 分享组件
  3330. ModuleShareInfo module_share_info = 17;
  3331. // 相关推荐模块
  3332. ModuleRecommend module_recommend = 18;
  3333. // 顶部模块
  3334. ModuleTop module_top = 19;
  3335. // 底部模块
  3336. ModuleButtom module_buttom = 20;
  3337. // 转发卡计数模块
  3338. ModuleStat module_stat_forward = 21;
  3339. //
  3340. ModuleStory module_story = 22;
  3341. //
  3342. ModuleTopic module_topic = 23;
  3343. //
  3344. ModuleTopicDetailsExt module_topic_details_ext = 24;
  3345. //
  3346. ModuleTopTag module_top_tag = 25;
  3347. //
  3348. ModuleTopicBrief module_topic_brief = 26;
  3349. //
  3350. ModuleTitle module_title = 27;
  3351. //
  3352. ModuleButton module_button = 28;
  3353. //
  3354. ModuleNotice module_notice = 29;
  3355. //
  3356. ModuleOpusSummary module_opus_summary = 30;
  3357. //
  3358. ModuleCopyright module_copyright = 31;
  3359. //
  3360. ModuleParagraph module_paragraph = 32;
  3361. //
  3362. ModuleBlocked module_blocked = 33;
  3363. //
  3364. ModuleTextNotice module_text_notice = 34;
  3365. //
  3366. ModuleOpusCollection module_opus_collection = 35;
  3367. }
  3368. }
  3369. // 动态列表-用户模块-广告卡
  3370. message ModuleAd {
  3371. // 广告透传信息
  3372. google.protobuf.Any source_content = 1;
  3373. // 用户模块
  3374. ModuleAuthor module_author = 2;
  3375. //
  3376. int32 ad_content_type = 3;
  3377. //
  3378. string cover_left_text1 = 4;
  3379. //
  3380. string cover_left_text2 = 5;
  3381. //
  3382. string cover_left_text3 = 6;
  3383. }
  3384. // 动态-附加卡模块
  3385. message ModuleAdditional {
  3386. // 类型
  3387. AdditionalType type = 1;
  3388. oneof item {
  3389. // 废弃
  3390. AdditionalPGC pgc = 2;
  3391. //
  3392. AdditionGoods goods = 3;
  3393. // 废弃
  3394. AdditionVote vote = 4;
  3395. //
  3396. AdditionCommon common = 5;
  3397. //
  3398. AdditionEsport esport = 6;
  3399. // 投票
  3400. AdditionVote2 vote2 = 8;
  3401. //
  3402. AdditionUgc ugc = 9;
  3403. // up主预约发布卡
  3404. AdditionUP up = 10;
  3405. //
  3406. AdditionArticle article = 12;
  3407. //
  3408. AdditionLiveRoom live = 13;
  3409. }
  3410. // 附加卡物料ID
  3411. int64 rid = 7;
  3412. //
  3413. bool need_write_calender = 11;
  3414. }
  3415. // 动态-发布人模块
  3416. message ModuleAuthor {
  3417. // 用户mid
  3418. int64 mid = 1;
  3419. // 时间标签
  3420. string ptime_label_text = 2;
  3421. // 用户详情
  3422. UserInfo author = 3;
  3423. // 装扮卡片
  3424. DecorateCard decorate_card = 4;
  3425. // 点击跳转链接
  3426. string uri = 5;
  3427. // 右侧操作区域 - 三点样式
  3428. repeated ThreePointItem tp_list = 6;
  3429. // 右侧操作区域样式枚举
  3430. ModuleAuthorBadgeType badge_type = 7;
  3431. // 右侧操作区域 - 按钮样式
  3432. ModuleAuthorBadgeButton badge_button = 8;
  3433. // 是否关注
  3434. // 1:关注 0:不关注 默认0,注:点赞列表使用,其他场景不使用该字段
  3435. int32 attend = 9;
  3436. // 关注状态
  3437. Relation relation = 10;
  3438. // 右侧操作区域 - 提权样式
  3439. Weight weight = 11;
  3440. // 是否展示关注
  3441. bool show_follow = 12;
  3442. // 是否置顶
  3443. bool is_top = 13;
  3444. // ip属地
  3445. string ptime_location_text = 14;
  3446. //
  3447. bool show_level = 15;
  3448. //
  3449. OnlyFans only_fans = 16;
  3450. }
  3451. // 动态列表渲染部分-用户模块-按钮
  3452. message ModuleAuthorBadgeButton {
  3453. // 图标
  3454. string icon = 1;
  3455. // 文案
  3456. string title = 2;
  3457. // 状态
  3458. int32 state = 3;
  3459. // 物料ID
  3460. int64 id = 4;
  3461. }
  3462. // 右侧操作区域样式枚举
  3463. enum ModuleAuthorBadgeType {
  3464. module_author_badge_type_none = 0; // 占位
  3465. module_author_badge_type_threePoint = 1; // 三点
  3466. module_author_badge_type_button = 2; // 按钮类型
  3467. module_author_badge_type_weight = 3; // 提权
  3468. }
  3469. // 动态列表-用户模块-转发模板
  3470. message ModuleAuthorForward {
  3471. // 展示标题
  3472. repeated ModuleAuthorForwardTitle title = 1;
  3473. // 源卡片跳转链接
  3474. string url = 2;
  3475. // 用户uid
  3476. int64 uid = 3;
  3477. // 时间标签
  3478. string ptime_label_text = 4;
  3479. // 是否展示关注
  3480. bool show_follow = 5;
  3481. // 源up主头像
  3482. string face_url = 6;
  3483. // 双向关系
  3484. Relation relation = 7;
  3485. // 右侧操作区域 - 三点样式
  3486. repeated ThreePointItem tp_list = 8;
  3487. }
  3488. // 动态列表-用户模块-转发模板-title部分
  3489. message ModuleAuthorForwardTitle {
  3490. // 文案
  3491. string text = 1;
  3492. // 跳转链接
  3493. string url = 2;
  3494. }
  3495. // 动态列表-通栏
  3496. message ModuleBanner {
  3497. // 模块标题
  3498. string title = 1;
  3499. // 卡片类型
  3500. ModuleBannerType type = 2;
  3501. // 卡片
  3502. oneof item{
  3503. ModuleBannerUser user = 3;
  3504. }
  3505. // 不感兴趣文案
  3506. string dislike_text = 4;
  3507. // 不感兴趣图标
  3508. string dislike_icon = 5;
  3509. }
  3510. // 动态列表-通栏类型
  3511. enum ModuleBannerType {
  3512. module_banner_type_none = 0; //
  3513. module_banner_type_user = 1; //
  3514. }
  3515. // 动态通栏-用户
  3516. message ModuleBannerUser {
  3517. // 卡片列表
  3518. repeated ModuleBannerUserItem list = 1;
  3519. }
  3520. // 动态通栏-推荐用户卡
  3521. message ModuleBannerUserItem {
  3522. // up主头像
  3523. string face = 1;
  3524. // up主昵称
  3525. string name = 2;
  3526. // up主uid
  3527. int64 uid = 3;
  3528. // 直播状态
  3529. LiveState live_state = 4;
  3530. // 认证信息
  3531. OfficialVerify official = 5;
  3532. // 大会员信息
  3533. VipInfo vip = 6;
  3534. // 标签信息
  3535. string label = 7;
  3536. // 按钮
  3537. AdditionalButton button = 8;
  3538. // 跳转地址
  3539. string uri = 9;
  3540. //
  3541. Relation relation = 10;
  3542. }
  3543. //
  3544. message ModuleBlocked {
  3545. //
  3546. ImageSet icon = 1;
  3547. //
  3548. ImageSet bg_img = 2;
  3549. //
  3550. string hint_message = 3;
  3551. //
  3552. IconButton act_btn = 4;
  3553. //
  3554. MdlBlockedStyle block_style = 5;
  3555. //
  3556. string sub_hint_message = 6;
  3557. //
  3558. OneLineText video_bottom_text_upper = 7;
  3559. //
  3560. OneLineText video_bottom_text_lower = 8;
  3561. //
  3562. string archive_title = 9;
  3563. //
  3564. OneLineText hint_message_one_line = 10;
  3565. }
  3566. // 底部模块
  3567. message ModuleButtom {
  3568. enum InteractionIcon {
  3569. ICON_INVALID = 0;
  3570. ICON_FORWARD = 1;
  3571. ICON_COMMENT = 2;
  3572. ICON_FAVORITE = 3;
  3573. ICON_LIKE = 4;
  3574. }
  3575. // 计数模块
  3576. ModuleStat module_stat = 1;
  3577. //
  3578. bool comment_box = 2;
  3579. //
  3580. string comment_box_msg = 3;
  3581. //
  3582. repeated InteractionIcon interaction_icons = 4;
  3583. //
  3584. repeated InteractionFace faces = 5;
  3585. }
  3586. //
  3587. message ModuleButton {
  3588. //
  3589. IconButton btn = 1;
  3590. }
  3591. // 评论外露模块
  3592. message ModuleComment {
  3593. // 评论外露展示项
  3594. repeated CmtShowItem cmtShowItem = 1;
  3595. }
  3596. //
  3597. message ModuleCopyright {
  3598. //
  3599. string left_text = 1;
  3600. //
  3601. string right_text = 2;
  3602. }
  3603. // 动态-描述文字模块
  3604. message ModuleDesc {
  3605. // 描述信息(已按高亮拆分)
  3606. repeated Description desc = 1;
  3607. // 点击跳转链接
  3608. string jump_uri = 2;
  3609. // 文本原本
  3610. string text = 3;
  3611. }
  3612. // 正文商品卡参数
  3613. message ModuleDescGoods {
  3614. // 商品类型
  3615. // 1:淘宝 2:会员购
  3616. int32 source_type = 1;
  3617. // 跳转链接
  3618. string jump_url = 2;
  3619. // schema_url
  3620. string schema_url = 3;
  3621. // item_id
  3622. int64 item_id = 4;
  3623. // open_white_list
  3624. repeated string open_white_list = 5;
  3625. // use_web_v2
  3626. bool user_web_v2 = 6;
  3627. // ad mark
  3628. string ad_mark = 7;
  3629. // schemaPackageName(Android用)
  3630. string schema_package_name = 8;
  3631. //
  3632. int32 jump_type = 9;
  3633. //
  3634. string app_name = 10;
  3635. }
  3636. // 动态-争议小黄条模块
  3637. message ModuleDispute {
  3638. // 标题
  3639. string title = 1;
  3640. // 描述内容
  3641. string desc = 2;
  3642. // 跳转链接
  3643. string uri = 3;
  3644. }
  3645. // 动态-详情模块
  3646. message ModuleDynamic {
  3647. // 类型
  3648. ModuleDynamicType type = 1;
  3649. oneof module_item {
  3650. //稿件
  3651. MdlDynArchive dyn_archive = 2;
  3652. //pgc
  3653. MdlDynPGC dyn_pgc = 3;
  3654. //付费课程-系列
  3655. MdlDynCourSeason dyn_cour_season = 4;
  3656. //付费课程-批次
  3657. MdlDynCourBatch dyn_cour_batch = 5;
  3658. //转发卡
  3659. MdlDynForward dyn_forward = 6;
  3660. //图文
  3661. MdlDynDraw dyn_draw = 7;
  3662. //专栏
  3663. MdlDynArticle dyn_article = 8;
  3664. //音频
  3665. MdlDynMusic dyn_music = 9;
  3666. //通用卡方
  3667. MdlDynCommon dyn_common = 10;
  3668. //直播卡
  3669. MdlDynLive dyn_common_live = 11;
  3670. //播单
  3671. MdlDynMedialist dyn_medialist = 12;
  3672. //小程序卡
  3673. MdlDynApplet dyn_applet = 13;
  3674. //订阅卡
  3675. MdlDynSubscription dyn_subscription = 14;
  3676. //直播推荐卡
  3677. MdlDynLiveRcmd dyn_live_rcmd = 15;
  3678. //UGC合集
  3679. MdlDynUGCSeason dyn_ugc_season = 16;
  3680. //订阅卡
  3681. MdlDynSubscriptionNew dyn_subscription_new = 17;
  3682. //课程
  3683. MdlDynCourUp dyn_cour_batch_up = 18;
  3684. //话题集合
  3685. MdlDynTopicSet dyn_topic_set = 19;
  3686. }
  3687. }
  3688. // 动态详情模块类型
  3689. enum ModuleDynamicType {
  3690. mdl_dyn_archive = 0; // 稿件
  3691. mdl_dyn_pgc = 1; // pgc
  3692. mdl_dyn_cour_season = 2; // 付费课程-系列
  3693. mdl_dyn_cour_batch = 3; // 付费课程-批次
  3694. mdl_dyn_forward = 4; // 转发卡
  3695. mdl_dyn_draw = 5; // 图文
  3696. mdl_dyn_article = 6; // 专栏
  3697. mdl_dyn_music = 7; // 音频
  3698. mdl_dyn_common = 8; // 通用卡方
  3699. mdl_dyn_live = 9; // 直播卡
  3700. mdl_dyn_medialist = 10; // 播单
  3701. mdl_dyn_applet = 11; // 小程序卡
  3702. mdl_dyn_subscription = 12; // 订阅卡
  3703. mdl_dyn_live_rcmd = 13; // 直播推荐卡
  3704. mdl_dyn_ugc_season = 14; // UGC合集
  3705. mdl_dyn_subscription_new = 15; // 订阅卡
  3706. mdl_dyn_cour_batch_up = 16; // 课程
  3707. mdl_dyn_topic_set = 17; // 话题集合
  3708. }
  3709. // 动态-小卡模块
  3710. message ModuleExtend {
  3711. // 详情
  3712. repeated ModuleExtendItem extend = 1;
  3713. // 模块整体跳转uri
  3714. string uri = 2; // 废弃
  3715. }
  3716. // 动态-拓展小卡模块
  3717. message ModuleExtendItem {
  3718. // 类型
  3719. DynExtendType type = 1;
  3720. // 卡片详情
  3721. oneof extend {
  3722. // 废弃
  3723. ExtInfoTopic ext_info_topic = 2;
  3724. // 废弃
  3725. ExtInfoLBS ext_info_lbs = 3;
  3726. // 废弃
  3727. ExtInfoHot ext_info_hot = 4;
  3728. // 废弃
  3729. ExtInfoGame ext_info_game = 5;
  3730. //
  3731. ExtInfoCommon ext_info_common = 6;
  3732. //
  3733. ExtInfoOGV ext_info_ogv = 7;
  3734. }
  3735. }
  3736. // 动态-折叠模块
  3737. message ModuleFold {
  3738. // 折叠分类
  3739. FoldType fold_type = 1;
  3740. // 折叠文案
  3741. string text = 2;
  3742. // 被折叠的动态
  3743. string fold_ids = 3;
  3744. // 被折叠的用户信息
  3745. repeated UserInfo fold_users = 4;
  3746. //
  3747. TopicMergedResource topic_merged_resource = 5;
  3748. }
  3749. // 外露交互模块
  3750. message ModuleInteraction {
  3751. // 外露交互模块
  3752. repeated InteractionItem interaction_item = 1;
  3753. }
  3754. // 获取物料失败模块
  3755. message ModuleItemNull {
  3756. // 图标
  3757. string icon = 1;
  3758. // 文案
  3759. string text = 2;
  3760. }
  3761. // 动态-点赞用户模块
  3762. message ModuleLikeUser {
  3763. // 点赞用户
  3764. repeated LikeUser like_users = 1;
  3765. // 文案
  3766. string display_text = 2;
  3767. }
  3768. //
  3769. message ModuleNotice {
  3770. //
  3771. string identity = 1;
  3772. //
  3773. string icon = 2;
  3774. //
  3775. string title = 3;
  3776. //
  3777. string url = 4;
  3778. //
  3779. int32 notice_type = 5;
  3780. }
  3781. //
  3782. message ModuleOpusCollection {
  3783. //
  3784. OpusCollection collection_info = 1;
  3785. //
  3786. string title_upper = 2;
  3787. //
  3788. string title = 3;
  3789. //
  3790. string title_prefix_icon = 4;
  3791. //
  3792. string total_text = 5;
  3793. }
  3794. //
  3795. message ModuleOpusSummary {
  3796. //
  3797. Paragraph title = 1;
  3798. //
  3799. Paragraph summary = 2;
  3800. //
  3801. string summary_jump_btn_text = 3;
  3802. //
  3803. repeated MdlDynDrawItem covers = 4;
  3804. }
  3805. //
  3806. message ModuleParagraph {
  3807. //
  3808. Paragraph paragraph = 1;
  3809. //
  3810. bool is_article_title = 2;
  3811. //
  3812. ParaSpacing para_spacing = 3;
  3813. }
  3814. // 推荐模块
  3815. message ModuleRcmd {
  3816. // 用户头像
  3817. RcmdAuthor author = 1;
  3818. // 推荐卡片列表
  3819. repeated RcmdItem items = 2;
  3820. // 透传到客户端的埋点字段
  3821. string server_info = 3;
  3822. }
  3823. // 相关推荐模块
  3824. message ModuleRecommend {
  3825. // 模块标题
  3826. string module_title = 1;
  3827. // 图片
  3828. string image = 2;
  3829. // 标签
  3830. string tag = 3;
  3831. // 标题
  3832. string title = 4;
  3833. // 跳转链接
  3834. string jump_url = 5;
  3835. // 序列化的广告信息
  3836. repeated google.protobuf.Any ad = 6;
  3837. }
  3838. // 分享模块
  3839. message ModuleShareInfo {
  3840. // 展示标题
  3841. string title = 1;
  3842. // 分享组件列表
  3843. repeated ShareChannel share_channels = 2;
  3844. // share_origin
  3845. string share_origin = 3;
  3846. // 业务id
  3847. string oid = 4;
  3848. // sid
  3849. string sid = 5;
  3850. }
  3851. // 动态-计数模块
  3852. message ModuleStat {
  3853. // 转发数
  3854. int64 repost = 1;
  3855. // 点赞数
  3856. int64 like = 2;
  3857. // 评论数
  3858. int64 reply = 3;
  3859. // 点赞拓展信息
  3860. LikeInfo like_info = 4;
  3861. // 禁评
  3862. bool no_comment = 5;
  3863. // 禁转
  3864. bool no_forward = 6;
  3865. // 点击评论跳转链接
  3866. string reply_url = 7;
  3867. // 禁评文案
  3868. string no_comment_text = 8;
  3869. // 禁转文案
  3870. string no_forward_text = 9;
  3871. }
  3872. //
  3873. message ModuleStory {
  3874. //
  3875. string title = 1;
  3876. //
  3877. repeated StoryItem items = 2;
  3878. //
  3879. bool show_publish_entrance = 3;
  3880. //
  3881. int64 fold_state = 4;
  3882. //
  3883. string uri = 5;
  3884. //
  3885. string cover = 6;
  3886. //
  3887. string publish_text = 7;
  3888. }
  3889. //
  3890. message ModuleTextNotice {
  3891. //
  3892. OneLineText notice = 1;
  3893. }
  3894. //
  3895. message ModuleTitle {
  3896. //
  3897. string title = 1;
  3898. //
  3899. IconButton right_btn = 2;
  3900. //
  3901. int32 title_style = 3;
  3902. }
  3903. // 顶部模块
  3904. message ModuleTop {
  3905. // 三点模块
  3906. repeated ThreePointItem tp_list = 1;
  3907. //
  3908. MdlDynArchive archive = 2;
  3909. //
  3910. ModuleAuthor author = 3;
  3911. //
  3912. bool hidden_nav_bar = 4;
  3913. }
  3914. //
  3915. message ModuleTopic {
  3916. //
  3917. int64 id = 1;
  3918. //
  3919. string name = 2;
  3920. //
  3921. string url = 3;
  3922. }
  3923. //
  3924. message ModuleTopicBrief {
  3925. //
  3926. TopicItem topic = 1;
  3927. }
  3928. //
  3929. message ModuleTopicDetailsExt {
  3930. //
  3931. string comment_guide = 1;
  3932. }
  3933. //
  3934. message ModuleTopTag {
  3935. //
  3936. string tag_name = 1;
  3937. }
  3938. // 认证名牌
  3939. message Nameplate {
  3940. // nid
  3941. int64 nid = 1;
  3942. // 名称
  3943. string name = 2;
  3944. // 图片地址
  3945. string image = 3;
  3946. // 小图地址
  3947. string image_small = 4;
  3948. // 等级
  3949. string level = 5;
  3950. // 获取条件
  3951. string condition = 6;
  3952. }
  3953. enum NetworkType {
  3954. NT_UNKNOWN = 0; //
  3955. WIFI = 1; //
  3956. CELLULAR = 2; //
  3957. OFFLINE = 3; //
  3958. OTHERNET = 4; //
  3959. ETHERNET = 5; //
  3960. }
  3961. // 最新ep
  3962. message NewEP {
  3963. // 最新话epid
  3964. int32 id = 1;
  3965. // 更新至XX话
  3966. string index_show = 2;
  3967. // 更新剧集的封面
  3968. string cover = 3;
  3969. }
  3970. //
  3971. message NFTInfo {
  3972. //
  3973. NFTRegionType region_type = 1;
  3974. //
  3975. string region_icon = 2;
  3976. //
  3977. NFTShowStatus region_show_status = 3;
  3978. }
  3979. //
  3980. enum NFTRegionType {
  3981. nft_region_default = 0;
  3982. nft_region_mainlang = 1;
  3983. nft_region_gat = 2;
  3984. }
  3985. //
  3986. enum NFTShowStatus {
  3987. nft_show_default = 0;
  3988. nft_show_zoominmainlang = 1;
  3989. nft_show_raw = 2;
  3990. }
  3991. // 空响应
  3992. message NoReply {
  3993. }
  3994. // 空请求
  3995. message NoReq {
  3996. }
  3997. //
  3998. message NoteVideoTS {
  3999. //
  4000. int64 cid = 1;
  4001. //
  4002. int64 oid_type = 2;
  4003. //
  4004. int64 status = 3;
  4005. //
  4006. int64 index = 4;
  4007. //
  4008. int64 seconds = 5;
  4009. //
  4010. int64 cid_count = 6;
  4011. //
  4012. string key = 7;
  4013. //
  4014. int64 epid = 9;
  4015. //
  4016. string title = 8;
  4017. //
  4018. string desc = 10;
  4019. }
  4020. //
  4021. message OfficialAccountInfo {
  4022. //
  4023. UserInfo author = 1;
  4024. //
  4025. int64 mid = 2;
  4026. //
  4027. string uri = 3;
  4028. //
  4029. Relation relation = 4;
  4030. //
  4031. string desc_text1 = 5;
  4032. //
  4033. string desc_text2 = 6;
  4034. }
  4035. //
  4036. message OfficialAccountsReply {
  4037. //
  4038. repeated OfficialAccountInfo items = 1;
  4039. //
  4040. bool has_more = 2;
  4041. //
  4042. int64 offset = 3;
  4043. }
  4044. //
  4045. message OfficialAccountsReq {
  4046. //
  4047. int64 campus_id = 1;
  4048. //
  4049. string campus_name = 2;
  4050. //
  4051. int64 offset = 3;
  4052. }
  4053. //
  4054. message OfficialDynamicsReply {
  4055. //
  4056. repeated OfficialItem items = 1;
  4057. //
  4058. int64 offset = 2;
  4059. //
  4060. bool has_more = 3;
  4061. //
  4062. bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
  4063. }
  4064. //
  4065. message OfficialDynamicsReq {
  4066. //
  4067. int64 campus_id = 1;
  4068. //
  4069. string campus_name = 2;
  4070. //
  4071. int64 offset = 3;
  4072. }
  4073. message OfficialItem {
  4074. int32 type = 1;
  4075. oneof rcmd_item {
  4076. OfficialRcmdArchive rcmd_archive = 2;
  4077. OfficialRcmdDynamic rcmd_dynamic = 3;
  4078. };
  4079. }
  4080. //
  4081. message OfficialRcmdArchive {
  4082. //
  4083. string title = 1;
  4084. //
  4085. string cover = 2;
  4086. //
  4087. string cover_right_text = 3;
  4088. //
  4089. int32 desc_icon1 = 4;
  4090. //
  4091. string desc_text1 = 5;
  4092. //
  4093. int32 desc_icon2 = 6;
  4094. //
  4095. string desc_text2 = 7;
  4096. //
  4097. string reason = 8;
  4098. //
  4099. bool show_three_point = 9;
  4100. //
  4101. string uri = 10;
  4102. //
  4103. int64 aid = 11;
  4104. //
  4105. int64 mid = 12;
  4106. //
  4107. string name = 13;
  4108. //
  4109. int64 dynamic_id = 14;
  4110. //
  4111. int64 cid = 15;
  4112. }
  4113. //
  4114. message OfficialRcmdDynamic {
  4115. //
  4116. string title = 1;
  4117. //
  4118. string cover = 2;
  4119. //
  4120. string cover_right_top_text = 3;
  4121. //
  4122. int32 desc_icon1 = 4;
  4123. //
  4124. string desc_text1 = 5;
  4125. //
  4126. int32 desc_icon2 = 6;
  4127. //
  4128. string desc_text2 = 7;
  4129. //
  4130. string reason = 8;
  4131. //
  4132. string uri = 9;
  4133. //
  4134. int64 dynamic_id = 10;
  4135. //
  4136. int64 mid = 11;
  4137. //
  4138. string user_name = 12;
  4139. //
  4140. int64 rid = 13;
  4141. }
  4142. // 认证信息
  4143. message OfficialVerify {
  4144. // 127:未认证 0:个人 1:机构
  4145. int32 type = 1;
  4146. // 认证描述
  4147. string desc = 2;
  4148. // 是否关注
  4149. int32 is_atten = 3;
  4150. }
  4151. //
  4152. message OneLineText {
  4153. //
  4154. repeated TextWithPriority texts = 1;
  4155. }
  4156. //
  4157. message OnlyFans {
  4158. //
  4159. bool is_only_fans = 1;
  4160. //
  4161. IconBadge badge = 2;
  4162. }
  4163. //
  4164. message OnlyFansProperty {
  4165. //
  4166. bool has_privilege = 1;
  4167. //
  4168. bool is_only_fans = 2;
  4169. }
  4170. //
  4171. message OpusCollection {
  4172. //
  4173. int64 collection_id = 1;
  4174. //
  4175. OneLineText title = 2;
  4176. //
  4177. string detail_uri = 3;
  4178. //
  4179. string intro = 4;
  4180. //
  4181. repeated OpusCollectionItem all_items = 5;
  4182. }
  4183. //
  4184. message OpusCollectionItem {
  4185. //
  4186. int64 opus_id = 1;
  4187. //
  4188. string title = 2;
  4189. //
  4190. string pub_time = 3;
  4191. //
  4192. string uri = 4;
  4193. //
  4194. bool is_selected_highlight = 5;
  4195. }
  4196. //
  4197. message Paragraph {
  4198. //
  4199. message ListFormat {
  4200. //
  4201. int32 level = 1;
  4202. //
  4203. int32 order = 2;
  4204. //
  4205. string theme = 3;
  4206. }
  4207. enum ParagraphAlign {
  4208. LEFT = 0;
  4209. MIDDLE = 1;
  4210. RIGHT = 2;
  4211. }
  4212. //
  4213. message ParagraphFormat {
  4214. //
  4215. ParagraphAlign align = 1;
  4216. //
  4217. ListFormat list_format = 2;
  4218. }
  4219. //
  4220. enum ParagraphType {
  4221. INVALID = 0;
  4222. TEXT = 1;
  4223. PICTURES = 2;
  4224. LINE = 3;
  4225. REFERENCE = 4;
  4226. SORTED_LIST = 5;
  4227. UNSORTED_LIST = 6;
  4228. LINK_CARD = 7;
  4229. }
  4230. //
  4231. ParagraphType para_type = 1;
  4232. //
  4233. ParagraphFormat para_format = 2;
  4234. //
  4235. oneof content {
  4236. TextParagraph text = 3;
  4237. PicParagraph pic = 4;
  4238. LineParagraph line = 5;
  4239. CardParagraph link_card = 6;
  4240. }
  4241. }
  4242. //
  4243. message ParaSpacing {
  4244. //
  4245. double spacing_before_para = 1;
  4246. //
  4247. double spacing_after_para = 2;
  4248. //
  4249. double line_spacing = 3;
  4250. }
  4251. // PGC单季信息
  4252. message PGCSeason {
  4253. // 是否完结
  4254. int32 is_finish = 1;
  4255. // 标题
  4256. string title = 2;
  4257. // 类型
  4258. int32 type = 3;
  4259. }
  4260. //
  4261. message PicParagraph {
  4262. //
  4263. enum PicParagraphStyle {
  4264. INVALID = 0;
  4265. NINE_CELL = 1;
  4266. BIG_SCROLL = 2;
  4267. }
  4268. //
  4269. MdlDynDraw pics = 1;
  4270. //
  4271. PicParagraphStyle style = 2;
  4272. }
  4273. // 秒开通用参数
  4274. message PlayurlParam {
  4275. // 清晰度
  4276. int32 qn = 1;
  4277. // 流版本
  4278. int32 fnver = 2;
  4279. // 流类型
  4280. int32 fnval = 3;
  4281. // 是否强制使用域名
  4282. int32 force_host = 4;
  4283. // 是否4k
  4284. int32 fourk = 5;
  4285. }
  4286. //
  4287. message Popup {
  4288. //
  4289. string title = 1;
  4290. //
  4291. string desc = 2;
  4292. //
  4293. string uri = 3;
  4294. }
  4295. //
  4296. message RcmdArchive {
  4297. // 标题
  4298. string title = 1;
  4299. // 封面图
  4300. string cover = 2;
  4301. // 视频封面展示项 1
  4302. CoverIcon cover_left_icon_1 = 3;
  4303. // 视频封面展示项 1
  4304. string cover_left_text_1 = 4;
  4305. // 秒开地址
  4306. string uri = 5;
  4307. // 是否PGC
  4308. bool is_pgc = 6;
  4309. // aid
  4310. int64 aid = 7;
  4311. //
  4312. IconBadge badge = 8;
  4313. //
  4314. int32 cover_left_icon2 = 9;
  4315. //
  4316. string cover_left_text2 = 10;
  4317. //
  4318. int32 cover_left_icon3 = 11;
  4319. //
  4320. string cover_left_text3 = 12;
  4321. }
  4322. // 推荐UP主用户模块
  4323. message RcmdAuthor {
  4324. // 用户详情
  4325. UserInfo author = 1;
  4326. // 描述:粉丝数、推荐理由
  4327. string desc = 2;
  4328. // 关注状态
  4329. Relation relation = 3;
  4330. }
  4331. //
  4332. message RcmdCampusBrief {
  4333. //
  4334. int64 campus_id = 1;
  4335. //
  4336. string campus_name = 2;
  4337. //
  4338. string campus_badge = 4;
  4339. //
  4340. string url = 5;
  4341. }
  4342. // 推荐卡片列表
  4343. message RcmdItem {
  4344. // 卡片类型
  4345. RcmdType type = 1;
  4346. // 卡片列表
  4347. oneof rcmd_item {
  4348. //
  4349. RcmdArchive rcmd_archive = 2;
  4350. }
  4351. }
  4352. // 分区聚类推荐选项
  4353. message RcmdOption{
  4354. // 视频是否展示标题
  4355. bool show_title = 1;
  4356. }
  4357. //
  4358. message RcmdReason {
  4359. //
  4360. string campus_name = 1;
  4361. //
  4362. RcmdReasonStyle style = 2;
  4363. //
  4364. string rcmd_reason = 3;
  4365. //
  4366. string up_name = 4;
  4367. }
  4368. //
  4369. enum RcmdReasonStyle {
  4370. rcmd_reason_style_none = 0;
  4371. rcmd_reason_style_campus_nearby = 1;
  4372. rcmd_reason_style_campus_up = 2;
  4373. rcmd_reason_style_campus_near_up_mix = 3;
  4374. }
  4375. //
  4376. message RcmdTopButton {
  4377. //
  4378. string text = 1;
  4379. //
  4380. string url = 2;
  4381. }
  4382. // 推荐模块数据类型
  4383. enum RcmdType {
  4384. rcmd_archive = 0; // 稿件
  4385. rcmd_dynamic = 1; // 动态
  4386. }
  4387. // 推荐up主入参
  4388. message RcmdUPsParam {
  4389. int64 dislike_ts = 1;
  4390. }
  4391. message ReactionListItem {
  4392. // 用户信息
  4393. UserInfo user = 1;
  4394. // 关注关系
  4395. Relation relation = 2;
  4396. // 显示文字
  4397. string act_text = 3;
  4398. //
  4399. string rcmd_reason = 4;
  4400. }
  4401. // 新版动态转发点赞列表-响应
  4402. message ReactionListReply {
  4403. // 标题
  4404. string title = 1;
  4405. // 列表
  4406. repeated ReactionListItem list = 2;
  4407. // 偏移
  4408. string offset = 3;
  4409. // 是否还有更多
  4410. bool has_more = 4;
  4411. }
  4412. // 新版动态转发点赞列表-请求
  4413. message ReactionListReq {
  4414. // 动态ID
  4415. int64 dynamic_id = 1;
  4416. // 动态类型
  4417. int64 dyn_type = 2;
  4418. // 业务方资源id
  4419. int64 rid = 3;
  4420. // 偏移,使用上一页回包中的offset字段;第一页不传。
  4421. string offset = 4;
  4422. }
  4423. // 刷新方式
  4424. enum Refresh {
  4425. refresh_new = 0; // 刷新列表
  4426. refresh_history = 1; // 请求历史
  4427. }
  4428. // 关注关系
  4429. message Relation {
  4430. // 关注状态
  4431. RelationStatus status = 1;
  4432. // 关注
  4433. int32 is_follow = 2;
  4434. // 被关注
  4435. int32 is_followed = 3;
  4436. // 文案
  4437. string title = 4;
  4438. }
  4439. // 关注关系 枚举
  4440. enum RelationStatus {
  4441. // 1-未关注 2-关注 3-被关注 4-互相关注 5-特别关注
  4442. relation_status_none = 0;
  4443. relation_status_nofollow = 1;
  4444. relation_status_follow = 2;
  4445. relation_status_followed = 3;
  4446. relation_status_mutual_concern = 4;
  4447. relation_status_special = 5;
  4448. }
  4449. // 转发列表-请求
  4450. message RepostListReq {
  4451. // 动态ID
  4452. string dynamic_id = 1;
  4453. // 动态类型
  4454. int64 dyn_type = 2;
  4455. // 业务方资源id
  4456. int64 rid = 3;
  4457. // 偏移,使用上一页回包中的offset字段;第一页不传。
  4458. string offset = 4;
  4459. // 来源
  4460. string from = 5;
  4461. // 评论类型
  4462. RepostType repost_type = 6;
  4463. }
  4464. // 转发列表-响应
  4465. message RepostListRsp {
  4466. // 列表
  4467. repeated DynamicItem list = 1;
  4468. // 偏移
  4469. string offset = 2;
  4470. // 是否还有更多
  4471. bool has_more = 3;
  4472. // 转发总数
  4473. int64 total_count = 4;
  4474. // 评论类型
  4475. RepostType repost_type = 5;
  4476. }
  4477. // 评论类型
  4478. enum RepostType {
  4479. repost_hot = 0; // 热门评论
  4480. repost_general = 1; // 普通评论
  4481. }
  4482. //
  4483. enum ReserveRelationLotteryType {
  4484. reserve_relation_lottery_type_default = 0; //
  4485. reserve_relation_lottery_type_cron = 1; //
  4486. }
  4487. //
  4488. enum ReserveType {
  4489. reserve_none = 0; // 占位
  4490. reserve_recall = 1; // 预约召回
  4491. }
  4492. enum RouterAction {
  4493. OPEN = 0;
  4494. EMBED = 1;
  4495. }
  4496. //
  4497. message SchoolRecommendReply {
  4498. //
  4499. repeated CampusInfo items = 1;
  4500. }
  4501. //
  4502. message SchoolRecommendReq {
  4503. //
  4504. float lat = 1;
  4505. //
  4506. float lng = 2;
  4507. //
  4508. CampusReqFromType from_type = 3;
  4509. }
  4510. //
  4511. message SchoolSearchReply {
  4512. //
  4513. repeated CampusInfo items = 1;
  4514. //
  4515. SearchToast toast = 2;
  4516. }
  4517. //
  4518. message SchoolSearchReq {
  4519. //
  4520. string keyword = 1;
  4521. //
  4522. CampusReqFromType from_type = 2;
  4523. }
  4524. //
  4525. message SearchChannel {
  4526. //
  4527. string title = 1;
  4528. //
  4529. SearchTopicButton more_button = 2;
  4530. //
  4531. repeated ChannelInfo channels = 3;
  4532. }
  4533. //
  4534. message SearchInfo {
  4535. //
  4536. string title = 1;
  4537. //
  4538. repeated DynamicItem list = 2;
  4539. //
  4540. string track_id = 3;
  4541. //
  4542. int64 total = 4;
  4543. //
  4544. bool has_more = 5;
  4545. //
  4546. string version = 6;
  4547. }
  4548. //
  4549. message SearchToast {
  4550. //
  4551. string desc_text1 = 1;
  4552. //
  4553. string desc_text2 = 2;
  4554. }
  4555. //
  4556. message SearchTopic {
  4557. //
  4558. string title = 1;
  4559. //
  4560. SearchTopicButton more_button = 2;
  4561. //
  4562. repeated SearchTopicItem items = 3;
  4563. }
  4564. //
  4565. message SearchTopicButton {
  4566. //
  4567. string title = 1;
  4568. //
  4569. string jump_uri = 2;
  4570. }
  4571. //
  4572. message SearchTopicItem {
  4573. //
  4574. int64 topic_id = 1;
  4575. //
  4576. string topic_name = 2;
  4577. //
  4578. string desc = 3;
  4579. //
  4580. string url = 4;
  4581. //
  4582. bool is_activity = 5;
  4583. }
  4584. //
  4585. message SetDecisionReq {
  4586. //
  4587. int32 result = 1;
  4588. //
  4589. CampusReqFromType from_type = 2;
  4590. }
  4591. //
  4592. message SetRecentCampusReq {
  4593. //
  4594. int64 campus_id = 1;
  4595. //
  4596. string campus_name = 2;
  4597. //
  4598. CampusReqFromType from_type = 3;
  4599. }
  4600. // 分享渠道组件
  4601. message ShareChannel {
  4602. // 分享名称
  4603. string name = 1;
  4604. // 分享按钮图片
  4605. string image = 2;
  4606. // 分享渠道
  4607. string channel = 3;
  4608. // 预约卡分享图信息,仅分享有预约信息的动态时存在
  4609. ShareReserve reserve = 4;
  4610. }
  4611. // 预约卡分享图信息
  4612. message ShareReserve {
  4613. // 展示标题
  4614. string title = 1;
  4615. // 描述(时间+类型)
  4616. string desc = 2;
  4617. // 二维码附带icon
  4618. string qr_code_icon = 3;
  4619. // 二维码附带文本
  4620. string qr_code_text = 4;
  4621. // 二维码url
  4622. string qr_code_url = 5;
  4623. //
  4624. AdditionUserInfo user_info = 6;
  4625. }
  4626. //
  4627. enum ShowType {
  4628. show_type_none = 0; //
  4629. show_type_backup = 1; //
  4630. }
  4631. // 排序类型
  4632. message SortType {
  4633. // 排序策略
  4634. // 1:推荐排序 2:最常访问 3:最近关注
  4635. int32 sort_type = 1;
  4636. // 排序策略名称
  4637. string sort_type_name = 2;
  4638. }
  4639. //
  4640. message StoryArchive {
  4641. //
  4642. string cover = 1;
  4643. //
  4644. int64 aid = 2;
  4645. //
  4646. string uri = 3;
  4647. //
  4648. Dimension dimension = 4;
  4649. }
  4650. //
  4651. message StoryItem {
  4652. //
  4653. UserInfo author = 1;
  4654. //
  4655. string desc = 2;
  4656. //
  4657. int64 status = 3;
  4658. //
  4659. int32 type = 4;
  4660. oneof rcmd_item {
  4661. //
  4662. StoryArchive story_archive = 5;
  4663. }
  4664. }
  4665. //
  4666. enum StyleType {
  4667. STYLE_TYPE_NONE = 0; //
  4668. STYLE_TYPE_LIVE = 1; //
  4669. STYLE_TYPE_DYN_UP = 2; //
  4670. }
  4671. //
  4672. message SubscribeCampusReq {
  4673. //
  4674. int64 campus_id = 1;
  4675. //
  4676. string campus_name = 2;
  4677. //
  4678. CampusReqFromType from_type = 3;
  4679. }
  4680. //
  4681. message TextNode {
  4682. enum TextNodeType {
  4683. INVALID = 0;
  4684. WORDS = 1;
  4685. EMOTE = 2;
  4686. AT = 3;
  4687. BIZ_LINK = 4;
  4688. }
  4689. //
  4690. TextNodeType node_type = 1;
  4691. string raw_text = 2;
  4692. //
  4693. oneof text {
  4694. WordNode word = 3;
  4695. EmoteNode emote = 4;
  4696. LinkNode link = 5;
  4697. }
  4698. }
  4699. //
  4700. message TextParagraph {
  4701. //
  4702. repeated TextNode nodes = 1;
  4703. }
  4704. //
  4705. message TextWithPriority {
  4706. //
  4707. string text = 1;
  4708. //
  4709. int64 priority = 2;
  4710. }
  4711. // 免流类型
  4712. enum TFType {
  4713. TF_UNKNOWN = 0; // 未知
  4714. U_CARD = 1; // 联通卡
  4715. U_PKG = 2; // 联通免流包
  4716. C_CARD = 3; // 移动卡
  4717. C_PKG = 4; // 移动免流包
  4718. T_CARD = 5; // 电信卡
  4719. T_PKG = 6; // 电信免流包
  4720. }
  4721. // 三点-关注
  4722. message ThreePointAttention {
  4723. // attention icon
  4724. string attention_icon = 1;
  4725. // 关注时显示的文案
  4726. string attention_text = 2;
  4727. // not attention icon
  4728. string not_attention_icon = 3;
  4729. // 未关注时显示的文案
  4730. string not_attention_text = 4;
  4731. // 当前关注状态
  4732. ThreePointAttentionStatus status = 5;
  4733. }
  4734. // 枚举-三点关注状态
  4735. enum ThreePointAttentionStatus {
  4736. tp_not_attention = 0; //
  4737. tp_attention = 1; //
  4738. }
  4739. // 三点-自动播放 旧版不维护
  4740. message ThreePointAutoPlay {
  4741. // open icon
  4742. string open_icon = 1;
  4743. // 开启时显示文案
  4744. string open_text = 2;
  4745. // close icon
  4746. string close_icon = 3;
  4747. // 关闭时显示文案
  4748. string close_text = 4;
  4749. // 开启时显示文案v2
  4750. string open_text_v2 = 5;
  4751. // 关闭时显示文案v2
  4752. string close_text_v2 = 6;
  4753. // 仅wifi/免流 icon
  4754. string only_icon = 7;
  4755. // 仅wifi/免流 文案
  4756. string only_text = 8;
  4757. // open icon v2
  4758. string open_icon_v2 = 9;
  4759. // close icon v2
  4760. string close_icon_v2 = 10;
  4761. }
  4762. // 三点-评论
  4763. message ThreePointComment {
  4764. // 精选评论区功能
  4765. CommentDetail up_selection = 1;
  4766. // up关闭评论区功能
  4767. CommentDetail up_close = 2;
  4768. // icon
  4769. string icon = 3;
  4770. // 标题
  4771. string title = 4;
  4772. }
  4773. // 三点-默认结构(使用此背景、举报、删除)
  4774. message ThreePointDefault {
  4775. // icon
  4776. string icon = 1;
  4777. // 标题
  4778. string title = 2;
  4779. // 跳转链接
  4780. string uri = 3;
  4781. // id
  4782. string id = 4;
  4783. //
  4784. ThreePointDefaultToast toast = 5;
  4785. }
  4786. //
  4787. message ThreePointDefaultToast {
  4788. //
  4789. string title = 1;
  4790. //
  4791. string desc = 2;
  4792. }
  4793. // 三点-不感兴趣
  4794. message ThreePointDislike {
  4795. // icon
  4796. string icon = 1;
  4797. // 标题
  4798. string title = 2;
  4799. }
  4800. // 三点-收藏
  4801. message ThreePointFavorite {
  4802. // icon
  4803. string icon = 1;
  4804. // 标题
  4805. string title = 2;
  4806. // 物料ID
  4807. int64 id = 3;
  4808. // 是否订阅
  4809. bool is_favourite = 4;
  4810. // 取消收藏图标
  4811. string cancel_icon = 5;
  4812. // 取消收藏文案
  4813. string cancel_title = 6;
  4814. }
  4815. //
  4816. message ThreePointHide {
  4817. //
  4818. string icon = 1;
  4819. //
  4820. string title = 2;
  4821. //
  4822. ThreePointHideInteractive interactive = 3;
  4823. //
  4824. int64 blook_fid = 4;
  4825. //
  4826. string blook_type = 5;
  4827. }
  4828. //
  4829. message ThreePointHideInteractive {
  4830. //
  4831. string title = 1;
  4832. //
  4833. string confirm = 2;
  4834. //
  4835. string cancel = 3;
  4836. //
  4837. string toast = 4;
  4838. }
  4839. // 三点Item
  4840. message ThreePointItem {
  4841. //类型
  4842. ThreePointType type = 1;
  4843. oneof item {
  4844. // 默认结构
  4845. ThreePointDefault default = 2;
  4846. // 自动播放
  4847. ThreePointAutoPlay auto_player = 3;
  4848. // 分享
  4849. ThreePointShare share = 4;
  4850. // 关注
  4851. ThreePointAttention attention = 5;
  4852. // 稍后在看
  4853. ThreePointWait wait = 6;
  4854. // 不感兴趣
  4855. ThreePointDislike dislike = 7;
  4856. // 收藏
  4857. ThreePointFavorite favorite = 8;
  4858. // 置顶
  4859. ThreePointTop top = 9;
  4860. // 评论
  4861. ThreePointComment comment = 10;
  4862. //
  4863. ThreePointHide hide = 11;
  4864. //
  4865. ThreePointTopicIrrelevant topic_irrelevant = 12;
  4866. }
  4867. }
  4868. // 三点-分享
  4869. message ThreePointShare {
  4870. // icon
  4871. string icon = 1;
  4872. // 标题
  4873. string title = 2;
  4874. // 分享渠道
  4875. repeated ThreePointShareChannel channel = 3;
  4876. // 分享渠道名
  4877. string channel_name = 4;
  4878. // 预约卡分享图信息,仅分享有预约信息的动态时存在
  4879. ShareReserve reserve = 5;
  4880. }
  4881. // 三点-分享渠道
  4882. message ThreePointShareChannel {
  4883. // icon
  4884. string icon = 1;
  4885. // 名称
  4886. string title = 2;
  4887. }
  4888. // 三点-置顶
  4889. message ThreePointTop {
  4890. // icon
  4891. string icon = 1;
  4892. // 标题
  4893. string title = 2;
  4894. // 状态
  4895. TopType type = 3;
  4896. }
  4897. //
  4898. message ThreePointTopicIrrelevant {
  4899. //
  4900. string icon = 1;
  4901. //
  4902. string title = 2;
  4903. //
  4904. string toast = 3;
  4905. //
  4906. int64 topic_id = 4;
  4907. //
  4908. int64 res_id = 5;
  4909. //
  4910. int64 res_type = 6;
  4911. //
  4912. string reason = 7;
  4913. }
  4914. // 三点类型
  4915. enum ThreePointType {
  4916. tp_none = 0; // 占位
  4917. background = 1; // 使用此背景
  4918. auto_play = 2; // 自动播放
  4919. share = 3; // 分享
  4920. wait = 4; // 稍后再播
  4921. attention = 5; // 关注
  4922. report = 6; // 举报
  4923. delete = 7; // 删除
  4924. dislike = 8; // 不感兴趣
  4925. favorite = 9; // 收藏
  4926. top = 10; // 置顶
  4927. comment = 11; // 评论
  4928. hide = 12; //
  4929. campus_delete = 13; //
  4930. topic_irrelevant = 14; //
  4931. }
  4932. // 三点-稍后在看
  4933. message ThreePointWait {
  4934. // addition icon
  4935. string addition_icon = 1;
  4936. // 已添加时的文案
  4937. string addition_text = 2;
  4938. // no addition icon
  4939. string no_addition_icon = 3;
  4940. // 未添加时的文案
  4941. string no_addition_text = 4;
  4942. // avid
  4943. int64 id = 5;
  4944. }
  4945. //
  4946. enum ThumbType {
  4947. cancel = 0; //
  4948. thumb = 1; //
  4949. }
  4950. // 顶部预约卡
  4951. message TopAdditionUP {
  4952. // 预约卡
  4953. repeated AdditionUP up = 1;
  4954. // 折叠数量,大于多少个进行折叠
  4955. int32 has_fold = 2;
  4956. }
  4957. // 话题广场操作按钮
  4958. message TopicButton {
  4959. // 按钮图标
  4960. string icon = 1;
  4961. // 按钮文案
  4962. string title = 2;
  4963. // 跳转
  4964. string jump_uri = 3;
  4965. //
  4966. bool red_dot = 4;
  4967. }
  4968. //
  4969. message TopicItem {
  4970. //
  4971. int64 topic_id = 1;
  4972. //
  4973. string topic_name = 2;
  4974. //
  4975. string url = 3;
  4976. //
  4977. string desc = 4;
  4978. //
  4979. string desc2 = 5;
  4980. //
  4981. string rcmd_desc = 6;
  4982. }
  4983. // 综合页-话题广场
  4984. message TopicList {
  4985. // 模块标题
  4986. string title = 1;
  4987. // 话题列表
  4988. repeated TopicListItem topic_list_item = 2;
  4989. // 发起活动
  4990. TopicButton act_button = 3;
  4991. // 查看更多
  4992. TopicButton more_button = 4;
  4993. // 透传服务端上报
  4994. string server_info = 5;
  4995. }
  4996. // 综合页-话题广场-话题
  4997. message TopicListItem {
  4998. // 前置图标
  4999. string icon = 1;
  5000. // 前置图标文案
  5001. string icon_title = 2;
  5002. // 话题id
  5003. int64 topic_id = 3;
  5004. // 话题名
  5005. string topic_name = 4;
  5006. // 跳转链接
  5007. string url = 5;
  5008. // 卡片位次
  5009. int64 pos = 6;
  5010. // 透传服务端上报
  5011. string server_info = 7;
  5012. //
  5013. string head_icon_url = 8;
  5014. //
  5015. int64 up_mid = 9;
  5016. //
  5017. string tail_icon_url = 10;
  5018. //
  5019. string extension = 11;
  5020. }
  5021. //
  5022. message TopicListReply {
  5023. //
  5024. repeated TopicItem items = 1;
  5025. //
  5026. bool has_more = 2;
  5027. //
  5028. string offset = 3;
  5029. }
  5030. //
  5031. message TopicListReq {
  5032. //
  5033. int64 campus_id = 1;
  5034. //
  5035. string offset = 2;
  5036. }
  5037. //
  5038. message TopicMergedResource {
  5039. //
  5040. int32 merge_type = 1;
  5041. //
  5042. int32 merged_res_cnt = 2;
  5043. }
  5044. //
  5045. message TopicRcmdCard {
  5046. //
  5047. int64 topic_id = 1;
  5048. //
  5049. string topic_name = 2;
  5050. //
  5051. string url = 3;
  5052. //
  5053. CampusLabel button = 4;
  5054. //
  5055. string desc1 = 5;
  5056. //
  5057. string desc2 = 6;
  5058. //
  5059. string update_desc = 7;
  5060. }
  5061. //
  5062. message TopicSquareInfo {
  5063. //
  5064. string title = 1;
  5065. //
  5066. CampusLabel button = 2;
  5067. //
  5068. TopicRcmdCard rcmd = 3;
  5069. }
  5070. //
  5071. message TopicSquareReply {
  5072. //
  5073. TopicSquareInfo info = 1;
  5074. }
  5075. //
  5076. message TopicSquareReq {
  5077. //
  5078. int64 campus_id = 1;
  5079. }
  5080. // 状态
  5081. enum TopType {
  5082. top_none = 0; // 默认 置顶
  5083. top_cancel = 1; // 取消置顶
  5084. }
  5085. // 综合页-无关注列表
  5086. message Unfollow {
  5087. // 标题展示文案
  5088. string title = 1;
  5089. // 无关注列表
  5090. repeated UnfollowUserItem list = 2;
  5091. // trackID
  5092. string TrackId = 3;
  5093. }
  5094. //
  5095. message UnfollowMatchReq {
  5096. //
  5097. int64 cid = 1;
  5098. }
  5099. // 综合页-无关注列表
  5100. message UnfollowUserItem {
  5101. // 是否有更新
  5102. bool has_update = 1;
  5103. // up主头像
  5104. string face = 2;
  5105. // up主昵称
  5106. string name = 3;
  5107. // up主uid
  5108. int64 uid = 4;
  5109. // 排序字段 从1开始
  5110. int32 pos = 5;
  5111. // 直播状态
  5112. LiveState live_state = 6;
  5113. // 认证信息
  5114. OfficialVerify official = 7;
  5115. // 大会员信息
  5116. VipInfo vip = 8;
  5117. // up介绍
  5118. string sign = 9;
  5119. // 标签信息
  5120. string label = 10;
  5121. // 按钮
  5122. AdditionalButton button = 11;
  5123. // 跳转地址
  5124. string uri = 12;
  5125. }
  5126. //
  5127. message UpdateTabSettingReq {
  5128. //
  5129. HomePageTabSttingStatus status = 1;
  5130. }
  5131. // 动态顶部up列表-up主信息
  5132. message UpListItem {
  5133. // 是否有更新
  5134. bool has_update = 1;
  5135. // up主头像
  5136. string face = 2;
  5137. // up主昵称
  5138. string name = 3;
  5139. // up主uid
  5140. int64 uid = 4;
  5141. // 排序字段 从1开始
  5142. int64 pos = 5;
  5143. // 用户类型
  5144. UserItemType user_item_type = 6;
  5145. // 直播头像样式-日
  5146. UserItemStyle display_style_day = 7;
  5147. // 直播头像样式-夜
  5148. UserItemStyle display_style_night = 8;
  5149. // 直播埋点
  5150. int64 style_id = 9;
  5151. // 直播状态
  5152. LiveState live_state = 10;
  5153. // 分割线
  5154. bool separator = 11;
  5155. // 跳转
  5156. string uri = 12;
  5157. // UP主预约上报使用
  5158. bool is_recall = 13;
  5159. //
  5160. IconBadge update_icon = 14;
  5161. //
  5162. string live_rcmd_reason = 15;
  5163. //
  5164. string live_cover = 16;
  5165. //
  5166. string personal_extra = 17;
  5167. }
  5168. // 最常访问-查看更多
  5169. message UpListMoreLabel {
  5170. // 文案
  5171. string title = 1;
  5172. // 跳转地址
  5173. string uri = 2;
  5174. }
  5175. // 用户信息
  5176. message UserInfo {
  5177. // 用户mid
  5178. int64 mid = 1;
  5179. // 用户昵称
  5180. string name = 2;
  5181. // 用户头像
  5182. string face = 3;
  5183. // 认证信息
  5184. OfficialVerify official = 4;
  5185. // 大会员信息
  5186. VipInfo vip = 5;
  5187. // 直播信息
  5188. LiveInfo live = 6;
  5189. // 空间页跳转链接
  5190. string uri = 7;
  5191. // 挂件信息
  5192. UserPendant pendant = 8;
  5193. // 认证名牌
  5194. Nameplate nameplate = 9;
  5195. // 用户等级
  5196. int32 level = 10;
  5197. // 用户简介
  5198. string sign = 11;
  5199. //
  5200. int32 face_nft = 12;
  5201. //
  5202. int32 face_nft_new = 13;
  5203. //
  5204. NFTInfo nft_info = 14;
  5205. //
  5206. int32 is_senior_member = 15;
  5207. //
  5208. bilibili.dagw.component.avatar.v1.AvatarItem avatar = 16;
  5209. }
  5210. // 直播头像样式
  5211. message UserItemStyle {
  5212. //
  5213. string rect_text = 1;
  5214. //
  5215. string rect_text_color = 2;
  5216. //
  5217. string rect_icon = 3;
  5218. //
  5219. string rect_bg_color = 4;
  5220. //
  5221. string outer_animation = 5;
  5222. }
  5223. // 用户类型
  5224. enum UserItemType {
  5225. user_item_type_none = 0; //
  5226. user_item_type_live = 1; //
  5227. user_item_type_live_custom = 2; //
  5228. user_item_type_normal = 3; //
  5229. user_item_type_extend = 4; //
  5230. user_item_type_premiere_reserve = 5;
  5231. user_item_type_premiere = 6;
  5232. user_item_type_live_card = 7;
  5233. user_item_type_ogv_season = 8;
  5234. user_item_type_ugc_season = 9;
  5235. }
  5236. // 头像挂件信息
  5237. message UserPendant {
  5238. // pid
  5239. int64 pid = 1;
  5240. // 名称
  5241. string name = 2;
  5242. // 图片链接
  5243. string image = 3;
  5244. // 有效期
  5245. int64 expire = 4;
  5246. }
  5247. // 角标信息
  5248. message VideoBadge {
  5249. // 文案
  5250. string text = 1;
  5251. // 文案颜色-日间
  5252. string text_color = 2;
  5253. // 文案颜色-夜间
  5254. string text_color_night = 3;
  5255. // 背景颜色-日间
  5256. string bg_color = 4;
  5257. // 背景颜色-夜间
  5258. string bg_color_night = 5;
  5259. // 边框颜色-日间
  5260. string border_color = 6;
  5261. // 边框颜色-夜间
  5262. string border_color_night = 7;
  5263. // 样式
  5264. int32 bg_style = 8;
  5265. // 背景透明度-日间
  5266. int32 bg_alpha = 9;
  5267. // 背景透明度-夜间
  5268. int32 bg_alpha_night = 10;
  5269. }
  5270. // 番剧类型
  5271. enum VideoSubType {
  5272. VideoSubTypeNone = 0; // 没有子类型
  5273. VideoSubTypeBangumi = 1; // 番剧
  5274. VideoSubTypeMovie = 2; // 电影
  5275. VideoSubTypeDocumentary = 3; // 纪录片
  5276. VideoSubTypeDomestic = 4; // 国创
  5277. VideoSubTypeTeleplay = 5; // 电视剧
  5278. }
  5279. // 视频类型
  5280. enum VideoType {
  5281. video_type_general = 0; //普通视频
  5282. video_type_dynamic = 1; //动态视频
  5283. video_type_playback = 2; //直播回放视频
  5284. video_type_story = 3; //
  5285. }
  5286. // 大会员信息
  5287. message VipInfo {
  5288. // 大会员类型
  5289. int32 Type = 1;
  5290. // 大会员状态
  5291. int32 status = 2;
  5292. // 到期时间
  5293. int64 due_date = 3;
  5294. // 标签
  5295. VipLabel label = 4;
  5296. // 主题
  5297. int32 theme_type = 5;
  5298. // 大会员角标
  5299. // 0:无角标 1:粉色大会员角标 2:绿色小会员角标
  5300. int32 avatar_subscript = 6;
  5301. // 昵称色值,可能为空,色值示例:#FFFB9E60
  5302. string nickname_color = 7;
  5303. }
  5304. // 大会员标签
  5305. message VipLabel {
  5306. // 图片地址
  5307. string path = 1;
  5308. // 文本值
  5309. string text = 2;
  5310. // 对应颜色类型
  5311. string label_theme = 3;
  5312. }
  5313. // 状态
  5314. enum VoteStatus {
  5315. normal = 0; // 正常
  5316. anonymous = 1; // 匿名
  5317. }
  5318. // 提权样式
  5319. message Weight {
  5320. // 提权展示标题
  5321. string title = 1;
  5322. // 下拉框内容
  5323. repeated WeightItem items = 2;
  5324. // icon
  5325. string icon = 3;
  5326. }
  5327. // 热门默认跳转按钮
  5328. message WeightButton {
  5329. string jump_url = 1;
  5330. // 展示文案
  5331. string title = 2;
  5332. }
  5333. // 提权不感兴趣
  5334. message WeightDislike {
  5335. // 负反馈业务类型 作为客户端调用负反馈接口的参数
  5336. string feed_back_type = 1;
  5337. // 展示文案
  5338. string title = 2;
  5339. }
  5340. // 提权样式
  5341. message WeightItem {
  5342. // 类型
  5343. WeightType type = 1;
  5344. oneof item {
  5345. // 热门默认跳转按钮
  5346. WeightButton button = 2;
  5347. // 提权不感兴趣
  5348. WeightDislike dislike = 3;
  5349. }
  5350. }
  5351. // 枚举-提权类型
  5352. enum WeightType {
  5353. weight_none = 0; // 默认 占位
  5354. weight_dislike = 1; // 不感兴趣
  5355. weight_jump = 2; // 跳链
  5356. }
  5357. //
  5358. enum WFItemType {
  5359. WATER_FLOW_TYPE_NONE = 0;
  5360. WATER_FLOW_TYPE_ARCHIVE = 1;
  5361. WATER_FLOW_TYPE_DYNAMIC = 2;
  5362. }
  5363. //
  5364. message WordNode {
  5365. //
  5366. message WordNodeStyle {
  5367. //
  5368. bool bold = 1;
  5369. //
  5370. bool italic = 2;
  5371. //
  5372. bool strikethrough = 3;
  5373. //
  5374. bool underline = 4;
  5375. }
  5376. //
  5377. string words = 1;
  5378. //
  5379. double font_size = 2;
  5380. //
  5381. Colors color = 3;
  5382. //
  5383. WordNodeStyle style = 4;
  5384. }