api.html 272 KB

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