api.html 330 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="">
  8. <title>我的网站</title>
  9. <!-- Bootstrap Core CSS -->
  10. <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  11. <!-- Plugin CSS -->
  12. <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  13. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  14. <!--[if lt IE 9]>
  15. <script src="https://cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
  16. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  17. <![endif]-->
  18. <style type="text/css">
  19. body {
  20. padding-top: 70px; margin-bottom: 15px;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  24. font-weight: 400;
  25. }
  26. h2 { font-size: 1.2em; }
  27. hr { margin-top: 10px; }
  28. .tab-pane { padding-top: 10px; }
  29. .mt0 { margin-top: 0px; }
  30. .footer { font-size: 12px; color: #666; }
  31. .docs-list .label { display: inline-block; min-width: 65px; padding: 0.3em 0.6em 0.3em; }
  32. .string { color: green; }
  33. .number { color: darkorange; }
  34. .boolean { color: blue; }
  35. .null { color: magenta; }
  36. .key { color: red; }
  37. .popover { max-width: 400px; max-height: 400px; overflow-y: auto;}
  38. .list-group.panel > .list-group-item {
  39. }
  40. .list-group-item:last-child {
  41. border-radius:0;
  42. }
  43. h4.panel-title a {
  44. font-weight:normal;
  45. font-size:14px;
  46. }
  47. h4.panel-title a .text-muted {
  48. font-size:12px;
  49. font-weight:normal;
  50. font-family: 'Verdana';
  51. }
  52. #sidebar {
  53. width: 220px;
  54. position: fixed;
  55. margin-left: -240px;
  56. overflow-y:auto;
  57. }
  58. #sidebar > .list-group {
  59. margin-bottom:0;
  60. }
  61. #sidebar > .list-group > a{
  62. text-indent:0;
  63. }
  64. #sidebar .child > a .tag{
  65. position: absolute;
  66. right: 10px;
  67. top: 11px;
  68. }
  69. #sidebar .child > a .pull-right{
  70. margin-left:3px;
  71. }
  72. #sidebar .child {
  73. border:1px solid #ddd;
  74. border-bottom:none;
  75. }
  76. #sidebar .child:last-child {
  77. border-bottom:1px solid #ddd;
  78. }
  79. #sidebar .child > a {
  80. border:0;
  81. min-height: 40px;
  82. }
  83. #sidebar .list-group a.current {
  84. background:#f5f5f5;
  85. }
  86. @media (max-width: 1620px){
  87. #sidebar {
  88. margin:0;
  89. }
  90. #accordion {
  91. padding-left:235px;
  92. }
  93. }
  94. @media (max-width: 768px){
  95. #sidebar {
  96. display: none;
  97. }
  98. #accordion {
  99. padding-left:0px;
  100. }
  101. }
  102. .label-primary {
  103. background-color: #248aff;
  104. }
  105. .docs-list .panel .panel-body .table {
  106. margin-bottom: 0;
  107. }
  108. </style>
  109. </head>
  110. <body>
  111. <!-- Fixed navbar -->
  112. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  113. <div class="container">
  114. <div class="navbar-header">
  115. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  116. <span class="sr-only">Toggle navigation</span>
  117. <span class="icon-bar"></span>
  118. <span class="icon-bar"></span>
  119. <span class="icon-bar"></span>
  120. </button>
  121. <a class="navbar-brand" href="./" target="_blank">我的网站</a>
  122. </div>
  123. <div class="navbar-collapse collapse">
  124. <form class="navbar-form navbar-right">
  125. <div class="form-group">
  126. Token:
  127. </div>
  128. <div class="form-group">
  129. <input type="text" class="form-control input-sm" data-toggle="tooltip" title="Token在会员注册或登录后都会返回,WEB端同时存在于Cookie中" placeholder="token" id="token" />
  130. </div>
  131. <div class="form-group">
  132. Apiurl:
  133. </div>
  134. <div class="form-group">
  135. <input id="apiUrl" type="text" class="form-control input-sm" data-toggle="tooltip" title="API接口URL" placeholder="https://api.mydomain.com" value="" />
  136. </div>
  137. <div class="form-group">
  138. <button type="button" class="btn btn-success btn-sm" data-toggle="tooltip" title="点击保存后Token和Api url都将保存在本地Localstorage中" id="save_data">
  139. <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
  140. </button>
  141. </div>
  142. </form>
  143. </div><!--/.nav-collapse -->
  144. </div>
  145. </div>
  146. <div class="container">
  147. <!-- menu -->
  148. <div id="sidebar">
  149. <div class="list-group panel">
  150. <a href="#公共接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">公共接口 <i class="fa fa-caret-down"></i></a>
  151. <div class="child collapse" id="公共接口">
  152. <a href="javascript:;" data-id="0" class="list-group-item">加载初始化 <span class="tag">
  153. </span>
  154. </a>
  155. <a href="javascript:;" data-id="1" class="list-group-item">上传文件 <span class="tag">
  156. <span class="label label-success pull-right noneedlogin">登</span>
  157. </span>
  158. </a>
  159. </div>
  160. <a href="#示例接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">示例接口 <i class="fa fa-caret-down"></i></a>
  161. <div class="child collapse" id="示例接口">
  162. <a href="javascript:;" data-id="2" class="list-group-item">测试名称 <span class="tag">
  163. </span>
  164. </a>
  165. <a href="javascript:;" data-id="3" class="list-group-item">无需登录的接口 <span class="tag">
  166. </span>
  167. </a>
  168. <a href="javascript:;" data-id="4" class="list-group-item">需要登录的接口 <span class="tag">
  169. <span class="label label-success pull-right noneedlogin">登</span>
  170. </span>
  171. </a>
  172. <a href="javascript:;" data-id="5" class="list-group-item">需要登录且需要验证有相应组的权限 <span class="tag">
  173. <span class="label label-danger pull-right">鉴</span>
  174. <span class="label label-success pull-right noneedlogin">登</span>
  175. </span>
  176. </a>
  177. </div>
  178. <a href="#邮箱验证码接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">邮箱验证码接口 <i class="fa fa-caret-down"></i></a>
  179. <div class="child collapse" id="邮箱验证码接口">
  180. <a href="javascript:;" data-id="6" class="list-group-item">发送验证码 <span class="tag">
  181. </span>
  182. </a>
  183. <a href="javascript:;" data-id="7" class="list-group-item">检测验证码 <span class="tag">
  184. </span>
  185. </a>
  186. </div>
  187. <a href="#首页接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">首页接口 <i class="fa fa-caret-down"></i></a>
  188. <div class="child collapse" id="首页接口">
  189. <a href="javascript:;" data-id="8" class="list-group-item">首页 <span class="tag">
  190. </span>
  191. </a>
  192. </div>
  193. <a href="#手机短信接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">手机短信接口 <i class="fa fa-caret-down"></i></a>
  194. <div class="child collapse" id="手机短信接口">
  195. <a href="javascript:;" data-id="9" class="list-group-item">发送验证码 <span class="tag">
  196. </span>
  197. </a>
  198. <a href="javascript:;" data-id="10" class="list-group-item">检测验证码 <span class="tag">
  199. </span>
  200. </a>
  201. </div>
  202. <a href="#Token接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">Token接口 <i class="fa fa-caret-down"></i></a>
  203. <div class="child collapse" id="Token接口">
  204. <a href="javascript:;" data-id="11" class="list-group-item">检测Token是否过期 <span class="tag">
  205. <span class="label label-success pull-right noneedlogin">登</span>
  206. </span>
  207. </a>
  208. <a href="javascript:;" data-id="12" class="list-group-item">刷新Token <span class="tag">
  209. <span class="label label-success pull-right noneedlogin">登</span>
  210. </span>
  211. </a>
  212. </div>
  213. <a href="#会员接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">会员接口 <i class="fa fa-caret-down"></i></a>
  214. <div class="child collapse" id="会员接口">
  215. <a href="javascript:;" data-id="13" class="list-group-item">会员中心 <span class="tag">
  216. <span class="label label-success pull-right noneedlogin">登</span>
  217. </span>
  218. </a>
  219. <a href="javascript:;" data-id="14" class="list-group-item">会员登录 <span class="tag">
  220. </span>
  221. </a>
  222. <a href="javascript:;" data-id="15" class="list-group-item">手机验证码登录 <span class="tag">
  223. </span>
  224. </a>
  225. <a href="javascript:;" data-id="16" class="list-group-item">注册会员 <span class="tag">
  226. </span>
  227. </a>
  228. <a href="javascript:;" data-id="17" class="list-group-item">退出登录 <span class="tag">
  229. <span class="label label-success pull-right noneedlogin">登</span>
  230. </span>
  231. </a>
  232. <a href="javascript:;" data-id="18" class="list-group-item">修改会员个人信息 <span class="tag">
  233. <span class="label label-success pull-right noneedlogin">登</span>
  234. </span>
  235. </a>
  236. <a href="javascript:;" data-id="19" class="list-group-item">修改邮箱 <span class="tag">
  237. </span>
  238. </a>
  239. <a href="javascript:;" data-id="20" class="list-group-item">修改手机号 <span class="tag">
  240. </span>
  241. </a>
  242. <a href="javascript:;" data-id="21" class="list-group-item">第三方登录 <span class="tag">
  243. </span>
  244. </a>
  245. <a href="javascript:;" data-id="22" class="list-group-item">重置密码 <span class="tag">
  246. </span>
  247. </a>
  248. </div>
  249. <a href="#验证接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">验证接口 <i class="fa fa-caret-down"></i></a>
  250. <div class="child collapse" id="验证接口">
  251. <a href="javascript:;" data-id="23" class="list-group-item">检测邮箱 <span class="tag">
  252. </span>
  253. </a>
  254. <a href="javascript:;" data-id="24" class="list-group-item">检测用户名 <span class="tag">
  255. </span>
  256. </a>
  257. <a href="javascript:;" data-id="25" class="list-group-item">检测昵称 <span class="tag">
  258. </span>
  259. </a>
  260. <a href="javascript:;" data-id="26" class="list-group-item">检测手机 <span class="tag">
  261. </span>
  262. </a>
  263. <a href="javascript:;" data-id="27" class="list-group-item">检测手机 <span class="tag">
  264. </span>
  265. </a>
  266. <a href="javascript:;" data-id="28" class="list-group-item">检测邮箱 <span class="tag">
  267. </span>
  268. </a>
  269. <a href="javascript:;" data-id="29" class="list-group-item">检测手机验证码 <span class="tag">
  270. </span>
  271. </a>
  272. <a href="javascript:;" data-id="30" class="list-group-item">检测邮箱验证码 <span class="tag">
  273. </span>
  274. </a>
  275. </div>
  276. </div>
  277. </div>
  278. <div class="panel-group docs-list" id="accordion">
  279. <h2>公共接口</h2>
  280. <hr>
  281. <div class="panel panel-default">
  282. <div class="panel-heading" id="heading-0">
  283. <h4 class="panel-title">
  284. <span class="label label-success">GET</span>
  285. <a data-toggle="collapse" data-parent="#accordion0" href="#collapseOne0"> 加载初始化 <span class="text-muted">/api/common/init</span></a>
  286. </h4>
  287. </div>
  288. <div id="collapseOne0" class="panel-collapse collapse">
  289. <div class="panel-body">
  290. <!-- Nav tabs -->
  291. <ul class="nav nav-tabs" id="doctab0">
  292. <li class="active"><a href="#info0" data-toggle="tab">基础信息</a></li>
  293. <li><a href="#sandbox0" data-toggle="tab">在线测试</a></li>
  294. <li><a href="#sample0" data-toggle="tab">返回示例</a></li>
  295. </ul>
  296. <!-- Tab panes -->
  297. <div class="tab-content">
  298. <div class="tab-pane active" id="info0">
  299. <div class="well">
  300. 加载初始化 </div>
  301. <div class="panel panel-default">
  302. <div class="panel-heading"><strong>权限</strong></div>
  303. <div class="panel-body">
  304. <table class="table table-hover">
  305. <tbody>
  306. <tr>
  307. <td>登录</td>
  308. <td>否</td>
  309. </tr>
  310. <tr>
  311. <td>鉴权</td>
  312. <td>否</td>
  313. </tr>
  314. </tbody>
  315. </table>
  316. </div>
  317. </div>
  318. <div class="panel panel-default">
  319. <div class="panel-heading"><strong>Headers</strong></div>
  320. <div class="panel-body">
  321. </div>
  322. </div>
  323. <div class="panel panel-default">
  324. <div class="panel-heading"><strong>参数</strong></div>
  325. <div class="panel-body">
  326. <table class="table table-hover">
  327. <thead>
  328. <tr>
  329. <th>名称</th>
  330. <th>类型</th>
  331. <th>必选</th>
  332. <th>描述</th>
  333. </tr>
  334. </thead>
  335. <tbody>
  336. <tr>
  337. <td>version</td>
  338. <td>string</td>
  339. <td>是</td>
  340. <td>版本号</td>
  341. </tr>
  342. <tr>
  343. <td>lng</td>
  344. <td>string</td>
  345. <td>是</td>
  346. <td>经度</td>
  347. </tr>
  348. <tr>
  349. <td>lat</td>
  350. <td>string</td>
  351. <td>是</td>
  352. <td>纬度</td>
  353. </tr>
  354. </tbody>
  355. </table>
  356. </div>
  357. </div>
  358. <div class="panel panel-default">
  359. <div class="panel-heading"><strong>正文</strong></div>
  360. <div class="panel-body">
  361. 无 </div>
  362. </div>
  363. </div><!-- #info -->
  364. <div class="tab-pane" id="sandbox0">
  365. <div class="row">
  366. <div class="col-md-12">
  367. <div class="panel panel-default">
  368. <div class="panel-heading"><strong>参数</strong>
  369. <div class="pull-right">
  370. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  371. </div>
  372. </div>
  373. <div class="panel-body">
  374. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/init" method="get" name="form0" id="form0">
  375. <div class="form-group">
  376. <label class="control-label" for="version">version</label>
  377. <input type="string" class="form-control input-sm" id="version" required placeholder="版本号" name="version">
  378. </div>
  379. <div class="form-group">
  380. <label class="control-label" for="lng">lng</label>
  381. <input type="string" class="form-control input-sm" id="lng" required placeholder="经度" name="lng">
  382. </div>
  383. <div class="form-group">
  384. <label class="control-label" for="lat">lat</label>
  385. <input type="string" class="form-control input-sm" id="lat" required placeholder="纬度" name="lat">
  386. </div>
  387. <div class="form-group form-group-submit">
  388. <button type="submit" class="btn btn-success send" rel="0">提交</button>
  389. <button type="reset" class="btn btn-info" rel="0">重置</button>
  390. </div>
  391. </form>
  392. </div>
  393. </div>
  394. <div class="panel panel-default">
  395. <div class="panel-heading"><strong>响应输出</strong></div>
  396. <div class="panel-body">
  397. <div class="row">
  398. <div class="col-md-12" style="overflow-x:auto">
  399. <pre id="response_headers0"></pre>
  400. <pre id="response0"></pre>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. <div class="panel panel-default">
  406. <div class="panel-heading"><strong>返回参数</strong></div>
  407. <div class="panel-body">
  408. </div>
  409. </div>
  410. </div>
  411. </div>
  412. </div><!-- #sandbox -->
  413. <div class="tab-pane" id="sample0">
  414. <div class="row">
  415. <div class="col-md-12">
  416. <pre id="sample_response0">无</pre>
  417. </div>
  418. </div>
  419. </div><!-- #sample -->
  420. </div><!-- .tab-content -->
  421. </div>
  422. </div>
  423. </div>
  424. <div class="panel panel-default">
  425. <div class="panel-heading" id="heading-1">
  426. <h4 class="panel-title">
  427. <span class="label label-primary">POST</span>
  428. <a data-toggle="collapse" data-parent="#accordion1" href="#collapseOne1"> 上传文件 <span class="text-muted">/api/common/upload</span></a>
  429. </h4>
  430. </div>
  431. <div id="collapseOne1" class="panel-collapse collapse">
  432. <div class="panel-body">
  433. <!-- Nav tabs -->
  434. <ul class="nav nav-tabs" id="doctab1">
  435. <li class="active"><a href="#info1" data-toggle="tab">基础信息</a></li>
  436. <li><a href="#sandbox1" data-toggle="tab">在线测试</a></li>
  437. <li><a href="#sample1" data-toggle="tab">返回示例</a></li>
  438. </ul>
  439. <!-- Tab panes -->
  440. <div class="tab-content">
  441. <div class="tab-pane active" id="info1">
  442. <div class="well">
  443. 上传文件 </div>
  444. <div class="panel panel-default">
  445. <div class="panel-heading"><strong>权限</strong></div>
  446. <div class="panel-body">
  447. <table class="table table-hover">
  448. <tbody>
  449. <tr>
  450. <td>登录</td>
  451. <td>是</td>
  452. </tr>
  453. <tr>
  454. <td>鉴权</td>
  455. <td>否</td>
  456. </tr>
  457. </tbody>
  458. </table>
  459. </div>
  460. </div>
  461. <div class="panel panel-default">
  462. <div class="panel-heading"><strong>Headers</strong></div>
  463. <div class="panel-body">
  464. </div>
  465. </div>
  466. <div class="panel panel-default">
  467. <div class="panel-heading"><strong>参数</strong></div>
  468. <div class="panel-body">
  469. <table class="table table-hover">
  470. <thead>
  471. <tr>
  472. <th>名称</th>
  473. <th>类型</th>
  474. <th>必选</th>
  475. <th>描述</th>
  476. </tr>
  477. </thead>
  478. <tbody>
  479. <tr>
  480. <td>file</td>
  481. <td>File</td>
  482. <td>是</td>
  483. <td>文件流</td>
  484. </tr>
  485. </tbody>
  486. </table>
  487. </div>
  488. </div>
  489. <div class="panel panel-default">
  490. <div class="panel-heading"><strong>正文</strong></div>
  491. <div class="panel-body">
  492. 无 </div>
  493. </div>
  494. </div><!-- #info -->
  495. <div class="tab-pane" id="sandbox1">
  496. <div class="row">
  497. <div class="col-md-12">
  498. <div class="panel panel-default">
  499. <div class="panel-heading"><strong>参数</strong>
  500. <div class="pull-right">
  501. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  502. </div>
  503. </div>
  504. <div class="panel-body">
  505. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/upload" method="POST" name="form1" id="form1">
  506. <div class="form-group">
  507. <label class="control-label" for="file">file</label>
  508. <input type="File" class="form-control input-sm" id="file" required placeholder="文件流" name="file">
  509. </div>
  510. <div class="form-group form-group-submit">
  511. <button type="submit" class="btn btn-success send" rel="1">提交</button>
  512. <button type="reset" class="btn btn-info" rel="1">重置</button>
  513. </div>
  514. </form>
  515. </div>
  516. </div>
  517. <div class="panel panel-default">
  518. <div class="panel-heading"><strong>响应输出</strong></div>
  519. <div class="panel-body">
  520. <div class="row">
  521. <div class="col-md-12" style="overflow-x:auto">
  522. <pre id="response_headers1"></pre>
  523. <pre id="response1"></pre>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. <div class="panel panel-default">
  529. <div class="panel-heading"><strong>返回参数</strong></div>
  530. <div class="panel-body">
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. </div><!-- #sandbox -->
  536. <div class="tab-pane" id="sample1">
  537. <div class="row">
  538. <div class="col-md-12">
  539. <pre id="sample_response1">无</pre>
  540. </div>
  541. </div>
  542. </div><!-- #sample -->
  543. </div><!-- .tab-content -->
  544. </div>
  545. </div>
  546. </div>
  547. <h2>示例接口</h2>
  548. <hr>
  549. <div class="panel panel-default">
  550. <div class="panel-heading" id="heading-2">
  551. <h4 class="panel-title">
  552. <span class="label label-primary">POST</span>
  553. <a data-toggle="collapse" data-parent="#accordion2" href="#collapseOne2"> 测试名称 <span class="text-muted">/api/demo/test/id/{id}/name/{name}</span></a>
  554. </h4>
  555. </div>
  556. <div id="collapseOne2" class="panel-collapse collapse">
  557. <div class="panel-body">
  558. <!-- Nav tabs -->
  559. <ul class="nav nav-tabs" id="doctab2">
  560. <li class="active"><a href="#info2" data-toggle="tab">基础信息</a></li>
  561. <li><a href="#sandbox2" data-toggle="tab">在线测试</a></li>
  562. <li><a href="#sample2" data-toggle="tab">返回示例</a></li>
  563. </ul>
  564. <!-- Tab panes -->
  565. <div class="tab-content">
  566. <div class="tab-pane active" id="info2">
  567. <div class="well">
  568. 测试描述信息 </div>
  569. <div class="panel panel-default">
  570. <div class="panel-heading"><strong>权限</strong></div>
  571. <div class="panel-body">
  572. <table class="table table-hover">
  573. <tbody>
  574. <tr>
  575. <td>登录</td>
  576. <td>否</td>
  577. </tr>
  578. <tr>
  579. <td>鉴权</td>
  580. <td>否</td>
  581. </tr>
  582. </tbody>
  583. </table>
  584. </div>
  585. </div>
  586. <div class="panel panel-default">
  587. <div class="panel-heading"><strong>Headers</strong></div>
  588. <div class="panel-body">
  589. <table class="table table-hover">
  590. <thead>
  591. <tr>
  592. <th>名称</th>
  593. <th>类型</th>
  594. <th>必选</th>
  595. <th>描述</th>
  596. </tr>
  597. </thead>
  598. <tbody>
  599. <tr>
  600. <td>token</td>
  601. <td>string</td>
  602. <td>是</td>
  603. <td>请求的Token</td>
  604. </tr>
  605. </tbody>
  606. </table>
  607. </div>
  608. </div>
  609. <div class="panel panel-default">
  610. <div class="panel-heading"><strong>参数</strong></div>
  611. <div class="panel-body">
  612. <table class="table table-hover">
  613. <thead>
  614. <tr>
  615. <th>名称</th>
  616. <th>类型</th>
  617. <th>必选</th>
  618. <th>描述</th>
  619. </tr>
  620. </thead>
  621. <tbody>
  622. <tr>
  623. <td>id</td>
  624. <td>integer</td>
  625. <td>是</td>
  626. <td>会员ID</td>
  627. </tr>
  628. <tr>
  629. <td>name</td>
  630. <td>string</td>
  631. <td>是</td>
  632. <td>用户名</td>
  633. </tr>
  634. <tr>
  635. <td>data</td>
  636. <td>object</td>
  637. <td>是</td>
  638. <td>扩展数据</td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. </div>
  643. </div>
  644. <div class="panel panel-default">
  645. <div class="panel-heading"><strong>正文</strong></div>
  646. <div class="panel-body">
  647. 无 </div>
  648. </div>
  649. </div><!-- #info -->
  650. <div class="tab-pane" id="sandbox2">
  651. <div class="row">
  652. <div class="col-md-12">
  653. <div class="panel panel-default">
  654. <div class="panel-heading"><strong>Headers</strong></div>
  655. <div class="panel-body">
  656. <div class="headers">
  657. <div class="form-group">
  658. <label class="control-label" for="token">token</label>
  659. <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token">
  660. </div>
  661. </div>
  662. </div>
  663. </div>
  664. <div class="panel panel-default">
  665. <div class="panel-heading"><strong>参数</strong>
  666. <div class="pull-right">
  667. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  668. </div>
  669. </div>
  670. <div class="panel-body">
  671. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test/id/{id}/name/{name}" method="POST" name="form2" id="form2">
  672. <div class="form-group">
  673. <label class="control-label" for="id">id</label>
  674. <input type="integer" class="form-control input-sm" id="id" required placeholder="会员ID" name="id">
  675. </div>
  676. <div class="form-group">
  677. <label class="control-label" for="name">name</label>
  678. <input type="string" class="form-control input-sm" id="name" required placeholder="用户名" name="name">
  679. </div>
  680. <div class="form-group">
  681. <label class="control-label" for="data">data</label>
  682. <input type="object" class="form-control input-sm" id="data" required placeholder="扩展数据 - 例: {'user_id':'int','user_name':'string','profile':{'email':'string','age':'integer'}}" name="data">
  683. </div>
  684. <div class="form-group form-group-submit">
  685. <button type="submit" class="btn btn-success send" rel="2">提交</button>
  686. <button type="reset" class="btn btn-info" rel="2">重置</button>
  687. </div>
  688. </form>
  689. </div>
  690. </div>
  691. <div class="panel panel-default">
  692. <div class="panel-heading"><strong>响应输出</strong></div>
  693. <div class="panel-body">
  694. <div class="row">
  695. <div class="col-md-12" style="overflow-x:auto">
  696. <pre id="response_headers2"></pre>
  697. <pre id="response2"></pre>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. <div class="panel panel-default">
  703. <div class="panel-heading"><strong>返回参数</strong></div>
  704. <div class="panel-body">
  705. <table class="table table-hover">
  706. <thead>
  707. <tr>
  708. <th>名称</th>
  709. <th>类型</th>
  710. <th>描述</th>
  711. </tr>
  712. </thead>
  713. <tbody>
  714. <tr>
  715. <td>code</td>
  716. <td>integer</td>
  717. <td></td>
  718. </tr>
  719. <tr>
  720. <td>msg</td>
  721. <td>string</td>
  722. <td></td>
  723. </tr>
  724. <tr>
  725. <td>data</td>
  726. <td>object</td>
  727. <td>扩展数据返回</td>
  728. </tr>
  729. </tbody>
  730. </table>
  731. </div>
  732. </div>
  733. </div>
  734. </div>
  735. </div><!-- #sandbox -->
  736. <div class="tab-pane" id="sample2">
  737. <div class="row">
  738. <div class="col-md-12">
  739. <pre id="sample_response2">{
  740. 'code':'1',
  741. 'msg':'返回成功'
  742. }</pre>
  743. </div>
  744. </div>
  745. </div><!-- #sample -->
  746. </div><!-- .tab-content -->
  747. </div>
  748. </div>
  749. </div>
  750. <div class="panel panel-default">
  751. <div class="panel-heading" id="heading-3">
  752. <h4 class="panel-title">
  753. <span class="label label-success">GET</span>
  754. <a data-toggle="collapse" data-parent="#accordion3" href="#collapseOne3"> 无需登录的接口 <span class="text-muted">/api/demo/test1</span></a>
  755. </h4>
  756. </div>
  757. <div id="collapseOne3" class="panel-collapse collapse">
  758. <div class="panel-body">
  759. <!-- Nav tabs -->
  760. <ul class="nav nav-tabs" id="doctab3">
  761. <li class="active"><a href="#info3" data-toggle="tab">基础信息</a></li>
  762. <li><a href="#sandbox3" data-toggle="tab">在线测试</a></li>
  763. <li><a href="#sample3" data-toggle="tab">返回示例</a></li>
  764. </ul>
  765. <!-- Tab panes -->
  766. <div class="tab-content">
  767. <div class="tab-pane active" id="info3">
  768. <div class="well">
  769. 无需登录的接口 </div>
  770. <div class="panel panel-default">
  771. <div class="panel-heading"><strong>权限</strong></div>
  772. <div class="panel-body">
  773. <table class="table table-hover">
  774. <tbody>
  775. <tr>
  776. <td>登录</td>
  777. <td>否</td>
  778. </tr>
  779. <tr>
  780. <td>鉴权</td>
  781. <td>否</td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. </div>
  786. </div>
  787. <div class="panel panel-default">
  788. <div class="panel-heading"><strong>Headers</strong></div>
  789. <div class="panel-body">
  790. </div>
  791. </div>
  792. <div class="panel panel-default">
  793. <div class="panel-heading"><strong>参数</strong></div>
  794. <div class="panel-body">
  795. </div>
  796. </div>
  797. <div class="panel panel-default">
  798. <div class="panel-heading"><strong>正文</strong></div>
  799. <div class="panel-body">
  800. 无 </div>
  801. </div>
  802. </div><!-- #info -->
  803. <div class="tab-pane" id="sandbox3">
  804. <div class="row">
  805. <div class="col-md-12">
  806. <div class="panel panel-default">
  807. <div class="panel-heading"><strong>参数</strong>
  808. <div class="pull-right">
  809. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  810. </div>
  811. </div>
  812. <div class="panel-body">
  813. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test1" method="get" name="form3" id="form3">
  814. <div class="form-group">
  815. </div>
  816. <div class="form-group form-group-submit">
  817. <button type="submit" class="btn btn-success send" rel="3">提交</button>
  818. <button type="reset" class="btn btn-info" rel="3">重置</button>
  819. </div>
  820. </form>
  821. </div>
  822. </div>
  823. <div class="panel panel-default">
  824. <div class="panel-heading"><strong>响应输出</strong></div>
  825. <div class="panel-body">
  826. <div class="row">
  827. <div class="col-md-12" style="overflow-x:auto">
  828. <pre id="response_headers3"></pre>
  829. <pre id="response3"></pre>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. <div class="panel panel-default">
  835. <div class="panel-heading"><strong>返回参数</strong></div>
  836. <div class="panel-body">
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. </div><!-- #sandbox -->
  842. <div class="tab-pane" id="sample3">
  843. <div class="row">
  844. <div class="col-md-12">
  845. <pre id="sample_response3">无</pre>
  846. </div>
  847. </div>
  848. </div><!-- #sample -->
  849. </div><!-- .tab-content -->
  850. </div>
  851. </div>
  852. </div>
  853. <div class="panel panel-default">
  854. <div class="panel-heading" id="heading-4">
  855. <h4 class="panel-title">
  856. <span class="label label-success">GET</span>
  857. <a data-toggle="collapse" data-parent="#accordion4" href="#collapseOne4"> 需要登录的接口 <span class="text-muted">/api/demo/test2</span></a>
  858. </h4>
  859. </div>
  860. <div id="collapseOne4" class="panel-collapse collapse">
  861. <div class="panel-body">
  862. <!-- Nav tabs -->
  863. <ul class="nav nav-tabs" id="doctab4">
  864. <li class="active"><a href="#info4" data-toggle="tab">基础信息</a></li>
  865. <li><a href="#sandbox4" data-toggle="tab">在线测试</a></li>
  866. <li><a href="#sample4" data-toggle="tab">返回示例</a></li>
  867. </ul>
  868. <!-- Tab panes -->
  869. <div class="tab-content">
  870. <div class="tab-pane active" id="info4">
  871. <div class="well">
  872. 需要登录的接口 </div>
  873. <div class="panel panel-default">
  874. <div class="panel-heading"><strong>权限</strong></div>
  875. <div class="panel-body">
  876. <table class="table table-hover">
  877. <tbody>
  878. <tr>
  879. <td>登录</td>
  880. <td>是</td>
  881. </tr>
  882. <tr>
  883. <td>鉴权</td>
  884. <td>否</td>
  885. </tr>
  886. </tbody>
  887. </table>
  888. </div>
  889. </div>
  890. <div class="panel panel-default">
  891. <div class="panel-heading"><strong>Headers</strong></div>
  892. <div class="panel-body">
  893. </div>
  894. </div>
  895. <div class="panel panel-default">
  896. <div class="panel-heading"><strong>参数</strong></div>
  897. <div class="panel-body">
  898. </div>
  899. </div>
  900. <div class="panel panel-default">
  901. <div class="panel-heading"><strong>正文</strong></div>
  902. <div class="panel-body">
  903. 无 </div>
  904. </div>
  905. </div><!-- #info -->
  906. <div class="tab-pane" id="sandbox4">
  907. <div class="row">
  908. <div class="col-md-12">
  909. <div class="panel panel-default">
  910. <div class="panel-heading"><strong>参数</strong>
  911. <div class="pull-right">
  912. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  913. </div>
  914. </div>
  915. <div class="panel-body">
  916. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test2" method="get" name="form4" id="form4">
  917. <div class="form-group">
  918. </div>
  919. <div class="form-group form-group-submit">
  920. <button type="submit" class="btn btn-success send" rel="4">提交</button>
  921. <button type="reset" class="btn btn-info" rel="4">重置</button>
  922. </div>
  923. </form>
  924. </div>
  925. </div>
  926. <div class="panel panel-default">
  927. <div class="panel-heading"><strong>响应输出</strong></div>
  928. <div class="panel-body">
  929. <div class="row">
  930. <div class="col-md-12" style="overflow-x:auto">
  931. <pre id="response_headers4"></pre>
  932. <pre id="response4"></pre>
  933. </div>
  934. </div>
  935. </div>
  936. </div>
  937. <div class="panel panel-default">
  938. <div class="panel-heading"><strong>返回参数</strong></div>
  939. <div class="panel-body">
  940. </div>
  941. </div>
  942. </div>
  943. </div>
  944. </div><!-- #sandbox -->
  945. <div class="tab-pane" id="sample4">
  946. <div class="row">
  947. <div class="col-md-12">
  948. <pre id="sample_response4">无</pre>
  949. </div>
  950. </div>
  951. </div><!-- #sample -->
  952. </div><!-- .tab-content -->
  953. </div>
  954. </div>
  955. </div>
  956. <div class="panel panel-default">
  957. <div class="panel-heading" id="heading-5">
  958. <h4 class="panel-title">
  959. <span class="label label-success">GET</span>
  960. <a data-toggle="collapse" data-parent="#accordion5" href="#collapseOne5"> 需要登录且需要验证有相应组的权限 <span class="text-muted">/api/demo/test3</span></a>
  961. </h4>
  962. </div>
  963. <div id="collapseOne5" class="panel-collapse collapse">
  964. <div class="panel-body">
  965. <!-- Nav tabs -->
  966. <ul class="nav nav-tabs" id="doctab5">
  967. <li class="active"><a href="#info5" data-toggle="tab">基础信息</a></li>
  968. <li><a href="#sandbox5" data-toggle="tab">在线测试</a></li>
  969. <li><a href="#sample5" data-toggle="tab">返回示例</a></li>
  970. </ul>
  971. <!-- Tab panes -->
  972. <div class="tab-content">
  973. <div class="tab-pane active" id="info5">
  974. <div class="well">
  975. 需要登录且需要验证有相应组的权限 </div>
  976. <div class="panel panel-default">
  977. <div class="panel-heading"><strong>权限</strong></div>
  978. <div class="panel-body">
  979. <table class="table table-hover">
  980. <tbody>
  981. <tr>
  982. <td>登录</td>
  983. <td>是</td>
  984. </tr>
  985. <tr>
  986. <td>鉴权</td>
  987. <td>是</td>
  988. </tr>
  989. </tbody>
  990. </table>
  991. </div>
  992. </div>
  993. <div class="panel panel-default">
  994. <div class="panel-heading"><strong>Headers</strong></div>
  995. <div class="panel-body">
  996. </div>
  997. </div>
  998. <div class="panel panel-default">
  999. <div class="panel-heading"><strong>参数</strong></div>
  1000. <div class="panel-body">
  1001. </div>
  1002. </div>
  1003. <div class="panel panel-default">
  1004. <div class="panel-heading"><strong>正文</strong></div>
  1005. <div class="panel-body">
  1006. 无 </div>
  1007. </div>
  1008. </div><!-- #info -->
  1009. <div class="tab-pane" id="sandbox5">
  1010. <div class="row">
  1011. <div class="col-md-12">
  1012. <div class="panel panel-default">
  1013. <div class="panel-heading"><strong>参数</strong>
  1014. <div class="pull-right">
  1015. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1016. </div>
  1017. </div>
  1018. <div class="panel-body">
  1019. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test3" method="get" name="form5" id="form5">
  1020. <div class="form-group">
  1021. </div>
  1022. <div class="form-group form-group-submit">
  1023. <button type="submit" class="btn btn-success send" rel="5">提交</button>
  1024. <button type="reset" class="btn btn-info" rel="5">重置</button>
  1025. </div>
  1026. </form>
  1027. </div>
  1028. </div>
  1029. <div class="panel panel-default">
  1030. <div class="panel-heading"><strong>响应输出</strong></div>
  1031. <div class="panel-body">
  1032. <div class="row">
  1033. <div class="col-md-12" style="overflow-x:auto">
  1034. <pre id="response_headers5"></pre>
  1035. <pre id="response5"></pre>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. </div>
  1040. <div class="panel panel-default">
  1041. <div class="panel-heading"><strong>返回参数</strong></div>
  1042. <div class="panel-body">
  1043. </div>
  1044. </div>
  1045. </div>
  1046. </div>
  1047. </div><!-- #sandbox -->
  1048. <div class="tab-pane" id="sample5">
  1049. <div class="row">
  1050. <div class="col-md-12">
  1051. <pre id="sample_response5">无</pre>
  1052. </div>
  1053. </div>
  1054. </div><!-- #sample -->
  1055. </div><!-- .tab-content -->
  1056. </div>
  1057. </div>
  1058. </div>
  1059. <h2>邮箱验证码接口</h2>
  1060. <hr>
  1061. <div class="panel panel-default">
  1062. <div class="panel-heading" id="heading-6">
  1063. <h4 class="panel-title">
  1064. <span class="label label-primary">POST</span>
  1065. <a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 发送验证码 <span class="text-muted">/api/ems/send</span></a>
  1066. </h4>
  1067. </div>
  1068. <div id="collapseOne6" class="panel-collapse collapse">
  1069. <div class="panel-body">
  1070. <!-- Nav tabs -->
  1071. <ul class="nav nav-tabs" id="doctab6">
  1072. <li class="active"><a href="#info6" data-toggle="tab">基础信息</a></li>
  1073. <li><a href="#sandbox6" data-toggle="tab">在线测试</a></li>
  1074. <li><a href="#sample6" data-toggle="tab">返回示例</a></li>
  1075. </ul>
  1076. <!-- Tab panes -->
  1077. <div class="tab-content">
  1078. <div class="tab-pane active" id="info6">
  1079. <div class="well">
  1080. 发送验证码 </div>
  1081. <div class="panel panel-default">
  1082. <div class="panel-heading"><strong>权限</strong></div>
  1083. <div class="panel-body">
  1084. <table class="table table-hover">
  1085. <tbody>
  1086. <tr>
  1087. <td>登录</td>
  1088. <td>否</td>
  1089. </tr>
  1090. <tr>
  1091. <td>鉴权</td>
  1092. <td>否</td>
  1093. </tr>
  1094. </tbody>
  1095. </table>
  1096. </div>
  1097. </div>
  1098. <div class="panel panel-default">
  1099. <div class="panel-heading"><strong>Headers</strong></div>
  1100. <div class="panel-body">
  1101. </div>
  1102. </div>
  1103. <div class="panel panel-default">
  1104. <div class="panel-heading"><strong>参数</strong></div>
  1105. <div class="panel-body">
  1106. <table class="table table-hover">
  1107. <thead>
  1108. <tr>
  1109. <th>名称</th>
  1110. <th>类型</th>
  1111. <th>必选</th>
  1112. <th>描述</th>
  1113. </tr>
  1114. </thead>
  1115. <tbody>
  1116. <tr>
  1117. <td>email</td>
  1118. <td>string</td>
  1119. <td>是</td>
  1120. <td>邮箱</td>
  1121. </tr>
  1122. <tr>
  1123. <td>event</td>
  1124. <td>string</td>
  1125. <td>是</td>
  1126. <td>事件名称</td>
  1127. </tr>
  1128. </tbody>
  1129. </table>
  1130. </div>
  1131. </div>
  1132. <div class="panel panel-default">
  1133. <div class="panel-heading"><strong>正文</strong></div>
  1134. <div class="panel-body">
  1135. 无 </div>
  1136. </div>
  1137. </div><!-- #info -->
  1138. <div class="tab-pane" id="sandbox6">
  1139. <div class="row">
  1140. <div class="col-md-12">
  1141. <div class="panel panel-default">
  1142. <div class="panel-heading"><strong>参数</strong>
  1143. <div class="pull-right">
  1144. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1145. </div>
  1146. </div>
  1147. <div class="panel-body">
  1148. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="POST" name="form6" id="form6">
  1149. <div class="form-group">
  1150. <label class="control-label" for="email">email</label>
  1151. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  1152. </div>
  1153. <div class="form-group">
  1154. <label class="control-label" for="event">event</label>
  1155. <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event">
  1156. </div>
  1157. <div class="form-group form-group-submit">
  1158. <button type="submit" class="btn btn-success send" rel="6">提交</button>
  1159. <button type="reset" class="btn btn-info" rel="6">重置</button>
  1160. </div>
  1161. </form>
  1162. </div>
  1163. </div>
  1164. <div class="panel panel-default">
  1165. <div class="panel-heading"><strong>响应输出</strong></div>
  1166. <div class="panel-body">
  1167. <div class="row">
  1168. <div class="col-md-12" style="overflow-x:auto">
  1169. <pre id="response_headers6"></pre>
  1170. <pre id="response6"></pre>
  1171. </div>
  1172. </div>
  1173. </div>
  1174. </div>
  1175. <div class="panel panel-default">
  1176. <div class="panel-heading"><strong>返回参数</strong></div>
  1177. <div class="panel-body">
  1178. </div>
  1179. </div>
  1180. </div>
  1181. </div>
  1182. </div><!-- #sandbox -->
  1183. <div class="tab-pane" id="sample6">
  1184. <div class="row">
  1185. <div class="col-md-12">
  1186. <pre id="sample_response6">无</pre>
  1187. </div>
  1188. </div>
  1189. </div><!-- #sample -->
  1190. </div><!-- .tab-content -->
  1191. </div>
  1192. </div>
  1193. </div>
  1194. <div class="panel panel-default">
  1195. <div class="panel-heading" id="heading-7">
  1196. <h4 class="panel-title">
  1197. <span class="label label-primary">POST</span>
  1198. <a data-toggle="collapse" data-parent="#accordion7" href="#collapseOne7"> 检测验证码 <span class="text-muted">/api/ems/check</span></a>
  1199. </h4>
  1200. </div>
  1201. <div id="collapseOne7" class="panel-collapse collapse">
  1202. <div class="panel-body">
  1203. <!-- Nav tabs -->
  1204. <ul class="nav nav-tabs" id="doctab7">
  1205. <li class="active"><a href="#info7" data-toggle="tab">基础信息</a></li>
  1206. <li><a href="#sandbox7" data-toggle="tab">在线测试</a></li>
  1207. <li><a href="#sample7" data-toggle="tab">返回示例</a></li>
  1208. </ul>
  1209. <!-- Tab panes -->
  1210. <div class="tab-content">
  1211. <div class="tab-pane active" id="info7">
  1212. <div class="well">
  1213. 检测验证码 </div>
  1214. <div class="panel panel-default">
  1215. <div class="panel-heading"><strong>权限</strong></div>
  1216. <div class="panel-body">
  1217. <table class="table table-hover">
  1218. <tbody>
  1219. <tr>
  1220. <td>登录</td>
  1221. <td>否</td>
  1222. </tr>
  1223. <tr>
  1224. <td>鉴权</td>
  1225. <td>否</td>
  1226. </tr>
  1227. </tbody>
  1228. </table>
  1229. </div>
  1230. </div>
  1231. <div class="panel panel-default">
  1232. <div class="panel-heading"><strong>Headers</strong></div>
  1233. <div class="panel-body">
  1234. </div>
  1235. </div>
  1236. <div class="panel panel-default">
  1237. <div class="panel-heading"><strong>参数</strong></div>
  1238. <div class="panel-body">
  1239. <table class="table table-hover">
  1240. <thead>
  1241. <tr>
  1242. <th>名称</th>
  1243. <th>类型</th>
  1244. <th>必选</th>
  1245. <th>描述</th>
  1246. </tr>
  1247. </thead>
  1248. <tbody>
  1249. <tr>
  1250. <td>email</td>
  1251. <td>string</td>
  1252. <td>是</td>
  1253. <td>邮箱</td>
  1254. </tr>
  1255. <tr>
  1256. <td>event</td>
  1257. <td>string</td>
  1258. <td>是</td>
  1259. <td>事件名称</td>
  1260. </tr>
  1261. <tr>
  1262. <td>captcha</td>
  1263. <td>string</td>
  1264. <td>是</td>
  1265. <td>验证码</td>
  1266. </tr>
  1267. </tbody>
  1268. </table>
  1269. </div>
  1270. </div>
  1271. <div class="panel panel-default">
  1272. <div class="panel-heading"><strong>正文</strong></div>
  1273. <div class="panel-body">
  1274. 无 </div>
  1275. </div>
  1276. </div><!-- #info -->
  1277. <div class="tab-pane" id="sandbox7">
  1278. <div class="row">
  1279. <div class="col-md-12">
  1280. <div class="panel panel-default">
  1281. <div class="panel-heading"><strong>参数</strong>
  1282. <div class="pull-right">
  1283. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1284. </div>
  1285. </div>
  1286. <div class="panel-body">
  1287. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="POST" name="form7" id="form7">
  1288. <div class="form-group">
  1289. <label class="control-label" for="email">email</label>
  1290. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  1291. </div>
  1292. <div class="form-group">
  1293. <label class="control-label" for="event">event</label>
  1294. <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event">
  1295. </div>
  1296. <div class="form-group">
  1297. <label class="control-label" for="captcha">captcha</label>
  1298. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  1299. </div>
  1300. <div class="form-group form-group-submit">
  1301. <button type="submit" class="btn btn-success send" rel="7">提交</button>
  1302. <button type="reset" class="btn btn-info" rel="7">重置</button>
  1303. </div>
  1304. </form>
  1305. </div>
  1306. </div>
  1307. <div class="panel panel-default">
  1308. <div class="panel-heading"><strong>响应输出</strong></div>
  1309. <div class="panel-body">
  1310. <div class="row">
  1311. <div class="col-md-12" style="overflow-x:auto">
  1312. <pre id="response_headers7"></pre>
  1313. <pre id="response7"></pre>
  1314. </div>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. <div class="panel panel-default">
  1319. <div class="panel-heading"><strong>返回参数</strong></div>
  1320. <div class="panel-body">
  1321. </div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div><!-- #sandbox -->
  1326. <div class="tab-pane" id="sample7">
  1327. <div class="row">
  1328. <div class="col-md-12">
  1329. <pre id="sample_response7">无</pre>
  1330. </div>
  1331. </div>
  1332. </div><!-- #sample -->
  1333. </div><!-- .tab-content -->
  1334. </div>
  1335. </div>
  1336. </div>
  1337. <h2>首页接口</h2>
  1338. <hr>
  1339. <div class="panel panel-default">
  1340. <div class="panel-heading" id="heading-8">
  1341. <h4 class="panel-title">
  1342. <span class="label label-success">GET</span>
  1343. <a data-toggle="collapse" data-parent="#accordion8" href="#collapseOne8"> 首页 <span class="text-muted">/api/index/index</span></a>
  1344. </h4>
  1345. </div>
  1346. <div id="collapseOne8" class="panel-collapse collapse">
  1347. <div class="panel-body">
  1348. <!-- Nav tabs -->
  1349. <ul class="nav nav-tabs" id="doctab8">
  1350. <li class="active"><a href="#info8" data-toggle="tab">基础信息</a></li>
  1351. <li><a href="#sandbox8" data-toggle="tab">在线测试</a></li>
  1352. <li><a href="#sample8" data-toggle="tab">返回示例</a></li>
  1353. </ul>
  1354. <!-- Tab panes -->
  1355. <div class="tab-content">
  1356. <div class="tab-pane active" id="info8">
  1357. <div class="well">
  1358. 首页 </div>
  1359. <div class="panel panel-default">
  1360. <div class="panel-heading"><strong>权限</strong></div>
  1361. <div class="panel-body">
  1362. <table class="table table-hover">
  1363. <tbody>
  1364. <tr>
  1365. <td>登录</td>
  1366. <td>否</td>
  1367. </tr>
  1368. <tr>
  1369. <td>鉴权</td>
  1370. <td>否</td>
  1371. </tr>
  1372. </tbody>
  1373. </table>
  1374. </div>
  1375. </div>
  1376. <div class="panel panel-default">
  1377. <div class="panel-heading"><strong>Headers</strong></div>
  1378. <div class="panel-body">
  1379. </div>
  1380. </div>
  1381. <div class="panel panel-default">
  1382. <div class="panel-heading"><strong>参数</strong></div>
  1383. <div class="panel-body">
  1384. </div>
  1385. </div>
  1386. <div class="panel panel-default">
  1387. <div class="panel-heading"><strong>正文</strong></div>
  1388. <div class="panel-body">
  1389. 无 </div>
  1390. </div>
  1391. </div><!-- #info -->
  1392. <div class="tab-pane" id="sandbox8">
  1393. <div class="row">
  1394. <div class="col-md-12">
  1395. <div class="panel panel-default">
  1396. <div class="panel-heading"><strong>参数</strong>
  1397. <div class="pull-right">
  1398. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1399. </div>
  1400. </div>
  1401. <div class="panel-body">
  1402. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/index" method="get" name="form8" id="form8">
  1403. <div class="form-group">
  1404. </div>
  1405. <div class="form-group form-group-submit">
  1406. <button type="submit" class="btn btn-success send" rel="8">提交</button>
  1407. <button type="reset" class="btn btn-info" rel="8">重置</button>
  1408. </div>
  1409. </form>
  1410. </div>
  1411. </div>
  1412. <div class="panel panel-default">
  1413. <div class="panel-heading"><strong>响应输出</strong></div>
  1414. <div class="panel-body">
  1415. <div class="row">
  1416. <div class="col-md-12" style="overflow-x:auto">
  1417. <pre id="response_headers8"></pre>
  1418. <pre id="response8"></pre>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. </div>
  1423. <div class="panel panel-default">
  1424. <div class="panel-heading"><strong>返回参数</strong></div>
  1425. <div class="panel-body">
  1426. </div>
  1427. </div>
  1428. </div>
  1429. </div>
  1430. </div><!-- #sandbox -->
  1431. <div class="tab-pane" id="sample8">
  1432. <div class="row">
  1433. <div class="col-md-12">
  1434. <pre id="sample_response8">无</pre>
  1435. </div>
  1436. </div>
  1437. </div><!-- #sample -->
  1438. </div><!-- .tab-content -->
  1439. </div>
  1440. </div>
  1441. </div>
  1442. <h2>手机短信接口</h2>
  1443. <hr>
  1444. <div class="panel panel-default">
  1445. <div class="panel-heading" id="heading-9">
  1446. <h4 class="panel-title">
  1447. <span class="label label-primary">POST</span>
  1448. <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 发送验证码 <span class="text-muted">/api/sms/send</span></a>
  1449. </h4>
  1450. </div>
  1451. <div id="collapseOne9" class="panel-collapse collapse">
  1452. <div class="panel-body">
  1453. <!-- Nav tabs -->
  1454. <ul class="nav nav-tabs" id="doctab9">
  1455. <li class="active"><a href="#info9" data-toggle="tab">基础信息</a></li>
  1456. <li><a href="#sandbox9" data-toggle="tab">在线测试</a></li>
  1457. <li><a href="#sample9" data-toggle="tab">返回示例</a></li>
  1458. </ul>
  1459. <!-- Tab panes -->
  1460. <div class="tab-content">
  1461. <div class="tab-pane active" id="info9">
  1462. <div class="well">
  1463. 发送验证码 </div>
  1464. <div class="panel panel-default">
  1465. <div class="panel-heading"><strong>权限</strong></div>
  1466. <div class="panel-body">
  1467. <table class="table table-hover">
  1468. <tbody>
  1469. <tr>
  1470. <td>登录</td>
  1471. <td>否</td>
  1472. </tr>
  1473. <tr>
  1474. <td>鉴权</td>
  1475. <td>否</td>
  1476. </tr>
  1477. </tbody>
  1478. </table>
  1479. </div>
  1480. </div>
  1481. <div class="panel panel-default">
  1482. <div class="panel-heading"><strong>Headers</strong></div>
  1483. <div class="panel-body">
  1484. </div>
  1485. </div>
  1486. <div class="panel panel-default">
  1487. <div class="panel-heading"><strong>参数</strong></div>
  1488. <div class="panel-body">
  1489. <table class="table table-hover">
  1490. <thead>
  1491. <tr>
  1492. <th>名称</th>
  1493. <th>类型</th>
  1494. <th>必选</th>
  1495. <th>描述</th>
  1496. </tr>
  1497. </thead>
  1498. <tbody>
  1499. <tr>
  1500. <td>mobile</td>
  1501. <td>string</td>
  1502. <td>是</td>
  1503. <td>手机号</td>
  1504. </tr>
  1505. <tr>
  1506. <td>event</td>
  1507. <td>string</td>
  1508. <td>是</td>
  1509. <td>事件名称</td>
  1510. </tr>
  1511. </tbody>
  1512. </table>
  1513. </div>
  1514. </div>
  1515. <div class="panel panel-default">
  1516. <div class="panel-heading"><strong>正文</strong></div>
  1517. <div class="panel-body">
  1518. 无 </div>
  1519. </div>
  1520. </div><!-- #info -->
  1521. <div class="tab-pane" id="sandbox9">
  1522. <div class="row">
  1523. <div class="col-md-12">
  1524. <div class="panel panel-default">
  1525. <div class="panel-heading"><strong>参数</strong>
  1526. <div class="pull-right">
  1527. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1528. </div>
  1529. </div>
  1530. <div class="panel-body">
  1531. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="POST" name="form9" id="form9">
  1532. <div class="form-group">
  1533. <label class="control-label" for="mobile">mobile</label>
  1534. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  1535. </div>
  1536. <div class="form-group">
  1537. <label class="control-label" for="event">event</label>
  1538. <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event">
  1539. </div>
  1540. <div class="form-group form-group-submit">
  1541. <button type="submit" class="btn btn-success send" rel="9">提交</button>
  1542. <button type="reset" class="btn btn-info" rel="9">重置</button>
  1543. </div>
  1544. </form>
  1545. </div>
  1546. </div>
  1547. <div class="panel panel-default">
  1548. <div class="panel-heading"><strong>响应输出</strong></div>
  1549. <div class="panel-body">
  1550. <div class="row">
  1551. <div class="col-md-12" style="overflow-x:auto">
  1552. <pre id="response_headers9"></pre>
  1553. <pre id="response9"></pre>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div class="panel panel-default">
  1559. <div class="panel-heading"><strong>返回参数</strong></div>
  1560. <div class="panel-body">
  1561. </div>
  1562. </div>
  1563. </div>
  1564. </div>
  1565. </div><!-- #sandbox -->
  1566. <div class="tab-pane" id="sample9">
  1567. <div class="row">
  1568. <div class="col-md-12">
  1569. <pre id="sample_response9">无</pre>
  1570. </div>
  1571. </div>
  1572. </div><!-- #sample -->
  1573. </div><!-- .tab-content -->
  1574. </div>
  1575. </div>
  1576. </div>
  1577. <div class="panel panel-default">
  1578. <div class="panel-heading" id="heading-10">
  1579. <h4 class="panel-title">
  1580. <span class="label label-primary">POST</span>
  1581. <a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 检测验证码 <span class="text-muted">/api/sms/check</span></a>
  1582. </h4>
  1583. </div>
  1584. <div id="collapseOne10" class="panel-collapse collapse">
  1585. <div class="panel-body">
  1586. <!-- Nav tabs -->
  1587. <ul class="nav nav-tabs" id="doctab10">
  1588. <li class="active"><a href="#info10" data-toggle="tab">基础信息</a></li>
  1589. <li><a href="#sandbox10" data-toggle="tab">在线测试</a></li>
  1590. <li><a href="#sample10" data-toggle="tab">返回示例</a></li>
  1591. </ul>
  1592. <!-- Tab panes -->
  1593. <div class="tab-content">
  1594. <div class="tab-pane active" id="info10">
  1595. <div class="well">
  1596. 检测验证码 </div>
  1597. <div class="panel panel-default">
  1598. <div class="panel-heading"><strong>权限</strong></div>
  1599. <div class="panel-body">
  1600. <table class="table table-hover">
  1601. <tbody>
  1602. <tr>
  1603. <td>登录</td>
  1604. <td>否</td>
  1605. </tr>
  1606. <tr>
  1607. <td>鉴权</td>
  1608. <td>否</td>
  1609. </tr>
  1610. </tbody>
  1611. </table>
  1612. </div>
  1613. </div>
  1614. <div class="panel panel-default">
  1615. <div class="panel-heading"><strong>Headers</strong></div>
  1616. <div class="panel-body">
  1617. </div>
  1618. </div>
  1619. <div class="panel panel-default">
  1620. <div class="panel-heading"><strong>参数</strong></div>
  1621. <div class="panel-body">
  1622. <table class="table table-hover">
  1623. <thead>
  1624. <tr>
  1625. <th>名称</th>
  1626. <th>类型</th>
  1627. <th>必选</th>
  1628. <th>描述</th>
  1629. </tr>
  1630. </thead>
  1631. <tbody>
  1632. <tr>
  1633. <td>mobile</td>
  1634. <td>string</td>
  1635. <td>是</td>
  1636. <td>手机号</td>
  1637. </tr>
  1638. <tr>
  1639. <td>event</td>
  1640. <td>string</td>
  1641. <td>是</td>
  1642. <td>事件名称</td>
  1643. </tr>
  1644. <tr>
  1645. <td>captcha</td>
  1646. <td>string</td>
  1647. <td>是</td>
  1648. <td>验证码</td>
  1649. </tr>
  1650. </tbody>
  1651. </table>
  1652. </div>
  1653. </div>
  1654. <div class="panel panel-default">
  1655. <div class="panel-heading"><strong>正文</strong></div>
  1656. <div class="panel-body">
  1657. 无 </div>
  1658. </div>
  1659. </div><!-- #info -->
  1660. <div class="tab-pane" id="sandbox10">
  1661. <div class="row">
  1662. <div class="col-md-12">
  1663. <div class="panel panel-default">
  1664. <div class="panel-heading"><strong>参数</strong>
  1665. <div class="pull-right">
  1666. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1667. </div>
  1668. </div>
  1669. <div class="panel-body">
  1670. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="POST" name="form10" id="form10">
  1671. <div class="form-group">
  1672. <label class="control-label" for="mobile">mobile</label>
  1673. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  1674. </div>
  1675. <div class="form-group">
  1676. <label class="control-label" for="event">event</label>
  1677. <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event">
  1678. </div>
  1679. <div class="form-group">
  1680. <label class="control-label" for="captcha">captcha</label>
  1681. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  1682. </div>
  1683. <div class="form-group form-group-submit">
  1684. <button type="submit" class="btn btn-success send" rel="10">提交</button>
  1685. <button type="reset" class="btn btn-info" rel="10">重置</button>
  1686. </div>
  1687. </form>
  1688. </div>
  1689. </div>
  1690. <div class="panel panel-default">
  1691. <div class="panel-heading"><strong>响应输出</strong></div>
  1692. <div class="panel-body">
  1693. <div class="row">
  1694. <div class="col-md-12" style="overflow-x:auto">
  1695. <pre id="response_headers10"></pre>
  1696. <pre id="response10"></pre>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. </div>
  1701. <div class="panel panel-default">
  1702. <div class="panel-heading"><strong>返回参数</strong></div>
  1703. <div class="panel-body">
  1704. </div>
  1705. </div>
  1706. </div>
  1707. </div>
  1708. </div><!-- #sandbox -->
  1709. <div class="tab-pane" id="sample10">
  1710. <div class="row">
  1711. <div class="col-md-12">
  1712. <pre id="sample_response10">无</pre>
  1713. </div>
  1714. </div>
  1715. </div><!-- #sample -->
  1716. </div><!-- .tab-content -->
  1717. </div>
  1718. </div>
  1719. </div>
  1720. <h2>Token接口</h2>
  1721. <hr>
  1722. <div class="panel panel-default">
  1723. <div class="panel-heading" id="heading-11">
  1724. <h4 class="panel-title">
  1725. <span class="label label-success">GET</span>
  1726. <a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 检测Token是否过期 <span class="text-muted">/api/token/check</span></a>
  1727. </h4>
  1728. </div>
  1729. <div id="collapseOne11" class="panel-collapse collapse">
  1730. <div class="panel-body">
  1731. <!-- Nav tabs -->
  1732. <ul class="nav nav-tabs" id="doctab11">
  1733. <li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li>
  1734. <li><a href="#sandbox11" data-toggle="tab">在线测试</a></li>
  1735. <li><a href="#sample11" data-toggle="tab">返回示例</a></li>
  1736. </ul>
  1737. <!-- Tab panes -->
  1738. <div class="tab-content">
  1739. <div class="tab-pane active" id="info11">
  1740. <div class="well">
  1741. 检测Token是否过期 </div>
  1742. <div class="panel panel-default">
  1743. <div class="panel-heading"><strong>权限</strong></div>
  1744. <div class="panel-body">
  1745. <table class="table table-hover">
  1746. <tbody>
  1747. <tr>
  1748. <td>登录</td>
  1749. <td>是</td>
  1750. </tr>
  1751. <tr>
  1752. <td>鉴权</td>
  1753. <td>否</td>
  1754. </tr>
  1755. </tbody>
  1756. </table>
  1757. </div>
  1758. </div>
  1759. <div class="panel panel-default">
  1760. <div class="panel-heading"><strong>Headers</strong></div>
  1761. <div class="panel-body">
  1762. </div>
  1763. </div>
  1764. <div class="panel panel-default">
  1765. <div class="panel-heading"><strong>参数</strong></div>
  1766. <div class="panel-body">
  1767. </div>
  1768. </div>
  1769. <div class="panel panel-default">
  1770. <div class="panel-heading"><strong>正文</strong></div>
  1771. <div class="panel-body">
  1772. 无 </div>
  1773. </div>
  1774. </div><!-- #info -->
  1775. <div class="tab-pane" id="sandbox11">
  1776. <div class="row">
  1777. <div class="col-md-12">
  1778. <div class="panel panel-default">
  1779. <div class="panel-heading"><strong>参数</strong>
  1780. <div class="pull-right">
  1781. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1782. </div>
  1783. </div>
  1784. <div class="panel-body">
  1785. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/token/check" method="get" name="form11" id="form11">
  1786. <div class="form-group">
  1787. </div>
  1788. <div class="form-group form-group-submit">
  1789. <button type="submit" class="btn btn-success send" rel="11">提交</button>
  1790. <button type="reset" class="btn btn-info" rel="11">重置</button>
  1791. </div>
  1792. </form>
  1793. </div>
  1794. </div>
  1795. <div class="panel panel-default">
  1796. <div class="panel-heading"><strong>响应输出</strong></div>
  1797. <div class="panel-body">
  1798. <div class="row">
  1799. <div class="col-md-12" style="overflow-x:auto">
  1800. <pre id="response_headers11"></pre>
  1801. <pre id="response11"></pre>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. </div>
  1806. <div class="panel panel-default">
  1807. <div class="panel-heading"><strong>返回参数</strong></div>
  1808. <div class="panel-body">
  1809. </div>
  1810. </div>
  1811. </div>
  1812. </div>
  1813. </div><!-- #sandbox -->
  1814. <div class="tab-pane" id="sample11">
  1815. <div class="row">
  1816. <div class="col-md-12">
  1817. <pre id="sample_response11">无</pre>
  1818. </div>
  1819. </div>
  1820. </div><!-- #sample -->
  1821. </div><!-- .tab-content -->
  1822. </div>
  1823. </div>
  1824. </div>
  1825. <div class="panel panel-default">
  1826. <div class="panel-heading" id="heading-12">
  1827. <h4 class="panel-title">
  1828. <span class="label label-success">GET</span>
  1829. <a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 刷新Token <span class="text-muted">/api/token/refresh</span></a>
  1830. </h4>
  1831. </div>
  1832. <div id="collapseOne12" class="panel-collapse collapse">
  1833. <div class="panel-body">
  1834. <!-- Nav tabs -->
  1835. <ul class="nav nav-tabs" id="doctab12">
  1836. <li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li>
  1837. <li><a href="#sandbox12" data-toggle="tab">在线测试</a></li>
  1838. <li><a href="#sample12" data-toggle="tab">返回示例</a></li>
  1839. </ul>
  1840. <!-- Tab panes -->
  1841. <div class="tab-content">
  1842. <div class="tab-pane active" id="info12">
  1843. <div class="well">
  1844. 刷新Token </div>
  1845. <div class="panel panel-default">
  1846. <div class="panel-heading"><strong>权限</strong></div>
  1847. <div class="panel-body">
  1848. <table class="table table-hover">
  1849. <tbody>
  1850. <tr>
  1851. <td>登录</td>
  1852. <td>是</td>
  1853. </tr>
  1854. <tr>
  1855. <td>鉴权</td>
  1856. <td>否</td>
  1857. </tr>
  1858. </tbody>
  1859. </table>
  1860. </div>
  1861. </div>
  1862. <div class="panel panel-default">
  1863. <div class="panel-heading"><strong>Headers</strong></div>
  1864. <div class="panel-body">
  1865. </div>
  1866. </div>
  1867. <div class="panel panel-default">
  1868. <div class="panel-heading"><strong>参数</strong></div>
  1869. <div class="panel-body">
  1870. </div>
  1871. </div>
  1872. <div class="panel panel-default">
  1873. <div class="panel-heading"><strong>正文</strong></div>
  1874. <div class="panel-body">
  1875. 无 </div>
  1876. </div>
  1877. </div><!-- #info -->
  1878. <div class="tab-pane" id="sandbox12">
  1879. <div class="row">
  1880. <div class="col-md-12">
  1881. <div class="panel panel-default">
  1882. <div class="panel-heading"><strong>参数</strong>
  1883. <div class="pull-right">
  1884. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1885. </div>
  1886. </div>
  1887. <div class="panel-body">
  1888. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/token/refresh" method="get" name="form12" id="form12">
  1889. <div class="form-group">
  1890. </div>
  1891. <div class="form-group form-group-submit">
  1892. <button type="submit" class="btn btn-success send" rel="12">提交</button>
  1893. <button type="reset" class="btn btn-info" rel="12">重置</button>
  1894. </div>
  1895. </form>
  1896. </div>
  1897. </div>
  1898. <div class="panel panel-default">
  1899. <div class="panel-heading"><strong>响应输出</strong></div>
  1900. <div class="panel-body">
  1901. <div class="row">
  1902. <div class="col-md-12" style="overflow-x:auto">
  1903. <pre id="response_headers12"></pre>
  1904. <pre id="response12"></pre>
  1905. </div>
  1906. </div>
  1907. </div>
  1908. </div>
  1909. <div class="panel panel-default">
  1910. <div class="panel-heading"><strong>返回参数</strong></div>
  1911. <div class="panel-body">
  1912. </div>
  1913. </div>
  1914. </div>
  1915. </div>
  1916. </div><!-- #sandbox -->
  1917. <div class="tab-pane" id="sample12">
  1918. <div class="row">
  1919. <div class="col-md-12">
  1920. <pre id="sample_response12">无</pre>
  1921. </div>
  1922. </div>
  1923. </div><!-- #sample -->
  1924. </div><!-- .tab-content -->
  1925. </div>
  1926. </div>
  1927. </div>
  1928. <h2>会员接口</h2>
  1929. <hr>
  1930. <div class="panel panel-default">
  1931. <div class="panel-heading" id="heading-13">
  1932. <h4 class="panel-title">
  1933. <span class="label label-success">GET</span>
  1934. <a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 会员中心 <span class="text-muted">/api/user/index</span></a>
  1935. </h4>
  1936. </div>
  1937. <div id="collapseOne13" class="panel-collapse collapse">
  1938. <div class="panel-body">
  1939. <!-- Nav tabs -->
  1940. <ul class="nav nav-tabs" id="doctab13">
  1941. <li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li>
  1942. <li><a href="#sandbox13" data-toggle="tab">在线测试</a></li>
  1943. <li><a href="#sample13" data-toggle="tab">返回示例</a></li>
  1944. </ul>
  1945. <!-- Tab panes -->
  1946. <div class="tab-content">
  1947. <div class="tab-pane active" id="info13">
  1948. <div class="well">
  1949. 会员中心 </div>
  1950. <div class="panel panel-default">
  1951. <div class="panel-heading"><strong>权限</strong></div>
  1952. <div class="panel-body">
  1953. <table class="table table-hover">
  1954. <tbody>
  1955. <tr>
  1956. <td>登录</td>
  1957. <td>是</td>
  1958. </tr>
  1959. <tr>
  1960. <td>鉴权</td>
  1961. <td>否</td>
  1962. </tr>
  1963. </tbody>
  1964. </table>
  1965. </div>
  1966. </div>
  1967. <div class="panel panel-default">
  1968. <div class="panel-heading"><strong>Headers</strong></div>
  1969. <div class="panel-body">
  1970. </div>
  1971. </div>
  1972. <div class="panel panel-default">
  1973. <div class="panel-heading"><strong>参数</strong></div>
  1974. <div class="panel-body">
  1975. </div>
  1976. </div>
  1977. <div class="panel panel-default">
  1978. <div class="panel-heading"><strong>正文</strong></div>
  1979. <div class="panel-body">
  1980. 无 </div>
  1981. </div>
  1982. </div><!-- #info -->
  1983. <div class="tab-pane" id="sandbox13">
  1984. <div class="row">
  1985. <div class="col-md-12">
  1986. <div class="panel panel-default">
  1987. <div class="panel-heading"><strong>参数</strong>
  1988. <div class="pull-right">
  1989. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  1990. </div>
  1991. </div>
  1992. <div class="panel-body">
  1993. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/index" method="get" name="form13" id="form13">
  1994. <div class="form-group">
  1995. </div>
  1996. <div class="form-group form-group-submit">
  1997. <button type="submit" class="btn btn-success send" rel="13">提交</button>
  1998. <button type="reset" class="btn btn-info" rel="13">重置</button>
  1999. </div>
  2000. </form>
  2001. </div>
  2002. </div>
  2003. <div class="panel panel-default">
  2004. <div class="panel-heading"><strong>响应输出</strong></div>
  2005. <div class="panel-body">
  2006. <div class="row">
  2007. <div class="col-md-12" style="overflow-x:auto">
  2008. <pre id="response_headers13"></pre>
  2009. <pre id="response13"></pre>
  2010. </div>
  2011. </div>
  2012. </div>
  2013. </div>
  2014. <div class="panel panel-default">
  2015. <div class="panel-heading"><strong>返回参数</strong></div>
  2016. <div class="panel-body">
  2017. </div>
  2018. </div>
  2019. </div>
  2020. </div>
  2021. </div><!-- #sandbox -->
  2022. <div class="tab-pane" id="sample13">
  2023. <div class="row">
  2024. <div class="col-md-12">
  2025. <pre id="sample_response13">无</pre>
  2026. </div>
  2027. </div>
  2028. </div><!-- #sample -->
  2029. </div><!-- .tab-content -->
  2030. </div>
  2031. </div>
  2032. </div>
  2033. <div class="panel panel-default">
  2034. <div class="panel-heading" id="heading-14">
  2035. <h4 class="panel-title">
  2036. <span class="label label-primary">POST</span>
  2037. <a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 会员登录 <span class="text-muted">/api/user/login</span></a>
  2038. </h4>
  2039. </div>
  2040. <div id="collapseOne14" class="panel-collapse collapse">
  2041. <div class="panel-body">
  2042. <!-- Nav tabs -->
  2043. <ul class="nav nav-tabs" id="doctab14">
  2044. <li class="active"><a href="#info14" data-toggle="tab">基础信息</a></li>
  2045. <li><a href="#sandbox14" data-toggle="tab">在线测试</a></li>
  2046. <li><a href="#sample14" data-toggle="tab">返回示例</a></li>
  2047. </ul>
  2048. <!-- Tab panes -->
  2049. <div class="tab-content">
  2050. <div class="tab-pane active" id="info14">
  2051. <div class="well">
  2052. 会员登录 </div>
  2053. <div class="panel panel-default">
  2054. <div class="panel-heading"><strong>权限</strong></div>
  2055. <div class="panel-body">
  2056. <table class="table table-hover">
  2057. <tbody>
  2058. <tr>
  2059. <td>登录</td>
  2060. <td>否</td>
  2061. </tr>
  2062. <tr>
  2063. <td>鉴权</td>
  2064. <td>否</td>
  2065. </tr>
  2066. </tbody>
  2067. </table>
  2068. </div>
  2069. </div>
  2070. <div class="panel panel-default">
  2071. <div class="panel-heading"><strong>Headers</strong></div>
  2072. <div class="panel-body">
  2073. </div>
  2074. </div>
  2075. <div class="panel panel-default">
  2076. <div class="panel-heading"><strong>参数</strong></div>
  2077. <div class="panel-body">
  2078. <table class="table table-hover">
  2079. <thead>
  2080. <tr>
  2081. <th>名称</th>
  2082. <th>类型</th>
  2083. <th>必选</th>
  2084. <th>描述</th>
  2085. </tr>
  2086. </thead>
  2087. <tbody>
  2088. <tr>
  2089. <td>account</td>
  2090. <td>string</td>
  2091. <td>是</td>
  2092. <td>账号</td>
  2093. </tr>
  2094. <tr>
  2095. <td>password</td>
  2096. <td>string</td>
  2097. <td>是</td>
  2098. <td>密码</td>
  2099. </tr>
  2100. </tbody>
  2101. </table>
  2102. </div>
  2103. </div>
  2104. <div class="panel panel-default">
  2105. <div class="panel-heading"><strong>正文</strong></div>
  2106. <div class="panel-body">
  2107. 无 </div>
  2108. </div>
  2109. </div><!-- #info -->
  2110. <div class="tab-pane" id="sandbox14">
  2111. <div class="row">
  2112. <div class="col-md-12">
  2113. <div class="panel panel-default">
  2114. <div class="panel-heading"><strong>参数</strong>
  2115. <div class="pull-right">
  2116. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2117. </div>
  2118. </div>
  2119. <div class="panel-body">
  2120. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form14" id="form14">
  2121. <div class="form-group">
  2122. <label class="control-label" for="account">account</label>
  2123. <input type="string" class="form-control input-sm" id="account" required placeholder="账号" name="account">
  2124. </div>
  2125. <div class="form-group">
  2126. <label class="control-label" for="password">password</label>
  2127. <input type="string" class="form-control input-sm" id="password" required placeholder="密码" name="password">
  2128. </div>
  2129. <div class="form-group form-group-submit">
  2130. <button type="submit" class="btn btn-success send" rel="14">提交</button>
  2131. <button type="reset" class="btn btn-info" rel="14">重置</button>
  2132. </div>
  2133. </form>
  2134. </div>
  2135. </div>
  2136. <div class="panel panel-default">
  2137. <div class="panel-heading"><strong>响应输出</strong></div>
  2138. <div class="panel-body">
  2139. <div class="row">
  2140. <div class="col-md-12" style="overflow-x:auto">
  2141. <pre id="response_headers14"></pre>
  2142. <pre id="response14"></pre>
  2143. </div>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <div class="panel panel-default">
  2148. <div class="panel-heading"><strong>返回参数</strong></div>
  2149. <div class="panel-body">
  2150. </div>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. </div><!-- #sandbox -->
  2155. <div class="tab-pane" id="sample14">
  2156. <div class="row">
  2157. <div class="col-md-12">
  2158. <pre id="sample_response14">无</pre>
  2159. </div>
  2160. </div>
  2161. </div><!-- #sample -->
  2162. </div><!-- .tab-content -->
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div class="panel panel-default">
  2167. <div class="panel-heading" id="heading-15">
  2168. <h4 class="panel-title">
  2169. <span class="label label-primary">POST</span>
  2170. <a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 手机验证码登录 <span class="text-muted">/api/user/mobilelogin</span></a>
  2171. </h4>
  2172. </div>
  2173. <div id="collapseOne15" class="panel-collapse collapse">
  2174. <div class="panel-body">
  2175. <!-- Nav tabs -->
  2176. <ul class="nav nav-tabs" id="doctab15">
  2177. <li class="active"><a href="#info15" data-toggle="tab">基础信息</a></li>
  2178. <li><a href="#sandbox15" data-toggle="tab">在线测试</a></li>
  2179. <li><a href="#sample15" data-toggle="tab">返回示例</a></li>
  2180. </ul>
  2181. <!-- Tab panes -->
  2182. <div class="tab-content">
  2183. <div class="tab-pane active" id="info15">
  2184. <div class="well">
  2185. 手机验证码登录 </div>
  2186. <div class="panel panel-default">
  2187. <div class="panel-heading"><strong>权限</strong></div>
  2188. <div class="panel-body">
  2189. <table class="table table-hover">
  2190. <tbody>
  2191. <tr>
  2192. <td>登录</td>
  2193. <td>否</td>
  2194. </tr>
  2195. <tr>
  2196. <td>鉴权</td>
  2197. <td>否</td>
  2198. </tr>
  2199. </tbody>
  2200. </table>
  2201. </div>
  2202. </div>
  2203. <div class="panel panel-default">
  2204. <div class="panel-heading"><strong>Headers</strong></div>
  2205. <div class="panel-body">
  2206. </div>
  2207. </div>
  2208. <div class="panel panel-default">
  2209. <div class="panel-heading"><strong>参数</strong></div>
  2210. <div class="panel-body">
  2211. <table class="table table-hover">
  2212. <thead>
  2213. <tr>
  2214. <th>名称</th>
  2215. <th>类型</th>
  2216. <th>必选</th>
  2217. <th>描述</th>
  2218. </tr>
  2219. </thead>
  2220. <tbody>
  2221. <tr>
  2222. <td>mobile</td>
  2223. <td>string</td>
  2224. <td>是</td>
  2225. <td>手机号</td>
  2226. </tr>
  2227. <tr>
  2228. <td>captcha</td>
  2229. <td>string</td>
  2230. <td>是</td>
  2231. <td>验证码</td>
  2232. </tr>
  2233. </tbody>
  2234. </table>
  2235. </div>
  2236. </div>
  2237. <div class="panel panel-default">
  2238. <div class="panel-heading"><strong>正文</strong></div>
  2239. <div class="panel-body">
  2240. 无 </div>
  2241. </div>
  2242. </div><!-- #info -->
  2243. <div class="tab-pane" id="sandbox15">
  2244. <div class="row">
  2245. <div class="col-md-12">
  2246. <div class="panel panel-default">
  2247. <div class="panel-heading"><strong>参数</strong>
  2248. <div class="pull-right">
  2249. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2250. </div>
  2251. </div>
  2252. <div class="panel-body">
  2253. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="POST" name="form15" id="form15">
  2254. <div class="form-group">
  2255. <label class="control-label" for="mobile">mobile</label>
  2256. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  2257. </div>
  2258. <div class="form-group">
  2259. <label class="control-label" for="captcha">captcha</label>
  2260. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  2261. </div>
  2262. <div class="form-group form-group-submit">
  2263. <button type="submit" class="btn btn-success send" rel="15">提交</button>
  2264. <button type="reset" class="btn btn-info" rel="15">重置</button>
  2265. </div>
  2266. </form>
  2267. </div>
  2268. </div>
  2269. <div class="panel panel-default">
  2270. <div class="panel-heading"><strong>响应输出</strong></div>
  2271. <div class="panel-body">
  2272. <div class="row">
  2273. <div class="col-md-12" style="overflow-x:auto">
  2274. <pre id="response_headers15"></pre>
  2275. <pre id="response15"></pre>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. </div>
  2280. <div class="panel panel-default">
  2281. <div class="panel-heading"><strong>返回参数</strong></div>
  2282. <div class="panel-body">
  2283. </div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div><!-- #sandbox -->
  2288. <div class="tab-pane" id="sample15">
  2289. <div class="row">
  2290. <div class="col-md-12">
  2291. <pre id="sample_response15">无</pre>
  2292. </div>
  2293. </div>
  2294. </div><!-- #sample -->
  2295. </div><!-- .tab-content -->
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="panel panel-default">
  2300. <div class="panel-heading" id="heading-16">
  2301. <h4 class="panel-title">
  2302. <span class="label label-primary">POST</span>
  2303. <a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 注册会员 <span class="text-muted">/api/user/register</span></a>
  2304. </h4>
  2305. </div>
  2306. <div id="collapseOne16" class="panel-collapse collapse">
  2307. <div class="panel-body">
  2308. <!-- Nav tabs -->
  2309. <ul class="nav nav-tabs" id="doctab16">
  2310. <li class="active"><a href="#info16" data-toggle="tab">基础信息</a></li>
  2311. <li><a href="#sandbox16" data-toggle="tab">在线测试</a></li>
  2312. <li><a href="#sample16" data-toggle="tab">返回示例</a></li>
  2313. </ul>
  2314. <!-- Tab panes -->
  2315. <div class="tab-content">
  2316. <div class="tab-pane active" id="info16">
  2317. <div class="well">
  2318. 注册会员 </div>
  2319. <div class="panel panel-default">
  2320. <div class="panel-heading"><strong>权限</strong></div>
  2321. <div class="panel-body">
  2322. <table class="table table-hover">
  2323. <tbody>
  2324. <tr>
  2325. <td>登录</td>
  2326. <td>否</td>
  2327. </tr>
  2328. <tr>
  2329. <td>鉴权</td>
  2330. <td>否</td>
  2331. </tr>
  2332. </tbody>
  2333. </table>
  2334. </div>
  2335. </div>
  2336. <div class="panel panel-default">
  2337. <div class="panel-heading"><strong>Headers</strong></div>
  2338. <div class="panel-body">
  2339. </div>
  2340. </div>
  2341. <div class="panel panel-default">
  2342. <div class="panel-heading"><strong>参数</strong></div>
  2343. <div class="panel-body">
  2344. <table class="table table-hover">
  2345. <thead>
  2346. <tr>
  2347. <th>名称</th>
  2348. <th>类型</th>
  2349. <th>必选</th>
  2350. <th>描述</th>
  2351. </tr>
  2352. </thead>
  2353. <tbody>
  2354. <tr>
  2355. <td>username</td>
  2356. <td>string</td>
  2357. <td>是</td>
  2358. <td>用户名</td>
  2359. </tr>
  2360. <tr>
  2361. <td>password</td>
  2362. <td>string</td>
  2363. <td>是</td>
  2364. <td>密码</td>
  2365. </tr>
  2366. <tr>
  2367. <td>email</td>
  2368. <td>string</td>
  2369. <td>是</td>
  2370. <td>邮箱</td>
  2371. </tr>
  2372. <tr>
  2373. <td>mobile</td>
  2374. <td>string</td>
  2375. <td>是</td>
  2376. <td>手机号</td>
  2377. </tr>
  2378. <tr>
  2379. <td>code</td>
  2380. <td>string</td>
  2381. <td>是</td>
  2382. <td>验证码</td>
  2383. </tr>
  2384. </tbody>
  2385. </table>
  2386. </div>
  2387. </div>
  2388. <div class="panel panel-default">
  2389. <div class="panel-heading"><strong>正文</strong></div>
  2390. <div class="panel-body">
  2391. 无 </div>
  2392. </div>
  2393. </div><!-- #info -->
  2394. <div class="tab-pane" id="sandbox16">
  2395. <div class="row">
  2396. <div class="col-md-12">
  2397. <div class="panel panel-default">
  2398. <div class="panel-heading"><strong>参数</strong>
  2399. <div class="pull-right">
  2400. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2401. </div>
  2402. </div>
  2403. <div class="panel-body">
  2404. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="POST" name="form16" id="form16">
  2405. <div class="form-group">
  2406. <label class="control-label" for="username">username</label>
  2407. <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
  2408. </div>
  2409. <div class="form-group">
  2410. <label class="control-label" for="password">password</label>
  2411. <input type="string" class="form-control input-sm" id="password" required placeholder="密码" name="password">
  2412. </div>
  2413. <div class="form-group">
  2414. <label class="control-label" for="email">email</label>
  2415. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  2416. </div>
  2417. <div class="form-group">
  2418. <label class="control-label" for="mobile">mobile</label>
  2419. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  2420. </div>
  2421. <div class="form-group">
  2422. <label class="control-label" for="code">code</label>
  2423. <input type="string" class="form-control input-sm" id="code" required placeholder="验证码" name="code">
  2424. </div>
  2425. <div class="form-group form-group-submit">
  2426. <button type="submit" class="btn btn-success send" rel="16">提交</button>
  2427. <button type="reset" class="btn btn-info" rel="16">重置</button>
  2428. </div>
  2429. </form>
  2430. </div>
  2431. </div>
  2432. <div class="panel panel-default">
  2433. <div class="panel-heading"><strong>响应输出</strong></div>
  2434. <div class="panel-body">
  2435. <div class="row">
  2436. <div class="col-md-12" style="overflow-x:auto">
  2437. <pre id="response_headers16"></pre>
  2438. <pre id="response16"></pre>
  2439. </div>
  2440. </div>
  2441. </div>
  2442. </div>
  2443. <div class="panel panel-default">
  2444. <div class="panel-heading"><strong>返回参数</strong></div>
  2445. <div class="panel-body">
  2446. </div>
  2447. </div>
  2448. </div>
  2449. </div>
  2450. </div><!-- #sandbox -->
  2451. <div class="tab-pane" id="sample16">
  2452. <div class="row">
  2453. <div class="col-md-12">
  2454. <pre id="sample_response16">无</pre>
  2455. </div>
  2456. </div>
  2457. </div><!-- #sample -->
  2458. </div><!-- .tab-content -->
  2459. </div>
  2460. </div>
  2461. </div>
  2462. <div class="panel panel-default">
  2463. <div class="panel-heading" id="heading-17">
  2464. <h4 class="panel-title">
  2465. <span class="label label-primary">POST</span>
  2466. <a data-toggle="collapse" data-parent="#accordion17" href="#collapseOne17"> 退出登录 <span class="text-muted">/api/user/logout</span></a>
  2467. </h4>
  2468. </div>
  2469. <div id="collapseOne17" class="panel-collapse collapse">
  2470. <div class="panel-body">
  2471. <!-- Nav tabs -->
  2472. <ul class="nav nav-tabs" id="doctab17">
  2473. <li class="active"><a href="#info17" data-toggle="tab">基础信息</a></li>
  2474. <li><a href="#sandbox17" data-toggle="tab">在线测试</a></li>
  2475. <li><a href="#sample17" data-toggle="tab">返回示例</a></li>
  2476. </ul>
  2477. <!-- Tab panes -->
  2478. <div class="tab-content">
  2479. <div class="tab-pane active" id="info17">
  2480. <div class="well">
  2481. 退出登录 </div>
  2482. <div class="panel panel-default">
  2483. <div class="panel-heading"><strong>权限</strong></div>
  2484. <div class="panel-body">
  2485. <table class="table table-hover">
  2486. <tbody>
  2487. <tr>
  2488. <td>登录</td>
  2489. <td>是</td>
  2490. </tr>
  2491. <tr>
  2492. <td>鉴权</td>
  2493. <td>否</td>
  2494. </tr>
  2495. </tbody>
  2496. </table>
  2497. </div>
  2498. </div>
  2499. <div class="panel panel-default">
  2500. <div class="panel-heading"><strong>Headers</strong></div>
  2501. <div class="panel-body">
  2502. </div>
  2503. </div>
  2504. <div class="panel panel-default">
  2505. <div class="panel-heading"><strong>参数</strong></div>
  2506. <div class="panel-body">
  2507. </div>
  2508. </div>
  2509. <div class="panel panel-default">
  2510. <div class="panel-heading"><strong>正文</strong></div>
  2511. <div class="panel-body">
  2512. 无 </div>
  2513. </div>
  2514. </div><!-- #info -->
  2515. <div class="tab-pane" id="sandbox17">
  2516. <div class="row">
  2517. <div class="col-md-12">
  2518. <div class="panel panel-default">
  2519. <div class="panel-heading"><strong>参数</strong>
  2520. <div class="pull-right">
  2521. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2522. </div>
  2523. </div>
  2524. <div class="panel-body">
  2525. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/logout" method="POST" name="form17" id="form17">
  2526. <div class="form-group">
  2527. </div>
  2528. <div class="form-group form-group-submit">
  2529. <button type="submit" class="btn btn-success send" rel="17">提交</button>
  2530. <button type="reset" class="btn btn-info" rel="17">重置</button>
  2531. </div>
  2532. </form>
  2533. </div>
  2534. </div>
  2535. <div class="panel panel-default">
  2536. <div class="panel-heading"><strong>响应输出</strong></div>
  2537. <div class="panel-body">
  2538. <div class="row">
  2539. <div class="col-md-12" style="overflow-x:auto">
  2540. <pre id="response_headers17"></pre>
  2541. <pre id="response17"></pre>
  2542. </div>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. <div class="panel panel-default">
  2547. <div class="panel-heading"><strong>返回参数</strong></div>
  2548. <div class="panel-body">
  2549. </div>
  2550. </div>
  2551. </div>
  2552. </div>
  2553. </div><!-- #sandbox -->
  2554. <div class="tab-pane" id="sample17">
  2555. <div class="row">
  2556. <div class="col-md-12">
  2557. <pre id="sample_response17">无</pre>
  2558. </div>
  2559. </div>
  2560. </div><!-- #sample -->
  2561. </div><!-- .tab-content -->
  2562. </div>
  2563. </div>
  2564. </div>
  2565. <div class="panel panel-default">
  2566. <div class="panel-heading" id="heading-18">
  2567. <h4 class="panel-title">
  2568. <span class="label label-primary">POST</span>
  2569. <a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 修改会员个人信息 <span class="text-muted">/api/user/profile</span></a>
  2570. </h4>
  2571. </div>
  2572. <div id="collapseOne18" class="panel-collapse collapse">
  2573. <div class="panel-body">
  2574. <!-- Nav tabs -->
  2575. <ul class="nav nav-tabs" id="doctab18">
  2576. <li class="active"><a href="#info18" data-toggle="tab">基础信息</a></li>
  2577. <li><a href="#sandbox18" data-toggle="tab">在线测试</a></li>
  2578. <li><a href="#sample18" data-toggle="tab">返回示例</a></li>
  2579. </ul>
  2580. <!-- Tab panes -->
  2581. <div class="tab-content">
  2582. <div class="tab-pane active" id="info18">
  2583. <div class="well">
  2584. 修改会员个人信息 </div>
  2585. <div class="panel panel-default">
  2586. <div class="panel-heading"><strong>权限</strong></div>
  2587. <div class="panel-body">
  2588. <table class="table table-hover">
  2589. <tbody>
  2590. <tr>
  2591. <td>登录</td>
  2592. <td>是</td>
  2593. </tr>
  2594. <tr>
  2595. <td>鉴权</td>
  2596. <td>否</td>
  2597. </tr>
  2598. </tbody>
  2599. </table>
  2600. </div>
  2601. </div>
  2602. <div class="panel panel-default">
  2603. <div class="panel-heading"><strong>Headers</strong></div>
  2604. <div class="panel-body">
  2605. </div>
  2606. </div>
  2607. <div class="panel panel-default">
  2608. <div class="panel-heading"><strong>参数</strong></div>
  2609. <div class="panel-body">
  2610. <table class="table table-hover">
  2611. <thead>
  2612. <tr>
  2613. <th>名称</th>
  2614. <th>类型</th>
  2615. <th>必选</th>
  2616. <th>描述</th>
  2617. </tr>
  2618. </thead>
  2619. <tbody>
  2620. <tr>
  2621. <td>avatar</td>
  2622. <td>string</td>
  2623. <td>是</td>
  2624. <td>头像地址</td>
  2625. </tr>
  2626. <tr>
  2627. <td>username</td>
  2628. <td>string</td>
  2629. <td>是</td>
  2630. <td>用户名</td>
  2631. </tr>
  2632. <tr>
  2633. <td>nickname</td>
  2634. <td>string</td>
  2635. <td>是</td>
  2636. <td>昵称</td>
  2637. </tr>
  2638. <tr>
  2639. <td>bio</td>
  2640. <td>string</td>
  2641. <td>是</td>
  2642. <td>个人简介</td>
  2643. </tr>
  2644. </tbody>
  2645. </table>
  2646. </div>
  2647. </div>
  2648. <div class="panel panel-default">
  2649. <div class="panel-heading"><strong>正文</strong></div>
  2650. <div class="panel-body">
  2651. 无 </div>
  2652. </div>
  2653. </div><!-- #info -->
  2654. <div class="tab-pane" id="sandbox18">
  2655. <div class="row">
  2656. <div class="col-md-12">
  2657. <div class="panel panel-default">
  2658. <div class="panel-heading"><strong>参数</strong>
  2659. <div class="pull-right">
  2660. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2661. </div>
  2662. </div>
  2663. <div class="panel-body">
  2664. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="POST" name="form18" id="form18">
  2665. <div class="form-group">
  2666. <label class="control-label" for="avatar">avatar</label>
  2667. <input type="string" class="form-control input-sm" id="avatar" required placeholder="头像地址" name="avatar">
  2668. </div>
  2669. <div class="form-group">
  2670. <label class="control-label" for="username">username</label>
  2671. <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
  2672. </div>
  2673. <div class="form-group">
  2674. <label class="control-label" for="nickname">nickname</label>
  2675. <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname">
  2676. </div>
  2677. <div class="form-group">
  2678. <label class="control-label" for="bio">bio</label>
  2679. <input type="string" class="form-control input-sm" id="bio" required placeholder="个人简介" name="bio">
  2680. </div>
  2681. <div class="form-group form-group-submit">
  2682. <button type="submit" class="btn btn-success send" rel="18">提交</button>
  2683. <button type="reset" class="btn btn-info" rel="18">重置</button>
  2684. </div>
  2685. </form>
  2686. </div>
  2687. </div>
  2688. <div class="panel panel-default">
  2689. <div class="panel-heading"><strong>响应输出</strong></div>
  2690. <div class="panel-body">
  2691. <div class="row">
  2692. <div class="col-md-12" style="overflow-x:auto">
  2693. <pre id="response_headers18"></pre>
  2694. <pre id="response18"></pre>
  2695. </div>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. <div class="panel panel-default">
  2700. <div class="panel-heading"><strong>返回参数</strong></div>
  2701. <div class="panel-body">
  2702. </div>
  2703. </div>
  2704. </div>
  2705. </div>
  2706. </div><!-- #sandbox -->
  2707. <div class="tab-pane" id="sample18">
  2708. <div class="row">
  2709. <div class="col-md-12">
  2710. <pre id="sample_response18">无</pre>
  2711. </div>
  2712. </div>
  2713. </div><!-- #sample -->
  2714. </div><!-- .tab-content -->
  2715. </div>
  2716. </div>
  2717. </div>
  2718. <div class="panel panel-default">
  2719. <div class="panel-heading" id="heading-19">
  2720. <h4 class="panel-title">
  2721. <span class="label label-primary">POST</span>
  2722. <a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> 修改邮箱 <span class="text-muted">/api/user/changeemail</span></a>
  2723. </h4>
  2724. </div>
  2725. <div id="collapseOne19" class="panel-collapse collapse">
  2726. <div class="panel-body">
  2727. <!-- Nav tabs -->
  2728. <ul class="nav nav-tabs" id="doctab19">
  2729. <li class="active"><a href="#info19" data-toggle="tab">基础信息</a></li>
  2730. <li><a href="#sandbox19" data-toggle="tab">在线测试</a></li>
  2731. <li><a href="#sample19" data-toggle="tab">返回示例</a></li>
  2732. </ul>
  2733. <!-- Tab panes -->
  2734. <div class="tab-content">
  2735. <div class="tab-pane active" id="info19">
  2736. <div class="well">
  2737. 修改邮箱 </div>
  2738. <div class="panel panel-default">
  2739. <div class="panel-heading"><strong>权限</strong></div>
  2740. <div class="panel-body">
  2741. <table class="table table-hover">
  2742. <tbody>
  2743. <tr>
  2744. <td>登录</td>
  2745. <td>否</td>
  2746. </tr>
  2747. <tr>
  2748. <td>鉴权</td>
  2749. <td>否</td>
  2750. </tr>
  2751. </tbody>
  2752. </table>
  2753. </div>
  2754. </div>
  2755. <div class="panel panel-default">
  2756. <div class="panel-heading"><strong>Headers</strong></div>
  2757. <div class="panel-body">
  2758. </div>
  2759. </div>
  2760. <div class="panel panel-default">
  2761. <div class="panel-heading"><strong>参数</strong></div>
  2762. <div class="panel-body">
  2763. <table class="table table-hover">
  2764. <thead>
  2765. <tr>
  2766. <th>名称</th>
  2767. <th>类型</th>
  2768. <th>必选</th>
  2769. <th>描述</th>
  2770. </tr>
  2771. </thead>
  2772. <tbody>
  2773. <tr>
  2774. <td>email</td>
  2775. <td>string</td>
  2776. <td>是</td>
  2777. <td>邮箱</td>
  2778. </tr>
  2779. <tr>
  2780. <td>captcha</td>
  2781. <td>string</td>
  2782. <td>是</td>
  2783. <td>验证码</td>
  2784. </tr>
  2785. </tbody>
  2786. </table>
  2787. </div>
  2788. </div>
  2789. <div class="panel panel-default">
  2790. <div class="panel-heading"><strong>正文</strong></div>
  2791. <div class="panel-body">
  2792. 无 </div>
  2793. </div>
  2794. </div><!-- #info -->
  2795. <div class="tab-pane" id="sandbox19">
  2796. <div class="row">
  2797. <div class="col-md-12">
  2798. <div class="panel panel-default">
  2799. <div class="panel-heading"><strong>参数</strong>
  2800. <div class="pull-right">
  2801. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2802. </div>
  2803. </div>
  2804. <div class="panel-body">
  2805. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="POST" name="form19" id="form19">
  2806. <div class="form-group">
  2807. <label class="control-label" for="email">email</label>
  2808. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  2809. </div>
  2810. <div class="form-group">
  2811. <label class="control-label" for="captcha">captcha</label>
  2812. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  2813. </div>
  2814. <div class="form-group form-group-submit">
  2815. <button type="submit" class="btn btn-success send" rel="19">提交</button>
  2816. <button type="reset" class="btn btn-info" rel="19">重置</button>
  2817. </div>
  2818. </form>
  2819. </div>
  2820. </div>
  2821. <div class="panel panel-default">
  2822. <div class="panel-heading"><strong>响应输出</strong></div>
  2823. <div class="panel-body">
  2824. <div class="row">
  2825. <div class="col-md-12" style="overflow-x:auto">
  2826. <pre id="response_headers19"></pre>
  2827. <pre id="response19"></pre>
  2828. </div>
  2829. </div>
  2830. </div>
  2831. </div>
  2832. <div class="panel panel-default">
  2833. <div class="panel-heading"><strong>返回参数</strong></div>
  2834. <div class="panel-body">
  2835. </div>
  2836. </div>
  2837. </div>
  2838. </div>
  2839. </div><!-- #sandbox -->
  2840. <div class="tab-pane" id="sample19">
  2841. <div class="row">
  2842. <div class="col-md-12">
  2843. <pre id="sample_response19">无</pre>
  2844. </div>
  2845. </div>
  2846. </div><!-- #sample -->
  2847. </div><!-- .tab-content -->
  2848. </div>
  2849. </div>
  2850. </div>
  2851. <div class="panel panel-default">
  2852. <div class="panel-heading" id="heading-20">
  2853. <h4 class="panel-title">
  2854. <span class="label label-primary">POST</span>
  2855. <a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 修改手机号 <span class="text-muted">/api/user/changemobile</span></a>
  2856. </h4>
  2857. </div>
  2858. <div id="collapseOne20" class="panel-collapse collapse">
  2859. <div class="panel-body">
  2860. <!-- Nav tabs -->
  2861. <ul class="nav nav-tabs" id="doctab20">
  2862. <li class="active"><a href="#info20" data-toggle="tab">基础信息</a></li>
  2863. <li><a href="#sandbox20" data-toggle="tab">在线测试</a></li>
  2864. <li><a href="#sample20" data-toggle="tab">返回示例</a></li>
  2865. </ul>
  2866. <!-- Tab panes -->
  2867. <div class="tab-content">
  2868. <div class="tab-pane active" id="info20">
  2869. <div class="well">
  2870. 修改手机号 </div>
  2871. <div class="panel panel-default">
  2872. <div class="panel-heading"><strong>权限</strong></div>
  2873. <div class="panel-body">
  2874. <table class="table table-hover">
  2875. <tbody>
  2876. <tr>
  2877. <td>登录</td>
  2878. <td>否</td>
  2879. </tr>
  2880. <tr>
  2881. <td>鉴权</td>
  2882. <td>否</td>
  2883. </tr>
  2884. </tbody>
  2885. </table>
  2886. </div>
  2887. </div>
  2888. <div class="panel panel-default">
  2889. <div class="panel-heading"><strong>Headers</strong></div>
  2890. <div class="panel-body">
  2891. </div>
  2892. </div>
  2893. <div class="panel panel-default">
  2894. <div class="panel-heading"><strong>参数</strong></div>
  2895. <div class="panel-body">
  2896. <table class="table table-hover">
  2897. <thead>
  2898. <tr>
  2899. <th>名称</th>
  2900. <th>类型</th>
  2901. <th>必选</th>
  2902. <th>描述</th>
  2903. </tr>
  2904. </thead>
  2905. <tbody>
  2906. <tr>
  2907. <td>mobile</td>
  2908. <td>string</td>
  2909. <td>是</td>
  2910. <td>手机号</td>
  2911. </tr>
  2912. <tr>
  2913. <td>captcha</td>
  2914. <td>string</td>
  2915. <td>是</td>
  2916. <td>验证码</td>
  2917. </tr>
  2918. </tbody>
  2919. </table>
  2920. </div>
  2921. </div>
  2922. <div class="panel panel-default">
  2923. <div class="panel-heading"><strong>正文</strong></div>
  2924. <div class="panel-body">
  2925. 无 </div>
  2926. </div>
  2927. </div><!-- #info -->
  2928. <div class="tab-pane" id="sandbox20">
  2929. <div class="row">
  2930. <div class="col-md-12">
  2931. <div class="panel panel-default">
  2932. <div class="panel-heading"><strong>参数</strong>
  2933. <div class="pull-right">
  2934. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  2935. </div>
  2936. </div>
  2937. <div class="panel-body">
  2938. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="POST" name="form20" id="form20">
  2939. <div class="form-group">
  2940. <label class="control-label" for="mobile">mobile</label>
  2941. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  2942. </div>
  2943. <div class="form-group">
  2944. <label class="control-label" for="captcha">captcha</label>
  2945. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  2946. </div>
  2947. <div class="form-group form-group-submit">
  2948. <button type="submit" class="btn btn-success send" rel="20">提交</button>
  2949. <button type="reset" class="btn btn-info" rel="20">重置</button>
  2950. </div>
  2951. </form>
  2952. </div>
  2953. </div>
  2954. <div class="panel panel-default">
  2955. <div class="panel-heading"><strong>响应输出</strong></div>
  2956. <div class="panel-body">
  2957. <div class="row">
  2958. <div class="col-md-12" style="overflow-x:auto">
  2959. <pre id="response_headers20"></pre>
  2960. <pre id="response20"></pre>
  2961. </div>
  2962. </div>
  2963. </div>
  2964. </div>
  2965. <div class="panel panel-default">
  2966. <div class="panel-heading"><strong>返回参数</strong></div>
  2967. <div class="panel-body">
  2968. </div>
  2969. </div>
  2970. </div>
  2971. </div>
  2972. </div><!-- #sandbox -->
  2973. <div class="tab-pane" id="sample20">
  2974. <div class="row">
  2975. <div class="col-md-12">
  2976. <pre id="sample_response20">无</pre>
  2977. </div>
  2978. </div>
  2979. </div><!-- #sample -->
  2980. </div><!-- .tab-content -->
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div class="panel panel-default">
  2985. <div class="panel-heading" id="heading-21">
  2986. <h4 class="panel-title">
  2987. <span class="label label-primary">POST</span>
  2988. <a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 第三方登录 <span class="text-muted">/api/user/third</span></a>
  2989. </h4>
  2990. </div>
  2991. <div id="collapseOne21" class="panel-collapse collapse">
  2992. <div class="panel-body">
  2993. <!-- Nav tabs -->
  2994. <ul class="nav nav-tabs" id="doctab21">
  2995. <li class="active"><a href="#info21" data-toggle="tab">基础信息</a></li>
  2996. <li><a href="#sandbox21" data-toggle="tab">在线测试</a></li>
  2997. <li><a href="#sample21" data-toggle="tab">返回示例</a></li>
  2998. </ul>
  2999. <!-- Tab panes -->
  3000. <div class="tab-content">
  3001. <div class="tab-pane active" id="info21">
  3002. <div class="well">
  3003. 第三方登录 </div>
  3004. <div class="panel panel-default">
  3005. <div class="panel-heading"><strong>权限</strong></div>
  3006. <div class="panel-body">
  3007. <table class="table table-hover">
  3008. <tbody>
  3009. <tr>
  3010. <td>登录</td>
  3011. <td>否</td>
  3012. </tr>
  3013. <tr>
  3014. <td>鉴权</td>
  3015. <td>否</td>
  3016. </tr>
  3017. </tbody>
  3018. </table>
  3019. </div>
  3020. </div>
  3021. <div class="panel panel-default">
  3022. <div class="panel-heading"><strong>Headers</strong></div>
  3023. <div class="panel-body">
  3024. </div>
  3025. </div>
  3026. <div class="panel panel-default">
  3027. <div class="panel-heading"><strong>参数</strong></div>
  3028. <div class="panel-body">
  3029. <table class="table table-hover">
  3030. <thead>
  3031. <tr>
  3032. <th>名称</th>
  3033. <th>类型</th>
  3034. <th>必选</th>
  3035. <th>描述</th>
  3036. </tr>
  3037. </thead>
  3038. <tbody>
  3039. <tr>
  3040. <td>platform</td>
  3041. <td>string</td>
  3042. <td>是</td>
  3043. <td>平台名称</td>
  3044. </tr>
  3045. <tr>
  3046. <td>code</td>
  3047. <td>string</td>
  3048. <td>是</td>
  3049. <td>Code码</td>
  3050. </tr>
  3051. </tbody>
  3052. </table>
  3053. </div>
  3054. </div>
  3055. <div class="panel panel-default">
  3056. <div class="panel-heading"><strong>正文</strong></div>
  3057. <div class="panel-body">
  3058. 无 </div>
  3059. </div>
  3060. </div><!-- #info -->
  3061. <div class="tab-pane" id="sandbox21">
  3062. <div class="row">
  3063. <div class="col-md-12">
  3064. <div class="panel panel-default">
  3065. <div class="panel-heading"><strong>参数</strong>
  3066. <div class="pull-right">
  3067. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3068. </div>
  3069. </div>
  3070. <div class="panel-body">
  3071. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="POST" name="form21" id="form21">
  3072. <div class="form-group">
  3073. <label class="control-label" for="platform">platform</label>
  3074. <input type="string" class="form-control input-sm" id="platform" required placeholder="平台名称" name="platform">
  3075. </div>
  3076. <div class="form-group">
  3077. <label class="control-label" for="code">code</label>
  3078. <input type="string" class="form-control input-sm" id="code" required placeholder="Code码" name="code">
  3079. </div>
  3080. <div class="form-group form-group-submit">
  3081. <button type="submit" class="btn btn-success send" rel="21">提交</button>
  3082. <button type="reset" class="btn btn-info" rel="21">重置</button>
  3083. </div>
  3084. </form>
  3085. </div>
  3086. </div>
  3087. <div class="panel panel-default">
  3088. <div class="panel-heading"><strong>响应输出</strong></div>
  3089. <div class="panel-body">
  3090. <div class="row">
  3091. <div class="col-md-12" style="overflow-x:auto">
  3092. <pre id="response_headers21"></pre>
  3093. <pre id="response21"></pre>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. <div class="panel panel-default">
  3099. <div class="panel-heading"><strong>返回参数</strong></div>
  3100. <div class="panel-body">
  3101. </div>
  3102. </div>
  3103. </div>
  3104. </div>
  3105. </div><!-- #sandbox -->
  3106. <div class="tab-pane" id="sample21">
  3107. <div class="row">
  3108. <div class="col-md-12">
  3109. <pre id="sample_response21">无</pre>
  3110. </div>
  3111. </div>
  3112. </div><!-- #sample -->
  3113. </div><!-- .tab-content -->
  3114. </div>
  3115. </div>
  3116. </div>
  3117. <div class="panel panel-default">
  3118. <div class="panel-heading" id="heading-22">
  3119. <h4 class="panel-title">
  3120. <span class="label label-primary">POST</span>
  3121. <a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 重置密码 <span class="text-muted">/api/user/resetpwd</span></a>
  3122. </h4>
  3123. </div>
  3124. <div id="collapseOne22" class="panel-collapse collapse">
  3125. <div class="panel-body">
  3126. <!-- Nav tabs -->
  3127. <ul class="nav nav-tabs" id="doctab22">
  3128. <li class="active"><a href="#info22" data-toggle="tab">基础信息</a></li>
  3129. <li><a href="#sandbox22" data-toggle="tab">在线测试</a></li>
  3130. <li><a href="#sample22" data-toggle="tab">返回示例</a></li>
  3131. </ul>
  3132. <!-- Tab panes -->
  3133. <div class="tab-content">
  3134. <div class="tab-pane active" id="info22">
  3135. <div class="well">
  3136. 重置密码 </div>
  3137. <div class="panel panel-default">
  3138. <div class="panel-heading"><strong>权限</strong></div>
  3139. <div class="panel-body">
  3140. <table class="table table-hover">
  3141. <tbody>
  3142. <tr>
  3143. <td>登录</td>
  3144. <td>否</td>
  3145. </tr>
  3146. <tr>
  3147. <td>鉴权</td>
  3148. <td>否</td>
  3149. </tr>
  3150. </tbody>
  3151. </table>
  3152. </div>
  3153. </div>
  3154. <div class="panel panel-default">
  3155. <div class="panel-heading"><strong>Headers</strong></div>
  3156. <div class="panel-body">
  3157. </div>
  3158. </div>
  3159. <div class="panel panel-default">
  3160. <div class="panel-heading"><strong>参数</strong></div>
  3161. <div class="panel-body">
  3162. <table class="table table-hover">
  3163. <thead>
  3164. <tr>
  3165. <th>名称</th>
  3166. <th>类型</th>
  3167. <th>必选</th>
  3168. <th>描述</th>
  3169. </tr>
  3170. </thead>
  3171. <tbody>
  3172. <tr>
  3173. <td>mobile</td>
  3174. <td>string</td>
  3175. <td>是</td>
  3176. <td>手机号</td>
  3177. </tr>
  3178. <tr>
  3179. <td>newpassword</td>
  3180. <td>string</td>
  3181. <td>是</td>
  3182. <td>新密码</td>
  3183. </tr>
  3184. <tr>
  3185. <td>captcha</td>
  3186. <td>string</td>
  3187. <td>是</td>
  3188. <td>验证码</td>
  3189. </tr>
  3190. </tbody>
  3191. </table>
  3192. </div>
  3193. </div>
  3194. <div class="panel panel-default">
  3195. <div class="panel-heading"><strong>正文</strong></div>
  3196. <div class="panel-body">
  3197. 无 </div>
  3198. </div>
  3199. </div><!-- #info -->
  3200. <div class="tab-pane" id="sandbox22">
  3201. <div class="row">
  3202. <div class="col-md-12">
  3203. <div class="panel panel-default">
  3204. <div class="panel-heading"><strong>参数</strong>
  3205. <div class="pull-right">
  3206. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3207. </div>
  3208. </div>
  3209. <div class="panel-body">
  3210. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="POST" name="form22" id="form22">
  3211. <div class="form-group">
  3212. <label class="control-label" for="mobile">mobile</label>
  3213. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  3214. </div>
  3215. <div class="form-group">
  3216. <label class="control-label" for="newpassword">newpassword</label>
  3217. <input type="string" class="form-control input-sm" id="newpassword" required placeholder="新密码" name="newpassword">
  3218. </div>
  3219. <div class="form-group">
  3220. <label class="control-label" for="captcha">captcha</label>
  3221. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  3222. </div>
  3223. <div class="form-group form-group-submit">
  3224. <button type="submit" class="btn btn-success send" rel="22">提交</button>
  3225. <button type="reset" class="btn btn-info" rel="22">重置</button>
  3226. </div>
  3227. </form>
  3228. </div>
  3229. </div>
  3230. <div class="panel panel-default">
  3231. <div class="panel-heading"><strong>响应输出</strong></div>
  3232. <div class="panel-body">
  3233. <div class="row">
  3234. <div class="col-md-12" style="overflow-x:auto">
  3235. <pre id="response_headers22"></pre>
  3236. <pre id="response22"></pre>
  3237. </div>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <div class="panel panel-default">
  3242. <div class="panel-heading"><strong>返回参数</strong></div>
  3243. <div class="panel-body">
  3244. </div>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. </div><!-- #sandbox -->
  3249. <div class="tab-pane" id="sample22">
  3250. <div class="row">
  3251. <div class="col-md-12">
  3252. <pre id="sample_response22">无</pre>
  3253. </div>
  3254. </div>
  3255. </div><!-- #sample -->
  3256. </div><!-- .tab-content -->
  3257. </div>
  3258. </div>
  3259. </div>
  3260. <h2>验证接口</h2>
  3261. <hr>
  3262. <div class="panel panel-default">
  3263. <div class="panel-heading" id="heading-23">
  3264. <h4 class="panel-title">
  3265. <span class="label label-primary">POST</span>
  3266. <a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a>
  3267. </h4>
  3268. </div>
  3269. <div id="collapseOne23" class="panel-collapse collapse">
  3270. <div class="panel-body">
  3271. <!-- Nav tabs -->
  3272. <ul class="nav nav-tabs" id="doctab23">
  3273. <li class="active"><a href="#info23" data-toggle="tab">基础信息</a></li>
  3274. <li><a href="#sandbox23" data-toggle="tab">在线测试</a></li>
  3275. <li><a href="#sample23" data-toggle="tab">返回示例</a></li>
  3276. </ul>
  3277. <!-- Tab panes -->
  3278. <div class="tab-content">
  3279. <div class="tab-pane active" id="info23">
  3280. <div class="well">
  3281. 检测邮箱 </div>
  3282. <div class="panel panel-default">
  3283. <div class="panel-heading"><strong>权限</strong></div>
  3284. <div class="panel-body">
  3285. <table class="table table-hover">
  3286. <tbody>
  3287. <tr>
  3288. <td>登录</td>
  3289. <td>否</td>
  3290. </tr>
  3291. <tr>
  3292. <td>鉴权</td>
  3293. <td>否</td>
  3294. </tr>
  3295. </tbody>
  3296. </table>
  3297. </div>
  3298. </div>
  3299. <div class="panel panel-default">
  3300. <div class="panel-heading"><strong>Headers</strong></div>
  3301. <div class="panel-body">
  3302. </div>
  3303. </div>
  3304. <div class="panel panel-default">
  3305. <div class="panel-heading"><strong>参数</strong></div>
  3306. <div class="panel-body">
  3307. <table class="table table-hover">
  3308. <thead>
  3309. <tr>
  3310. <th>名称</th>
  3311. <th>类型</th>
  3312. <th>必选</th>
  3313. <th>描述</th>
  3314. </tr>
  3315. </thead>
  3316. <tbody>
  3317. <tr>
  3318. <td>email</td>
  3319. <td>string</td>
  3320. <td>是</td>
  3321. <td>邮箱</td>
  3322. </tr>
  3323. <tr>
  3324. <td>id</td>
  3325. <td>string</td>
  3326. <td>是</td>
  3327. <td>排除会员ID</td>
  3328. </tr>
  3329. </tbody>
  3330. </table>
  3331. </div>
  3332. </div>
  3333. <div class="panel panel-default">
  3334. <div class="panel-heading"><strong>正文</strong></div>
  3335. <div class="panel-body">
  3336. 无 </div>
  3337. </div>
  3338. </div><!-- #info -->
  3339. <div class="tab-pane" id="sandbox23">
  3340. <div class="row">
  3341. <div class="col-md-12">
  3342. <div class="panel panel-default">
  3343. <div class="panel-heading"><strong>参数</strong>
  3344. <div class="pull-right">
  3345. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3346. </div>
  3347. </div>
  3348. <div class="panel-body">
  3349. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="POST" name="form23" id="form23">
  3350. <div class="form-group">
  3351. <label class="control-label" for="email">email</label>
  3352. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  3353. </div>
  3354. <div class="form-group">
  3355. <label class="control-label" for="id">id</label>
  3356. <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
  3357. </div>
  3358. <div class="form-group form-group-submit">
  3359. <button type="submit" class="btn btn-success send" rel="23">提交</button>
  3360. <button type="reset" class="btn btn-info" rel="23">重置</button>
  3361. </div>
  3362. </form>
  3363. </div>
  3364. </div>
  3365. <div class="panel panel-default">
  3366. <div class="panel-heading"><strong>响应输出</strong></div>
  3367. <div class="panel-body">
  3368. <div class="row">
  3369. <div class="col-md-12" style="overflow-x:auto">
  3370. <pre id="response_headers23"></pre>
  3371. <pre id="response23"></pre>
  3372. </div>
  3373. </div>
  3374. </div>
  3375. </div>
  3376. <div class="panel panel-default">
  3377. <div class="panel-heading"><strong>返回参数</strong></div>
  3378. <div class="panel-body">
  3379. </div>
  3380. </div>
  3381. </div>
  3382. </div>
  3383. </div><!-- #sandbox -->
  3384. <div class="tab-pane" id="sample23">
  3385. <div class="row">
  3386. <div class="col-md-12">
  3387. <pre id="sample_response23">无</pre>
  3388. </div>
  3389. </div>
  3390. </div><!-- #sample -->
  3391. </div><!-- .tab-content -->
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div class="panel panel-default">
  3396. <div class="panel-heading" id="heading-24">
  3397. <h4 class="panel-title">
  3398. <span class="label label-primary">POST</span>
  3399. <a data-toggle="collapse" data-parent="#accordion24" href="#collapseOne24"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a>
  3400. </h4>
  3401. </div>
  3402. <div id="collapseOne24" class="panel-collapse collapse">
  3403. <div class="panel-body">
  3404. <!-- Nav tabs -->
  3405. <ul class="nav nav-tabs" id="doctab24">
  3406. <li class="active"><a href="#info24" data-toggle="tab">基础信息</a></li>
  3407. <li><a href="#sandbox24" data-toggle="tab">在线测试</a></li>
  3408. <li><a href="#sample24" data-toggle="tab">返回示例</a></li>
  3409. </ul>
  3410. <!-- Tab panes -->
  3411. <div class="tab-content">
  3412. <div class="tab-pane active" id="info24">
  3413. <div class="well">
  3414. 检测用户名 </div>
  3415. <div class="panel panel-default">
  3416. <div class="panel-heading"><strong>权限</strong></div>
  3417. <div class="panel-body">
  3418. <table class="table table-hover">
  3419. <tbody>
  3420. <tr>
  3421. <td>登录</td>
  3422. <td>否</td>
  3423. </tr>
  3424. <tr>
  3425. <td>鉴权</td>
  3426. <td>否</td>
  3427. </tr>
  3428. </tbody>
  3429. </table>
  3430. </div>
  3431. </div>
  3432. <div class="panel panel-default">
  3433. <div class="panel-heading"><strong>Headers</strong></div>
  3434. <div class="panel-body">
  3435. </div>
  3436. </div>
  3437. <div class="panel panel-default">
  3438. <div class="panel-heading"><strong>参数</strong></div>
  3439. <div class="panel-body">
  3440. <table class="table table-hover">
  3441. <thead>
  3442. <tr>
  3443. <th>名称</th>
  3444. <th>类型</th>
  3445. <th>必选</th>
  3446. <th>描述</th>
  3447. </tr>
  3448. </thead>
  3449. <tbody>
  3450. <tr>
  3451. <td>username</td>
  3452. <td>string</td>
  3453. <td>是</td>
  3454. <td>用户名</td>
  3455. </tr>
  3456. <tr>
  3457. <td>id</td>
  3458. <td>string</td>
  3459. <td>是</td>
  3460. <td>排除会员ID</td>
  3461. </tr>
  3462. </tbody>
  3463. </table>
  3464. </div>
  3465. </div>
  3466. <div class="panel panel-default">
  3467. <div class="panel-heading"><strong>正文</strong></div>
  3468. <div class="panel-body">
  3469. 无 </div>
  3470. </div>
  3471. </div><!-- #info -->
  3472. <div class="tab-pane" id="sandbox24">
  3473. <div class="row">
  3474. <div class="col-md-12">
  3475. <div class="panel panel-default">
  3476. <div class="panel-heading"><strong>参数</strong>
  3477. <div class="pull-right">
  3478. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3479. </div>
  3480. </div>
  3481. <div class="panel-body">
  3482. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="POST" name="form24" id="form24">
  3483. <div class="form-group">
  3484. <label class="control-label" for="username">username</label>
  3485. <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
  3486. </div>
  3487. <div class="form-group">
  3488. <label class="control-label" for="id">id</label>
  3489. <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
  3490. </div>
  3491. <div class="form-group form-group-submit">
  3492. <button type="submit" class="btn btn-success send" rel="24">提交</button>
  3493. <button type="reset" class="btn btn-info" rel="24">重置</button>
  3494. </div>
  3495. </form>
  3496. </div>
  3497. </div>
  3498. <div class="panel panel-default">
  3499. <div class="panel-heading"><strong>响应输出</strong></div>
  3500. <div class="panel-body">
  3501. <div class="row">
  3502. <div class="col-md-12" style="overflow-x:auto">
  3503. <pre id="response_headers24"></pre>
  3504. <pre id="response24"></pre>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. <div class="panel panel-default">
  3510. <div class="panel-heading"><strong>返回参数</strong></div>
  3511. <div class="panel-body">
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. </div><!-- #sandbox -->
  3517. <div class="tab-pane" id="sample24">
  3518. <div class="row">
  3519. <div class="col-md-12">
  3520. <pre id="sample_response24">无</pre>
  3521. </div>
  3522. </div>
  3523. </div><!-- #sample -->
  3524. </div><!-- .tab-content -->
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div class="panel panel-default">
  3529. <div class="panel-heading" id="heading-25">
  3530. <h4 class="panel-title">
  3531. <span class="label label-primary">POST</span>
  3532. <a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a>
  3533. </h4>
  3534. </div>
  3535. <div id="collapseOne25" class="panel-collapse collapse">
  3536. <div class="panel-body">
  3537. <!-- Nav tabs -->
  3538. <ul class="nav nav-tabs" id="doctab25">
  3539. <li class="active"><a href="#info25" data-toggle="tab">基础信息</a></li>
  3540. <li><a href="#sandbox25" data-toggle="tab">在线测试</a></li>
  3541. <li><a href="#sample25" data-toggle="tab">返回示例</a></li>
  3542. </ul>
  3543. <!-- Tab panes -->
  3544. <div class="tab-content">
  3545. <div class="tab-pane active" id="info25">
  3546. <div class="well">
  3547. 检测昵称 </div>
  3548. <div class="panel panel-default">
  3549. <div class="panel-heading"><strong>权限</strong></div>
  3550. <div class="panel-body">
  3551. <table class="table table-hover">
  3552. <tbody>
  3553. <tr>
  3554. <td>登录</td>
  3555. <td>否</td>
  3556. </tr>
  3557. <tr>
  3558. <td>鉴权</td>
  3559. <td>否</td>
  3560. </tr>
  3561. </tbody>
  3562. </table>
  3563. </div>
  3564. </div>
  3565. <div class="panel panel-default">
  3566. <div class="panel-heading"><strong>Headers</strong></div>
  3567. <div class="panel-body">
  3568. </div>
  3569. </div>
  3570. <div class="panel panel-default">
  3571. <div class="panel-heading"><strong>参数</strong></div>
  3572. <div class="panel-body">
  3573. <table class="table table-hover">
  3574. <thead>
  3575. <tr>
  3576. <th>名称</th>
  3577. <th>类型</th>
  3578. <th>必选</th>
  3579. <th>描述</th>
  3580. </tr>
  3581. </thead>
  3582. <tbody>
  3583. <tr>
  3584. <td>nickname</td>
  3585. <td>string</td>
  3586. <td>是</td>
  3587. <td>昵称</td>
  3588. </tr>
  3589. <tr>
  3590. <td>id</td>
  3591. <td>string</td>
  3592. <td>是</td>
  3593. <td>排除会员ID</td>
  3594. </tr>
  3595. </tbody>
  3596. </table>
  3597. </div>
  3598. </div>
  3599. <div class="panel panel-default">
  3600. <div class="panel-heading"><strong>正文</strong></div>
  3601. <div class="panel-body">
  3602. 无 </div>
  3603. </div>
  3604. </div><!-- #info -->
  3605. <div class="tab-pane" id="sandbox25">
  3606. <div class="row">
  3607. <div class="col-md-12">
  3608. <div class="panel panel-default">
  3609. <div class="panel-heading"><strong>参数</strong>
  3610. <div class="pull-right">
  3611. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3612. </div>
  3613. </div>
  3614. <div class="panel-body">
  3615. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="POST" name="form25" id="form25">
  3616. <div class="form-group">
  3617. <label class="control-label" for="nickname">nickname</label>
  3618. <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname">
  3619. </div>
  3620. <div class="form-group">
  3621. <label class="control-label" for="id">id</label>
  3622. <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
  3623. </div>
  3624. <div class="form-group form-group-submit">
  3625. <button type="submit" class="btn btn-success send" rel="25">提交</button>
  3626. <button type="reset" class="btn btn-info" rel="25">重置</button>
  3627. </div>
  3628. </form>
  3629. </div>
  3630. </div>
  3631. <div class="panel panel-default">
  3632. <div class="panel-heading"><strong>响应输出</strong></div>
  3633. <div class="panel-body">
  3634. <div class="row">
  3635. <div class="col-md-12" style="overflow-x:auto">
  3636. <pre id="response_headers25"></pre>
  3637. <pre id="response25"></pre>
  3638. </div>
  3639. </div>
  3640. </div>
  3641. </div>
  3642. <div class="panel panel-default">
  3643. <div class="panel-heading"><strong>返回参数</strong></div>
  3644. <div class="panel-body">
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div><!-- #sandbox -->
  3650. <div class="tab-pane" id="sample25">
  3651. <div class="row">
  3652. <div class="col-md-12">
  3653. <pre id="sample_response25">无</pre>
  3654. </div>
  3655. </div>
  3656. </div><!-- #sample -->
  3657. </div><!-- .tab-content -->
  3658. </div>
  3659. </div>
  3660. </div>
  3661. <div class="panel panel-default">
  3662. <div class="panel-heading" id="heading-26">
  3663. <h4 class="panel-title">
  3664. <span class="label label-primary">POST</span>
  3665. <a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a>
  3666. </h4>
  3667. </div>
  3668. <div id="collapseOne26" class="panel-collapse collapse">
  3669. <div class="panel-body">
  3670. <!-- Nav tabs -->
  3671. <ul class="nav nav-tabs" id="doctab26">
  3672. <li class="active"><a href="#info26" data-toggle="tab">基础信息</a></li>
  3673. <li><a href="#sandbox26" data-toggle="tab">在线测试</a></li>
  3674. <li><a href="#sample26" data-toggle="tab">返回示例</a></li>
  3675. </ul>
  3676. <!-- Tab panes -->
  3677. <div class="tab-content">
  3678. <div class="tab-pane active" id="info26">
  3679. <div class="well">
  3680. 检测手机 </div>
  3681. <div class="panel panel-default">
  3682. <div class="panel-heading"><strong>权限</strong></div>
  3683. <div class="panel-body">
  3684. <table class="table table-hover">
  3685. <tbody>
  3686. <tr>
  3687. <td>登录</td>
  3688. <td>否</td>
  3689. </tr>
  3690. <tr>
  3691. <td>鉴权</td>
  3692. <td>否</td>
  3693. </tr>
  3694. </tbody>
  3695. </table>
  3696. </div>
  3697. </div>
  3698. <div class="panel panel-default">
  3699. <div class="panel-heading"><strong>Headers</strong></div>
  3700. <div class="panel-body">
  3701. </div>
  3702. </div>
  3703. <div class="panel panel-default">
  3704. <div class="panel-heading"><strong>参数</strong></div>
  3705. <div class="panel-body">
  3706. <table class="table table-hover">
  3707. <thead>
  3708. <tr>
  3709. <th>名称</th>
  3710. <th>类型</th>
  3711. <th>必选</th>
  3712. <th>描述</th>
  3713. </tr>
  3714. </thead>
  3715. <tbody>
  3716. <tr>
  3717. <td>mobile</td>
  3718. <td>string</td>
  3719. <td>是</td>
  3720. <td>手机号</td>
  3721. </tr>
  3722. <tr>
  3723. <td>id</td>
  3724. <td>string</td>
  3725. <td>是</td>
  3726. <td>排除会员ID</td>
  3727. </tr>
  3728. </tbody>
  3729. </table>
  3730. </div>
  3731. </div>
  3732. <div class="panel panel-default">
  3733. <div class="panel-heading"><strong>正文</strong></div>
  3734. <div class="panel-body">
  3735. 无 </div>
  3736. </div>
  3737. </div><!-- #info -->
  3738. <div class="tab-pane" id="sandbox26">
  3739. <div class="row">
  3740. <div class="col-md-12">
  3741. <div class="panel panel-default">
  3742. <div class="panel-heading"><strong>参数</strong>
  3743. <div class="pull-right">
  3744. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3745. </div>
  3746. </div>
  3747. <div class="panel-body">
  3748. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="POST" name="form26" id="form26">
  3749. <div class="form-group">
  3750. <label class="control-label" for="mobile">mobile</label>
  3751. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  3752. </div>
  3753. <div class="form-group">
  3754. <label class="control-label" for="id">id</label>
  3755. <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
  3756. </div>
  3757. <div class="form-group form-group-submit">
  3758. <button type="submit" class="btn btn-success send" rel="26">提交</button>
  3759. <button type="reset" class="btn btn-info" rel="26">重置</button>
  3760. </div>
  3761. </form>
  3762. </div>
  3763. </div>
  3764. <div class="panel panel-default">
  3765. <div class="panel-heading"><strong>响应输出</strong></div>
  3766. <div class="panel-body">
  3767. <div class="row">
  3768. <div class="col-md-12" style="overflow-x:auto">
  3769. <pre id="response_headers26"></pre>
  3770. <pre id="response26"></pre>
  3771. </div>
  3772. </div>
  3773. </div>
  3774. </div>
  3775. <div class="panel panel-default">
  3776. <div class="panel-heading"><strong>返回参数</strong></div>
  3777. <div class="panel-body">
  3778. </div>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. </div><!-- #sandbox -->
  3783. <div class="tab-pane" id="sample26">
  3784. <div class="row">
  3785. <div class="col-md-12">
  3786. <pre id="sample_response26">无</pre>
  3787. </div>
  3788. </div>
  3789. </div><!-- #sample -->
  3790. </div><!-- .tab-content -->
  3791. </div>
  3792. </div>
  3793. </div>
  3794. <div class="panel panel-default">
  3795. <div class="panel-heading" id="heading-27">
  3796. <h4 class="panel-title">
  3797. <span class="label label-primary">POST</span>
  3798. <a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a>
  3799. </h4>
  3800. </div>
  3801. <div id="collapseOne27" class="panel-collapse collapse">
  3802. <div class="panel-body">
  3803. <!-- Nav tabs -->
  3804. <ul class="nav nav-tabs" id="doctab27">
  3805. <li class="active"><a href="#info27" data-toggle="tab">基础信息</a></li>
  3806. <li><a href="#sandbox27" data-toggle="tab">在线测试</a></li>
  3807. <li><a href="#sample27" data-toggle="tab">返回示例</a></li>
  3808. </ul>
  3809. <!-- Tab panes -->
  3810. <div class="tab-content">
  3811. <div class="tab-pane active" id="info27">
  3812. <div class="well">
  3813. 检测手机 </div>
  3814. <div class="panel panel-default">
  3815. <div class="panel-heading"><strong>权限</strong></div>
  3816. <div class="panel-body">
  3817. <table class="table table-hover">
  3818. <tbody>
  3819. <tr>
  3820. <td>登录</td>
  3821. <td>否</td>
  3822. </tr>
  3823. <tr>
  3824. <td>鉴权</td>
  3825. <td>否</td>
  3826. </tr>
  3827. </tbody>
  3828. </table>
  3829. </div>
  3830. </div>
  3831. <div class="panel panel-default">
  3832. <div class="panel-heading"><strong>Headers</strong></div>
  3833. <div class="panel-body">
  3834. </div>
  3835. </div>
  3836. <div class="panel panel-default">
  3837. <div class="panel-heading"><strong>参数</strong></div>
  3838. <div class="panel-body">
  3839. <table class="table table-hover">
  3840. <thead>
  3841. <tr>
  3842. <th>名称</th>
  3843. <th>类型</th>
  3844. <th>必选</th>
  3845. <th>描述</th>
  3846. </tr>
  3847. </thead>
  3848. <tbody>
  3849. <tr>
  3850. <td>mobile</td>
  3851. <td>string</td>
  3852. <td>是</td>
  3853. <td>手机号</td>
  3854. </tr>
  3855. </tbody>
  3856. </table>
  3857. </div>
  3858. </div>
  3859. <div class="panel panel-default">
  3860. <div class="panel-heading"><strong>正文</strong></div>
  3861. <div class="panel-body">
  3862. 无 </div>
  3863. </div>
  3864. </div><!-- #info -->
  3865. <div class="tab-pane" id="sandbox27">
  3866. <div class="row">
  3867. <div class="col-md-12">
  3868. <div class="panel panel-default">
  3869. <div class="panel-heading"><strong>参数</strong>
  3870. <div class="pull-right">
  3871. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3872. </div>
  3873. </div>
  3874. <div class="panel-body">
  3875. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="POST" name="form27" id="form27">
  3876. <div class="form-group">
  3877. <label class="control-label" for="mobile">mobile</label>
  3878. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  3879. </div>
  3880. <div class="form-group form-group-submit">
  3881. <button type="submit" class="btn btn-success send" rel="27">提交</button>
  3882. <button type="reset" class="btn btn-info" rel="27">重置</button>
  3883. </div>
  3884. </form>
  3885. </div>
  3886. </div>
  3887. <div class="panel panel-default">
  3888. <div class="panel-heading"><strong>响应输出</strong></div>
  3889. <div class="panel-body">
  3890. <div class="row">
  3891. <div class="col-md-12" style="overflow-x:auto">
  3892. <pre id="response_headers27"></pre>
  3893. <pre id="response27"></pre>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. </div>
  3898. <div class="panel panel-default">
  3899. <div class="panel-heading"><strong>返回参数</strong></div>
  3900. <div class="panel-body">
  3901. </div>
  3902. </div>
  3903. </div>
  3904. </div>
  3905. </div><!-- #sandbox -->
  3906. <div class="tab-pane" id="sample27">
  3907. <div class="row">
  3908. <div class="col-md-12">
  3909. <pre id="sample_response27">无</pre>
  3910. </div>
  3911. </div>
  3912. </div><!-- #sample -->
  3913. </div><!-- .tab-content -->
  3914. </div>
  3915. </div>
  3916. </div>
  3917. <div class="panel panel-default">
  3918. <div class="panel-heading" id="heading-28">
  3919. <h4 class="panel-title">
  3920. <span class="label label-primary">POST</span>
  3921. <a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a>
  3922. </h4>
  3923. </div>
  3924. <div id="collapseOne28" class="panel-collapse collapse">
  3925. <div class="panel-body">
  3926. <!-- Nav tabs -->
  3927. <ul class="nav nav-tabs" id="doctab28">
  3928. <li class="active"><a href="#info28" data-toggle="tab">基础信息</a></li>
  3929. <li><a href="#sandbox28" data-toggle="tab">在线测试</a></li>
  3930. <li><a href="#sample28" data-toggle="tab">返回示例</a></li>
  3931. </ul>
  3932. <!-- Tab panes -->
  3933. <div class="tab-content">
  3934. <div class="tab-pane active" id="info28">
  3935. <div class="well">
  3936. 检测邮箱 </div>
  3937. <div class="panel panel-default">
  3938. <div class="panel-heading"><strong>权限</strong></div>
  3939. <div class="panel-body">
  3940. <table class="table table-hover">
  3941. <tbody>
  3942. <tr>
  3943. <td>登录</td>
  3944. <td>否</td>
  3945. </tr>
  3946. <tr>
  3947. <td>鉴权</td>
  3948. <td>否</td>
  3949. </tr>
  3950. </tbody>
  3951. </table>
  3952. </div>
  3953. </div>
  3954. <div class="panel panel-default">
  3955. <div class="panel-heading"><strong>Headers</strong></div>
  3956. <div class="panel-body">
  3957. </div>
  3958. </div>
  3959. <div class="panel panel-default">
  3960. <div class="panel-heading"><strong>参数</strong></div>
  3961. <div class="panel-body">
  3962. <table class="table table-hover">
  3963. <thead>
  3964. <tr>
  3965. <th>名称</th>
  3966. <th>类型</th>
  3967. <th>必选</th>
  3968. <th>描述</th>
  3969. </tr>
  3970. </thead>
  3971. <tbody>
  3972. <tr>
  3973. <td>mobile</td>
  3974. <td>string</td>
  3975. <td>是</td>
  3976. <td>邮箱</td>
  3977. </tr>
  3978. </tbody>
  3979. </table>
  3980. </div>
  3981. </div>
  3982. <div class="panel panel-default">
  3983. <div class="panel-heading"><strong>正文</strong></div>
  3984. <div class="panel-body">
  3985. 无 </div>
  3986. </div>
  3987. </div><!-- #info -->
  3988. <div class="tab-pane" id="sandbox28">
  3989. <div class="row">
  3990. <div class="col-md-12">
  3991. <div class="panel panel-default">
  3992. <div class="panel-heading"><strong>参数</strong>
  3993. <div class="pull-right">
  3994. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  3995. </div>
  3996. </div>
  3997. <div class="panel-body">
  3998. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="POST" name="form28" id="form28">
  3999. <div class="form-group">
  4000. <label class="control-label" for="mobile">mobile</label>
  4001. <input type="string" class="form-control input-sm" id="mobile" required placeholder="邮箱" name="mobile">
  4002. </div>
  4003. <div class="form-group form-group-submit">
  4004. <button type="submit" class="btn btn-success send" rel="28">提交</button>
  4005. <button type="reset" class="btn btn-info" rel="28">重置</button>
  4006. </div>
  4007. </form>
  4008. </div>
  4009. </div>
  4010. <div class="panel panel-default">
  4011. <div class="panel-heading"><strong>响应输出</strong></div>
  4012. <div class="panel-body">
  4013. <div class="row">
  4014. <div class="col-md-12" style="overflow-x:auto">
  4015. <pre id="response_headers28"></pre>
  4016. <pre id="response28"></pre>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. </div>
  4021. <div class="panel panel-default">
  4022. <div class="panel-heading"><strong>返回参数</strong></div>
  4023. <div class="panel-body">
  4024. </div>
  4025. </div>
  4026. </div>
  4027. </div>
  4028. </div><!-- #sandbox -->
  4029. <div class="tab-pane" id="sample28">
  4030. <div class="row">
  4031. <div class="col-md-12">
  4032. <pre id="sample_response28">无</pre>
  4033. </div>
  4034. </div>
  4035. </div><!-- #sample -->
  4036. </div><!-- .tab-content -->
  4037. </div>
  4038. </div>
  4039. </div>
  4040. <div class="panel panel-default">
  4041. <div class="panel-heading" id="heading-29">
  4042. <h4 class="panel-title">
  4043. <span class="label label-primary">POST</span>
  4044. <a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a>
  4045. </h4>
  4046. </div>
  4047. <div id="collapseOne29" class="panel-collapse collapse">
  4048. <div class="panel-body">
  4049. <!-- Nav tabs -->
  4050. <ul class="nav nav-tabs" id="doctab29">
  4051. <li class="active"><a href="#info29" data-toggle="tab">基础信息</a></li>
  4052. <li><a href="#sandbox29" data-toggle="tab">在线测试</a></li>
  4053. <li><a href="#sample29" data-toggle="tab">返回示例</a></li>
  4054. </ul>
  4055. <!-- Tab panes -->
  4056. <div class="tab-content">
  4057. <div class="tab-pane active" id="info29">
  4058. <div class="well">
  4059. 检测手机验证码 </div>
  4060. <div class="panel panel-default">
  4061. <div class="panel-heading"><strong>权限</strong></div>
  4062. <div class="panel-body">
  4063. <table class="table table-hover">
  4064. <tbody>
  4065. <tr>
  4066. <td>登录</td>
  4067. <td>否</td>
  4068. </tr>
  4069. <tr>
  4070. <td>鉴权</td>
  4071. <td>否</td>
  4072. </tr>
  4073. </tbody>
  4074. </table>
  4075. </div>
  4076. </div>
  4077. <div class="panel panel-default">
  4078. <div class="panel-heading"><strong>Headers</strong></div>
  4079. <div class="panel-body">
  4080. </div>
  4081. </div>
  4082. <div class="panel panel-default">
  4083. <div class="panel-heading"><strong>参数</strong></div>
  4084. <div class="panel-body">
  4085. <table class="table table-hover">
  4086. <thead>
  4087. <tr>
  4088. <th>名称</th>
  4089. <th>类型</th>
  4090. <th>必选</th>
  4091. <th>描述</th>
  4092. </tr>
  4093. </thead>
  4094. <tbody>
  4095. <tr>
  4096. <td>mobile</td>
  4097. <td>string</td>
  4098. <td>是</td>
  4099. <td>手机号</td>
  4100. </tr>
  4101. <tr>
  4102. <td>captcha</td>
  4103. <td>string</td>
  4104. <td>是</td>
  4105. <td>验证码</td>
  4106. </tr>
  4107. <tr>
  4108. <td>event</td>
  4109. <td>string</td>
  4110. <td>是</td>
  4111. <td>事件</td>
  4112. </tr>
  4113. </tbody>
  4114. </table>
  4115. </div>
  4116. </div>
  4117. <div class="panel panel-default">
  4118. <div class="panel-heading"><strong>正文</strong></div>
  4119. <div class="panel-body">
  4120. 无 </div>
  4121. </div>
  4122. </div><!-- #info -->
  4123. <div class="tab-pane" id="sandbox29">
  4124. <div class="row">
  4125. <div class="col-md-12">
  4126. <div class="panel panel-default">
  4127. <div class="panel-heading"><strong>参数</strong>
  4128. <div class="pull-right">
  4129. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  4130. </div>
  4131. </div>
  4132. <div class="panel-body">
  4133. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="POST" name="form29" id="form29">
  4134. <div class="form-group">
  4135. <label class="control-label" for="mobile">mobile</label>
  4136. <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
  4137. </div>
  4138. <div class="form-group">
  4139. <label class="control-label" for="captcha">captcha</label>
  4140. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  4141. </div>
  4142. <div class="form-group">
  4143. <label class="control-label" for="event">event</label>
  4144. <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event">
  4145. </div>
  4146. <div class="form-group form-group-submit">
  4147. <button type="submit" class="btn btn-success send" rel="29">提交</button>
  4148. <button type="reset" class="btn btn-info" rel="29">重置</button>
  4149. </div>
  4150. </form>
  4151. </div>
  4152. </div>
  4153. <div class="panel panel-default">
  4154. <div class="panel-heading"><strong>响应输出</strong></div>
  4155. <div class="panel-body">
  4156. <div class="row">
  4157. <div class="col-md-12" style="overflow-x:auto">
  4158. <pre id="response_headers29"></pre>
  4159. <pre id="response29"></pre>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. <div class="panel panel-default">
  4165. <div class="panel-heading"><strong>返回参数</strong></div>
  4166. <div class="panel-body">
  4167. </div>
  4168. </div>
  4169. </div>
  4170. </div>
  4171. </div><!-- #sandbox -->
  4172. <div class="tab-pane" id="sample29">
  4173. <div class="row">
  4174. <div class="col-md-12">
  4175. <pre id="sample_response29">无</pre>
  4176. </div>
  4177. </div>
  4178. </div><!-- #sample -->
  4179. </div><!-- .tab-content -->
  4180. </div>
  4181. </div>
  4182. </div>
  4183. <div class="panel panel-default">
  4184. <div class="panel-heading" id="heading-30">
  4185. <h4 class="panel-title">
  4186. <span class="label label-primary">POST</span>
  4187. <a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a>
  4188. </h4>
  4189. </div>
  4190. <div id="collapseOne30" class="panel-collapse collapse">
  4191. <div class="panel-body">
  4192. <!-- Nav tabs -->
  4193. <ul class="nav nav-tabs" id="doctab30">
  4194. <li class="active"><a href="#info30" data-toggle="tab">基础信息</a></li>
  4195. <li><a href="#sandbox30" data-toggle="tab">在线测试</a></li>
  4196. <li><a href="#sample30" data-toggle="tab">返回示例</a></li>
  4197. </ul>
  4198. <!-- Tab panes -->
  4199. <div class="tab-content">
  4200. <div class="tab-pane active" id="info30">
  4201. <div class="well">
  4202. 检测邮箱验证码 </div>
  4203. <div class="panel panel-default">
  4204. <div class="panel-heading"><strong>权限</strong></div>
  4205. <div class="panel-body">
  4206. <table class="table table-hover">
  4207. <tbody>
  4208. <tr>
  4209. <td>登录</td>
  4210. <td>否</td>
  4211. </tr>
  4212. <tr>
  4213. <td>鉴权</td>
  4214. <td>否</td>
  4215. </tr>
  4216. </tbody>
  4217. </table>
  4218. </div>
  4219. </div>
  4220. <div class="panel panel-default">
  4221. <div class="panel-heading"><strong>Headers</strong></div>
  4222. <div class="panel-body">
  4223. </div>
  4224. </div>
  4225. <div class="panel panel-default">
  4226. <div class="panel-heading"><strong>参数</strong></div>
  4227. <div class="panel-body">
  4228. <table class="table table-hover">
  4229. <thead>
  4230. <tr>
  4231. <th>名称</th>
  4232. <th>类型</th>
  4233. <th>必选</th>
  4234. <th>描述</th>
  4235. </tr>
  4236. </thead>
  4237. <tbody>
  4238. <tr>
  4239. <td>email</td>
  4240. <td>string</td>
  4241. <td>是</td>
  4242. <td>邮箱</td>
  4243. </tr>
  4244. <tr>
  4245. <td>captcha</td>
  4246. <td>string</td>
  4247. <td>是</td>
  4248. <td>验证码</td>
  4249. </tr>
  4250. <tr>
  4251. <td>event</td>
  4252. <td>string</td>
  4253. <td>是</td>
  4254. <td>事件</td>
  4255. </tr>
  4256. </tbody>
  4257. </table>
  4258. </div>
  4259. </div>
  4260. <div class="panel panel-default">
  4261. <div class="panel-heading"><strong>正文</strong></div>
  4262. <div class="panel-body">
  4263. 无 </div>
  4264. </div>
  4265. </div><!-- #info -->
  4266. <div class="tab-pane" id="sandbox30">
  4267. <div class="row">
  4268. <div class="col-md-12">
  4269. <div class="panel panel-default">
  4270. <div class="panel-heading"><strong>参数</strong>
  4271. <div class="pull-right">
  4272. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  4273. </div>
  4274. </div>
  4275. <div class="panel-body">
  4276. <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="POST" name="form30" id="form30">
  4277. <div class="form-group">
  4278. <label class="control-label" for="email">email</label>
  4279. <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
  4280. </div>
  4281. <div class="form-group">
  4282. <label class="control-label" for="captcha">captcha</label>
  4283. <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha">
  4284. </div>
  4285. <div class="form-group">
  4286. <label class="control-label" for="event">event</label>
  4287. <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event">
  4288. </div>
  4289. <div class="form-group form-group-submit">
  4290. <button type="submit" class="btn btn-success send" rel="30">提交</button>
  4291. <button type="reset" class="btn btn-info" rel="30">重置</button>
  4292. </div>
  4293. </form>
  4294. </div>
  4295. </div>
  4296. <div class="panel panel-default">
  4297. <div class="panel-heading"><strong>响应输出</strong></div>
  4298. <div class="panel-body">
  4299. <div class="row">
  4300. <div class="col-md-12" style="overflow-x:auto">
  4301. <pre id="response_headers30"></pre>
  4302. <pre id="response30"></pre>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. </div>
  4307. <div class="panel panel-default">
  4308. <div class="panel-heading"><strong>返回参数</strong></div>
  4309. <div class="panel-body">
  4310. </div>
  4311. </div>
  4312. </div>
  4313. </div>
  4314. </div><!-- #sandbox -->
  4315. <div class="tab-pane" id="sample30">
  4316. <div class="row">
  4317. <div class="col-md-12">
  4318. <pre id="sample_response30">无</pre>
  4319. </div>
  4320. </div>
  4321. </div><!-- #sample -->
  4322. </div><!-- .tab-content -->
  4323. </div>
  4324. </div>
  4325. </div>
  4326. </div>
  4327. <hr>
  4328. <div class="row mt0 footer">
  4329. <div class="col-md-6" align="left">
  4330. </div>
  4331. <div class="col-md-6" align="right">
  4332. Generated on 2021-07-20 17:32:13 <a href="./" target="_blank">我的网站</a>
  4333. </div>
  4334. </div>
  4335. </div> <!-- /container -->
  4336. <!-- jQuery -->
  4337. <script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
  4338. <!-- Bootstrap Core JavaScript -->
  4339. <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  4340. <script type="text/javascript">
  4341. function syntaxHighlight(json) {
  4342. if (typeof json != 'string') {
  4343. json = JSON.stringify(json, undefined, 2);
  4344. }
  4345. json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  4346. return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
  4347. var cls = 'number';
  4348. if (/^"/.test(match)) {
  4349. if (/:$/.test(match)) {
  4350. cls = 'key';
  4351. } else {
  4352. cls = 'string';
  4353. }
  4354. } else if (/true|false/.test(match)) {
  4355. cls = 'boolean';
  4356. } else if (/null/.test(match)) {
  4357. cls = 'null';
  4358. }
  4359. return '<span class="' + cls + '">' + match + '</span>';
  4360. });
  4361. }
  4362. function prepareStr(str) {
  4363. try {
  4364. return syntaxHighlight(JSON.stringify(JSON.parse(str.replace(/'/g, '"')), null, 2));
  4365. } catch (e) {
  4366. return str;
  4367. }
  4368. }
  4369. var storage = (function () {
  4370. var uid = new Date;
  4371. var storage;
  4372. var result;
  4373. try {
  4374. (storage = window.localStorage).setItem(uid, uid);
  4375. result = storage.getItem(uid) == uid;
  4376. storage.removeItem(uid);
  4377. return result && storage;
  4378. } catch (exception) {
  4379. }
  4380. }());
  4381. $.fn.serializeObject = function ()
  4382. {
  4383. var o = {};
  4384. var a = this.serializeArray();
  4385. $.each(a, function () {
  4386. if (!this.value) {
  4387. return;
  4388. }
  4389. if (o[this.name] !== undefined) {
  4390. if (!o[this.name].push) {
  4391. o[this.name] = [o[this.name]];
  4392. }
  4393. o[this.name].push(this.value || '');
  4394. } else {
  4395. o[this.name] = this.value || '';
  4396. }
  4397. });
  4398. return o;
  4399. };
  4400. $(document).ready(function () {
  4401. if (storage) {
  4402. storage.getItem('token') && $('#token').val(storage.getItem('token'));
  4403. storage.getItem('apiUrl') && $('#apiUrl').val(storage.getItem('apiUrl'));
  4404. }
  4405. $('[data-toggle="tooltip"]').tooltip({
  4406. placement: 'bottom'
  4407. });
  4408. $(window).on("resize", function(){
  4409. $("#sidebar").css("max-height", $(window).height()-80);
  4410. });
  4411. $(window).trigger("resize");
  4412. $(document).on("click", "#sidebar .list-group > .list-group-item", function(){
  4413. $("#sidebar .list-group > .list-group-item").removeClass("current");
  4414. $(this).addClass("current");
  4415. });
  4416. $(document).on("click", "#sidebar .child a", function(){
  4417. var heading = $("#heading-"+$(this).data("id"));
  4418. if(!heading.next().hasClass("in")){
  4419. $("a", heading).trigger("click");
  4420. }
  4421. $("html,body").animate({scrollTop:heading.offset().top-70});
  4422. });
  4423. $('code[id^=response]').hide();
  4424. $.each($('pre[id^=sample_response],pre[id^=sample_post_body]'), function () {
  4425. if ($(this).html() == 'NA') {
  4426. return;
  4427. }
  4428. var str = prepareStr($(this).html());
  4429. $(this).html(str);
  4430. });
  4431. $("[data-toggle=popover]").popover({placement: 'right'});
  4432. $('[data-toggle=popover]').on('shown.bs.popover', function () {
  4433. var $sample = $(this).parent().find(".popover-content"),
  4434. str = $(this).data('content');
  4435. if (typeof str == "undefined" || str === "") {
  4436. return;
  4437. }
  4438. var str = prepareStr(str);
  4439. $sample.html('<pre>' + str + '</pre>');
  4440. });
  4441. $(document).on('click', '#save_data', function (e) {
  4442. if (storage) {
  4443. storage.setItem('token', $('#token').val());
  4444. storage.setItem('apiUrl', $('#apiUrl').val());
  4445. } else {
  4446. alert('Your browser does not support local storage');
  4447. }
  4448. });
  4449. $(document).on('click', '.btn-append', function (e) {
  4450. $($("#appendtpl").html()).insertBefore($(this).closest(".panel").find(".form-group-submit"));
  4451. return false;
  4452. });
  4453. $(document).on('click', '.btn-remove', function (e) {
  4454. $(this).closest(".form-group").remove();
  4455. return false;
  4456. });
  4457. $(document).on('keyup', '.input-custom-name', function (e) {
  4458. $(this).closest(".row").find(".input-custom-value").attr("name", $(this).val());
  4459. return false;
  4460. });
  4461. $(document).on('click', '.send', function (e) {
  4462. e.preventDefault();
  4463. var form = $(this).closest('form');
  4464. //added /g to get all the matched params instead of only first
  4465. var matchedParamsInRoute = $(form).attr('action').match(/[^{]+(?=\})/g);
  4466. var theId = $(this).attr('rel');
  4467. //keep a copy of action attribute in order to modify the copy
  4468. //instead of the initial attribute
  4469. var url = $(form).attr('action');
  4470. var method = $(form).prop('method').toLowerCase() || 'get';
  4471. var formData = new FormData();
  4472. $(form).find('input').each(function (i, input) {
  4473. if ($(input).attr('type').toLowerCase() == 'file') {
  4474. formData.append($(input).attr('name'), $(input)[0].files[0]);
  4475. method = 'post';
  4476. } else {
  4477. formData.append($(input).attr('name'), $(input).val())
  4478. }
  4479. });
  4480. var index, key, value;
  4481. if (matchedParamsInRoute) {
  4482. var params = {};
  4483. formData.forEach(function(value, key){
  4484. params[key] = value;
  4485. });
  4486. for (index = 0; index < matchedParamsInRoute.length; ++index) {
  4487. try {
  4488. key = matchedParamsInRoute[index];
  4489. value = params[key];
  4490. if (typeof value == "undefined")
  4491. value = "";
  4492. url = url.replace("\{" + key + "\}", value);
  4493. formData.delete(key);
  4494. } catch (err) {
  4495. console.log(err);
  4496. }
  4497. }
  4498. }
  4499. var headers = {};
  4500. var token = $('#token').val();
  4501. if (token.length > 0) {
  4502. headers['token'] = token;
  4503. }
  4504. $("#sandbox" + theId + " .headers input[type=text]").each(function () {
  4505. val = $(this).val();
  4506. if (val.length > 0) {
  4507. headers[$(this).prop('name')] = val;
  4508. }
  4509. });
  4510. $.ajax({
  4511. url: $('#apiUrl').val() + url,
  4512. data: method == 'get' ? $(form).serialize() : formData,
  4513. type: method,
  4514. dataType: 'json',
  4515. contentType: false,
  4516. processData: false,
  4517. headers: headers,
  4518. xhrFields: {
  4519. withCredentials: true
  4520. },
  4521. success: function (data, textStatus, xhr) {
  4522. if (typeof data === 'object') {
  4523. var str = JSON.stringify(data, null, 2);
  4524. $('#response' + theId).html(syntaxHighlight(str));
  4525. } else {
  4526. $('#response' + theId).html(data || '');
  4527. }
  4528. $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
  4529. $('#response' + theId).show();
  4530. },
  4531. error: function (xhr, textStatus, error) {
  4532. try {
  4533. var str = JSON.stringify($.parseJSON(xhr.responseText), null, 2);
  4534. } catch (e) {
  4535. var str = xhr.responseText;
  4536. }
  4537. $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
  4538. $('#response' + theId).html(syntaxHighlight(str));
  4539. $('#response' + theId).show();
  4540. }
  4541. });
  4542. return false;
  4543. });
  4544. });
  4545. </script>
  4546. <script type="text/html" id="appendtpl">
  4547. <div class="form-group">
  4548. <label class="control-label">自定义</label>
  4549. <div class="row">
  4550. <div class="col-xs-4">
  4551. <input type="text" class="form-control input-sm input-custom-name" placeholder="名称">
  4552. </div>
  4553. <div class="col-xs-6">
  4554. <input type="text" class="form-control input-sm input-custom-value" placeholder="值">
  4555. </div>
  4556. <div class="col-xs-2 text-center">
  4557. <a href="javascript:" class="btn btn-sm btn-danger btn-remove">删除</a>
  4558. </div>
  4559. </div>
  4560. </div>
  4561. </script>
  4562. </body>
  4563. </html>