1 Star 2 Fork 3

滑动变滚动的蜗牛/toutiao-m

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jiekou.html 216.98 KB
一键复制 编辑 原始数据 按行查看 历史
滑动变滚动的蜗牛 提交于 2021-05-25 08:50 . 项目初始化目录
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080
<!DOCTYPE html>
<html>
<head>
<title>黑马头条移动端-接口文档</title>
<meta charset="utf-8" />
<style>@charset "UTF-8";
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
margin: 0;
padding: 0;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
/* 设置滚动条的样式 */
::-webkit-scrollbar {
width: 6px;
}
/* 外层轨道 */
::-webkit-scrollbar-track {
-webkit-box-shadow: inset006pxrgba(255, 0, 0, 0.3);
background: rgba(0, 0, 0, 0.1);
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
border-radius: 4px;
background: rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.2);
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
font-size: 13px;
line-height: 25px;
color: #393838;
position: relative;
}
table {
margin: 10px 0 15px 0;
border-collapse: collapse;
}
td,
th {
border: 1px solid #ddd;
padding: 3px 10px;
}
th {
padding: 5px 10px;
}
a, a:link, a:visited {
color: #34495e;
text-decoration: none;
}
a:hover, a:focus {
color: #59d69d;
text-decoration: none;
}
a img {
border: none;
}
p {
padding-left: 10px;
margin-bottom: 9px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #404040;
line-height: 36px;
}
h1 {
color: #2c3e50;
font-weight: 600;
margin-bottom: 16px;
font-size: 32px;
padding-bottom: 16px;
border-bottom: 1px solid #ddd;
line-height: 50px;
}
h2 {
font-size: 28px;
padding-top: 10px;
padding-bottom: 10px;
}
h3 {
clear: both;
font-weight: 400;
margin-top: 20px;
margin-bottom: 20px;
border-left: 3px solid #59d69d;
padding-left: 8px;
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 14px;
}
h6 {
font-size: 13px;
}
hr {
margin: 0 0 19px;
border: 0;
border-bottom: 1px solid #ccc;
}
blockquote {
padding: 13px 13px 21px 15px;
margin-bottom: 18px;
font-family: georgia, serif;
font-style: italic;
}
blockquote:before {
font-size: 40px;
margin-left: -10px;
font-family: georgia, serif;
color: #eee;
}
blockquote p {
font-size: 14px;
font-weight: 300;
line-height: 18px;
margin-bottom: 0;
font-style: italic;
}
code,
pre {
font-family: Monaco, Andale Mono, Courier New, monospace;
}
code {
background-color: #fee9cc;
color: rgba(0, 0, 0, 0.75);
padding: 1px 3px;
font-size: 12px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
pre {
display: block;
padding: 14px;
margin: 0 0 18px;
line-height: 16px;
font-size: 11px;
border: 1px solid #d9d9d9;
white-space: pre-wrap;
word-wrap: break-word;
background: #f6f6f6;
}
pre code {
background-color: #f6f6f6;
color: #737373;
font-size: 11px;
padding: 0;
}
sup {
font-size: 0.83em;
vertical-align: super;
line-height: 0;
}
* {
-webkit-print-color-adjust: exact;
}
@media print {
body,
code,
pre code,
h1,
h2,
h3,
h4,
h5,
h6 {
color: black;
}
table,
pre {
page-break-inside: avoid;
}
}
html,
body {
height: 100%;
}
.table-of-contents {
position: fixed;
top: 61px;
left: 0;
bottom: 0;
overflow-x: hidden;
overflow-y: auto;
width: 260px;
}
.table-of-contents > ul > li > a {
font-size: 20px;
margin-bottom: 16px;
margin-top: 16px;
}
.table-of-contents ul {
overflow: auto;
margin: 0px;
height: 100%;
padding: 0px 0px;
box-sizing: border-box;
list-style-type: none;
}
.table-of-contents ul li {
padding-left: 20px;
}
.table-of-contents a {
padding: 2px 0px;
display: block;
text-decoration: none;
}
.content-right {
max-width: 700px;
margin-left: 290px;
padding-left: 70px;
flex-grow: 1;
}
.content-right h2:target {
padding-top: 80px;
}
body > p {
margin-left: 30px;
}
body > table {
margin-left: 30px;
}
body > pre {
margin-left: 30px;
}
.curProject {
position: fixed;
top: 20px;
font-size: 25px;
color: black;
margin-left: -240px;
width: 240px;
padding: 5px;
line-height: 25px;
box-sizing: border-box;
}
.g-doc {
margin-top: 56px;
padding-top: 24px;
display: flex;
}
.curproject-name {
font-size: 42px;
}
.m-header {
background: #32363a;
height: 56px;
line-height: 56px;
padding-left: 60px;
display: flex;
align-items: center;
position: fixed;
z-index: 9;
top: 0;
left: 0;
right: 0;
}
.m-header .title {
font-size: 22px;
color: #fff;
font-weight: normal;
-webkit-font-smoothing: antialiased;
margin: 0;
margin-left: 16px;
padding: 0;
line-height: 56px;
border: none;
}
.m-header .nav {
color: #fff;
font-size: 16px;
position: absolute;
right: 32px;
top: 0;
}
.m-header .nav a {
color: #fff;
margin-left: 16px;
padding: 8px;
transition: color .2s;
}
.m-header .nav a:hover {
color: #59d69d;
}
.m-footer {
border-top: 1px solid #ddd;
padding-top: 16px;
padding-bottom: 16px;
}
/*# sourceMappingURL=defaultTheme.css.map */
</style>
</head>
<body>
<div class="m-header">
<a href="#" style="display: inherit;"><svg class="svg" width="32px" height="32px" viewBox="0 0 64 64" version="1.1"><title>Icon</title><desc>Created with Sketch.</desc><defs><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1"><stop stop-color="#FFFFFF" offset="0%"></stop><stop stop-color="#F2F2F2" offset="100%"></stop></linearGradient><circle id="path-2" cx="31.9988602" cy="31.9988602" r="2.92886048"></circle><filter x="-85.4%" y="-68.3%" width="270.7%" height="270.7%" filterUnits="objectBoundingBox" id="filter-3"><feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.159703351 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="首页" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="大屏幕"><g id="Icon"><circle id="Oval-1" fill="url(#linearGradient-1)" cx="32" cy="32" r="32"></circle><path d="M36.7078009,31.8054514 L36.7078009,51.7110548 C36.7078009,54.2844537 34.6258634,56.3695395 32.0579205,56.3695395 C29.4899777,56.3695395 27.4099998,54.0704461 27.4099998,51.7941246 L27.4099998,31.8061972 C27.4099998,29.528395 29.4909575,27.218453 32.0589004,27.230043 C34.6268432,27.241633 36.7078009,29.528395 36.7078009,31.8054514 Z" id="blue" fill="#2359F1" fill-rule="nonzero"></path><path d="M45.2586091,17.1026914 C45.2586091,17.1026914 45.5657231,34.0524383 45.2345291,37.01141 C44.9033351,39.9703817 43.1767091,41.6667796 40.6088126,41.6667796 C38.040916,41.6667796 35.9609757,39.3676862 35.9609757,37.0913646 L35.9609757,17.1034372 C35.9609757,14.825635 38.0418959,12.515693 40.6097924,12.527283 C43.177689,12.538873 45.2586091,14.825635 45.2586091,17.1026914 Z" id="green" fill="#57CF27" fill-rule="nonzero" transform="translate(40.674608, 27.097010) rotate(60.000000) translate(-40.674608, -27.097010) "></path><path d="M28.0410158,17.0465598 L28.0410158,36.9521632 C28.0410158,39.525562 25.9591158,41.6106479 23.3912193,41.6106479 C20.8233227,41.6106479 18.7433824,39.3115545 18.7433824,37.035233 L18.7433824,17.0473055 C18.7433824,14.7695034 20.8243026,12.4595614 23.3921991,12.4711513 C25.9600956,12.4827413 28.0410158,14.7695034 28.0410158,17.0465598 Z" id="red" fill="#FF561B" fill-rule="nonzero" transform="translate(23.392199, 27.040878) rotate(-60.000000) translate(-23.392199, -27.040878) "></path><g id="inner-round"><use fill="black" fill-opacity="1" filter="url(#filter-3)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use><use fill="#F7F7F7" fill-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use></g></g></g></g></svg></a>
<a href="#"><h1 class="title">YAPI 接口文档</h1></a>
<div class="nav">
<a href="https://yapi.ymfe.org/">YApi</a>
</div>
</div>
<div class="g-doc">
<div class="table-of-contents"><ul><li><a href="#u95e8u6237">门户</a><ul><li><a href="#u67e5u8be2u6240u6709u5df2u5b9eu73b0u63a5u53e30a3ca20id3du67e5u8be2u6240u6709u5df2u5b9eu73b0u63a5u53e33e203ca3e">查询所有已实现接口
<a id=查询所有已实现接口> </a></a></li></ul></li><li><a href="#u901au77e5">通知</a><ul><li><a href="#u83b7u53d6u7cfbu7edfu516cu544au5185u5bb90a3ca20id3du83b7u53d6u7cfbu7edfu516cu544au5185u5bb93e203ca3e">获取系统公告内容
<a id=获取系统公告内容> </a></a></li><li><a href="#u83b7u53d6u7cfbu7edfu516cu544au5217u88680a3ca20id3du83b7u53d6u7cfbu7edfu516cu544au5217u88683e203ca3e">获取系统公告列表
<a id=获取系统公告列表> </a></a></li></ul></li><li><a href="#u641cu7d22">搜索</a><ul><li><a href="#u5220u9664u7528u6237u641cu7d22u5386u53f20a3ca20id3du5220u9664u7528u6237u641cu7d22u5386u53f23e203ca3e">删除用户搜索历史
<a id=删除用户搜索历史> </a></a></li><li><a href="#u83b7u53d6u641cu7d22u7ed3u679c0a3ca20id3du83b7u53d6u641cu7d22u7ed3u679c3e203ca3e">获取搜索结果
<a id=获取搜索结果> </a></a></li><li><a href="#u83b7u53d6u7528u6237u641cu7d22u5386u53f20a3ca20id3du83b7u53d6u7528u6237u641cu7d22u5386u53f23e203ca3e">获取用户搜索历史
<a id=获取用户搜索历史> </a></a></li><li><a href="#u83b7u53d6u8054u60f3u5efau8baeuff08u81eau52a8u8865u5168uff090a3ca20id3du83b7u53d6u8054u60f3u5efau8baeuff08u81eau52a8u8865u5168uff093e203ca3e">获取联想建议(自动补全)
<a id=获取联想建议(自动补全)> </a></a></li></ul></li><li><a href="#imu901au8baf">IM通讯</a><ul><li><a href="#u5728u7ebfu6d88u606fu901au77e50a3ca20id3du5728u7ebfu6d88u606fu901au77e53e203ca3e">在线消息通知
<a id=在线消息通知> </a></a></li><li><a href="#u5728u7ebfu901au77e5u6d4bu8bd5u63a5u53e30a3ca20id3du5728u7ebfu901au77e5u6d4bu8bd5u63a5u53e33e203ca3e">在线通知测试接口
<a id=在线通知测试接口> </a></a></li><li><a href="#u804au5929u673au5668u4eba0a3ca20id3du804au5929u673au5668u4eba3e203ca3e">聊天机器人
<a id=聊天机器人> </a></a></li></ul></li><li><a href="#u7528u6237">用户</a><ul><li><a href="#u7f16u8f91u7528u6237u4e2au4ebau8d44u6599uff08u5305u542bu5b9eu540du8ba4u8bc1uff090a3ca20id3du7f16u8f91u7528u6237u4e2au4ebau8d44u6599uff08u5305u542bu5b9eu540du8ba4u8bc1uff093e203ca3e">编辑用户个人资料(包含实名认证)
<a id=编辑用户个人资料(包含实名认证)> </a></a></li><li><a href="#u4feeu6539u6307u5b9au7528u6237u9891u90530a3ca20id3du4feeu6539u6307u5b9au7528u6237u9891u90533e203ca3e">修改指定用户频道
<a id=修改指定用户频道> </a></a></li><li><a href="#u5220u9664u6307u5b9au7528u6237u9891u90530a3ca20id3du5220u9664u6307u5b9au7528u6237u9891u90533e203ca3e">删除指定用户频道
<a id=删除指定用户频道> </a></a></li><li><a href="#u5237u65b0u7528u6237token0a3ca20id3du5237u65b0u7528u6237token3e203ca3e">刷新用户token
<a id=刷新用户token> </a></a></li><li><a href="#u53d6u6d88u5173u6ce8u7528u62370a3ca20id3du53d6u6d88u5173u6ce8u7528u62373e203ca3e">取消关注用户
<a id=取消关注用户> </a></a></li><li><a href="#u53d6u6d88u62c9u9ed1u7528u62370a3ca20id3du53d6u6d88u62c9u9ed1u7528u62373e203ca3e">取消拉黑用户
<a id=取消拉黑用户> </a></a></li><li><a href="#u6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u90e8u5206u8986u76d6uff090a3ca20id3du6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u90e8u5206u8986u76d6uff093e203ca3e">批量修改用户频道列表(部分覆盖)
<a id=批量修改用户频道列表(部分覆盖)> </a></a></li><li><a href="#u6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u91cdu7f6eu5f0fuff090a3ca20id3du6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u91cdu7f6eu5f0fuff093e203ca3e">批量修改用户频道列表(重置式)
<a id=批量修改用户频道列表(重置式)> </a></a></li><li><a href="#u6279u91cfu5220u9664u7528u6237u9891u9053u5217u88680a3ca20id3du6279u91cfu5220u9664u7528u6237u9891u9053u5217u88683e203ca3e">批量删除用户频道列表
<a id=批量删除用户频道列表> </a></a></li><li><a href="#u62c9u9ed1u7528u62370a3ca20id3du62c9u9ed1u7528u62373e203ca3e">拉黑用户
<a id=拉黑用户> </a></a></li><li><a href="#u7528u6237u8ba4u8bc1uff08u767bu5f55u6ce8u518cuff090a3ca20id3du7528u6237u8ba4u8bc1uff08u767bu5f55u6ce8u518cuff093e203ca3e">用户认证(登录注册)
<a id=用户认证(登录注册)> </a></a></li><li><a href="#u5173u6ce8u7528u62370a3ca20id3du5173u6ce8u7528u62373e203ca3e">关注用户
<a id=关注用户> </a></a></li><li><a href="#u7f16u8f91u7528u6237u7167u7247u8d44u6599uff08u5934u50cfu3001u8eabu4efdu8bc1u7167u7247uff090a3ca20id3du7f16u8f91u7528u6237u7167u7247u8d44u6599uff08u5934u50cfu3001u8eabu4efdu8bc1u7167u7247uff093e203ca3e">编辑用户照片资料(头像、身份证照片)
<a id=编辑用户照片资料(头像、身份证照片)> </a></a></li><li><a href="#u83b7u53d6u6307u5b9au7528u6237u4fe1u606f0a3ca20id3du83b7u53d6u6307u5b9au7528u6237u4fe1u606f3e203ca3e">获取指定用户信息
<a id=获取指定用户信息> </a></a></li><li><a href="#u83b7u53d6u7528u6237u4e2au4ebau8d44u65990a3ca20id3du83b7u53d6u7528u6237u4e2au4ebau8d44u65993e203ca3e">获取用户个人资料
<a id=获取用户个人资料> </a></a></li><li><a href="#u83b7u53d6u7528u6237u7684u5173u6ce8u5217u88680a3ca20id3du83b7u53d6u7528u6237u7684u5173u6ce8u5217u88683e203ca3e">获取用户的关注列表
<a id=获取用户的关注列表> </a></a></li><li><a href="#u83b7u53d6u7528u6237u7684u7c89u4e1du5217u88680a3ca20id3du83b7u53d6u7528u6237u7684u7c89u4e1du5217u88683e203ca3e">获取用户的粉丝列表
<a id=获取用户的粉丝列表> </a></a></li><li><a href="#u83b7u53d6u7528u6237u7684u7edfu8ba1u6570u636e0a3ca20id3du83b7u53d6u7528u6237u7684u7edfu8ba1u6570u636e3e203ca3e">获取用户的统计数据
<a id=获取用户的统计数据> </a></a></li><li><a href="#u83b7u53d6u7528u6237u81eau5df1u4fe1u606f0a3ca20id3du83b7u53d6u7528u6237u81eau5df1u4fe1u606f3e203ca3e">获取用户自己信息
<a id=获取用户自己信息> </a></a></li><li><a href="#u83b7u53d6u7528u6237u9891u9053u5217u88680a3ca20id3du83b7u53d6u7528u6237u9891u9053u5217u88683e203ca3e">获取用户频道列表
<a id=获取用户频道列表> </a></a></li><li><a href="#u83b7u53d6u77edu4fe1u9a8cu8bc1u78010a3ca20id3du83b7u53d6u77edu4fe1u9a8cu8bc1u78013e203ca3e">获取短信验证码
<a id=获取短信验证码> </a></a></li><li><a href="#u8bbeu7f6eu7528u6237u9891u9053u5217u8868uff08u589eu91cfu5f0fuff090a3ca20id3du8bbeu7f6eu7528u6237u9891u9053u5217u8868uff08u589eu91cfu5f0fuff093e203ca3e">设置用户频道列表(增量式)
<a id=设置用户频道列表(增量式)> </a></a></li></ul></li><li><a href="#u65b0u95fb">新闻</a><ul><li><a href="#u6dfbu52a0u8bc4u8bbau6216u8bc4u8bbau56deu590d0a3ca20id3du6dfbu52a0u8bc4u8bbau6216u8bc4u8bbau56deu590d3e203ca3e">添加评论或评论回复
<a id=添加评论或评论回复> </a></a></li><li><a href="#u4e3eu62a5u6587u7ae00a3ca20id3du4e3eu62a5u6587u7ae03e203ca3e">举报文章
<a id=举报文章> </a></a></li><li><a href="#u53d6u6d88u5bf9u6587u7ae0u4e0du559cu6b220a3ca20id3du53d6u6d88u5bf9u6587u7ae0u4e0du559cu6b223e203ca3e">取消对文章不喜欢
<a id=取消对文章不喜欢> </a></a></li><li><a href="#u53d6u6d88u5bf9u6587u7ae0u70b9u8d5e0a3ca20id3du53d6u6d88u5bf9u6587u7ae0u70b9u8d5e3e203ca3e">取消对文章点赞
<a id=取消对文章点赞> </a></a></li><li><a href="#u53d6u6d88u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e0a3ca20id3du53d6u6d88u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e3e203ca3e">取消对评论或评论回复点赞
<a id=取消对评论或评论回复点赞> </a></a></li><li><a href="#u53d6u6d88u6536u85cfu6587u7ae00a3ca20id3du53d6u6d88u6536u85cfu6587u7ae03e203ca3e">取消收藏文章
<a id=取消收藏文章> </a></a></li><li><a href="#u5bf9u6587u7ae0u4e0du559cu6b220a3ca20id3du5bf9u6587u7ae0u4e0du559cu6b223e203ca3e">对文章不喜欢
<a id=对文章不喜欢> </a></a></li><li><a href="#u5bf9u6587u7ae0u70b9u8d5e0a3ca20id3du5bf9u6587u7ae0u70b9u8d5e3e203ca3e">对文章点赞
<a id=对文章点赞> </a></a></li><li><a href="#u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e0a3ca20id3du5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e3e203ca3e">对评论或评论回复点赞
<a id=对评论或评论回复点赞> </a></a></li><li><a href="#u6536u85cfu6587u7ae00a3ca20id3du6536u85cfu6587u7ae03e203ca3e">收藏文章
<a id=收藏文章> </a></a></li><li><a href="#u5168u90e8u9891u9053u5217u88680a3ca20id3du5168u90e8u9891u9053u5217u88683e203ca3e">全部频道列表
<a id=全部频道列表> </a></a></li><li><a href="#u83b7u53d6u5f53u524du7528u6237u6587u7ae0u5217u88680a3ca20id3du83b7u53d6u5f53u524du7528u6237u6587u7ae0u5217u88683e203ca3e">获取当前用户文章列表
<a id=获取当前用户文章列表> </a></a></li><li><a href="#u83b7u53d6u65b0u95fbu6587u7ae0u8be6u60c50a3ca20id3du83b7u53d6u65b0u95fbu6587u7ae0u8be6u60c53e203ca3e">获取新闻文章详情
<a id=获取新闻文章详情> </a></a></li><li><a href="#u83b7u53d6u7528u6237u6536u85cfu5217u88680a3ca20id3du83b7u53d6u7528u6237u6536u85cfu5217u88683e203ca3e">获取用户收藏列表
<a id=获取用户收藏列表> </a></a></li><li><a href="#u83b7u53d6u7528u6237u6587u7ae0u5217u88680a3ca20id3du83b7u53d6u7528u6237u6587u7ae0u5217u88683e203ca3e">获取用户文章列表
<a id=获取用户文章列表> </a></a></li><li><a href="#u83b7u53d6u7528u6237u9605u8bfbu5386u53f20a3ca20id3du83b7u53d6u7528u6237u9605u8bfbu5386u53f23e203ca3e">获取用户阅读历史
<a id=获取用户阅读历史> </a></a></li><li><a href="#u83b7u53d6u8bc4u8bbau6216u8bc4u8bbau56deu590d0a3ca20id3du83b7u53d6u8bc4u8bbau6216u8bc4u8bbau56deu590d3e203ca3e">获取评论或评论回复
<a id=获取评论或评论回复> </a></a></li><li><a href="#u9605u8bfbu65f6u957fu57cbu70b9u53cdu99880a3ca20id3du9605u8bfbu65f6u957fu57cbu70b9u53cdu99883e203ca3e">阅读时长埋点反馈
<a id=阅读时长埋点反馈> </a></a></li><li><a href="#u9891u9053u65b0u95fbu63a8u8350-v100a3ca20id3du9891u9053u65b0u95fbu63a8u8350-v103e203ca3e">频道新闻推荐_V1.0
<a id=频道新闻推荐_V1.0> </a></a></li><li><a href="#u9891u9053u65b0u95fbu63a8u8350-v110a3ca20id3du9891u9053u65b0u95fbu63a8u8350-v113e203ca3e">频道新闻推荐_V1.1
<a id=频道新闻推荐_V1.1> </a></a></li></ul></li></ul></div>
<div id="right" class="content-right">
<h1 class="curproject-name"> 黑马头条-移动端 </h1>
<h1 id="u95e8u6237">门户</h1>
<p></p>
<h2 id="u67e5u8be2u6240u6709u5df2u5b9eu73b0u63a5u53e30a3ca20id3du67e5u8be2u6240u6709u5df2u5b9eu73b0u63a5u53e33e203ca3e">查询所有已实现接口
<a id=查询所有已实现接口> </a></h2>
<p></p>
<h3 id="">基本信息</h3>
<p><strong>Path:</strong> /app/</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<p>线上接口地址&nbsp;<a href="http://ttapi.research.itcast.cn/app/">http://ttapi.research.itcast.cn/app/</a><br data-tomark-pass=""><br>
<br data-tomark-pass=""><br>
返回已上线接口地址,形如:</p>
<pre><code data-language="json" class="lang-json">{
"route_map":"/",
"static":"/static/&lt;path:filename&gt;",
"user.smsverificationcode":"/v1_0/sms/codes/&lt;mobile:mobile&gt;"
}
<p></code></pre></p>
<p>键为接口名称<br>
值为接口路径</p>
<h3 id="-2">请求参数</h3>
<h1 id="u901au77e5">通知</h1>
<p></p>
<h2 id="u83b7u53d6u7cfbu7edfu516cu544au5185u5bb90a3ca20id3du83b7u53d6u7cfbu7edfu516cu544au5185u5bb93e203ca3e">获取系统公告内容
<a id=获取系统公告内容> </a></h2>
<p></p>
<h3 id="-3">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/announcements/:target</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/announcements/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-4">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>公告id</td>
</tr>
</tbody>
</table>
<h3 id="-5">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>公告id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>标题</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> content</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>内容</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7cfbu7edfu516cu544au5217u88680a3ca20id3du83b7u53d6u7cfbu7edfu516cu544au5217u88683e203ca3e">获取系统公告列表
<a id=获取系统公告列表> </a></h2>
<p></p>
<h3 id="-6">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/announcements</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/announcements
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-7">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-8">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>标题</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>公告id</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>公告总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h1 id="u641cu7d22">搜索</h1>
<p></p>
<h2 id="u5220u9664u7528u6237u641cu7d22u5386u53f20a3ca20id3du5220u9664u7528u6237u641cu7d22u5386u53f23e203ca3e">删除用户搜索历史
<a id=删除用户搜索历史> </a></h2>
<p></p>
<h3 id="-9">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/search/histories</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/search/histories
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>401 用户认证失败</li>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
</ul>
<h3></h3>
<h3 id="-10">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户Token</td>
</tr>
</tbody>
</table>
<h3 id="-11">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u641cu7d22u7ed3u679c0a3ca20id3du83b7u53d6u641cu7d22u7ed3u679c3e203ca3e">获取搜索结果
<a id=获取搜索结果> </a></h2>
<p></p>
<h3 id="-12">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/search</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/search
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li>401 若传递token,但token过期,则返回401</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-13">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td></td>
<td>身份token,非必须</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
<tr>
<td>q</td>
<td></td>
<td></td>
<td>搜索关键词</td>
</tr>
</tbody>
</table>
<h3 id="-14">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-6-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-6-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数</span></td><td key=5></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> collect_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏数</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u641cu7d22u5386u53f20a3ca20id3du83b7u53d6u7528u6237u641cu7d22u5386u53f23e203ca3e">获取用户搜索历史
<a id=获取用户搜索历史> </a></h2>
<p></p>
<h3 id="-15">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/search/histories</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/search/histories
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>401 用户认证失败</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-16">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户Token</td>
</tr>
</tbody>
</table>
<h3 id="-17">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> keywords</span></td><td key=1><span>string []</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>搜索关键词</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u8054u60f3u5efau8baeuff08u81eau52a8u8865u5168uff090a3ca20id3du83b7u53d6u8054u60f3u5efau8baeuff08u81eau52a8u8865u5168uff093e203ca3e">获取联想建议(自动补全)
<a id=获取联想建议(自动补全)> </a></h2>
<p></p>
<h3 id="-18">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/suggestion</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/suggestion
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数有误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-19">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>q</td>
<td></td>
<td></td>
<td>请求的前缀词句</td>
</tr>
</tbody>
</table>
<h3 id="-20">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> options</span></td><td key=1><span>string []</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>选项词条</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr>
</tbody>
</table>
<h1 id="imu901au8baf">IM通讯</h1>
<p></p>
<h2 id="u5728u7ebfu6d88u606fu901au77e50a3ca20id3du5728u7ebfu6d88u606fu901au77e53e203ca3e">在线消息通知
<a id=在线消息通知> </a></h2>
<p></p>
<h3 id="-21">基本信息</h3>
<p><strong>Path:</strong> /app/socket.io/</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1. 此接口为 socket.io 通讯 , 非HTTP协议, 须使用socket.io客户端,请忽略请求方式</h3>
<h3>2. 接口路径(重要)</h3>
<pre><code data-language="http" class="lang-http">http://ttapi.research.itcast.cn
<p></code></pre></p>
<h5></h5>
<h3>3. 用户token与匿名id必传其一,身份错误会拒绝连接</h3>
<h3>4. 接收事件(event)</h3>
<h5><code data-backticks="1">"following notify"</code> 关注通知</h5>
<p><em>返回字段 <code data-backticks="1">user_id</code><code data-backticks="1">user_name</code><code data-backticks="1">user_photo</code><code data-backticks="1">timestamp</code></em></p>
<h5><code data-backticks="1">"liking notify"</code> 点赞通知</h5>
<p><em>返回字段 <code data-backticks="1">user_id</code><code data-backticks="1">user_name</code><code data-backticks="1">user_photo</code><code data-backticks="1">art_id</code>, <code data-backticks="1">art_title</code>, <code data-backticks="1">timestamp</code></em></p>
<h5><code data-backticks="1">"comment notify"</code> 评论通知</h5>
<p><em>返回字段 <code data-backticks="1">user_id</code><code data-backticks="1">user_name</code><code data-backticks="1">user_photo</code><code data-backticks="1">art_id</code>, <code data-backticks="1">art_title</code>, <code data-backticks="1">timestamp</code></em></p>
<h3 id="-22">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td></td>
<td>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token token与匿名id必传其一 (不用包含Bearer 前缀)</td>
</tr>
<tr>
<td>a</td>
<td></td>
<td></td>
<td>匿名id</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>聊天输入内容</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> timestamp</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>聊天发送时间戳</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-23">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> user_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>执行操作的用户id</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> user_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户名</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> user_photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户头像</span></td><td key=5></td></tr><tr key=0-3><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> art_id</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-4><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> art_title</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-5><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> timestamp</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>回复时间戳</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5728u7ebfu901au77e5u6d4bu8bd5u63a5u53e30a3ca20id3du5728u7ebfu901au77e5u6d4bu8bd5u63a5u53e33e203ca3e">在线通知测试接口
<a id=在线通知测试接口> </a></h2>
<p></p>
<h3 id="-24">基本信息</h3>
<p><strong>Path:</strong> /app/imtest/:event</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>liking notify 点赞通知</h3>
<pre><code data-language="http" class="lang-http">http://ttapi.research.itcast.cn/app/imtest/l
</code></pre>
<h3>comment notify 评论通知</h3>
<pre><code data-language="http" class="lang-http">http://ttapi.research.itcast.cn/app/imtest/c
</code></pre>
<h3>following notify 关注通知</h3>
<pre><code data-language="http" class="lang-http">http://ttapi.research.itcast.cn/app/imtest/f
</code></pre>
<h3 id="-25">请求参数</h3>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>event</td>
<td>f 或 l 或 c 或</td>
<td>通知事件</td>
</tr>
</tbody>
</table>
<h2 id="u804au5929u673au5668u4eba0a3ca20id3du804au5929u673au5668u4eba3e203ca3e">聊天机器人
<a id=聊天机器人> </a></h2>
<p></p>
<h3 id="-26">基本信息</h3>
<p><strong>Path:</strong> /app/socket.io/</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1. 此接口为 socket.io 通讯 , 非HTTP协议, 须使用socket.io客户端,请忽略请求方式</h3>
<h3>2. 接口路径(重要)</h3>
<pre><code data-language="http" class="lang-http">http://ttapi.research.itcast.cn
<p></code></pre></p>
<h3>3. token与匿名id必传其一,身份错误会拒绝连接</h3>
<h3>4. 发送与接收消息的事件(event) 均为<code data-backticks="1">message</code></h3>
<h3 id="-27">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td></td>
<td>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token (token与匿名id必传其中之一)不用包含Bearer前缀</td>
</tr>
<tr>
<td>a</td>
<td></td>
<td></td>
<td>匿名用户id</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>聊天输入内容</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> timestamp</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>聊天发送时间戳</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-28">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>机器人回复内容</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> timestamp</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>回复时间戳</span></td><td key=5></td></tr>
</tbody>
</table>
<h1 id="u7528u6237">用户</h1>
<p></p>
<h2 id="u7f16u8f91u7528u6237u4e2au4ebau8d44u6599uff08u5305u542bu5b9eu540du8ba4u8bc1uff090a3ca20id3du7f16u8f91u7528u6237u4e2au4ebau8d44u6599uff08u5305u542bu5b9eu540du8ba4u8bc1uff093e203ca3e">编辑用户个人资料(包含实名认证)
<a id=编辑用户个人资料(包含实名认证)> </a></h2>
<p></p>
<h3 id="-29">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/profile</p>
<p><strong>Method:</strong> PATCH</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/profile
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误, 图片保存失败</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 请求的字段参数 发送几个保存几个,不发送的不修改</h3>
<h3 id="-30">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> name</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>昵称</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> photo</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>头像 base64编码处理</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> gender</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>性别,0-男,1-女</span></td><td key=5></td></tr><tr key=0-3><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> birthday</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>生日,格式'2018-12-20'</span></td><td key=5></td></tr><tr key=0-4><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> real_name</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>真实姓名</span></td><td key=5></td></tr><tr key=0-5><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> id_number</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证号</span></td><td key=5></td></tr><tr key=0-6><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> id_card_front</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证正面照片 base64编码处理</span></td><td key=5></td></tr><tr key=0-7><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> id_card_back</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证背面照片 base64编码处理</span></td><td key=5></td></tr><tr key=0-8><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> id_card_handheld</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>手持身份证照片 base64编码处理</span></td><td key=5></td></tr><tr key=0-9><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> intro</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>个人介绍</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-31">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>用户名</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>头像url地址</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> gender</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>性别,0-男,1-女</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> birthday</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>生日,格式 '2018-12-20'</span></td><td key=5></td></tr><tr key=0-1-5><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> real_name</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>真实用户名</span></td><td key=5></td></tr><tr key=0-1-6><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_number</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证号</span></td><td key=5></td></tr><tr key=0-1-7><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_front</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证正面照片url</span></td><td key=5></td></tr><tr key=0-1-8><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_back</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证背面照片url</span></td><td key=5></td></tr><tr key=0-1-9><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_handheld</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>手持身份证照片url</span></td><td key=5></td></tr><tr key=0-1-10><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> intro</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>个人介绍</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u4feeu6539u6307u5b9au7528u6237u9891u90530a3ca20id3du4feeu6539u6307u5b9au7528u6237u9891u90533e203ca3e">修改指定用户频道
<a id=修改指定用户频道> </a></h2>
<p></p>
<h3 id="-32">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels/:target</p>
<p><strong>Method:</strong> PUT</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 本接口仅修改对应用户频道的顺序。</h3>
<h3 id="-33">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>频道id</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-34">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5220u9664u6307u5b9au7528u6237u9891u90530a3ca20id3du5220u9664u6307u5b9au7528u6237u9891u90533e203ca3e">删除指定用户频道
<a id=删除指定用户频道> </a></h2>
<p></p>
<h3 id="-35">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>204 删除成功&nbsp;,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
</ul>
<h3>3 本接口仅删除对应用户频道的顺序。</h3>
<h3 id="-36">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>用户频道id</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody">
</tbody>
</table>
<h3 id="-37">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5237u65b0u7528u6237token0a3ca20id3du5237u65b0u7528u6237token3e203ca3e">刷新用户token
<a id=刷新用户token> </a></h2>
<p></p>
<h3 id="-38">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/authorizations</p>
<p><strong>Method:</strong> PUT</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/authorizations
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>403&nbsp; refresh_token 未携带或已过期</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-39">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>refresh_token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-40">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> token</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户token</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u5173u6ce8u7528u62370a3ca20id3du53d6u6d88u5173u6ce8u7528u62373e203ca3e">取消关注用户
<a id=取消关注用户> </a></h2>
<p></p>
<h3 id="-41">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/followings/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/followings/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-42">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>目标用户(被取消关注的用户id)</td>
</tr>
</tbody>
</table>
<h3 id="-43">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u62c9u9ed1u7528u62370a3ca20id3du53d6u6d88u62c9u9ed1u7528u62373e203ca3e">取消拉黑用户
<a id=取消拉黑用户> </a></h2>
<p></p>
<h3 id="-44">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/blacklists/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/blacklists/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-45">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>被拉黑的用户id</td>
</tr>
</tbody>
</table>
<h3 id="-46">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u90e8u5206u8986u76d6uff090a3ca20id3du6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u90e8u5206u8986u76d6uff093e203ca3e">批量修改用户频道列表(部分覆盖)
<a id=批量修改用户频道列表(部分覆盖)> </a></h2>
<p></p>
<h3 id="-47">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels</p>
<p><strong>Method:</strong> PATCH</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 本接口对收到的用户频道 新增的保存,原有的覆盖顺序序号,但不会删除未涉及到的用户频道。</h3>
<h3 id="-48">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户关注的频道列表</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-0-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-0-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-49">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-0-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-1-0-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u91cdu7f6eu5f0fuff090a3ca20id3du6279u91cfu4feeu6539u7528u6237u9891u9053u5217u8868uff08u91cdu7f6eu5f0fuff093e203ca3e">批量修改用户频道列表(重置式)
<a id=批量修改用户频道列表(重置式)> </a></h2>
<p></p>
<h3 id="-50">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels</p>
<p><strong>Method:</strong> PUT</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 本接口会先删除用户原有的关注频道,再重新保存用户频道,最终保存的用户频道仅为此接口收到的数据。可作为用户编辑频道时一次做了多个频道的顺序修改、新增、删除等行为的接口。也可作为用户初始频道设置</h3>
<h3 id="-51">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户关注的频道列表</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-0-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-0-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-52">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-0-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-1-0-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u6279u91cfu5220u9664u7528u6237u9891u9053u5217u88680a3ca20id3du6279u91cfu5220u9664u7528u6237u9891u9053u5217u88683e203ca3e">批量删除用户频道列表
<a id=批量删除用户频道列表> </a></h2>
<p></p>
<h3 id="-53">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>204 删除成功&nbsp;,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
</ul>
<h3 id="-54">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> channels</span></td><td key=1><span>integer []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户关注的频道列表</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>integer</span></p></td></tr>
</tbody>
</table>
<h3 id="-55">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u62c9u9ed1u7528u62370a3ca20id3du62c9u9ed1u7528u62373e203ca3e">拉黑用户
<a id=拉黑用户> </a></h2>
<p></p>
<h3 id="-56">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/blacklists</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/blacklists
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-57">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-58">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被拉黑的用户id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u7528u6237u8ba4u8bc1uff08u767bu5f55u6ce8u518cuff090a3ca20id3du7528u6237u8ba4u8bc1uff08u767bu5f55u6ce8u518cuff093e203ca3e">用户认证(登录注册)
<a id=用户认证(登录注册)> </a></h2>
<p></p>
<h3 id="-59">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/authorizations</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1. 线上地址</h3>
<p><a href="http://ttapi.research.itcast.cn/app/v1_0/authorizations">http://ttapi.research.itcast.cn/app/v1_0/authorizations</a></p>
<h3>2.&nbsp; 返回HTTP状态码</h3>
<p><strong>1. 201 OK</strong><br>
2. 400 请求参数错误<br>
&nbsp; &nbsp; &nbsp; &nbsp; 包括:参数缺失、手机号格式不正确、验证码失效等<br>
3. 507 服务器数据库异常</p>
<h3>3. token说明</h3>
<ol>
<li><code data-backticks="1">token</code>用于访问需要身份认证的普通接口,有效期2小时</li>
<li><code data-backticks="1">refresh_token</code> 用于在token过期后,获取新的用户token,有效期14天</li>
</ol>
<h3 id="-60">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> mobile</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>手机号</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> code</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>短信验证码</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-61">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>数据</span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> token</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户token令牌</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> refresh_token</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用于刷新token的令牌</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5173u6ce8u7528u62370a3ca20id3du5173u6ce8u7528u62373e203ca3e">关注用户
<a id=关注用户> </a></h2>
<p></p>
<h3 id="-62">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/followings</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/followings
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-63">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-64">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被关注的用户id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u7f16u8f91u7528u6237u7167u7247u8d44u6599uff08u5934u50cfu3001u8eabu4efdu8bc1u7167u7247uff090a3ca20id3du7f16u8f91u7528u6237u7167u7247u8d44u6599uff08u5934u50cfu3001u8eabu4efdu8bc1u7167u7247uff093e203ca3e">编辑用户照片资料(头像、身份证照片)
<a id=编辑用户照片资料(头像、身份证照片)> </a></h2>
<p></p>
<h3 id="-65">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/photo</p>
<p><strong>Method:</strong> PATCH</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/photo
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误, 图片保存失败</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 请求的字段参数 发送几个保存几个,不发送的不修改</h3>
<h3 id="-66">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>multipart/form-data</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>photo</td>
<td>file</td>
<td></td>
<td></td>
<td>头像</td>
</tr>
<tr>
<td>id_card_front</td>
<td>file</td>
<td></td>
<td></td>
<td>身份证正面照片</td>
</tr>
<tr>
<td>id_card_back</td>
<td>file</td>
<td></td>
<td></td>
<td>身份证背面照片</td>
</tr>
<tr>
<td>id_card_handheld</td>
<td>file</td>
<td></td>
<td></td>
<td>手持身份证照片</td>
</tr>
</tbody>
</table>
<h3 id="-67">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>头像url地址</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_front</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证正面照片url</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_back</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>身份证背面照片url</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id_card_handheld</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>手持身份证照片url</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u6307u5b9au7528u6237u4fe1u606f0a3ca20id3du83b7u53d6u6307u5b9au7528u6237u4fe1u606f3e203ca3e">获取指定用户信息
<a id=获取指定用户信息> </a></h2>
<p></p>
<h3 id="-68">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/users/:target</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/users/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 不强制用户登录,匿名用户 关注状态默认否</h3>
<h3 id="-69">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token,可选,登录用户会额外查询是否关了注目标用户</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>目标用户id</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-70">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户名</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户头像</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_media</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否是自媒体,0-否,1-是</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> intro</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>简介</span></td><td key=5></td></tr><tr key=0-1-5><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> certi</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>自媒体认证说明</span></td><td key=5></td></tr><tr key=0-1-6><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> art_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布文章数</span></td><td key=5></td></tr><tr key=0-1-7><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> follow_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注的数目</span></td><td key=5></td></tr><tr key=0-1-8><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> fans_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被关注的数目(粉丝数目)</span></td><td key=5></td></tr><tr key=0-1-9><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被点赞数</span></td><td key=5></td></tr><tr key=0-1-10><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_following</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否关注了用户</span></td><td key=5></td></tr><tr key=0-1-11><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_blacklist</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否拉黑了用户</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u4e2au4ebau8d44u65990a3ca20id3du83b7u53d6u7528u6237u4e2au4ebau8d44u65993e203ca3e">获取用户个人资料
<a id=获取用户个人资料> </a></h2>
<p></p>
<h3 id="-71">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/profile</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/profile
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-72">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-73">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户名</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>头像</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> mobile</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>手机号</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> gender</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>性别,0-男,1-女</span></td><td key=5></td></tr><tr key=0-1-5><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> birthday</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>生日,格式 '2018-12-20'</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u7684u5173u6ce8u5217u88680a3ca20id3du83b7u53d6u7528u6237u7684u5173u6ce8u5217u88683e203ca3e">获取用户的关注列表
<a id=获取用户的关注列表> </a></h2>
<p></p>
<h3 id="-74">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/followings</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/followings
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-75">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-76">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>所有关注的用户总数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注的用户</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-3-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注的用户id</span></td><td key=5></td></tr><tr key=0-1-3-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注的用户名</span></td><td key=5></td></tr><tr key=0-1-3-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>头像</span></td><td key=5></td></tr><tr key=0-1-3-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> fans_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝数</span></td><td key=5></td></tr><tr key=0-1-3-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> mutual_follow</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否互相关注</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u7684u7c89u4e1du5217u88680a3ca20id3du83b7u53d6u7528u6237u7684u7c89u4e1du5217u88683e203ca3e">获取用户的粉丝列表
<a id=获取用户的粉丝列表> </a></h2>
<p></p>
<h3 id="-77">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/followers</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/followings
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-78">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-79">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>所有粉丝的用户总数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝用户</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-3-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝用户id</span></td><td key=5></td></tr><tr key=0-1-3-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝用户名</span></td><td key=5></td></tr><tr key=0-1-3-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>头像</span></td><td key=5></td></tr><tr key=0-1-3-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> fans_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝数</span></td><td key=5></td></tr><tr key=0-1-3-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> mutual_follow</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否互相关注</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u7684u7edfu8ba1u6570u636e0a3ca20id3du83b7u53d6u7528u6237u7684u7edfu8ba1u6570u636e3e203ca3e">获取用户的统计数据
<a id=获取用户的统计数据> </a></h2>
<p></p>
<h3 id="-80">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/figure</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/figure
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3></h3>
<h3 id="-81">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-82">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> fans_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>粉丝数量</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> read_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作品被阅读的数量</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u81eau5df1u4fe1u606f0a3ca20id3du83b7u53d6u7528u6237u81eau5df1u4fe1u606f3e203ca3e">获取用户自己信息
<a id=获取用户自己信息> </a></h2>
<p></p>
<h3 id="-83">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户认证失败</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 强制用户登录</h3>
<h3 id="-84">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token,必传</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注目标(被关注的用户id)</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-85">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户名</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户头像</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_media</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否是自媒体,0-否,1-是</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> intro</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>简介</span></td><td key=5></td></tr><tr key=0-1-5><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> certi</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>自媒体认证说明</span></td><td key=5></td></tr><tr key=0-1-6><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> art_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布文章数</span></td><td key=5></td></tr><tr key=0-1-7><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> follow_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>关注的数目</span></td><td key=5></td></tr><tr key=0-1-8><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> fans_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被关注的数目(粉丝数目)</span></td><td key=5></td></tr><tr key=0-1-9><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>被点赞数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u9891u9053u5217u88680a3ca20id3du83b7u53d6u7528u6237u9891u9053u5217u88683e203ca3e">获取用户频道列表
<a id=获取用户频道列表> </a></h2>
<p></p>
<h3 id="-86">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 不强制用户登录,匿名用户返回后台设置的默认频道列表</h3>
<h3 id="-87">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户Token,未登录用户为空</td>
</tr>
</tbody>
</table>
<h3 id="-88">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道列表</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-0-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道ID</span></td><td key=5></td></tr><tr key=0-1-0-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道名称</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u77edu4fe1u9a8cu8bc1u78010a3ca20id3du83b7u53d6u77edu4fe1u9a8cu8bc1u78013e203ca3e">获取短信验证码
<a id=获取短信验证码> </a></h2>
<p></p>
<h3 id="-89">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/sms/codes/:mobile</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h4>1 线上接口路径</h4>
<p><a href="http://ttapi.research.itcast.cn/app/v1_0/sms/codes/:mobile">http://ttapi.research.itcast.cn/app/v1_0/sms/codes/:mobile</a></p>
<h4>2 接口访问次数受限</h4>
<pre><code>每手机号每分钟1次
<p></code></pre></p>
<h4>3 返回HTTP状态码</h4>
<ol>
<li>200 OK</li>
<li>404 手机号不正确</li>
<li>429 接口访问次数受限 , body数据返回</li>
</ol>
<pre><code data-language="json" class="lang-json">{
"message": "Too many requests."
}
<p></code></pre></p>
<ol>
<li>507 服务器数据库异常</li>
</ol>
<h3 id="-90">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>18612345678</td>
<td>手机号</td>
</tr>
</tbody>
</table>
<h3 id="-91">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>数据</span></td><td key=5></td></tr><tr key=0-0-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> mobile</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>手机号</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3>OK</td><td key=4><span>提示信息 ok</span></td><td key=5><p key=2><span style="font-weight: '700'">枚举: </span><span>OK</span></p></td></tr>
</tbody>
</table>
<h2 id="u8bbeu7f6eu7528u6237u9891u9053u5217u8868uff08u589eu91cfu5f0fuff090a3ca20id3du8bbeu7f6eu7528u6237u9891u9053u5217u8868uff08u589eu91cfu5f0fuff093e203ca3e">设置用户频道列表(增量式)
<a id=设置用户频道列表(增量式)> </a></h2>
<p></p>
<h3 id="-92">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/channels</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>409 已存在用户关注的频道,冲突</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 本接口仅保存数据,不会覆盖用户原有已关注的频道,遇到已经保存过的数据会返回409,可作为用户初次设置频道或新增频道使用</h3>
<h3 id="-93">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户令牌token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户关注的频道列表</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-0-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-0-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-94">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-0-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-1-0-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> seq</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>顺序序号</span></td><td key=5></td></tr>
</tbody>
</table>
<h1 id="u65b0u95fb">新闻</h1>
<p></p>
<h2 id="u6dfbu52a0u8bc4u8bbau6216u8bc4u8bbau56deu590d0a3ca20id3du6dfbu52a0u8bc4u8bbau6216u8bc4u8bbau56deu590d3e203ca3e">添加评论或评论回复
<a id=添加评论或评论回复> </a></h2>
<p></p>
<h3 id="-95">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/comments</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/comments
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>403 文章已关闭评论</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-96">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论的目标id(评论文章即为文章id,对评论进行回复则为评论id)</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> content</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论内容</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> art_id</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>文章id,对评论内容发表回复时,需要传递此参数,表明所属文章id。对文章进行评论,不要传此参数。</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-97">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> com_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>新建的评论id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论所属的目标id</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论所属的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u4e3eu62a5u6587u7ae00a3ca20id3du4e3eu62a5u6587u7ae03e203ca3e">举报文章
<a id=举报文章> </a></h2>
<p></p>
<h3 id="-98">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/reports</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/reports
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>409 此用户已举报过该文章(冲突)</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-99">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>举报的文章id</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>举报类型:
0-其他问题,1-标题夸张,2-低俗色情,3-错别字多,4-旧闻重复,5-广告软文,6-内容不实,7-涉嫌违法犯罪,8-侵权'
</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> remark</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>其他问题 的附加说明</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-100">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>举报的文章id</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>举报类型</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u5bf9u6587u7ae0u4e0du559cu6b220a3ca20id3du53d6u6d88u5bf9u6587u7ae0u4e0du559cu6b223e203ca3e">取消对文章不喜欢
<a id=取消对文章不喜欢> </a></h2>
<p></p>
<h3 id="-101">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/dislikes/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/dislikes/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-102">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>文章id</td>
</tr>
</tbody>
</table>
<h3 id="-103">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u5bf9u6587u7ae0u70b9u8d5e0a3ca20id3du53d6u6d88u5bf9u6587u7ae0u70b9u8d5e3e203ca3e">取消对文章点赞
<a id=取消对文章点赞> </a></h2>
<p></p>
<h3 id="-104">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/likings/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/likings/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-105">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>文章id</td>
</tr>
</tbody>
</table>
<h3 id="-106">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e0a3ca20id3du53d6u6d88u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e3e203ca3e">取消对评论或评论回复点赞
<a id=取消对评论或评论回复点赞> </a></h2>
<p></p>
<h3 id="-107">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/comment/likings/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/comment/likings/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-108">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td>要取消点赞的评论id或评论回复id</td>
</tr>
</tbody>
</table>
<h3 id="-109">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u53d6u6d88u6536u85cfu6587u7ae00a3ca20id3du53d6u6d88u6536u85cfu6587u7ae03e203ca3e">取消收藏文章
<a id=取消收藏文章> </a></h2>
<p></p>
<h3 id="-110">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/collections/:target</p>
<p><strong>Method:</strong> DELETE</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/collections/:target
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li><strong>204 取消成功,注意这是本接口成功调用的返回状态码,body没有数据(没有默认的message)</strong></li>
<li>401 用户未认证</li>
<li>404 访问路径错误</li>
<li>507 数据库异常</li>
</ul>
<h3 id="-111">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="-112">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5bf9u6587u7ae0u4e0du559cu6b220a3ca20id3du5bf9u6587u7ae0u4e0du559cu6b223e203ca3e">对文章不喜欢
<a id=对文章不喜欢> </a></h2>
<p></p>
<h3 id="-113">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/dislikes</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/dislikes
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-114">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>不喜欢的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-115">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>不喜欢的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5bf9u6587u7ae0u70b9u8d5e0a3ca20id3du5bf9u6587u7ae0u70b9u8d5e3e203ca3e">对文章点赞
<a id=对文章点赞> </a></h2>
<p></p>
<h3 id="-116">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/likings</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/likings
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-117">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-118">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>点赞的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e0a3ca20id3du5bf9u8bc4u8bbau6216u8bc4u8bbau56deu590du70b9u8d5e3e203ca3e">对评论或评论回复点赞
<a id=对评论或评论回复点赞> </a></h2>
<p></p>
<h3 id="-119">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/comment/likings</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/comment/likings
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3 id="-120">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞的评论id</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-121">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>点赞的评论id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u6536u85cfu6587u7ae00a3ca20id3du6536u85cfu6587u7ae03e203ca3e">收藏文章
<a id=收藏文章> </a></h2>
<p></p>
<h3 id="-122">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/collections</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/collections
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>401 用户未认证</li>
<li>507 数据库错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 在请求头Trace 中传递collect埋点参数</h3>
<h3 id="-123">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token</td>
</tr>
<tr>
<td>Trace</td>
<td></td>
<td></td>
<td></td>
<td>collect埋点参数</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏的目标文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-124">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏的文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u5168u90e8u9891u9053u5217u88680a3ca20id3du5168u90e8u9891u9053u5217u88683e203ca3e">全部频道列表
<a id=全部频道列表> </a></h2>
<p></p>
<h3 id="-125">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/channels</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/channels
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-126">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="-127">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> channels</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-0-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道id</span></td><td key=5></td></tr><tr key=0-1-0-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>频道名称</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u5f53u524du7528u6237u6587u7ae0u5217u88680a3ca20id3du83b7u53d6u5f53u524du7528u6237u6587u7ae0u5217u88683e203ca3e">获取当前用户文章列表
<a id=获取当前用户文章列表> </a></h2>
<p></p>
<h3 id="-128">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/articles</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/articles
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>401 用户未认证</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-129">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-130">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-6-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-6-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数</span></td><td key=5></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> collect_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏数</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u65b0u95fbu6587u7ae0u8be6u60c50a3ca20id3du83b7u53d6u65b0u95fbu6587u7ae0u8be6u60c53e203ca3e">获取新闻文章详情
<a id=获取新闻文章详情> </a></h2>
<p></p>
<h3 id="-131">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/articles/:article_id</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h4>1. 说明</h4>
<p>本接口不包含文章评论,文章评论在另外的接口。</p>
<h4>2. 线上地址</h4>
<p><a href="http://ttapi.research.itcast.cn/app/v1_0/articles/:article_id">http://ttapi.research.itcast.cn/app/v1_0/articles/:article_id</a><br>
如http://ttapi.research.itcast.cn/app/v1_0/articles/1</p>
<h4>3. 返回HTTP状态码说明</h4>
<ol>
<li>200 OK</li>
<li>404 文章不存在</li>
<li>507 服务器数据库异常</li>
</ol>
<h4>4. 在Trace 请求头中传递click埋点参数</h4>
<h3 id="-132">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td>jwt token</td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户身份token,匿名用户无需携带</td>
</tr>
<tr>
<td>Trace</td>
<td></td>
<td></td>
<td></td>
<td>click的埋点参数</td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td></td>
<td>文章id</td>
</tr>
</tbody>
</table>
<h3 id="-133">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息 OK</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>数据</span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章ID</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布日期</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-4><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名</span></td><td key=5></td></tr><tr key=0-1-5><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> aut_photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者头像url 无图片,默认为null</span></td><td key=5></td></tr><tr key=0-1-6><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_followed</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否关注了作者</span></td><td key=5></td></tr><tr key=0-1-7><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> attitude</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户对文章的态度, -1: 无态度,0-不喜欢,1-点赞</span></td><td key=5></td></tr><tr key=0-1-8><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> content</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章内容</span></td><td key=5></td></tr><tr key=0-1-9><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> recomments</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>相关文章推荐,无推荐为空数组</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-9-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-9-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-9-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> tracking</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>埋点参数</span></td><td key=5></td></tr><tr key=0-1-10><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> is_collected</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否收藏了文章</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u6536u85cfu5217u88680a3ca20id3du83b7u53d6u7528u6237u6536u85cfu5217u88683e203ca3e">获取用户收藏列表
<a id=获取用户收藏列表> </a></h2>
<p></p>
<h3 id="-134">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/article/collections</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/article/collections
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>401 用户未认证</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-135">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-136">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-6-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-6-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数</span></td><td key=5></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> collect_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏数</span></td><td key=5></td></tr><tr key=0-1-2-9><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_liking</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否对文章点赞</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u6587u7ae0u5217u88680a3ca20id3du83b7u53d6u7528u6237u6587u7ae0u5217u88683e203ca3e">获取用户文章列表
<a id=获取用户文章列表> </a></h2>
<p></p>
<h3 id="-137">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/users/:user_id/articles</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/users/:user_id/articles
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-138">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>路径参数</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>user_id</td>
<td></td>
<td>用户id</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-139">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-6-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-6-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数</span></td><td key=5></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> collect_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏数</span></td><td key=5></td></tr><tr key=0-1-2-9><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_liking</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否点赞</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u9605u8bfbu5386u53f20a3ca20id3du83b7u53d6u7528u6237u9605u8bfbu5386u53f23e203ca3e">获取用户阅读历史
<a id=获取用户阅读历史> </a></h2>
<p></p>
<h3 id="-140">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/user/histories</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/user/histories
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>401 用户未认证</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-141">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td>用户token</td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-142">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-6-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-6-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数</span></td><td key=5></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> collect_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>收藏数</span></td><td key=5></td></tr><tr key=0-1-2-9><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_liking</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否对文章点赞</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章总数</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u83b7u53d6u8bc4u8bbau6216u8bc4u8bbau56deu590d0a3ca20id3du83b7u53d6u8bc4u8bbau6216u8bc4u8bbau56deu590d3e203ca3e">获取评论或评论回复
<a id=获取评论或评论回复> </a></h2>
<p></p>
<h3 id="-143">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/comments</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/comments
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li>507 数据库错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3 id="-144">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td></td>
<td>a或c</td>
<td>评论类型,a-对文章(article)的评论,c-对评论(comment)的回复</td>
</tr>
<tr>
<td>source</td>
<td></td>
<td></td>
<td>源id,文章id或评论id</td>
</tr>
<tr>
<td>offset</td>
<td></td>
<td></td>
<td>获取评论数据的偏移量,值为评论id,表示从此id的数据向后取,不传表示从第一页开始读取数据</td>
</tr>
<tr>
<td>limit</td>
<td></td>
<td></td>
<td>获取的评论数据个数,不传表示采用后端服务设定的默认每页数据量</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> target</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论的目标id(评论文章即为文章id,对评论进行回复则为评论id)</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> content</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论内容</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> aid</span></td><td key=1><span>integer</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>文章id,对评论内容发表回复时,需要传递此参数,表明所属文章id。对文章进行评论,不要传此参数。</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-145">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> total_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>该文章的评论总数 或 该评论的回复总数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> end_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>所有评论或回复的最后一个id(截止offset值,小于此值的offset可以不用发送请求获取评论数据,已经没有数据),若无评论或回复数据,则值为NULL</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> last_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>本次返回结果的最后一个评论id,作为请求下一页数据的offset参数,若本次无具体数据,则值为NULL</span></td><td key=5></td></tr><tr key=0-1-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论或回复的内容</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-3-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> com_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论或回复id</span></td><td key=5></td></tr><tr key=0-1-3-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论或回复的用户id</span></td><td key=5></td></tr><tr key=0-1-3-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户名称</span></td><td key=5></td></tr><tr key=0-1-3-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_photo</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户头像url</span></td><td key=5></td></tr><tr key=0-1-3-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> like_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点赞数量</span></td><td key=5></td></tr><tr key=0-1-3-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> reply_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>回复数量</span></td><td key=5></td></tr><tr key=0-1-3-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>创建时间</span></td><td key=5></td></tr><tr key=0-1-3-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> content</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论或回复内容</span></td><td key=5></td></tr><tr key=0-1-3-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_top</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否置顶,0-不置顶,1-置顶</span></td><td key=5></td></tr><tr key=0-1-3-9><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_liking</span></td><td key=1><span>boolean</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前用户是否点赞</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u9605u8bfbu65f6u957fu57cbu70b9u53cdu99880a3ca20id3du9605u8bfbu65f6u957fu57cbu70b9u53cdu99883e203ca3e">阅读时长埋点反馈
<a id=阅读时长埋点反馈> </a></h2>
<p></p>
<h3 id="-146">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/reading/durations</p>
<p><strong>Method:</strong> POST</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/reading/durations
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>400 请求参数错误</li>
<li><strong>201 OK</strong></li>
</ul>
<h3>3 在请求头Trace 中传递read埋点参数</h3>
<h3 id="-147">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Trace</td>
<td></td>
<td></td>
<td></td>
<td>read埋点参数</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> duration</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>阅读时长 秒数</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr>
</tbody>
</table>
<h3 id="-148">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u9891u9053u65b0u95fbu63a8u8350-v100a3ca20id3du9891u9053u65b0u95fbu63a8u8350-v103e203ca3e">频道新闻推荐_V1.0
<a id=频道新闻推荐_V1.0> </a></h2>
<p></p>
<h3 id="-149">基本信息</h3>
<p><strong>Path:</strong> /app/v1_0/articles</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_0/articles
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 增加了埋点参数</h3>
<h3>4 Authorization 请求头说明</h3>
<h5>1) Bearer 开头为已认证用户的token</h5>
<h5>2) Anony 开头为匿名用户的手机识别码</h5>
<h3 id="-150">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td></td>
</tr>
</tbody>
</table>
<p>或者<br>
Anony xxxxxxxxxxxxxxxxxxxx | 用户身份token 或 匿名用户手机识别码 |<br>
<strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>channel_id</td>
<td></td>
<td></td>
<td>频道ID</td>
</tr>
<tr>
<td>page</td>
<td></td>
<td></td>
<td>页数,不传默认为1</td>
</tr>
<tr>
<td>per_page</td>
<td></td>
<td></td>
<td>每页数量,不传每页数量由后端决定</td>
</tr>
</tbody>
</table>
<h3 id="-151">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>当前页数</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> per_page</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>每页数量</span></td><td key=5></td></tr><tr key=0-1-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-2-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-2-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-2-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-2-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-2-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-2-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-2-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_top</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否置顶,0-不置顶,1-置顶</span></td><td key=5></td></tr><tr key=0-1-2-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-2-7-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-2-7-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-2-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> trace</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>埋点参数</span></td><td key=5></td></tr><tr key=0-1-2-8-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> click</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点击文章,进入文章详情页时反馈</span></td><td key=5></td></tr><tr key=0-1-2-8-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> collect</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户点击收藏文章时反馈</span></td><td key=5></td></tr><tr key=0-1-2-8-2><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> share</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户分享时反馈</span></td><td key=5></td></tr><tr key=0-1-2-8-3><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> read</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户的阅读时长,退出详情页时反馈</span></td><td key=5></td></tr>
</tbody>
</table>
<h2 id="u9891u9053u65b0u95fbu63a8u8350-v110a3ca20id3du9891u9053u65b0u95fbu63a8u8350-v113e203ca3e">频道新闻推荐_V1.1
<a id=频道新闻推荐_V1.1> </a></h2>
<p></p>
<h3 id="-152">基本信息</h3>
<p><strong>Path:</strong> /app/v1_1/articles</p>
<p><strong>Method:</strong> GET</p>
<p><strong>接口描述:</strong></p>
<h3>1 线上地址</h3>
<pre><code data-language="url" class="lang-url">http://ttapi.research.itcast.cn/app/v1_1/articles
<p></code></pre></p>
<h3>2 返回状态码</h3>
<ul>
<li>507 数据库错误</li>
<li>400 请求参数错误</li>
<li><strong>200 OK</strong></li>
</ul>
<h3>3 增加了埋点参数</h3>
<h3>4 Authorization 请求头说明</h3>
<h5>1) Bearer 开头为已认证用户的token</h5>
<h5>2) Anony 开头为匿名用户的手机识别码</h5>
<h3 id="-153">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Authorization</td>
<td></td>
<td></td>
<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDMyODQzNjYsInVzZXJfaWQiOjF9.mLYitrKsn4E4KdQd0CNPugKrH8uQmXEQTlG_JutC8jU</td>
<td></td>
</tr>
</tbody>
</table>
<p>或者<br>
Anony xxxxxxxxxxxxxxxxxxxx | 用户身份token 或 匿名用户手机识别码 |<br>
<strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>channel_id</td>
<td></td>
<td></td>
<td>频道ID</td>
</tr>
<tr>
<td>timestamp</td>
<td></td>
<td>时间戳整数 单位毫秒</td>
<td>时间戳,请求新的推荐数据传当前的时间戳,请求历史推荐传指定的时间戳</td>
</tr>
<tr>
<td>with_top</td>
<td></td>
<td>0或1</td>
<td>是否包含置顶,进入页面第一次请求时要包含置顶文章,1-包含置顶,0-不包含</td>
</tr>
</tbody>
</table>
<h3 id="-154">返回数据</h3>
<table>
<thead class="ant-table-thead">
<tr>
<th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
</tr>
</thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> message</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>提示信息</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span></span></td><td key=5></td></tr><tr key=0-1-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> pre_timestamp</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>请求前一页历史数据的时间戳</span></td><td key=5></td></tr><tr key=0-1-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> results</span></td><td key=1><span>object []</span></td><td key=2>必须</td><td key=3></td><td key=4><span></span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>object</span></p></td></tr><tr key=0-1-1-0><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> art_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章id</span></td><td key=5></td></tr><tr key=0-1-1-1><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> title</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>文章标题</span></td><td key=5></td></tr><tr key=0-1-1-2><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_id</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者id</span></td><td key=5></td></tr><tr key=0-1-1-3><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> aut_name</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>作者名称</span></td><td key=5></td></tr><tr key=0-1-1-4><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> comm_count</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>评论数量</span></td><td key=5></td></tr><tr key=0-1-1-5><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> pubdate</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>发布时间</span></td><td key=5></td></tr><tr key=0-1-1-6><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> is_top</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>是否置顶,0-不置顶,1-置顶</span></td><td key=5></td></tr><tr key=0-1-1-7><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> cover</span></td><td key=1><span>object</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面</span></td><td key=5></td></tr><tr key=0-1-1-7-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> type</span></td><td key=1><span>integer</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面类型,0-无封面,1-1张封面图片,3-3张封面</span></td><td key=5></td></tr><tr key=0-1-1-7-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> images</span></td><td key=1><span>string []</span></td><td key=2>必须</td><td key=3></td><td key=4><span>封面图片</span></td><td key=5><p key=3><span style="font-weight: '700'">item 类型: </span><span>string</span></p></td></tr><tr key=0-1-1-8><td key=0><span style="padding-left: 40px"><span style="color: #8c8a8a">├─</span> trace</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span>埋点参数</span></td><td key=5></td></tr><tr key=0-1-1-8-0><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> click</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>点击文章,进入文章详情页时反馈</span></td><td key=5></td></tr><tr key=0-1-1-8-1><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> collect</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户点击收藏文章时反馈</span></td><td key=5></td></tr><tr key=0-1-1-8-2><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> share</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户分享时反馈</span></td><td key=5></td></tr><tr key=0-1-1-8-3><td key=0><span style="padding-left: 60px"><span style="color: #8c8a8a">├─</span> read</span></td><td key=1><span>string</span></td><td key=2>必须</td><td key=3></td><td key=4><span>用户的阅读时长,退出详情页时反馈</span></td><td key=5></td></tr>
</tbody>
</table>
<footer class="m-footer">
<p>Build by <a href="https://ymfe.org/">YMFE</a>.</p>
</footer>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wooden-joint/toutiao-m.git
git@gitee.com:wooden-joint/toutiao-m.git
wooden-joint
toutiao-m
toutiao-m
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385