api_data.js 207 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762
  1. define({ "api": [
  2. {
  3. "type": "get",
  4. "url": "/api/agent/version",
  5. "title": "获取配置信息(version)",
  6. "description": "<p>获取配置信息(version)</p>",
  7. "group": "Agent",
  8. "permission": [
  9. {
  10. "name": "Passport"
  11. }
  12. ],
  13. "version": "0.1.0",
  14. "success": {
  15. "examples": [
  16. {
  17. "title": "Success-Response:",
  18. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"version\": []版本信息\n }\n}",
  19. "type": "json"
  20. }
  21. ]
  22. },
  23. "error": {
  24. "examples": [
  25. {
  26. "title": "Error-Response:",
  27. "content": "HTTP/1.1 400 Bad Request\n可能出现的错误代码:\n1000 运营商非法",
  28. "type": "json"
  29. }
  30. ]
  31. },
  32. "filename": "app/Http/Controllers/Api/V1/CompanyController.php",
  33. "groupTitle": "Agent",
  34. "name": "GetApiAgentVersion"
  35. },
  36. {
  37. "type": "get",
  38. "url": "/api/album/add_agent",
  39. "title": "申请经销商(add_agent)",
  40. "description": "<p>申请经销商(add_agent)</p>",
  41. "group": "Album",
  42. "permission": [
  43. {
  44. "name": "none"
  45. }
  46. ],
  47. "version": "0.1.0",
  48. "parameter": {
  49. "fields": {
  50. "Parameter": [
  51. {
  52. "group": "Parameter",
  53. "type": "int",
  54. "optional": true,
  55. "field": "store_id",
  56. "description": "<p>商户id</p>"
  57. },
  58. {
  59. "group": "Parameter",
  60. "type": "int",
  61. "optional": true,
  62. "field": "realname",
  63. "description": "<p>姓名</p>"
  64. },
  65. {
  66. "group": "Parameter",
  67. "type": "int",
  68. "optional": true,
  69. "field": "address",
  70. "description": "<p>地址</p>"
  71. },
  72. {
  73. "group": "Parameter",
  74. "type": "double",
  75. "optional": true,
  76. "field": "lat",
  77. "description": "<p>lat</p>"
  78. },
  79. {
  80. "group": "Parameter",
  81. "type": "double",
  82. "optional": true,
  83. "field": "lon",
  84. "description": "<p>lon</p>"
  85. },
  86. {
  87. "group": "Parameter",
  88. "type": "int",
  89. "optional": true,
  90. "field": "phone",
  91. "description": "<p>电话</p>"
  92. }
  93. ]
  94. }
  95. },
  96. "success": {
  97. "examples": [
  98. {
  99. "title": "Success-Response:",
  100. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
  101. "type": "json"
  102. }
  103. ]
  104. },
  105. "error": {
  106. "examples": [
  107. {
  108. "title": "Error-Response:",
  109. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  110. "type": "json"
  111. }
  112. ]
  113. },
  114. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  115. "groupTitle": "Album",
  116. "name": "GetApiAlbumAdd_agent"
  117. },
  118. {
  119. "type": "get",
  120. "url": "/api/album/add_favorite",
  121. "title": "添加收藏(add_favorite)",
  122. "description": "<p>添加收藏(favorite_list)</p>",
  123. "group": "Album",
  124. "permission": [
  125. {
  126. "name": "none"
  127. }
  128. ],
  129. "version": "0.1.0",
  130. "parameter": {
  131. "fields": {
  132. "Parameter": [
  133. {
  134. "group": "Parameter",
  135. "type": "int",
  136. "optional": true,
  137. "field": "store_id",
  138. "description": "<p>商户id</p>"
  139. },
  140. {
  141. "group": "Parameter",
  142. "type": "int",
  143. "optional": true,
  144. "field": "product_id",
  145. "description": "<p>商品id</p>"
  146. }
  147. ]
  148. }
  149. },
  150. "success": {
  151. "examples": [
  152. {
  153. "title": "Success-Response:",
  154. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
  155. "type": "json"
  156. }
  157. ]
  158. },
  159. "error": {
  160. "examples": [
  161. {
  162. "title": "Error-Response:",
  163. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  164. "type": "json"
  165. }
  166. ]
  167. },
  168. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  169. "groupTitle": "Album",
  170. "name": "GetApiAlbumAdd_favorite"
  171. },
  172. {
  173. "type": "get",
  174. "url": "/api/album/cat",
  175. "title": "分类列表(cat)",
  176. "description": "<p>画册分类(cat)</p>",
  177. "group": "Album",
  178. "permission": [
  179. {
  180. "name": "none"
  181. }
  182. ],
  183. "version": "0.1.0",
  184. "parameter": {
  185. "fields": {
  186. "Parameter": [
  187. {
  188. "group": "Parameter",
  189. "type": "int",
  190. "optional": true,
  191. "field": "parent_id",
  192. "description": "<p>一级菜单传0 二级菜单的id从一级菜单里面获取</p>"
  193. },
  194. {
  195. "group": "Parameter",
  196. "type": "int",
  197. "optional": true,
  198. "field": "store_id",
  199. "description": "<p>商户id 模拟值为0</p>"
  200. }
  201. ]
  202. }
  203. },
  204. "success": {
  205. "examples": [
  206. {
  207. "title": "Success-Response:",
  208. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 9,\n \"name\": \"圣地亚哥\",\n \"parent_id\": 0,\n \"level\": \"00\",\n \"pic_url\": \"http://admin.xcx.com/upload/images/20180518/af6cc8fd71241744ccd638afc6ac25f2.png\",\n \"created_at\": \"2018-05-19 14:55:48\",\n \"updated_at\": \"2018-05-19 14:55:48\",\n \"store_id\": 0,\n \"deleted_at\": null,\n \"sort\": 0\n }\n ]\n}",
  209. "type": "json"
  210. }
  211. ]
  212. },
  213. "error": {
  214. "examples": [
  215. {
  216. "title": "Error-Response:",
  217. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  218. "type": "json"
  219. }
  220. ]
  221. },
  222. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  223. "groupTitle": "Album",
  224. "name": "GetApiAlbumCat"
  225. },
  226. {
  227. "type": "get",
  228. "url": "/api/album/checklogin",
  229. "title": "登陆应用(checklogin)",
  230. "description": "<p>登陆应用(checklogin)</p>",
  231. "group": "Album",
  232. "permission": [
  233. {
  234. "name": "none"
  235. }
  236. ],
  237. "version": "0.1.0",
  238. "parameter": {
  239. "fields": {
  240. "Parameter": [
  241. {
  242. "group": "Parameter",
  243. "type": "int",
  244. "optional": true,
  245. "field": "store_id",
  246. "description": "<p>商户id 模拟值为0</p>"
  247. }
  248. ]
  249. }
  250. },
  251. "success": {
  252. "examples": [
  253. {
  254. "title": "Success-Response:",
  255. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n\n }\n}",
  256. "type": "json"
  257. }
  258. ]
  259. },
  260. "error": {
  261. "examples": [
  262. {
  263. "title": "Error-Response:",
  264. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  265. "type": "json"
  266. }
  267. ]
  268. },
  269. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  270. "groupTitle": "Album",
  271. "name": "GetApiAlbumChecklogin"
  272. },
  273. {
  274. "type": "get",
  275. "url": "/api/album/customer-goods",
  276. "title": "获取客户浏览商品统计(customer-goods)",
  277. "description": "<p>获取客户浏览商品统计(customer-goods)</p>",
  278. "group": "Album",
  279. "permission": [
  280. {
  281. "name": "none"
  282. }
  283. ],
  284. "version": "0.1.0",
  285. "parameter": {
  286. "fields": {
  287. "Parameter": [
  288. {
  289. "group": "Parameter",
  290. "type": "int",
  291. "optional": true,
  292. "field": "store_id",
  293. "description": "<p>商户id</p>"
  294. }
  295. ]
  296. }
  297. },
  298. "success": {
  299. "examples": [
  300. {
  301. "title": "Success-Response:",
  302. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"count\":\n },\n ]\n}",
  303. "type": "json"
  304. }
  305. ]
  306. },
  307. "error": {
  308. "examples": [
  309. {
  310. "title": "Error-Response:",
  311. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  312. "type": "json"
  313. }
  314. ]
  315. },
  316. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  317. "groupTitle": "Album",
  318. "name": "GetApiAlbumCustomerGoods"
  319. },
  320. {
  321. "type": "get",
  322. "url": "/api/album/favorite_del",
  323. "title": "收藏删除(favorite_del)",
  324. "description": "<p>收藏删除(favorite_del)</p>",
  325. "group": "Album",
  326. "permission": [
  327. {
  328. "name": "none"
  329. }
  330. ],
  331. "version": "0.1.0",
  332. "parameter": {
  333. "fields": {
  334. "Parameter": [
  335. {
  336. "group": "Parameter",
  337. "type": "int",
  338. "optional": true,
  339. "field": "store_id",
  340. "description": "<p>商户id 模拟值为0</p>"
  341. },
  342. {
  343. "group": "Parameter",
  344. "type": "int",
  345. "optional": true,
  346. "field": "favorite_id",
  347. "description": "<p>收藏id</p>"
  348. }
  349. ]
  350. }
  351. },
  352. "success": {
  353. "examples": [
  354. {
  355. "title": "Success-Response:",
  356. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[]//返回状态\n}",
  357. "type": "json"
  358. }
  359. ]
  360. },
  361. "error": {
  362. "examples": [
  363. {
  364. "title": "Error-Response:",
  365. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  366. "type": "json"
  367. }
  368. ]
  369. },
  370. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  371. "groupTitle": "Album",
  372. "name": "GetApiAlbumFavorite_del"
  373. },
  374. {
  375. "type": "get",
  376. "url": "/api/album/favorite_list",
  377. "title": "收藏列表(favorite_list)",
  378. "description": "<p>收藏列表(favorite_list)</p>",
  379. "group": "Album",
  380. "permission": [
  381. {
  382. "name": "none"
  383. }
  384. ],
  385. "version": "0.1.0",
  386. "parameter": {
  387. "fields": {
  388. "Parameter": [
  389. {
  390. "group": "Parameter",
  391. "type": "int",
  392. "optional": true,
  393. "field": "store_id",
  394. "description": "<p>商户id 模拟值为0</p>"
  395. }
  396. ]
  397. }
  398. },
  399. "success": {
  400. "examples": [
  401. {
  402. "title": "Success-Response:",
  403. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 4,\n \"user_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-10-29 15:51:47\",\n \"updated_at\": \"2018-10-29 15:53:15\",\n \"product_id\": 3,\n \"store_id\": 0,\n \"goods\": {\n \"id\": 3,\n \"store_id\": 0,\n \"cat_id\": 9,\n \"specifications_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"style\": \"纯白\",\n \"sort\": 11,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"detail\": \"<p>达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便</p>\",\n \"created_at\": \"2018-05-19 15:09:04\",\n \"updated_at\": \"2018-05-19 15:09:04\",\n \"deleted_at\": null,\n \"install_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"detail_pic\": \"\"\n }\n }\n ]\n}",
  404. "type": "json"
  405. }
  406. ]
  407. },
  408. "error": {
  409. "examples": [
  410. {
  411. "title": "Error-Response:",
  412. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  413. "type": "json"
  414. }
  415. ]
  416. },
  417. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  418. "groupTitle": "Album",
  419. "name": "GetApiAlbumFavorite_list"
  420. },
  421. {
  422. "type": "get",
  423. "url": "/api/album/get-agent-address",
  424. "title": "获取经销商地址(get-agent-address)",
  425. "description": "<p>获取经销商地址(get-agent-address)</p>",
  426. "group": "Album",
  427. "permission": [
  428. {
  429. "name": "none"
  430. }
  431. ],
  432. "version": "0.1.0",
  433. "success": {
  434. "examples": [
  435. {
  436. "title": "Success-Response:",
  437. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"realname\":\n \"phone\":\n \"address\":\n ]\n}",
  438. "type": "json"
  439. }
  440. ]
  441. },
  442. "error": {
  443. "examples": [
  444. {
  445. "title": "Error-Response:",
  446. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  447. "type": "json"
  448. }
  449. ]
  450. },
  451. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  452. "groupTitle": "Album",
  453. "name": "GetApiAlbumGetAgentAddress"
  454. },
  455. {
  456. "type": "get",
  457. "url": "/api/album/get-banner",
  458. "title": "获取banner和視頻(get-banner)",
  459. "description": "<p>获取banner和視頻(get-banner)</p>",
  460. "group": "Album",
  461. "permission": [
  462. {
  463. "name": "none"
  464. }
  465. ],
  466. "version": "0.1.0",
  467. "success": {
  468. "examples": [
  469. {
  470. "title": "Success-Response:",
  471. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"video\":{\n 'url':22222,\n 'name':22222,\n 'type':22222,\n 'agent_id':22222,\n }\n \"banner\":{\n 'url':22222,\n 'name':22222,\n 'type':22222,\n 'agent_id':22222,\n },\n ]\n}",
  472. "type": "json"
  473. }
  474. ]
  475. },
  476. "error": {
  477. "examples": [
  478. {
  479. "title": "Error-Response:",
  480. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  481. "type": "json"
  482. }
  483. ]
  484. },
  485. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  486. "groupTitle": "Album",
  487. "name": "GetApiAlbumGetBanner"
  488. },
  489. {
  490. "type": "get",
  491. "url": "/api/album/get-customer",
  492. "title": "获取客户信息(get-customer)",
  493. "description": "<p>获取客户信息(get-customer)</p>",
  494. "group": "Album",
  495. "permission": [
  496. {
  497. "name": "none"
  498. }
  499. ],
  500. "version": "0.1.0",
  501. "parameter": {
  502. "fields": {
  503. "Parameter": [
  504. {
  505. "group": "Parameter",
  506. "type": "int",
  507. "optional": true,
  508. "field": "store_id",
  509. "description": "<p>商户id</p>"
  510. },
  511. {
  512. "group": "Parameter",
  513. "type": "string",
  514. "optional": true,
  515. "field": "openid_id",
  516. "description": "<p>open_id</p>"
  517. }
  518. ]
  519. }
  520. },
  521. "success": {
  522. "examples": [
  523. {
  524. "title": "Success-Response:",
  525. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"purpose_level\":\n \"comment\":\n \"address\":\n \"phone\":\n \"tips\":\n ]\n}",
  526. "type": "json"
  527. }
  528. ]
  529. },
  530. "error": {
  531. "examples": [
  532. {
  533. "title": "Error-Response:",
  534. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  535. "type": "json"
  536. }
  537. ]
  538. },
  539. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  540. "groupTitle": "Album",
  541. "name": "GetApiAlbumGetCustomer"
  542. },
  543. {
  544. "type": "get",
  545. "url": "/api/album/get-user-info",
  546. "title": "获取客户详细(get-user-info)",
  547. "description": "<p>获取客户详细(get-user-info)</p>",
  548. "group": "Album",
  549. "permission": [
  550. {
  551. "name": "AUTH"
  552. }
  553. ],
  554. "version": "0.1.0",
  555. "success": {
  556. "examples": [
  557. {
  558. "title": "Success-Response:",
  559. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"username\":\n \"is_dealer\":\n ...\n },\n ]\n}",
  560. "type": "json"
  561. }
  562. ]
  563. },
  564. "error": {
  565. "examples": [
  566. {
  567. "title": "Error-Response:",
  568. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  569. "type": "json"
  570. }
  571. ]
  572. },
  573. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  574. "groupTitle": "Album",
  575. "name": "GetApiAlbumGetUserInfo"
  576. },
  577. {
  578. "type": "get",
  579. "url": "/api/album/goods",
  580. "title": "商品列表(goods)",
  581. "description": "<p>商品列表(goods)</p>",
  582. "group": "Album",
  583. "permission": [
  584. {
  585. "name": "none"
  586. }
  587. ],
  588. "version": "0.1.0",
  589. "parameter": {
  590. "fields": {
  591. "Parameter": [
  592. {
  593. "group": "Parameter",
  594. "type": "int",
  595. "optional": true,
  596. "field": "cat_id",
  597. "description": "<p>分类id</p>"
  598. },
  599. {
  600. "group": "Parameter",
  601. "type": "string",
  602. "optional": true,
  603. "field": "keywords",
  604. "description": "<p>关键词.</p>"
  605. },
  606. {
  607. "group": "Parameter",
  608. "type": "int",
  609. "optional": true,
  610. "field": "status",
  611. "description": "<p>状态 1 只选择热销 2 只选择最新上市 3只选择一个风格 4 同时选择热销和最新上市 5同时选择热销和风格 6同时选择最新上市和风格 7全选 0全不选</p>"
  612. },
  613. {
  614. "group": "Parameter",
  615. "type": "int",
  616. "optional": true,
  617. "field": "style",
  618. "description": "<p>风格</p>"
  619. }
  620. ]
  621. }
  622. },
  623. "success": {
  624. "examples": [
  625. {
  626. "title": "Success-Response:",
  627. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"goods\": [\n {\n \"id\": 3,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"style\": \"纯白\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"price\": \"\"\n }\n ],\n \"name\": 品牌名\n }\n}",
  628. "type": "json"
  629. }
  630. ]
  631. },
  632. "error": {
  633. "examples": [
  634. {
  635. "title": "Error-Response:",
  636. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  637. "type": "json"
  638. }
  639. ]
  640. },
  641. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  642. "groupTitle": "Album",
  643. "name": "GetApiAlbumGoods"
  644. },
  645. {
  646. "type": "get",
  647. "url": "/api/album/goods-detail",
  648. "title": "商品详细(goods-detail)",
  649. "description": "<p>商品列表(goods-detail)</p>",
  650. "group": "Album",
  651. "permission": [
  652. {
  653. "name": "none"
  654. }
  655. ],
  656. "version": "0.1.0",
  657. "parameter": {
  658. "fields": {
  659. "Parameter": [
  660. {
  661. "group": "Parameter",
  662. "type": "int",
  663. "optional": true,
  664. "field": "goods_id",
  665. "description": "<p>商品id</p>"
  666. },
  667. {
  668. "group": "Parameter",
  669. "type": "int",
  670. "optional": true,
  671. "field": "store_id",
  672. "description": "<p>商户id 模拟值为0</p>"
  673. }
  674. ]
  675. }
  676. },
  677. "success": {
  678. "examples": [
  679. {
  680. "title": "Success-Response:",
  681. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 3,\n \"store_id\": 0,\n \"cat_id\": 9,\n \"specifications_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"style\": \"纯白\",\n \"sort\": 11,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"detail\": \"<p>达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便</p>\",\n \"created_at\": \"2018-05-19 15:09:04\",\n \"updated_at\": \"2018-05-19 15:09:04\",\n \"deleted_at\": null,\n \"install_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"detail_pic\": \"\"\n \"price\": \"\",\n \"price_default\": \"\",\n \"mobile\": \"\",\n \"address\": \"\",\n \"realname\": \"\",\n \"is_favorite\": 1,\n \"favorite_id\": 4\n }\n}",
  682. "type": "json"
  683. }
  684. ]
  685. },
  686. "error": {
  687. "examples": [
  688. {
  689. "title": "Error-Response:",
  690. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  691. "type": "json"
  692. }
  693. ]
  694. },
  695. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  696. "groupTitle": "Album",
  697. "name": "GetApiAlbumGoodsDetail"
  698. },
  699. {
  700. "type": "get",
  701. "url": "/api/album/save_form_id",
  702. "title": "添加Form_id(save_form_id)",
  703. "description": "<p>添加Form_id(save_form_id)</p>",
  704. "group": "Album",
  705. "permission": [
  706. {
  707. "name": "none"
  708. }
  709. ],
  710. "version": "0.1.0",
  711. "parameter": {
  712. "fields": {
  713. "Parameter": [
  714. {
  715. "group": "Parameter",
  716. "type": "int",
  717. "optional": true,
  718. "field": "store_id",
  719. "description": "<p>商户id</p>"
  720. },
  721. {
  722. "group": "Parameter",
  723. "type": "int",
  724. "optional": true,
  725. "field": "form_id",
  726. "description": "<p>form_id</p>"
  727. }
  728. ]
  729. }
  730. },
  731. "success": {
  732. "examples": [
  733. {
  734. "title": "Success-Response:",
  735. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
  736. "type": "json"
  737. }
  738. ]
  739. },
  740. "error": {
  741. "examples": [
  742. {
  743. "title": "Error-Response:",
  744. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  745. "type": "json"
  746. }
  747. ]
  748. },
  749. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  750. "groupTitle": "Album",
  751. "name": "GetApiAlbumSave_form_id"
  752. },
  753. {
  754. "type": "get",
  755. "url": "/api/album/set-price",
  756. "title": "经销商修改价格(set-price)",
  757. "description": "<p>画册(set-price)</p>",
  758. "group": "Album",
  759. "permission": [
  760. {
  761. "name": "none"
  762. }
  763. ],
  764. "version": "0.1.0",
  765. "parameter": {
  766. "fields": {
  767. "Parameter": [
  768. {
  769. "group": "Parameter",
  770. "type": "int",
  771. "optional": true,
  772. "field": "goods_id",
  773. "description": "<p>商品id</p>"
  774. },
  775. {
  776. "group": "Parameter",
  777. "type": "int",
  778. "optional": true,
  779. "field": "store_id",
  780. "description": "<p>商户id 模拟值为0</p>"
  781. },
  782. {
  783. "group": "Parameter",
  784. "type": "double",
  785. "optional": true,
  786. "field": "price",
  787. "description": "<p>价格</p>"
  788. }
  789. ]
  790. }
  791. },
  792. "success": {
  793. "examples": [
  794. {
  795. "title": "Success-Response:",
  796. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n \"data\":修改后价格\n ]\n}",
  797. "type": "json"
  798. }
  799. ]
  800. },
  801. "error": {
  802. "examples": [
  803. {
  804. "title": "Error-Response:",
  805. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  806. "type": "json"
  807. }
  808. ]
  809. },
  810. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  811. "groupTitle": "Album",
  812. "name": "GetApiAlbumSetPrice"
  813. },
  814. {
  815. "type": "get",
  816. "url": "/api/album/style",
  817. "title": "属性列表(style)",
  818. "description": "<p>分类样式(style)</p>",
  819. "group": "Album",
  820. "permission": [
  821. {
  822. "name": "none"
  823. }
  824. ],
  825. "version": "0.1.0",
  826. "parameter": {
  827. "fields": {
  828. "Parameter": [
  829. {
  830. "group": "Parameter",
  831. "type": "int",
  832. "optional": true,
  833. "field": "store_id",
  834. "description": "<p>商户id 模拟值为0</p>"
  835. }
  836. ]
  837. }
  838. },
  839. "success": {
  840. "examples": [
  841. {
  842. "title": "Success-Response:",
  843. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 2,\n \"name\": \"1111\",\n \"deleted_at\": null,\n \"created_at\": \"2018-06-05 17:35:08\",\n \"updated_at\": \"2018-06-05 17:35:08\",\n \"store_id\": 0\n }\n ]\n}",
  844. "type": "json"
  845. }
  846. ]
  847. },
  848. "error": {
  849. "examples": [
  850. {
  851. "title": "Error-Response:",
  852. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  853. "type": "json"
  854. }
  855. ]
  856. },
  857. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  858. "groupTitle": "Album",
  859. "name": "GetApiAlbumStyle"
  860. },
  861. {
  862. "type": "post",
  863. "url": "/api/album/agent_price_set",
  864. "title": "厂家价格设置(agent_price_set)",
  865. "description": "<p>厂家价格设置(agent_price_set)</p>",
  866. "group": "Album",
  867. "permission": [
  868. {
  869. "name": "AUTH"
  870. }
  871. ],
  872. "version": "0.1.0",
  873. "parameter": {
  874. "fields": {
  875. "Parameter": [
  876. {
  877. "group": "Parameter",
  878. "type": "int",
  879. "optional": true,
  880. "field": "store_id",
  881. "description": "<p>商户id</p>"
  882. },
  883. {
  884. "group": "Parameter",
  885. "type": "int",
  886. "optional": true,
  887. "field": "point",
  888. "description": "<p>价格设置比例 为0不设置</p>"
  889. },
  890. {
  891. "group": "Parameter",
  892. "type": "int",
  893. "optional": true,
  894. "field": "is_show_ma_price",
  895. "description": "<p>厂家价格是否可见 0 不可见 1 可见</p>"
  896. }
  897. ]
  898. }
  899. },
  900. "success": {
  901. "examples": [
  902. {
  903. "title": "Success-Response:",
  904. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}",
  905. "type": "json"
  906. }
  907. ]
  908. },
  909. "error": {
  910. "examples": [
  911. {
  912. "title": "Error-Response:",
  913. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  914. "type": "json"
  915. }
  916. ]
  917. },
  918. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  919. "groupTitle": "Album",
  920. "name": "PostApiAlbumAgent_price_set"
  921. },
  922. {
  923. "type": "post",
  924. "url": "/api/album/customer-goods-detail",
  925. "title": "获取客户浏览商品详细(customer-goods-detail)",
  926. "description": "<p>获取客户浏览商品详细(customer-goods-detail)</p>",
  927. "group": "Album",
  928. "permission": [
  929. {
  930. "name": "none"
  931. }
  932. ],
  933. "version": "0.1.0",
  934. "parameter": {
  935. "fields": {
  936. "Parameter": [
  937. {
  938. "group": "Parameter",
  939. "type": "int",
  940. "optional": true,
  941. "field": "store_id",
  942. "description": "<p>商户id</p>"
  943. },
  944. {
  945. "group": "Parameter",
  946. "type": "string",
  947. "optional": true,
  948. "field": "open_id",
  949. "description": "<p>openid</p>"
  950. }
  951. ]
  952. }
  953. },
  954. "success": {
  955. "examples": [
  956. {
  957. "title": "Success-Response:",
  958. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"time\":\n \"style\":\n \"cat\":\n },\n ]\n}",
  959. "type": "json"
  960. }
  961. ]
  962. },
  963. "error": {
  964. "examples": [
  965. {
  966. "title": "Error-Response:",
  967. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  968. "type": "json"
  969. }
  970. ]
  971. },
  972. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  973. "groupTitle": "Album",
  974. "name": "PostApiAlbumCustomerGoodsDetail"
  975. },
  976. {
  977. "type": "post",
  978. "url": "/api/album/get-cart-of-watch",
  979. "title": "客户浏览情况概览(get-cart-of-watch)",
  980. "description": "<p>客户浏览情况概览(get-cart-of-watch)</p>",
  981. "group": "Album",
  982. "permission": [
  983. {
  984. "name": "none"
  985. }
  986. ],
  987. "version": "0.1.0",
  988. "parameter": {
  989. "fields": {
  990. "Parameter": [
  991. {
  992. "group": "Parameter",
  993. "type": "int",
  994. "optional": true,
  995. "field": "store_id",
  996. "description": "<p>商户id 模拟值为0</p>"
  997. }
  998. ]
  999. }
  1000. },
  1001. "success": {
  1002. "examples": [
  1003. {
  1004. "title": "Success-Response:",
  1005. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n \"count_today\":0,\n \"count_all\":0,\n \"count_share\":0,\n \"user\": {\n \"username\":\"王小贱\",\n \"avatar\":\"awdawdawdawdawdawd\",头像\n \"phone\":\"1123123123123\"\n \"open_id\":\"1123123123123\"\n }\n \"count\":6,\n \"action\":[\n \"type1\":1,\n \"type2\":1,\n \"type3\":1,\n \"type4\":1,\n \"type5\":1,\n \"type6\":1,\n \"type7\":1,\n ]\n ]\n}",
  1006. "type": "json"
  1007. }
  1008. ]
  1009. },
  1010. "error": {
  1011. "examples": [
  1012. {
  1013. "title": "Error-Response:",
  1014. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1015. "type": "json"
  1016. }
  1017. ]
  1018. },
  1019. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1020. "groupTitle": "Album",
  1021. "name": "PostApiAlbumGetCartOfWatch"
  1022. },
  1023. {
  1024. "type": "post",
  1025. "url": "/api/album/get-count-favorite",
  1026. "title": "获取客户收藏商品详细(get-count-favorite)",
  1027. "description": "<p>获取客户收藏商品详细(get-count-favorite)</p>",
  1028. "group": "Album",
  1029. "permission": [
  1030. {
  1031. "name": "AUTH"
  1032. }
  1033. ],
  1034. "version": "0.1.0",
  1035. "parameter": {
  1036. "fields": {
  1037. "Parameter": [
  1038. {
  1039. "group": "Parameter",
  1040. "type": "int",
  1041. "optional": true,
  1042. "field": "store_id",
  1043. "description": "<p>商户id</p>"
  1044. }
  1045. ]
  1046. }
  1047. },
  1048. "success": {
  1049. "examples": [
  1050. {
  1051. "title": "Success-Response:",
  1052. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"count\":\n \"product_id\":\n },\n ]\n}",
  1053. "type": "json"
  1054. }
  1055. ]
  1056. },
  1057. "error": {
  1058. "examples": [
  1059. {
  1060. "title": "Error-Response:",
  1061. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1062. "type": "json"
  1063. }
  1064. ]
  1065. },
  1066. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1067. "groupTitle": "Album",
  1068. "name": "PostApiAlbumGetCountFavorite"
  1069. },
  1070. {
  1071. "type": "post",
  1072. "url": "/api/album/get-watch-recored",
  1073. "title": "查看客户浏览情况(get-watch-recored)",
  1074. "description": "<p>查看客户浏览情况(get-watch-recored)</p>",
  1075. "group": "Album",
  1076. "permission": [
  1077. {
  1078. "name": "none"
  1079. }
  1080. ],
  1081. "version": "0.1.0",
  1082. "parameter": {
  1083. "fields": {
  1084. "Parameter": [
  1085. {
  1086. "group": "Parameter",
  1087. "type": "int",
  1088. "optional": true,
  1089. "field": "store_id",
  1090. "description": "<p>商户id 模拟值为0</p>"
  1091. },
  1092. {
  1093. "group": "Parameter",
  1094. "type": "int",
  1095. "optional": true,
  1096. "field": "type",
  1097. "description": "<p>查询方式 1 按用户 2 按时间 3 按类型</p>"
  1098. },
  1099. {
  1100. "group": "Parameter",
  1101. "type": "int",
  1102. "optional": true,
  1103. "field": "user_id",
  1104. "description": "<p>user_id</p>"
  1105. },
  1106. {
  1107. "group": "Parameter",
  1108. "type": "int",
  1109. "optional": true,
  1110. "field": "action",
  1111. "description": "<p>行为类型 1 收藏 2查看类目 3查看商品 4登陆 5点击图片 6 点击导航 7一键拨号</p>"
  1112. },
  1113. {
  1114. "group": "Parameter",
  1115. "type": "int",
  1116. "optional": true,
  1117. "field": "start_time",
  1118. "description": "<p>查询开始时间</p>"
  1119. },
  1120. {
  1121. "group": "Parameter",
  1122. "type": "int",
  1123. "optional": true,
  1124. "field": "end_time",
  1125. "description": "<p>查询结束时间</p>"
  1126. }
  1127. ]
  1128. }
  1129. },
  1130. "success": {
  1131. "examples": [
  1132. {
  1133. "title": "Success-Response:",
  1134. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n \"type1\":{ 1 收藏 2查看类目 3查看商品 4登陆 5点击图片 6 点击导航 7一键拨号\n \"time\": 2018-1-1 10:10:12,\n \"action\": '做了什么什么都做',\n \"user\": [\n \"username\":\"王小贱\",\n \"avatar\":\"awdawdawdawdawdawd\",头像\n \"phone\":\"1123123123123\"\n ]\n }\n ...\n \"count\":6;\n ]\n}",
  1135. "type": "json"
  1136. }
  1137. ]
  1138. },
  1139. "error": {
  1140. "examples": [
  1141. {
  1142. "title": "Error-Response:",
  1143. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1144. "type": "json"
  1145. }
  1146. ]
  1147. },
  1148. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1149. "groupTitle": "Album",
  1150. "name": "PostApiAlbumGetWatchRecored"
  1151. },
  1152. {
  1153. "type": "post",
  1154. "url": "/api/album/get_data_cat",
  1155. "title": "获取分类访问数据(get_data_cat)",
  1156. "description": "<p>获取分类访问数据(get_data_cat)</p>",
  1157. "group": "Album",
  1158. "permission": [
  1159. {
  1160. "name": "需要登录"
  1161. }
  1162. ],
  1163. "version": "0.1.0",
  1164. "parameter": {
  1165. "fields": {
  1166. "Parameter": [
  1167. {
  1168. "group": "Parameter",
  1169. "type": "int",
  1170. "optional": true,
  1171. "field": "store_id",
  1172. "description": "<p>商户id 模拟值为0</p>"
  1173. },
  1174. {
  1175. "group": "Parameter",
  1176. "type": "int",
  1177. "optional": true,
  1178. "field": "style_id",
  1179. "description": ""
  1180. }
  1181. ]
  1182. }
  1183. },
  1184. "success": {
  1185. "examples": [
  1186. {
  1187. "title": "Success-Response:",
  1188. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}",
  1189. "type": "json"
  1190. }
  1191. ]
  1192. },
  1193. "error": {
  1194. "examples": [
  1195. {
  1196. "title": "Error-Response:",
  1197. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1198. "type": "json"
  1199. }
  1200. ]
  1201. },
  1202. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1203. "groupTitle": "Album",
  1204. "name": "PostApiAlbumGet_data_cat"
  1205. },
  1206. {
  1207. "type": "post",
  1208. "url": "/api/album/get_data_cat_single",
  1209. "title": "单用户获取分类访问数据(get_data_cat_single)",
  1210. "description": "<p>单用户获取分类访问数据(get_data_cat_single)</p>",
  1211. "group": "Album",
  1212. "permission": [
  1213. {
  1214. "name": "需要登录"
  1215. }
  1216. ],
  1217. "version": "0.1.0",
  1218. "parameter": {
  1219. "fields": {
  1220. "Parameter": [
  1221. {
  1222. "group": "Parameter",
  1223. "type": "int",
  1224. "optional": true,
  1225. "field": "store_id",
  1226. "description": "<p>商户id 模拟值为0</p>"
  1227. },
  1228. {
  1229. "group": "Parameter",
  1230. "type": "int",
  1231. "optional": true,
  1232. "field": "open_id",
  1233. "description": ""
  1234. }
  1235. ]
  1236. }
  1237. },
  1238. "success": {
  1239. "examples": [
  1240. {
  1241. "title": "Success-Response:",
  1242. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}",
  1243. "type": "json"
  1244. }
  1245. ]
  1246. },
  1247. "error": {
  1248. "examples": [
  1249. {
  1250. "title": "Error-Response:",
  1251. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1252. "type": "json"
  1253. }
  1254. ]
  1255. },
  1256. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1257. "groupTitle": "Album",
  1258. "name": "PostApiAlbumGet_data_cat_single"
  1259. },
  1260. {
  1261. "type": "post",
  1262. "url": "/api/album/get_data_goods",
  1263. "title": "获取访问数据(get_data_goods)",
  1264. "description": "<p>获取访问数据(get_data_goods)</p>",
  1265. "group": "Album",
  1266. "permission": [
  1267. {
  1268. "name": "需要登录"
  1269. }
  1270. ],
  1271. "version": "0.1.0",
  1272. "parameter": {
  1273. "fields": {
  1274. "Parameter": [
  1275. {
  1276. "group": "Parameter",
  1277. "type": "int",
  1278. "optional": true,
  1279. "field": "store_id",
  1280. "description": "<p>商户id 模拟值为0</p>"
  1281. }
  1282. ]
  1283. }
  1284. },
  1285. "success": {
  1286. "examples": [
  1287. {
  1288. "title": "Success-Response:",
  1289. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}",
  1290. "type": "json"
  1291. }
  1292. ]
  1293. },
  1294. "error": {
  1295. "examples": [
  1296. {
  1297. "title": "Error-Response:",
  1298. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1299. "type": "json"
  1300. }
  1301. ]
  1302. },
  1303. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1304. "groupTitle": "Album",
  1305. "name": "PostApiAlbumGet_data_goods"
  1306. },
  1307. {
  1308. "type": "post",
  1309. "url": "/api/album/get_statistical",
  1310. "title": "获取分享记录(get-statistical)",
  1311. "description": "<p>获取分享记录(get-statistical)</p>",
  1312. "group": "Album",
  1313. "permission": [
  1314. {
  1315. "name": "AUTH"
  1316. }
  1317. ],
  1318. "version": "0.1.0",
  1319. "parameter": {
  1320. "fields": {
  1321. "Parameter": [
  1322. {
  1323. "group": "Parameter",
  1324. "type": "int",
  1325. "optional": true,
  1326. "field": "store_id",
  1327. "description": "<p>商户id</p>"
  1328. },
  1329. {
  1330. "group": "Parameter",
  1331. "type": "int",
  1332. "optional": true,
  1333. "field": "open_id",
  1334. "description": "<p>open_id</p>"
  1335. },
  1336. {
  1337. "group": "Parameter",
  1338. "type": "int",
  1339. "optional": true,
  1340. "field": "type",
  1341. "description": "<p>1 尺寸统计 2拨打电话 3 分享</p>"
  1342. }
  1343. ]
  1344. }
  1345. },
  1346. "success": {
  1347. "examples": [
  1348. {
  1349. "title": "Success-Response:",
  1350. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[\n {\n 'content':xxxxx,\n 'time':xxx-xx-xx,\n },\n ]\n}",
  1351. "type": "json"
  1352. }
  1353. ]
  1354. },
  1355. "error": {
  1356. "examples": [
  1357. {
  1358. "title": "Error-Response:",
  1359. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1360. "type": "json"
  1361. }
  1362. ]
  1363. },
  1364. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1365. "groupTitle": "Album",
  1366. "name": "PostApiAlbumGet_statistical"
  1367. },
  1368. {
  1369. "type": "post",
  1370. "url": "/api/album/set-customer",
  1371. "title": "设置客户信息(set-customer)",
  1372. "description": "<p>设置客户信息(set-customer)</p>",
  1373. "group": "Album",
  1374. "permission": [
  1375. {
  1376. "name": "none"
  1377. }
  1378. ],
  1379. "version": "0.1.0",
  1380. "parameter": {
  1381. "fields": {
  1382. "Parameter": [
  1383. {
  1384. "group": "Parameter",
  1385. "type": "int",
  1386. "optional": true,
  1387. "field": "store_id",
  1388. "description": "<p>商户id</p>"
  1389. },
  1390. {
  1391. "group": "Parameter",
  1392. "type": "string",
  1393. "optional": true,
  1394. "field": "openid_id",
  1395. "description": "<p>openid</p>"
  1396. },
  1397. {
  1398. "group": "Parameter",
  1399. "type": "string",
  1400. "optional": true,
  1401. "field": "key",
  1402. "description": "<p>键</p>"
  1403. },
  1404. {
  1405. "group": "Parameter",
  1406. "type": "string",
  1407. "optional": true,
  1408. "field": "value",
  1409. "description": "<p>值</p>"
  1410. }
  1411. ]
  1412. }
  1413. },
  1414. "success": {
  1415. "examples": [
  1416. {
  1417. "title": "Success-Response:",
  1418. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"purpose_level\":\n \"address\":\n \"comment\":\n \"phone\":\n \"tips\":\n ]\n}",
  1419. "type": "json"
  1420. }
  1421. ]
  1422. },
  1423. "error": {
  1424. "examples": [
  1425. {
  1426. "title": "Error-Response:",
  1427. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1428. "type": "json"
  1429. }
  1430. ]
  1431. },
  1432. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1433. "groupTitle": "Album",
  1434. "name": "PostApiAlbumSetCustomer"
  1435. },
  1436. {
  1437. "type": "post",
  1438. "url": "/api/album/set-phone",
  1439. "title": "获取用户号码(set-phone)",
  1440. "description": "<p>获取用户号码(set-phone)</p>",
  1441. "group": "Album",
  1442. "permission": [
  1443. {
  1444. "name": "none"
  1445. }
  1446. ],
  1447. "version": "0.1.0",
  1448. "parameter": {
  1449. "fields": {
  1450. "Parameter": [
  1451. {
  1452. "group": "Parameter",
  1453. "type": "int",
  1454. "optional": true,
  1455. "field": "store_id",
  1456. "description": "<p>商户id 模拟值为0</p>"
  1457. },
  1458. {
  1459. "group": "Parameter",
  1460. "type": "string",
  1461. "optional": true,
  1462. "field": "code",
  1463. "description": "<p>code</p>"
  1464. },
  1465. {
  1466. "group": "Parameter",
  1467. "type": "string",
  1468. "optional": true,
  1469. "field": "iv",
  1470. "description": "<p>偏移量</p>"
  1471. },
  1472. {
  1473. "group": "Parameter",
  1474. "type": "string",
  1475. "optional": true,
  1476. "field": "encrypted",
  1477. "description": "<p>加密参数</p>"
  1478. }
  1479. ]
  1480. }
  1481. },
  1482. "success": {
  1483. "examples": [
  1484. {
  1485. "title": "Success-Response:",
  1486. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}",
  1487. "type": "json"
  1488. }
  1489. ]
  1490. },
  1491. "error": {
  1492. "examples": [
  1493. {
  1494. "title": "Error-Response:",
  1495. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1496. "type": "json"
  1497. }
  1498. ]
  1499. },
  1500. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1501. "groupTitle": "Album",
  1502. "name": "PostApiAlbumSetPhone"
  1503. },
  1504. {
  1505. "type": "post",
  1506. "url": "/api/album/set-watch",
  1507. "title": "获取用户操作记录(set-watch)",
  1508. "description": "<p>获取用户操作记录(set-watch)</p>",
  1509. "group": "Album",
  1510. "permission": [
  1511. {
  1512. "name": "none"
  1513. }
  1514. ],
  1515. "version": "0.1.0",
  1516. "parameter": {
  1517. "fields": {
  1518. "Parameter": [
  1519. {
  1520. "group": "Parameter",
  1521. "type": "int",
  1522. "optional": true,
  1523. "field": "store_id",
  1524. "description": "<p>商户id 模拟值为0</p>"
  1525. },
  1526. {
  1527. "group": "Parameter",
  1528. "type": "string",
  1529. "optional": true,
  1530. "field": "detail",
  1531. "description": "<p>详细</p>"
  1532. },
  1533. {
  1534. "group": "Parameter",
  1535. "type": "string",
  1536. "optional": true,
  1537. "field": "type",
  1538. "description": "<p>5点击图片 6 点击导航 7一键拨号</p>"
  1539. }
  1540. ]
  1541. }
  1542. },
  1543. "success": {
  1544. "examples": [
  1545. {
  1546. "title": "Success-Response:",
  1547. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}",
  1548. "type": "json"
  1549. }
  1550. ]
  1551. },
  1552. "error": {
  1553. "examples": [
  1554. {
  1555. "title": "Error-Response:",
  1556. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1557. "type": "json"
  1558. }
  1559. ]
  1560. },
  1561. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1562. "groupTitle": "Album",
  1563. "name": "PostApiAlbumSetWatch"
  1564. },
  1565. {
  1566. "type": "post",
  1567. "url": "/api/album/statistical",
  1568. "title": "记录分享次数(statistical)",
  1569. "description": "<p>记录分享次数(statistical)</p>",
  1570. "group": "Album",
  1571. "permission": [
  1572. {
  1573. "name": "AUTH"
  1574. }
  1575. ],
  1576. "version": "0.1.0",
  1577. "parameter": {
  1578. "fields": {
  1579. "Parameter": [
  1580. {
  1581. "group": "Parameter",
  1582. "type": "int",
  1583. "optional": true,
  1584. "field": "store_id",
  1585. "description": "<p>商户id</p>"
  1586. },
  1587. {
  1588. "group": "Parameter",
  1589. "type": "int",
  1590. "optional": true,
  1591. "field": "goods_id",
  1592. "description": "<p>商品id</p>"
  1593. }
  1594. ]
  1595. }
  1596. },
  1597. "success": {
  1598. "examples": [
  1599. {
  1600. "title": "Success-Response:",
  1601. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}",
  1602. "type": "json"
  1603. }
  1604. ]
  1605. },
  1606. "error": {
  1607. "examples": [
  1608. {
  1609. "title": "Error-Response:",
  1610. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1611. "type": "json"
  1612. }
  1613. ]
  1614. },
  1615. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1616. "groupTitle": "Album",
  1617. "name": "PostApiAlbumStatistical"
  1618. },
  1619. {
  1620. "type": "post",
  1621. "url": "/api/album/xyx_login",
  1622. "title": "登陆(xyx_login)",
  1623. "description": "<p>登陆(xyx_login)</p>",
  1624. "group": "Album",
  1625. "permission": [
  1626. {
  1627. "name": "none"
  1628. }
  1629. ],
  1630. "version": "0.1.0",
  1631. "parameter": {
  1632. "fields": {
  1633. "Parameter": [
  1634. {
  1635. "group": "Parameter",
  1636. "type": "int",
  1637. "optional": true,
  1638. "field": "code",
  1639. "description": ""
  1640. },
  1641. {
  1642. "group": "Parameter",
  1643. "type": "int",
  1644. "optional": true,
  1645. "field": "agent_id",
  1646. "description": "<p>经销商id</p>"
  1647. },
  1648. {
  1649. "group": "Parameter",
  1650. "type": "int",
  1651. "optional": true,
  1652. "field": "store_id",
  1653. "description": "<p>商户id</p>"
  1654. }
  1655. ]
  1656. }
  1657. },
  1658. "success": {
  1659. "examples": [
  1660. {
  1661. "title": "Success-Response:",
  1662. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImIyNGI3MzY3MDNmZDg3MGFjNTg2MWIxNDUzMDcyYjljYzFmNmJhMzE2NTAxZWVlNGYzM2M5MTIzNzFmNGYzZjg2MTY1M2YxMjE2YzE4OTFiIn0.eyJhdWQiOiI5IiwianRpIjoiYjI0YjczNjcwM2ZkODcwYWM1ODYxYjE0NTMwNzJiOWNjMWY2YmEzMTY1MDFlZWU0ZjMzYzkxMjM3MWY0ZjNmODYxNjUzZjEyMTZjMTg5MWIiLCJpYXQiOjE1NDA3OTYyMTYsIm5iZiI6MTU0MDc5NjIxNiwiZXhwIjoxNTcyMzMyMjE1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Ruihvl_HMCAHx9XDfeckz48Q_72kfG7vWDsqDrZWbrjq-yuNpM3LrUF-nlsKjedo97BwU_Apz-jnGVqr0ONKZlH-aBKDmIgM2aUZfFADsHhHNJH_oU2fMe1bOrjfUp-PJxfVWQS8c8h5RYmeqtzAYCKaD4P7OZbLmOX0YosKghpaGtiyE65s6jtrOXRhAzXAhYsZToQNBMokFVRqGih9EWuVp6EVwRtI3cb4IV6iQf08cX9DGlLLBJJzLWR5ZWgxJLAGrj5iMCWBl4JKVR8Fsy-xnx3EtrB7ODpJH6hB_u3XnUSAFuaG-KzMPLsj45iqg2hy53er2xtcfAowQFsPoAbZZu0n8c9hWt4GLemR6N1iZ3LBViv3tL5BK52pinQzAnmvltAhJP1YhfTOOjzkxcYVh2JeJagufEoxeeUarMMn21gQSFEzKFCimI7zZQxhT9leLpUn51DLD8Mu87NpYb3JN-JFbOlIDA7bDN3bNto7uuSuC4eBwPo3Ge0StuW4kjHsDTcrVF2He_8FdrPcPpGcvQsXQgv4vwlEhbL8dTlrOodum7H_tY_qUxUG1pEg6bfpn_82ej-AOSc9xi0nrhdcS9y_Z68rcwOJu8esI1pXm9TeQdZIDG85y_t74At8XN6oFcIM__6_dTne_3DHwijW-uOLupNky-5J4ILmZck\",\n \"user\": {\n \"user_id\": 1,\n \"is_agent\": 1,\n \"agent_id\": 4\n }\n }\n}",
  1663. "type": "json"
  1664. }
  1665. ]
  1666. },
  1667. "error": {
  1668. "examples": [
  1669. {
  1670. "title": "Error-Response:",
  1671. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1672. "type": "json"
  1673. }
  1674. ]
  1675. },
  1676. "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
  1677. "groupTitle": "Album",
  1678. "name": "PostApiAlbumXyx_login"
  1679. },
  1680. {
  1681. "type": "post",
  1682. "url": "/api/album_post/create",
  1683. "title": "生成海报(create)",
  1684. "description": "<p>生成海报(create)</p>",
  1685. "group": "Album_Post",
  1686. "permission": [
  1687. {
  1688. "name": "需要登录"
  1689. }
  1690. ],
  1691. "version": "0.1.0",
  1692. "parameter": {
  1693. "fields": {
  1694. "Parameter": [
  1695. {
  1696. "group": "Parameter",
  1697. "type": "int",
  1698. "optional": true,
  1699. "field": "store_id",
  1700. "description": "<p>商户id</p>"
  1701. },
  1702. {
  1703. "group": "Parameter",
  1704. "type": "string",
  1705. "optional": true,
  1706. "field": "image",
  1707. "description": "<p>图片</p>"
  1708. }
  1709. ]
  1710. }
  1711. },
  1712. "success": {
  1713. "examples": [
  1714. {
  1715. "title": "Success-Response:",
  1716. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n 'real_url':'asdawd', //海报\n ]\n}",
  1717. "type": "json"
  1718. }
  1719. ]
  1720. },
  1721. "error": {
  1722. "examples": [
  1723. {
  1724. "title": "Error-Response:",
  1725. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1726. "type": "json"
  1727. }
  1728. ]
  1729. },
  1730. "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
  1731. "groupTitle": "Album_Post",
  1732. "name": "PostApiAlbum_postCreate"
  1733. },
  1734. {
  1735. "type": "post",
  1736. "url": "/api/album_post/del",
  1737. "title": "删除海报(del)",
  1738. "description": "<p>删除海报(del)</p>",
  1739. "group": "Album_Post",
  1740. "permission": [
  1741. {
  1742. "name": "需要登录"
  1743. }
  1744. ],
  1745. "version": "0.1.0",
  1746. "parameter": {
  1747. "fields": {
  1748. "Parameter": [
  1749. {
  1750. "group": "Parameter",
  1751. "type": "string",
  1752. "optional": true,
  1753. "field": "url",
  1754. "description": "<p>图片</p>"
  1755. }
  1756. ]
  1757. }
  1758. },
  1759. "success": {
  1760. "examples": [
  1761. {
  1762. "title": "Success-Response:",
  1763. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n}",
  1764. "type": "json"
  1765. }
  1766. ]
  1767. },
  1768. "error": {
  1769. "examples": [
  1770. {
  1771. "title": "Error-Response:",
  1772. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1773. "type": "json"
  1774. }
  1775. ]
  1776. },
  1777. "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
  1778. "groupTitle": "Album_Post",
  1779. "name": "PostApiAlbum_postDel"
  1780. },
  1781. {
  1782. "type": "post",
  1783. "url": "/api/album_post/info",
  1784. "title": "获取海报数据(info)",
  1785. "description": "<p>获取海报数据(info)</p>",
  1786. "group": "Album_Post",
  1787. "permission": [
  1788. {
  1789. "name": "需要登录"
  1790. }
  1791. ],
  1792. "version": "0.1.0",
  1793. "parameter": {
  1794. "fields": {
  1795. "Parameter": [
  1796. {
  1797. "group": "Parameter",
  1798. "type": "int",
  1799. "optional": true,
  1800. "field": "store_id",
  1801. "description": "<p>商户id</p>"
  1802. }
  1803. ]
  1804. }
  1805. },
  1806. "success": {
  1807. "examples": [
  1808. {
  1809. "title": "Success-Response:",
  1810. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n 'posters':'asdawd', //海报\n 'words':'asdawd', //话术\n 'introduce':'222', //介绍\n 'share':'xxx' //分享图片\n 'phone':'xxx' //电话\n 'username':'xxx' //姓名\n 'title':'xxx' //分享标题\n 'qrcode':'xxx' //二维码\n ]\n}",
  1811. "type": "json"
  1812. }
  1813. ]
  1814. },
  1815. "error": {
  1816. "examples": [
  1817. {
  1818. "title": "Error-Response:",
  1819. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  1820. "type": "json"
  1821. }
  1822. ]
  1823. },
  1824. "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
  1825. "groupTitle": "Album_Post",
  1826. "name": "PostApiAlbum_postInfo"
  1827. },
  1828. {
  1829. "type": "get",
  1830. "url": "/api/attachment/delete/{md5}",
  1831. "title": "删除文件(图片)",
  1832. "description": "<p>删除文件(图片)</p>",
  1833. "group": "Attachment",
  1834. "permission": [
  1835. {
  1836. "name": "Passport"
  1837. }
  1838. ],
  1839. "version": "0.1.0",
  1840. "parameter": {
  1841. "fields": {
  1842. "Parameter": [
  1843. {
  1844. "group": "Parameter",
  1845. "type": "string",
  1846. "optional": false,
  1847. "field": "md5",
  1848. "description": "<p>图片md5码</p>"
  1849. }
  1850. ]
  1851. }
  1852. },
  1853. "success": {
  1854. "examples": [
  1855. {
  1856. "title": "Success-Response:",
  1857. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}",
  1858. "type": "json"
  1859. }
  1860. ]
  1861. },
  1862. "error": {
  1863. "examples": [
  1864. {
  1865. "title": "Error-Response:",
  1866. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1203 ATTACHMENT_NOT_EXIST 附件不存在",
  1867. "type": "json"
  1868. }
  1869. ]
  1870. },
  1871. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  1872. "groupTitle": "Attachment",
  1873. "name": "GetApiAttachmentDeleteMd5"
  1874. },
  1875. {
  1876. "type": "get",
  1877. "url": "/api/attachment/download/{md5}",
  1878. "title": "下载文件(图片)",
  1879. "description": "<p>下载文件(图片)(get code)</p>",
  1880. "group": "Attachment",
  1881. "permission": [
  1882. {
  1883. "name": "none"
  1884. }
  1885. ],
  1886. "version": "0.1.0",
  1887. "parameter": {
  1888. "fields": {
  1889. "Parameter": [
  1890. {
  1891. "group": "Parameter",
  1892. "type": "string",
  1893. "optional": false,
  1894. "field": "md5",
  1895. "description": "<p>图片md5码</p>"
  1896. }
  1897. ]
  1898. }
  1899. },
  1900. "success": {
  1901. "examples": [
  1902. {
  1903. "title": "Success-Response:",
  1904. "content": "HTTP/1.1 200 OK\n{\n 文件二进制码\n}",
  1905. "type": "json"
  1906. }
  1907. ]
  1908. },
  1909. "error": {
  1910. "examples": [
  1911. {
  1912. "title": "Error-Response:",
  1913. "content": "HTTP/1.1 404 Not found",
  1914. "type": "json"
  1915. }
  1916. ]
  1917. },
  1918. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  1919. "groupTitle": "Attachment",
  1920. "name": "GetApiAttachmentDownloadMd5"
  1921. },
  1922. {
  1923. "type": "post",
  1924. "url": "/api/attachment/upload",
  1925. "title": "通用上传接口",
  1926. "description": "<p>通用上传接口</p>",
  1927. "group": "Attachment",
  1928. "permission": [
  1929. {
  1930. "name": "none"
  1931. }
  1932. ],
  1933. "version": "0.1.0",
  1934. "parameter": {
  1935. "fields": {
  1936. "Parameter": [
  1937. {
  1938. "group": "Parameter",
  1939. "type": "string",
  1940. "optional": false,
  1941. "field": "tag",
  1942. "description": "<p>附件标签 avatar video dream</p>"
  1943. },
  1944. {
  1945. "group": "Parameter",
  1946. "type": "File",
  1947. "optional": false,
  1948. "field": "file",
  1949. "description": "<p>附件(可以多个,使用file.xxx,可返回多个)[默认大小【10M】, 类型图片png jpg gif,视频类型mp4]</p>"
  1950. }
  1951. ]
  1952. }
  1953. },
  1954. "success": {
  1955. "examples": [
  1956. {
  1957. "title": "Success-Response:",
  1958. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": [\n \"md5\": \"57c0fe723e1d7f7b0e45fd455aee19f2\",\n \"url\": \"http://dev.xxg.com/upload/upload/20180727/57c0fe723e1d7f7b0e45fd455aee19f2.jpg\"\n ]\n}",
  1959. "type": "json"
  1960. }
  1961. ]
  1962. },
  1963. "error": {
  1964. "examples": [
  1965. {
  1966. "title": "Error-Response:",
  1967. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 200 SAVE_USER_FAILED 保存用户数据失败\n 201 ATTACHMENT_MKDIR_FAILED 创建附件目录失败\n 202 ATTACHMENT_UPLOAD_INVALID 上传附件文件无效\n 203 ATTACHMENT_SAVE_FAILED 保存附件失败\n 204 ATTACHMENT_MOVE_FAILED 移动附件失败\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1101 INCORRECT_VERIFY_CODE 输入验证码错误\n 1105 USER_DOES_NOT_EXIST 用户不存在\n 1200 ATTACHMENT_UPLOAD_FAILED 附件上传失败\n 1201 ATTACHMENT_SIZE_EXCEEDED 附件大小超过限制\n 1202 ATTACHMENT_MIME_NOT_ALLOWED 附件类型不允许\n 1203 ATTACHMENT_NOT_EXIST 附件不存在",
  1968. "type": "json"
  1969. }
  1970. ]
  1971. },
  1972. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  1973. "groupTitle": "Attachment",
  1974. "name": "PostApiAttachmentUpload"
  1975. },
  1976. {
  1977. "type": "post",
  1978. "url": "/api/auth/login",
  1979. "title": "微信登陆入口(login)",
  1980. "description": "<p>微信登陆入口(login)</p>",
  1981. "group": "Auth",
  1982. "permission": [
  1983. {
  1984. "name": "none"
  1985. }
  1986. ],
  1987. "version": "0.1.0",
  1988. "parameter": {
  1989. "fields": {
  1990. "Parameter": [
  1991. {
  1992. "group": "Parameter",
  1993. "type": "string",
  1994. "optional": false,
  1995. "field": "code",
  1996. "description": "<p>登录凭证</p>"
  1997. },
  1998. {
  1999. "group": "Parameter",
  2000. "type": "string",
  2001. "optional": false,
  2002. "field": "nickname",
  2003. "description": "<p>微信昵称</p>"
  2004. },
  2005. {
  2006. "group": "Parameter",
  2007. "type": "string",
  2008. "optional": false,
  2009. "field": "avatar",
  2010. "description": "<p>微信头像</p>"
  2011. },
  2012. {
  2013. "group": "Parameter",
  2014. "type": "string",
  2015. "optional": false,
  2016. "field": "appid",
  2017. "description": "<p>appid</p>"
  2018. }
  2019. ]
  2020. }
  2021. },
  2022. "success": {
  2023. "examples": [
  2024. {
  2025. "title": "Success-Response:",
  2026. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjdjYWUyYzFmYTUwMTIyZDI0ZTRiYTZhZGZhNmQxYmZlOWNiMzIxMTBmYWJlZjNjYzIyNmViZjRmNGExNWM3NjllNmU2ZTNiYWE5OGNhOWUzIn0.eyJhdWQiOiIxIiwianRpIjoiN2NhZTJjMWZhNTAxMjJkMjRlNGJhNmFkZmE2ZDFiZmU5Y2IzMjExMGZhYmVmM2NjMjI2ZWJmNGY0YTE1Yzc2OWU2ZTZlM2JhYTk4Y2E5ZTMiLCJpYXQiOjE0NzU0MTE1NTgsIm5iZiI6MTQ3NTQxMTU1OCwiZXhwIjo0NjMxMDg1MTU4LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.E9YGEzuRUOk02aV1EiWLJ_pD0hKoCyW0k_sGy63hM3u5X8K_HI1kVhaU6JNLqLZeszIAroTEDB8XMgZKAqTLlwtL8PLCJcuDoxfk1BRHbfjhDheTsahBysKGalvNEpzRCrGlao0mS0Cg9qDpEsndtypPFS8sfaflToOzbJjiSK2DvQiHSH8xZI3zHJTezgZMz-pB_hPTxp8ajdv0ve1gWtWjs3vERr0Y91X4hngO8X7LuXtAYtfxGZRIye12YE7TuLBMYzj8CCfiRt7Smhyf4palNW5mzKlZpa2l87n6NQ14Iy4oMzQ2PON1j_swrosuE2yZohGOn6fDdSCBRdJ6dLD_emjBdQCQOoB63R7BbhFZgvFX25TjzFJ7r9AdVMiGmebuRKEVSZV_JCGu1C71OIbQk-UK35s00gSr2fmJGBbN2cZTXBRTJpfuMZ_ihFYEZrvVq_Ih2X0xkd36JUuxaUld1BXRgPZvH-9jBuhe0YW2OOlgwpdm6ZB8BMcuS4ftLoi6FipgzFqfIuy-0ZqPMDnJaG7Gycrdpxza00mgOFxYxJtqwZNsUWFRZEVU881l6VC_cy294YXSPQxUwEoyKg-G5Pm8AEB9bqv5z4EU4B8-XTd3zKNqtNba_snHbc711i4EytCiZfYSjNB1hwenq45YYOAhPTwOpFI0kxyRazc\",\n \"user\": {\n \"id\": 1,\n \"name\": \"15888888888\",\n \"email\": \"abcdefg@gmail.com\",\n \"phone\": \"15888888888\",\n \"avatar\": null,\n \"last_ip\": null,\n \"created_at\": \"2016-09-30 00:45:13\",\n \"updated_at\": \"2016-09-29 16:43:36\"\n }\n }\n}",
  2027. "type": "json"
  2028. }
  2029. ]
  2030. },
  2031. "error": {
  2032. "examples": [
  2033. {
  2034. "title": "Error-Response:",
  2035. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1102 INCORRECT_USER_OR_PASS 用户名或密码不正确",
  2036. "type": "json"
  2037. }
  2038. ]
  2039. },
  2040. "filename": "app/Http/Controllers/Api/V1/AuthController.php",
  2041. "groupTitle": "Auth",
  2042. "name": "PostApiAuthLogin"
  2043. },
  2044. {
  2045. "type": "get",
  2046. "url": "/api/album_boss/get_top",
  2047. "title": "经销商排行榜(get_top)",
  2048. "description": "<p>经销商排行榜(get_top)</p>",
  2049. "group": "Boss",
  2050. "permission": [
  2051. {
  2052. "name": "none"
  2053. }
  2054. ],
  2055. "version": "0.1.0",
  2056. "parameter": {
  2057. "fields": {
  2058. "Parameter": [
  2059. {
  2060. "group": "Parameter",
  2061. "type": "int",
  2062. "optional": true,
  2063. "field": "store_id",
  2064. "description": "<p>商户id</p>"
  2065. }
  2066. ]
  2067. }
  2068. },
  2069. "success": {
  2070. "examples": [
  2071. {
  2072. "title": "Success-Response:",
  2073. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"agent\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"get_count\": \"客户数量\",\n }\n ],\n }\n}",
  2074. "type": "json"
  2075. }
  2076. ]
  2077. },
  2078. "error": {
  2079. "examples": [
  2080. {
  2081. "title": "Error-Response:",
  2082. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2083. "type": "json"
  2084. }
  2085. ]
  2086. },
  2087. "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
  2088. "groupTitle": "Boss",
  2089. "name": "GetApiAlbum_bossGet_top"
  2090. },
  2091. {
  2092. "type": "post",
  2093. "url": "/api/album_boss/agent_customer",
  2094. "title": "经销商客户(agent_customer)",
  2095. "description": "<p>经销商客户(agent_customer)</p>",
  2096. "group": "Boss",
  2097. "permission": [
  2098. {
  2099. "name": "none"
  2100. }
  2101. ],
  2102. "version": "0.1.0",
  2103. "parameter": {
  2104. "fields": {
  2105. "Parameter": [
  2106. {
  2107. "group": "Parameter",
  2108. "type": "int",
  2109. "optional": true,
  2110. "field": "store_id",
  2111. "description": "<p>商户id</p>"
  2112. },
  2113. {
  2114. "group": "Parameter",
  2115. "type": "int",
  2116. "optional": true,
  2117. "field": "agent_id",
  2118. "description": "<p>经销商id</p>"
  2119. }
  2120. ]
  2121. }
  2122. },
  2123. "success": {
  2124. "examples": [
  2125. {
  2126. "title": "Success-Response:",
  2127. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"agent\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"address\": \"四川省\",\n \"phone\": \"8208208820\",\n \"lon\": \"100.123123\",\n \"lat\": \"123.123123\",\n }\n ],\n \"customer\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"address\": \"四川省甘肃市\"\n }\n ]\n }\n}",
  2128. "type": "json"
  2129. }
  2130. ]
  2131. },
  2132. "error": {
  2133. "examples": [
  2134. {
  2135. "title": "Error-Response:",
  2136. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2137. "type": "json"
  2138. }
  2139. ]
  2140. },
  2141. "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
  2142. "groupTitle": "Boss",
  2143. "name": "PostApiAlbum_bossAgent_customer"
  2144. },
  2145. {
  2146. "type": "post",
  2147. "url": "/api/album_boss/agent_overview",
  2148. "title": "经销商总览(agent_overview)",
  2149. "description": "<p>经销商总览(agent_overview)</p>",
  2150. "group": "Boss",
  2151. "permission": [
  2152. {
  2153. "name": "none"
  2154. }
  2155. ],
  2156. "version": "0.1.0",
  2157. "parameter": {
  2158. "fields": {
  2159. "Parameter": [
  2160. {
  2161. "group": "Parameter",
  2162. "type": "int",
  2163. "optional": true,
  2164. "field": "store_id",
  2165. "description": "<p>商户id</p>"
  2166. },
  2167. {
  2168. "group": "Parameter",
  2169. "type": "int",
  2170. "optional": true,
  2171. "field": "start",
  2172. "description": "<p>开始时间</p>"
  2173. },
  2174. {
  2175. "group": "Parameter",
  2176. "type": "int",
  2177. "optional": true,
  2178. "field": "end",
  2179. "description": "<p>结束时间</p>"
  2180. }
  2181. ]
  2182. }
  2183. },
  2184. "success": {
  2185. "examples": [
  2186. {
  2187. "title": "Success-Response:",
  2188. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"customerFollow\":11,\n \"downloadCount\":11,\n \"shareCount\":11,\n \"newCustomerCount\":11,\n \"totalCustomerCount\":11,\n \"activeCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\n }\n ],\n \"newCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\n }\n ]\n \"arrFavorite\": [\n {\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n }\n ]\n }\n}",
  2189. "type": "json"
  2190. }
  2191. ]
  2192. },
  2193. "error": {
  2194. "examples": [
  2195. {
  2196. "title": "Error-Response:",
  2197. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2198. "type": "json"
  2199. }
  2200. ]
  2201. },
  2202. "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
  2203. "groupTitle": "Boss",
  2204. "name": "PostApiAlbum_bossAgent_overview"
  2205. },
  2206. {
  2207. "type": "post",
  2208. "url": "/api/album_boss/agent_statistical",
  2209. "title": "经销商数据(agent_statistical)",
  2210. "description": "<p>经销商数据(agent_statistical)</p>",
  2211. "group": "Boss",
  2212. "permission": [
  2213. {
  2214. "name": "none"
  2215. }
  2216. ],
  2217. "version": "0.1.0",
  2218. "parameter": {
  2219. "fields": {
  2220. "Parameter": [
  2221. {
  2222. "group": "Parameter",
  2223. "type": "int",
  2224. "optional": true,
  2225. "field": "store_id",
  2226. "description": "<p>商户id</p>"
  2227. },
  2228. {
  2229. "group": "Parameter",
  2230. "type": "int",
  2231. "optional": true,
  2232. "field": "agent_id",
  2233. "description": "<p>经销商id</p>"
  2234. },
  2235. {
  2236. "group": "Parameter",
  2237. "type": "int",
  2238. "optional": true,
  2239. "field": "start",
  2240. "description": "<p>开始时间</p>"
  2241. },
  2242. {
  2243. "group": "Parameter",
  2244. "type": "int",
  2245. "optional": true,
  2246. "field": "end",
  2247. "description": "<p>结束时间</p>"
  2248. }
  2249. ]
  2250. }
  2251. },
  2252. "success": {
  2253. "examples": [
  2254. {
  2255. "title": "Success-Response:",
  2256. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"favoriteCount\":11,\n \"downloadCount\":11,\n \"shareCount\":11,\n \"newCustomerCount\":11,\n \"totalCustomerCount\":11,\n }\n}",
  2257. "type": "json"
  2258. }
  2259. ]
  2260. },
  2261. "error": {
  2262. "examples": [
  2263. {
  2264. "title": "Error-Response:",
  2265. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2266. "type": "json"
  2267. }
  2268. ]
  2269. },
  2270. "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
  2271. "groupTitle": "Boss",
  2272. "name": "PostApiAlbum_bossAgent_statistical"
  2273. },
  2274. {
  2275. "type": "get",
  2276. "url": "/api/car/delete",
  2277. "title": "删除",
  2278. "description": "<p>删除</p>",
  2279. "group": "Car",
  2280. "parameter": {
  2281. "fields": {
  2282. "Parameter": [
  2283. {
  2284. "group": "Parameter",
  2285. "type": "int",
  2286. "optional": false,
  2287. "field": "ids",
  2288. "description": "<p>主键id 数组</p>"
  2289. }
  2290. ]
  2291. }
  2292. },
  2293. "permission": [
  2294. {
  2295. "name": "none"
  2296. }
  2297. ],
  2298. "version": "0.1.0",
  2299. "success": {
  2300. "examples": [
  2301. {
  2302. "title": "Success-Response:",
  2303. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }",
  2304. "type": "json"
  2305. }
  2306. ]
  2307. },
  2308. "error": {
  2309. "examples": [
  2310. {
  2311. "title": "Error-Response:",
  2312. "content": "HTTP/1.1 400 Bad Request",
  2313. "type": "json"
  2314. }
  2315. ]
  2316. },
  2317. "filename": "app/Http/Controllers/Api/V1/CarController.php",
  2318. "groupTitle": "Car",
  2319. "name": "GetApiCarDelete"
  2320. },
  2321. {
  2322. "type": "get",
  2323. "url": "/api/car/index",
  2324. "title": "购物车",
  2325. "description": "<p>购物车</p>",
  2326. "group": "Car",
  2327. "parameter": {
  2328. "fields": {
  2329. "Parameter": [
  2330. {
  2331. "group": "Parameter",
  2332. "type": "string",
  2333. "optional": false,
  2334. "field": "appid",
  2335. "description": "<p>appid</p>"
  2336. }
  2337. ]
  2338. }
  2339. },
  2340. "permission": [
  2341. {
  2342. "name": "none"
  2343. }
  2344. ],
  2345. "version": "0.1.0",
  2346. "success": {
  2347. "examples": [
  2348. {
  2349. "title": "Success-Response:",
  2350. "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"goods_num\": 2, 加入购物车商品的数量\n \"created_at\": null,\n \"goods\": {\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n \"price\": 101100, 商品价格(分)\n \"sale_number\": 91, 已售数量\n \"stock\": 200, 总库存\n }\n },\n ],\n \"first_page_url\": \"http://www.s1.com/api/car/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/car/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/car/index\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2\n }\n }",
  2351. "type": "json"
  2352. }
  2353. ]
  2354. },
  2355. "error": {
  2356. "examples": [
  2357. {
  2358. "title": "Error-Response:",
  2359. "content": "HTTP/1.1 400 Bad Request",
  2360. "type": "json"
  2361. }
  2362. ]
  2363. },
  2364. "filename": "app/Http/Controllers/Api/V1/CarController.php",
  2365. "groupTitle": "Car",
  2366. "name": "GetApiCarIndex"
  2367. },
  2368. {
  2369. "type": "post",
  2370. "url": "/api/car/update",
  2371. "title": "编辑",
  2372. "description": "<p>编辑(修改购物车商品数量)</p>",
  2373. "group": "Car",
  2374. "parameter": {
  2375. "fields": {
  2376. "Parameter": [
  2377. {
  2378. "group": "Parameter",
  2379. "type": "int",
  2380. "optional": false,
  2381. "field": "id",
  2382. "description": "<p>商品id</p>"
  2383. },
  2384. {
  2385. "group": "Parameter",
  2386. "type": "int",
  2387. "optional": false,
  2388. "field": "number",
  2389. "description": "<p>购买数量</p>"
  2390. }
  2391. ]
  2392. }
  2393. },
  2394. "permission": [
  2395. {
  2396. "name": "none"
  2397. }
  2398. ],
  2399. "version": "0.1.0",
  2400. "success": {
  2401. "examples": [
  2402. {
  2403. "title": "Success-Response:",
  2404. "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }",
  2405. "type": "json"
  2406. }
  2407. ]
  2408. },
  2409. "error": {
  2410. "examples": [
  2411. {
  2412. "title": "Error-Response:",
  2413. "content": "HTTP/1.1 400 Bad Request",
  2414. "type": "json"
  2415. }
  2416. ]
  2417. },
  2418. "filename": "app/Http/Controllers/Api/V1/CarController.php",
  2419. "groupTitle": "Car",
  2420. "name": "PostApiCarUpdate"
  2421. },
  2422. {
  2423. "type": "get",
  2424. "url": "/api/card/honor",
  2425. "title": "个人荣誉(honor)",
  2426. "description": "<p>个人荣誉(honor)</p>",
  2427. "group": "Card",
  2428. "permission": [
  2429. {
  2430. "name": "none"
  2431. }
  2432. ],
  2433. "version": "0.1.0",
  2434. "parameter": {
  2435. "fields": {
  2436. "Parameter": [
  2437. {
  2438. "group": "Parameter",
  2439. "type": "int",
  2440. "optional": false,
  2441. "field": "user_id",
  2442. "description": "<p>user_id</p>"
  2443. }
  2444. ]
  2445. }
  2446. },
  2447. "success": {
  2448. "examples": [
  2449. {
  2450. "title": "Success-Response:",
  2451. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"honor\": []//个人荣誉\n }\n}",
  2452. "type": "json"
  2453. }
  2454. ]
  2455. },
  2456. "error": {
  2457. "examples": [
  2458. {
  2459. "title": "Error-Response:",
  2460. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2461. "type": "json"
  2462. }
  2463. ]
  2464. },
  2465. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2466. "groupTitle": "Card",
  2467. "name": "GetApiCardHonor"
  2468. },
  2469. {
  2470. "type": "get",
  2471. "url": "/api/card/index",
  2472. "title": "名片主页(index)",
  2473. "description": "<p>公司详情(index)</p>",
  2474. "group": "Card",
  2475. "permission": [
  2476. {
  2477. "name": "none"
  2478. }
  2479. ],
  2480. "version": "0.1.0",
  2481. "parameter": {
  2482. "fields": {
  2483. "Parameter": [
  2484. {
  2485. "group": "Parameter",
  2486. "type": "int",
  2487. "optional": false,
  2488. "field": "user_id",
  2489. "description": "<p>user_id</p>"
  2490. }
  2491. ]
  2492. }
  2493. },
  2494. "success": {
  2495. "examples": [
  2496. {
  2497. "title": "Success-Response:",
  2498. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": []//轮播图\n \"project\": []//经营项目\n \"trend\": []//个人动态\n \"info\": []//个人详情\n }\n}",
  2499. "type": "json"
  2500. }
  2501. ]
  2502. },
  2503. "error": {
  2504. "examples": [
  2505. {
  2506. "title": "Error-Response:",
  2507. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2508. "type": "json"
  2509. }
  2510. ]
  2511. },
  2512. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2513. "groupTitle": "Card",
  2514. "name": "GetApiCardIndex"
  2515. },
  2516. {
  2517. "type": "get",
  2518. "url": "/api/card/info",
  2519. "title": "个人详情(info)",
  2520. "description": "<p>个人详情(info)</p>",
  2521. "group": "Card",
  2522. "permission": [
  2523. {
  2524. "name": "none"
  2525. }
  2526. ],
  2527. "version": "0.1.0",
  2528. "parameter": {
  2529. "fields": {
  2530. "Parameter": [
  2531. {
  2532. "group": "Parameter",
  2533. "type": "int",
  2534. "optional": false,
  2535. "field": "user_id",
  2536. "description": "<p>user_id</p>"
  2537. }
  2538. ]
  2539. }
  2540. },
  2541. "success": {
  2542. "examples": [
  2543. {
  2544. "title": "Success-Response:",
  2545. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//个人详情\n }\n}",
  2546. "type": "json"
  2547. }
  2548. ]
  2549. },
  2550. "error": {
  2551. "examples": [
  2552. {
  2553. "title": "Error-Response:",
  2554. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2555. "type": "json"
  2556. }
  2557. ]
  2558. },
  2559. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2560. "groupTitle": "Card",
  2561. "name": "GetApiCardInfo"
  2562. },
  2563. {
  2564. "type": "get",
  2565. "url": "/api/card/progress",
  2566. "title": "个人经历(progress)",
  2567. "description": "<p>个人经历(progress)</p>",
  2568. "group": "Card",
  2569. "permission": [
  2570. {
  2571. "name": "none"
  2572. }
  2573. ],
  2574. "version": "0.1.0",
  2575. "parameter": {
  2576. "fields": {
  2577. "Parameter": [
  2578. {
  2579. "group": "Parameter",
  2580. "type": "int",
  2581. "optional": false,
  2582. "field": "user_id",
  2583. "description": "<p>user_id</p>"
  2584. }
  2585. ]
  2586. }
  2587. },
  2588. "success": {
  2589. "examples": [
  2590. {
  2591. "title": "Success-Response:",
  2592. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"progress\": []//个人经历\n }\n}",
  2593. "type": "json"
  2594. }
  2595. ]
  2596. },
  2597. "error": {
  2598. "examples": [
  2599. {
  2600. "title": "Error-Response:",
  2601. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2602. "type": "json"
  2603. }
  2604. ]
  2605. },
  2606. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2607. "groupTitle": "Card",
  2608. "name": "GetApiCardProgress"
  2609. },
  2610. {
  2611. "type": "get",
  2612. "url": "/api/card/project",
  2613. "title": "经营项目(project)",
  2614. "description": "<p>经营项目(project)</p>",
  2615. "group": "Card",
  2616. "permission": [
  2617. {
  2618. "name": "none"
  2619. }
  2620. ],
  2621. "version": "0.1.0",
  2622. "parameter": {
  2623. "fields": {
  2624. "Parameter": [
  2625. {
  2626. "group": "Parameter",
  2627. "type": "int",
  2628. "optional": false,
  2629. "field": "user_id",
  2630. "description": "<p>user_id</p>"
  2631. }
  2632. ]
  2633. }
  2634. },
  2635. "success": {
  2636. "examples": [
  2637. {
  2638. "title": "Success-Response:",
  2639. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}",
  2640. "type": "json"
  2641. }
  2642. ]
  2643. },
  2644. "error": {
  2645. "examples": [
  2646. {
  2647. "title": "Error-Response:",
  2648. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2649. "type": "json"
  2650. }
  2651. ]
  2652. },
  2653. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2654. "groupTitle": "Card",
  2655. "name": "GetApiCardProject"
  2656. },
  2657. {
  2658. "type": "get",
  2659. "url": "/api/card/projectDetail",
  2660. "title": "经营项目详情(projectDetail)",
  2661. "description": "<p>经营项目详情(projectDetail)</p>",
  2662. "group": "Card",
  2663. "permission": [
  2664. {
  2665. "name": "none"
  2666. }
  2667. ],
  2668. "version": "0.1.0",
  2669. "parameter": {
  2670. "fields": {
  2671. "Parameter": [
  2672. {
  2673. "group": "Parameter",
  2674. "type": "int",
  2675. "optional": false,
  2676. "field": "user_id",
  2677. "description": "<p>user_id</p>"
  2678. },
  2679. {
  2680. "group": "Parameter",
  2681. "type": "int",
  2682. "optional": false,
  2683. "field": "pro_id",
  2684. "description": "<p>项目ID</p>"
  2685. }
  2686. ]
  2687. }
  2688. },
  2689. "success": {
  2690. "examples": [
  2691. {
  2692. "title": "Success-Response:",
  2693. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}",
  2694. "type": "json"
  2695. }
  2696. ]
  2697. },
  2698. "error": {
  2699. "examples": [
  2700. {
  2701. "title": "Error-Response:",
  2702. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2703. "type": "json"
  2704. }
  2705. ]
  2706. },
  2707. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2708. "groupTitle": "Card",
  2709. "name": "GetApiCardProjectdetail"
  2710. },
  2711. {
  2712. "type": "get",
  2713. "url": "/api/card/setting",
  2714. "title": "基础设置",
  2715. "description": "<p>基础设置</p>",
  2716. "group": "Card",
  2717. "permission": [
  2718. {
  2719. "name": "none"
  2720. }
  2721. ],
  2722. "version": "0.1.0",
  2723. "parameter": {
  2724. "fields": {
  2725. "Parameter": [
  2726. {
  2727. "group": "Parameter",
  2728. "type": "int",
  2729. "optional": false,
  2730. "field": "user_id",
  2731. "description": "<p>user_id</p>"
  2732. }
  2733. ]
  2734. }
  2735. },
  2736. "success": {
  2737. "examples": [
  2738. {
  2739. "title": "Success-Response:",
  2740. "content": "HTTP/1.1 200 OK",
  2741. "type": "json"
  2742. }
  2743. ]
  2744. },
  2745. "error": {
  2746. "examples": [
  2747. {
  2748. "title": "Error-Response:",
  2749. "content": "HTTP/1.1 400 Bad Request",
  2750. "type": "json"
  2751. }
  2752. ]
  2753. },
  2754. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2755. "groupTitle": "Card",
  2756. "name": "GetApiCardSetting"
  2757. },
  2758. {
  2759. "type": "get",
  2760. "url": "/api/card/trend",
  2761. "title": "所有动态(trend)",
  2762. "description": "<p>所有动态(trend)</p>",
  2763. "group": "Card",
  2764. "permission": [
  2765. {
  2766. "name": "none"
  2767. }
  2768. ],
  2769. "version": "0.1.0",
  2770. "parameter": {
  2771. "fields": {
  2772. "Parameter": [
  2773. {
  2774. "group": "Parameter",
  2775. "type": "int",
  2776. "optional": false,
  2777. "field": "user_id",
  2778. "description": "<p>user_id</p>"
  2779. }
  2780. ]
  2781. }
  2782. },
  2783. "success": {
  2784. "examples": [
  2785. {
  2786. "title": "Success-Response:",
  2787. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//所有动态\n }\n}",
  2788. "type": "json"
  2789. }
  2790. ]
  2791. },
  2792. "error": {
  2793. "examples": [
  2794. {
  2795. "title": "Error-Response:",
  2796. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2797. "type": "json"
  2798. }
  2799. ]
  2800. },
  2801. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2802. "groupTitle": "Card",
  2803. "name": "GetApiCardTrend"
  2804. },
  2805. {
  2806. "type": "get",
  2807. "url": "/api/card/trendDetail",
  2808. "title": "个人动态详情(trendDetail)",
  2809. "description": "<p>个人动态详情(trendDetail)</p>",
  2810. "group": "Card",
  2811. "permission": [
  2812. {
  2813. "name": "none"
  2814. }
  2815. ],
  2816. "version": "0.1.0",
  2817. "parameter": {
  2818. "fields": {
  2819. "Parameter": [
  2820. {
  2821. "group": "Parameter",
  2822. "type": "int",
  2823. "optional": false,
  2824. "field": "user_id",
  2825. "description": "<p>user_id</p>"
  2826. },
  2827. {
  2828. "group": "Parameter",
  2829. "type": "int",
  2830. "optional": false,
  2831. "field": "trend_id",
  2832. "description": "<p>动态ID</p>"
  2833. }
  2834. ]
  2835. }
  2836. },
  2837. "success": {
  2838. "examples": [
  2839. {
  2840. "title": "Success-Response:",
  2841. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//经营项目\n }\n}",
  2842. "type": "json"
  2843. }
  2844. ]
  2845. },
  2846. "error": {
  2847. "examples": [
  2848. {
  2849. "title": "Error-Response:",
  2850. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2851. "type": "json"
  2852. }
  2853. ]
  2854. },
  2855. "filename": "app/Http/Controllers/Api/V1/CardController.php",
  2856. "groupTitle": "Card",
  2857. "name": "GetApiCardTrenddetail"
  2858. },
  2859. {
  2860. "type": "get",
  2861. "url": "/api/cate/index",
  2862. "title": "分类",
  2863. "description": "<p>分类</p>",
  2864. "group": "Cate",
  2865. "parameter": {
  2866. "fields": {
  2867. "Parameter": [
  2868. {
  2869. "group": "Parameter",
  2870. "type": "string",
  2871. "optional": false,
  2872. "field": "appid",
  2873. "description": "<p>appid</p>"
  2874. },
  2875. {
  2876. "group": "Parameter",
  2877. "type": "int",
  2878. "optional": true,
  2879. "field": "page",
  2880. "defaultValue": "1",
  2881. "description": "<p>页码(分页参数)</p>"
  2882. },
  2883. {
  2884. "group": "Parameter",
  2885. "type": "int",
  2886. "optional": true,
  2887. "field": "id",
  2888. "description": "<p>分类 id</p>"
  2889. }
  2890. ]
  2891. }
  2892. },
  2893. "permission": [
  2894. {
  2895. "name": "none"
  2896. }
  2897. ],
  2898. "version": "0.1.0",
  2899. "success": {
  2900. "examples": [
  2901. {
  2902. "title": "Success-Response:",
  2903. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"cates\": [\n {\n \"id\": 1,\n \"name\": \"首页分类1\",\n \"pic\": \"/upload/goods/cate/20171013/2454820f914e59dd4a90b575cd47e03c.jpg\",\n },\n {\n \"id\": 3,\n \"name\": \"首页分类2\",\n \"pic\": \"/upload/goods/cate/20171013/0e67c1d32c450c5ccd0a9aae5ec9ab96.jpg\",\n }\n ],\n \"goods\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/cate/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/cate/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/cate/index\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n }",
  2904. "type": "json"
  2905. }
  2906. ]
  2907. },
  2908. "error": {
  2909. "examples": [
  2910. {
  2911. "title": "Error-Response:",
  2912. "content": "HTTP/1.1 400 Bad Request",
  2913. "type": "json"
  2914. }
  2915. ]
  2916. },
  2917. "filename": "app/Http/Controllers/Api/V1/CateController.php",
  2918. "groupTitle": "Cate",
  2919. "name": "GetApiCateIndex"
  2920. },
  2921. {
  2922. "type": "get",
  2923. "url": "/api/company/info",
  2924. "title": "公司详情(info)",
  2925. "description": "<p>公司详情(info)</p>",
  2926. "group": "Company",
  2927. "permission": [
  2928. {
  2929. "name": "none"
  2930. }
  2931. ],
  2932. "version": "0.1.0",
  2933. "parameter": {
  2934. "fields": {
  2935. "Parameter": [
  2936. {
  2937. "group": "Parameter",
  2938. "type": "string",
  2939. "optional": false,
  2940. "field": "appid",
  2941. "description": "<p>appid</p>"
  2942. }
  2943. ]
  2944. }
  2945. },
  2946. "success": {
  2947. "examples": [
  2948. {
  2949. "title": "Success-Response:",
  2950. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//公司详情\n }\n}",
  2951. "type": "json"
  2952. }
  2953. ]
  2954. },
  2955. "error": {
  2956. "examples": [
  2957. {
  2958. "title": "Error-Response:",
  2959. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  2960. "type": "json"
  2961. }
  2962. ]
  2963. },
  2964. "filename": "app/Http/Controllers/Api/V1/CompanyController.php",
  2965. "groupTitle": "Company",
  2966. "name": "GetApiCompanyInfo"
  2967. },
  2968. {
  2969. "type": "get",
  2970. "url": "/api/find/index",
  2971. "title": "发现",
  2972. "description": "<p>发现</p>",
  2973. "group": "Find",
  2974. "parameter": {
  2975. "fields": {
  2976. "Parameter": [
  2977. {
  2978. "group": "Parameter",
  2979. "type": "string",
  2980. "optional": false,
  2981. "field": "appid",
  2982. "description": "<p>appid</p>"
  2983. },
  2984. {
  2985. "group": "Parameter",
  2986. "type": "int",
  2987. "optional": true,
  2988. "field": "page",
  2989. "description": "<p>分页参数</p>"
  2990. }
  2991. ]
  2992. }
  2993. },
  2994. "permission": [
  2995. {
  2996. "name": "none"
  2997. }
  2998. ],
  2999. "version": "0.1.0",
  3000. "success": {
  3001. "examples": [
  3002. {
  3003. "title": "Success-Response:",
  3004. "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"test\",\n \"pic\": \"/upload/article/20171013/91a15c6f30ad510db5165dad5ac1fff9.jpg\",\n \"info\": \"驱蚊器翁\",\n \"viewed\": 0,\n \"sort\": 1,\n \"created_at\": \"2017-10-13 03:34:02\",\n \"updated_at\": \"2017-10-13 03:34:02\"\n },\n ],\n \"first_page_url\": \"http://www.s1.com/api/find/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/find/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/find/index\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 3,\n \"total\": 3\n }\n}",
  3005. "type": "json"
  3006. }
  3007. ]
  3008. },
  3009. "error": {
  3010. "examples": [
  3011. {
  3012. "title": "Error-Response:",
  3013. "content": "HTTP/1.1 400 Bad Request",
  3014. "type": "json"
  3015. }
  3016. ]
  3017. },
  3018. "filename": "app/Http/Controllers/Api/V1/FindController.php",
  3019. "groupTitle": "Find",
  3020. "name": "GetApiFindIndex"
  3021. },
  3022. {
  3023. "type": "get",
  3024. "url": "/api/furniture/add_comments",
  3025. "title": "添加新闻评论",
  3026. "description": "<p>添加新闻评论(news_list)</p>",
  3027. "group": "Furniture",
  3028. "permission": [
  3029. {
  3030. "name": "Passport"
  3031. }
  3032. ],
  3033. "version": "0.1.0",
  3034. "parameter": {
  3035. "fields": {
  3036. "Parameter": [
  3037. {
  3038. "group": "Parameter",
  3039. "type": "int",
  3040. "optional": false,
  3041. "field": "store_id",
  3042. "description": "<p>商户ID</p>"
  3043. },
  3044. {
  3045. "group": "Parameter",
  3046. "type": "int",
  3047. "optional": false,
  3048. "field": "news_id",
  3049. "description": "<p>新闻ID</p>"
  3050. },
  3051. {
  3052. "group": "Parameter",
  3053. "type": "int",
  3054. "optional": false,
  3055. "field": "content",
  3056. "description": "<p>评论内容</p>"
  3057. },
  3058. {
  3059. "group": "Parameter",
  3060. "type": "int",
  3061. "optional": false,
  3062. "field": "comments_id",
  3063. "description": "<p>被回复的评论ID。对新闻评论:0; 对评论回复:被回复的评论的具体ID</p>"
  3064. }
  3065. ]
  3066. }
  3067. },
  3068. "success": {
  3069. "examples": [
  3070. {
  3071. "title": "Success-Response:",
  3072. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}",
  3073. "type": "json"
  3074. }
  3075. ]
  3076. },
  3077. "error": {
  3078. "examples": [
  3079. {
  3080. "title": "Error-Response:",
  3081. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 401 token已过期,请重新登录",
  3082. "type": "json"
  3083. }
  3084. ]
  3085. },
  3086. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3087. "groupTitle": "Furniture",
  3088. "name": "GetApiFurnitureAdd_comments"
  3089. },
  3090. {
  3091. "type": "get",
  3092. "url": "/api/furniture/addtolike",
  3093. "title": "新闻点赞",
  3094. "description": "<p>新闻点赞</p>",
  3095. "group": "Furniture",
  3096. "permission": [
  3097. {
  3098. "name": "None"
  3099. }
  3100. ],
  3101. "version": "0.1.0",
  3102. "parameter": {
  3103. "fields": {
  3104. "Parameter": [
  3105. {
  3106. "group": "Parameter",
  3107. "type": "int",
  3108. "optional": false,
  3109. "field": "store_id",
  3110. "description": "<p>商户ID</p>"
  3111. },
  3112. {
  3113. "group": "Parameter",
  3114. "type": "int",
  3115. "optional": false,
  3116. "field": "news_id",
  3117. "description": "<p>新闻ID</p>"
  3118. },
  3119. {
  3120. "group": "Parameter",
  3121. "type": "int",
  3122. "optional": true,
  3123. "field": "like",
  3124. "description": "<p>喜欢 (参数:1)</p>"
  3125. }
  3126. ]
  3127. }
  3128. },
  3129. "success": {
  3130. "examples": [
  3131. {
  3132. "title": "Success-Response:",
  3133. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}",
  3134. "type": "json"
  3135. }
  3136. ]
  3137. },
  3138. "error": {
  3139. "examples": [
  3140. {
  3141. "title": "Error-Response:",
  3142. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3143. "type": "json"
  3144. }
  3145. ]
  3146. },
  3147. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3148. "groupTitle": "Furniture",
  3149. "name": "GetApiFurnitureAddtolike"
  3150. },
  3151. {
  3152. "type": "get",
  3153. "url": "/api/furniture/getmorecomments",
  3154. "title": "获取全部评论/回复",
  3155. "description": "<p>获取全部评论/回复(getmorecomments)</p>",
  3156. "group": "Furniture",
  3157. "permission": [
  3158. {
  3159. "name": "none"
  3160. }
  3161. ],
  3162. "version": "0.1.0",
  3163. "parameter": {
  3164. "fields": {
  3165. "Parameter": [
  3166. {
  3167. "group": "Parameter",
  3168. "type": "int",
  3169. "optional": false,
  3170. "field": "store_id",
  3171. "description": "<p>商户id</p>"
  3172. },
  3173. {
  3174. "group": "Parameter",
  3175. "type": "int",
  3176. "optional": false,
  3177. "field": "id",
  3178. "description": "<p>评论/回复 id</p>"
  3179. }
  3180. ]
  3181. }
  3182. },
  3183. "success": {
  3184. "examples": [
  3185. {
  3186. "title": "Success-Response:",
  3187. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n comments\": {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 0, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n },\n \"comments_replys\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 13, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n \"replys\": {\n \"current_page\": 1,\n \"data\": [],\n \"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"from\": null,\n \"last_page\": 1,\n \"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://localhost:8082/api/furniture/news_detail\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": null,\n \"total\": 0\n}\n}\n],\n\"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"from\": 1,\n\"last_page\": 1,\n\"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"next_page_url\": null,\n\"path\": \"http://localhost:8082/api/furniture/news_detail\",\n\"per_page\": 5,\n\"prev_page_url\": null,\n\"to\": 1,\n\"total\": 1\n\n }\n}",
  3188. "type": "json"
  3189. }
  3190. ]
  3191. },
  3192. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3193. "groupTitle": "Furniture",
  3194. "name": "GetApiFurnitureGetmorecomments"
  3195. },
  3196. {
  3197. "type": "get",
  3198. "url": "/api/furniture/goods_list",
  3199. "title": "获取产品列表",
  3200. "description": "<p>获取产品列表(goods_list)</p>",
  3201. "group": "Furniture",
  3202. "permission": [
  3203. {
  3204. "name": "none"
  3205. }
  3206. ],
  3207. "version": "0.1.0",
  3208. "parameter": {
  3209. "fields": {
  3210. "Parameter": [
  3211. {
  3212. "group": "Parameter",
  3213. "type": "int",
  3214. "optional": false,
  3215. "field": "store_id",
  3216. "description": "<p>商户id 模拟值为1</p>"
  3217. }
  3218. ]
  3219. }
  3220. },
  3221. "success": {
  3222. "examples": [
  3223. {
  3224. "title": "Success-Response:",
  3225. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"goods_id\":12 //要跳转的小程序id\n \"name\": \"床垫测试\",\n \"img\": \"http://s1.xcx.com/upload/img/20180720/70f926022b933658d269106172e18bf0.png\",\n \"sort\": 99,\n \"status\": 1,\n \"store_id\": 1,\n \"created_at\": \"2018-07-20 14:56:42\",\n \"updated_at\": \"2018-07-20 17:36:23\",\n \"price\": 199\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/goods_list?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/goods_list?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/goods_list\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 4,\n \"total\": 4\n }\n}",
  3226. "type": "json"
  3227. }
  3228. ]
  3229. },
  3230. "error": {
  3231. "examples": [
  3232. {
  3233. "title": "Error-Response:",
  3234. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3235. "type": "json"
  3236. }
  3237. ]
  3238. },
  3239. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3240. "groupTitle": "Furniture",
  3241. "name": "GetApiFurnitureGoods_list"
  3242. },
  3243. {
  3244. "type": "get",
  3245. "url": "/api/furniture/newgoods_index",
  3246. "title": "新品发布详情",
  3247. "description": "<p>获取新品发布详情(news_index)</p>",
  3248. "group": "Furniture",
  3249. "permission": [
  3250. {
  3251. "name": "none"
  3252. }
  3253. ],
  3254. "version": "0.1.0",
  3255. "parameter": {
  3256. "fields": {
  3257. "Parameter": [
  3258. {
  3259. "group": "Parameter",
  3260. "type": "int",
  3261. "optional": false,
  3262. "field": "store_id",
  3263. "description": "<p>商户id 模拟值为1</p>"
  3264. },
  3265. {
  3266. "group": "Parameter",
  3267. "type": "int",
  3268. "optional": false,
  3269. "field": "id",
  3270. "description": "<p>新品id 模拟值为1</p>"
  3271. }
  3272. ]
  3273. }
  3274. },
  3275. "success": {
  3276. "examples": [
  3277. {
  3278. "title": "Success-Response:",
  3279. "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"newgoods\": {\n\"id\": 1,\n\"title\": \"新品测试1\", //标题\n\"thumb\": \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\", //缩略图\n\"content\": \"<p>这是一个新品测试</p>\", //详情\n\"comments_field_1\": \"外观\", //评价1字段名称\n\"comments_field_2\": \"实用性\",\n\"comments_field_3\": \"质感\",\n\"comments_field_4\": \"舒适度\",\n\"sort\": 100,\n\"created_at\": \"2018-12-20 10:13:14\",\n\"updated_at\": \"2018-12-20 10:13:14\",\n\"store_id\": 1,\n\"comments_avg_1\": \"5.0000\", //字段1平均分\n\"comments_avg_2\": \"4.0000\",\n\"comments_avg_3\": \"3.0000\",\n\"comments_avg_4\": \"3.0000\"\n},\n\"comments\": [\n{\n\"id\": 2,\n\"user_id\": 152,\n\"newgoods_id\": 1,\n\"comments_field_1\": 5, //字段1评分\n\"comments_field_2\": 4,\n\"comments_field_3\": 3,\n\"comments_field_4\": 3,\n\"content\": \"第一条评价\", //评价详情\n \"picture\": [ //图片\n \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\",\n \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\",\n \"https://t6.9026.com/upload/img/\"\n],\n\"response\": null, //商家回复\n\"created_at\": null,\n\"updated_at\": null,\n\"store_id\": 1,\n\"username\": \"哈哈哈\", //用户姓名\n\"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/yx8xw9O4WzvbGFLlqyRRNiciaNKM8V2wiasXrPCGUdB26D060FXUeIwiaAVzoOMibXUE9jhPkLsUz1UIpaTv71mYM4A/132\" //用户头像\n}\n]\n}\n}",
  3280. "type": "json"
  3281. }
  3282. ]
  3283. },
  3284. "error": {
  3285. "examples": [
  3286. {
  3287. "title": "Error-Response:",
  3288. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3289. "type": "json"
  3290. }
  3291. ]
  3292. },
  3293. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3294. "groupTitle": "Furniture",
  3295. "name": "GetApiFurnitureNewgoods_index"
  3296. },
  3297. {
  3298. "type": "get",
  3299. "url": "/api/furniture/newgoods_list",
  3300. "title": "新品发布列表",
  3301. "description": "<p>获取新品发布列表(news_list)</p>",
  3302. "group": "Furniture",
  3303. "permission": [
  3304. {
  3305. "name": "none"
  3306. }
  3307. ],
  3308. "version": "0.1.0",
  3309. "parameter": {
  3310. "fields": {
  3311. "Parameter": [
  3312. {
  3313. "group": "Parameter",
  3314. "type": "int",
  3315. "optional": false,
  3316. "field": "store_id",
  3317. "description": "<p>商户id 模拟值为1</p>"
  3318. }
  3319. ]
  3320. }
  3321. },
  3322. "success": {
  3323. "examples": [
  3324. {
  3325. "title": "Success-Response:",
  3326. "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"current_page\": 1,\n\"data\": [\n {\n \"id\": 1, //id\n \"title\": \"新品测试1\", //标题\n \"thumb\": \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\", //缩略图\n \"content\": \"<p>这是一个新品测试</p>\", //详情\n \"comments_field_1\": \"外观\", //用户自定义的评价字段\n \"comments_field_2\": \"实用性\",\n \"comments_field_3\": \"质感\",\n \"comments_field_4\": \"舒适度\",\n \"sort\": 100,\n \"created_at\": \"2018-12-20 10:13:14\",\n \"updated_at\": \"2018-12-20 10:13:14\",\n \"store_id\": 1,\n \"comments_total\": 2, //评价总量\n }\n ],\n \"first_page_url\": \"http://local.furniture.com/api/furniture/newgoods_list?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://local.furniture.com/api/furniture/newgoods_list?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://local.furniture.com/api/furniture/newgoods_list\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n}",
  3327. "type": "json"
  3328. }
  3329. ]
  3330. },
  3331. "error": {
  3332. "examples": [
  3333. {
  3334. "title": "Error-Response:",
  3335. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3336. "type": "json"
  3337. }
  3338. ]
  3339. },
  3340. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3341. "groupTitle": "Furniture",
  3342. "name": "GetApiFurnitureNewgoods_list"
  3343. },
  3344. {
  3345. "type": "get",
  3346. "url": "/api/furniture/news_detail",
  3347. "title": "获取新闻详情",
  3348. "description": "<p>获取新闻详情(news_detail)</p>",
  3349. "group": "Furniture",
  3350. "permission": [
  3351. {
  3352. "name": "none"
  3353. }
  3354. ],
  3355. "version": "0.1.0",
  3356. "parameter": {
  3357. "fields": {
  3358. "Parameter": [
  3359. {
  3360. "group": "Parameter",
  3361. "type": "int",
  3362. "optional": false,
  3363. "field": "store_id",
  3364. "description": "<p>商户id</p>"
  3365. },
  3366. {
  3367. "group": "Parameter",
  3368. "type": "int",
  3369. "optional": false,
  3370. "field": "newsid",
  3371. "description": "<p>新闻id</p>"
  3372. }
  3373. ]
  3374. }
  3375. },
  3376. "success": {
  3377. "examples": [
  3378. {
  3379. "title": "Success-Response:",
  3380. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n news\": {\n \"id\": 5,\n \"store_id\": 2,\n \"title\": \"测试时\",\n \"thumb\": null,\n \"content\": \"<p>啊师傅阿凡达</p>\",\n \"bad\": 0, //淘汰\n \"commonly\": 0, //一般\n \"like\": 0, //喜欢\n \"viewed\": 0, //浏览次数\n \"sort\": 87,\n \"created_at\": \"2018-05-28 09:33:01\",\n \"updated_at\": \"2018-05-28 09:33:01\",\n \"avatar\": \"https://u3.9026.com/upload/common/20171013/137d21eb6dbaca67475c8ca27640dcfc.png\"\n },\n \"news_comments\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 0, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n \"replys\": {\n \"current_page\": 1,\n \"data\": [],\n \"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"from\": null,\n \"last_page\": 1,\n \"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://localhost:8082/api/furniture/news_detail\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": null,\n \"total\": 0\n}\n}\n],\n\"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"from\": 1,\n\"last_page\": 1,\n\"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"next_page_url\": null,\n\"path\": \"http://localhost:8082/api/furniture/news_detail\",\n\"per_page\": 5,\n\"prev_page_url\": null,\n\"to\": 1,\n\"total\": 1\n\n }\n}",
  3381. "type": "json"
  3382. }
  3383. ]
  3384. },
  3385. "error": {
  3386. "examples": [
  3387. {
  3388. "title": "Error-Response:",
  3389. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3390. "type": "json"
  3391. }
  3392. ]
  3393. },
  3394. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3395. "groupTitle": "Furniture",
  3396. "name": "GetApiFurnitureNews_detail"
  3397. },
  3398. {
  3399. "type": "get",
  3400. "url": "/api/furniture/news_list",
  3401. "title": "获取新闻列表",
  3402. "description": "<p>获取新闻列表(news_list)</p>",
  3403. "group": "Furniture",
  3404. "permission": [
  3405. {
  3406. "name": "none"
  3407. }
  3408. ],
  3409. "version": "0.1.0",
  3410. "parameter": {
  3411. "fields": {
  3412. "Parameter": [
  3413. {
  3414. "group": "Parameter",
  3415. "type": "int",
  3416. "optional": false,
  3417. "field": "store_id",
  3418. "description": "<p>商户id 模拟值为1</p>"
  3419. }
  3420. ]
  3421. }
  3422. },
  3423. "success": {
  3424. "examples": [
  3425. {
  3426. "title": "Success-Response:",
  3427. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1, //当前页\n \"data\": [\n...\n {\n \"id\": 1,\n \"store_id\": 1,\n \"title\": \"123123\",\n \"thumb\": \"http://s1.xcx.com/upload/agent_pic/20180702/19b0e148f1c9f2b6c3667c81bb06a687.jpg\",\n \"content\": \"<p>1232123123123</p>\",\n \"bad\": 0,\n \"commonly\": 0,\n \"like\": 0,\n \"viewed\": 133,\n \"sort\": 127,\n \"created_at\": \"2018-05-24 15:21:42\",\n \"updated_at\": \"2018-07-20 16:58:48\"\n },\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/news_list?page=1\", //首页url\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/news_list?page=1\", //尾页url\n \"next_page_url\": null, //下一页url\n \"path\": \"http://s1.xcx.com/api/furniture/news_list\",\n \"per_page\": 5,\n \"prev_page_url\": null, //上一页url\n \"to\": 3,\n \"total\": 3\n\n }\n}",
  3428. "type": "json"
  3429. }
  3430. ]
  3431. },
  3432. "error": {
  3433. "examples": [
  3434. {
  3435. "title": "Error-Response:",
  3436. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3437. "type": "json"
  3438. }
  3439. ]
  3440. },
  3441. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3442. "groupTitle": "Furniture",
  3443. "name": "GetApiFurnitureNews_list"
  3444. },
  3445. {
  3446. "type": "post",
  3447. "url": "/api/furniture/newgoods_addbooking",
  3448. "title": "新品发布添加预售",
  3449. "description": "<p>添加预售(newgoods_addbooking)</p>",
  3450. "group": "Furniture",
  3451. "permission": [
  3452. {
  3453. "name": "passport"
  3454. }
  3455. ],
  3456. "version": "0.1.0",
  3457. "parameter": {
  3458. "fields": {
  3459. "Parameter": [
  3460. {
  3461. "group": "Parameter",
  3462. "type": "int",
  3463. "optional": false,
  3464. "field": "store_id",
  3465. "description": "<p>商户id 模拟值为1</p>"
  3466. },
  3467. {
  3468. "group": "Parameter",
  3469. "type": "int",
  3470. "optional": false,
  3471. "field": "newgoods_id",
  3472. "description": "<p>新品id 模拟值为1</p>"
  3473. },
  3474. {
  3475. "group": "Parameter",
  3476. "type": "int",
  3477. "optional": false,
  3478. "field": "phone",
  3479. "description": "<p>电话</p>"
  3480. },
  3481. {
  3482. "group": "Parameter",
  3483. "type": "string",
  3484. "optional": false,
  3485. "field": "receiver_name",
  3486. "description": "<p>姓名</p>"
  3487. },
  3488. {
  3489. "group": "Parameter",
  3490. "type": "string",
  3491. "optional": false,
  3492. "field": "receiver_address",
  3493. "description": "<p>地址</p>"
  3494. }
  3495. ]
  3496. }
  3497. },
  3498. "success": {
  3499. "examples": [
  3500. {
  3501. "title": "Success-Response:",
  3502. "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"store_id\": \"1\",\n\"newgoods_id\": \"1\",\n\"phone\": 15178654534,\n\"receiver_name\": '陈',\n\"receiver_address\": '丽都路700号',\n\"updated_at\": \"2018-12-20 16:56:46\",\n\"created_at\": \"2018-12-20 16:56:46\",\n\"id\": 3\n}\n}",
  3503. "type": "json"
  3504. }
  3505. ]
  3506. },
  3507. "error": {
  3508. "examples": [
  3509. {
  3510. "title": "Error-Response:",
  3511. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3512. "type": "json"
  3513. }
  3514. ]
  3515. },
  3516. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3517. "groupTitle": "Furniture",
  3518. "name": "PostApiFurnitureNewgoods_addbooking"
  3519. },
  3520. {
  3521. "type": "post",
  3522. "url": "/api/furniture/newgoods_addcomment",
  3523. "title": "新品发布添加评论",
  3524. "description": "<p>添加评论(newgoods_addcomment)</p>",
  3525. "group": "Furniture",
  3526. "permission": [
  3527. {
  3528. "name": "passport"
  3529. }
  3530. ],
  3531. "version": "0.1.0",
  3532. "parameter": {
  3533. "fields": {
  3534. "Parameter": [
  3535. {
  3536. "group": "Parameter",
  3537. "type": "int",
  3538. "optional": false,
  3539. "field": "store_id",
  3540. "description": "<p>商户id 模拟值为1</p>"
  3541. },
  3542. {
  3543. "group": "Parameter",
  3544. "type": "int",
  3545. "optional": false,
  3546. "field": "newgoods_id",
  3547. "description": "<p>新品id 模拟值为1</p>"
  3548. },
  3549. {
  3550. "group": "Parameter",
  3551. "type": "int",
  3552. "optional": false,
  3553. "field": "comments_field_1",
  3554. "description": "<p>字段1评分 1-5</p>"
  3555. },
  3556. {
  3557. "group": "Parameter",
  3558. "type": "int",
  3559. "optional": false,
  3560. "field": "comments_field_2",
  3561. "description": "<p>字段1评分 1-5</p>"
  3562. },
  3563. {
  3564. "group": "Parameter",
  3565. "type": "int",
  3566. "optional": false,
  3567. "field": "comments_field_3",
  3568. "description": "<p>字段1评分 1-5</p>"
  3569. },
  3570. {
  3571. "group": "Parameter",
  3572. "type": "int",
  3573. "optional": false,
  3574. "field": "comments_field_4",
  3575. "description": "<p>字段1评分 1-5</p>"
  3576. },
  3577. {
  3578. "group": "Parameter",
  3579. "type": "string",
  3580. "optional": true,
  3581. "field": "content",
  3582. "description": "<p>评论详情</p>"
  3583. },
  3584. {
  3585. "group": "Parameter",
  3586. "type": "array",
  3587. "optional": true,
  3588. "field": "picture",
  3589. "description": "<p>图片</p>"
  3590. }
  3591. ]
  3592. }
  3593. },
  3594. "success": {
  3595. "examples": [
  3596. {
  3597. "title": "Success-Response:",
  3598. "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"store_id\": \"1\",\n\"newgoods_id\": \"1\",\n\"comments_field_1\": \"3\",\n\"comments_field_2\": \"4\",\n\"comments_field_3\": \"5\",\n\"comments_field_4\": \"2\",\n\"user_id\": 151,\n\"updated_at\": \"2018-12-20 16:56:46\",\n\"created_at\": \"2018-12-20 16:56:46\",\n\"id\": 3\n}\n}",
  3599. "type": "json"
  3600. }
  3601. ]
  3602. },
  3603. "error": {
  3604. "examples": [
  3605. {
  3606. "title": "Error-Response:",
  3607. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3608. "type": "json"
  3609. }
  3610. ]
  3611. },
  3612. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3613. "groupTitle": "Furniture",
  3614. "name": "PostApiFurnitureNewgoods_addcomment"
  3615. },
  3616. {
  3617. "type": "post",
  3618. "url": "/api/furniture/setting",
  3619. "title": "首页基本设置",
  3620. "description": "<p>首页基本设置</p>",
  3621. "group": "Furniture",
  3622. "permission": [
  3623. {
  3624. "name": "none"
  3625. }
  3626. ],
  3627. "version": "0.1.0",
  3628. "parameter": {
  3629. "fields": {
  3630. "Parameter": [
  3631. {
  3632. "group": "Parameter",
  3633. "type": "string",
  3634. "optional": false,
  3635. "field": "store_id",
  3636. "description": "<p>店铺ID</p>"
  3637. }
  3638. ]
  3639. }
  3640. },
  3641. "success": {
  3642. "examples": [
  3643. {
  3644. "title": "Success-Response:",
  3645. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"setting\": {\n \"name\": \"某某厂家\",\n \"goods_app_id\": \"afdasfa\", //商品要跳转的appid\n \"goods_app_path\": \"page/goods/goods\", //商品要跳转的url\n \"illustrated_name\": \"在线画册\",\n \"avatar\": \"http://s1.xcx.com/upload/s1test/20180716/bb123f13bf8a42f0a86b55e7bf861400.png\",\n \"notice\": \"这是一条公告测试!\",\n \"advertising_pic\": \"\"\n },\n \"banner\": [ //轮播图\n...\n {\n \"id\": 4,\n \"store_id\": 1,\n \"pic_url\": \"https://u3.9026.com/upload/temp_pic/20171013/da1d53cd93bfa4c8ed34939314ca18fb.jpg\",\n \"title\": \"轮播图测试\",\n \"page_url\": \"news/news\",\n \"sort\": 87,\n }\n...\n ],\n \"navbar\": [ //底部导航栏\n...\n {\n \"id\": 9,\n \"store_id\": 1,\n \"name\": \"联系我们\",\n \"url\": \"/pages/index/index\",\n \"open_type\": \"1\",\n \"pic_url\": \"http://s1.xcx.com/upload/agent_show/20180702/7e638f0ca464f8096fba8a658b49d556.png\",\n \"sort\": 100,\n \"created_at\": \"2018-07-16 16:05:29\",\n \"updated_at\": \"2018-07-20 18:08:37\",\n \"deleted_at\": null,\n \"mobile\": \"13407570861\",\n \"address\": null,\n \"app_id\": null,\n \"state\": 0,\n \"lon\": null,\n \"lat\": null\n }\n...\n ],\n\"menus\": [ //顶部导航栏\n...\n {\n \"id\": 9,\n \"store_id\": 1,\n \"name\": \"联系我们\",\n \"url\": \"/pages/index/index\",\n \"open_type\": \"1\",\n \"pic_url\": \"http://s1.xcx.com/upload/agent_show/20180702/7e638f0ca464f8096fba8a658b49d556.png\",\n \"sort\": 100,\n \"created_at\": \"2018-07-16 16:05:29\",\n \"updated_at\": \"2018-07-20 18:08:37\",\n \"deleted_at\": null,\n \"mobile\": \"13407570861\",\n \"address\": null,\n \"app_id\": null,\n \"state\": 1,\n \"lon\": null,\n \"lat\": null\n }\n...\n ]\n\n }\n}",
  3646. "type": "json"
  3647. }
  3648. ]
  3649. },
  3650. "error": {
  3651. "examples": [
  3652. {
  3653. "title": "Error-Response:",
  3654. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3655. "type": "json"
  3656. }
  3657. ]
  3658. },
  3659. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3660. "groupTitle": "Furniture",
  3661. "name": "PostApiFurnitureSetting"
  3662. },
  3663. {
  3664. "type": "get",
  3665. "url": "/api/furniture/getattr",
  3666. "title": "获取产品属性",
  3667. "description": "<p>获取产品属性</p>",
  3668. "group": "Furniture_Service",
  3669. "permission": [
  3670. {
  3671. "name": "none"
  3672. }
  3673. ],
  3674. "version": "0.1.0",
  3675. "parameter": {
  3676. "fields": {
  3677. "Parameter": [
  3678. {
  3679. "group": "Parameter",
  3680. "type": "string",
  3681. "optional": false,
  3682. "field": "store_id",
  3683. "description": ""
  3684. },
  3685. {
  3686. "group": "Parameter",
  3687. "type": "string",
  3688. "optional": true,
  3689. "field": "id",
  3690. "description": "<p>默认获取品类,传品类id获取该品类的型号,传型号id获取该型号的颜色</p>"
  3691. }
  3692. ]
  3693. }
  3694. },
  3695. "success": {
  3696. "examples": [
  3697. {
  3698. "title": "Success-Response:",
  3699. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n...\n {\n \"id\": 1,\n \"name\": \"冰箱\",\n \"pid\": 0,\n \"attr_type\": 0,\n \"sort\": 100,\n \"store_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-06-28 02:55:26\",\n \"updated_at\": \"2018-06-28 02:59:29\"\n },\n...\n ]\n}",
  3700. "type": "json"
  3701. }
  3702. ]
  3703. },
  3704. "error": {
  3705. "examples": [
  3706. {
  3707. "title": "Error-Response:",
  3708. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3709. "type": "json"
  3710. }
  3711. ]
  3712. },
  3713. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3714. "groupTitle": "Furniture_Service",
  3715. "name": "GetApiFurnitureGetattr"
  3716. },
  3717. {
  3718. "type": "get",
  3719. "url": "/api/furniture/getfurnitureads",
  3720. "title": "获取首页广告",
  3721. "description": "<p>获取首页广告</p>",
  3722. "group": "Furniture_Service",
  3723. "permission": [
  3724. {
  3725. "name": "none"
  3726. }
  3727. ],
  3728. "version": "0.1.0",
  3729. "parameter": {
  3730. "fields": {
  3731. "Parameter": [
  3732. {
  3733. "group": "Parameter",
  3734. "type": "string",
  3735. "optional": false,
  3736. "field": "store_id",
  3737. "description": ""
  3738. }
  3739. ]
  3740. }
  3741. },
  3742. "success": {
  3743. "examples": [
  3744. {
  3745. "title": "Success-Response:",
  3746. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"furniture_ads_pic\": \"http://s1.xcx.com/upload/img/20180720/70f926022b933658d269106172e18bf0.png\"\n }\n}",
  3747. "type": "json"
  3748. }
  3749. ]
  3750. },
  3751. "error": {
  3752. "examples": [
  3753. {
  3754. "title": "Error-Response:",
  3755. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3756. "type": "json"
  3757. }
  3758. ]
  3759. },
  3760. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3761. "groupTitle": "Furniture_Service",
  3762. "name": "GetApiFurnitureGetfurnitureads"
  3763. },
  3764. {
  3765. "type": "get",
  3766. "url": "/api/furniture/getorder",
  3767. "title": "获取订单信息",
  3768. "description": "<p>获取订单</p>",
  3769. "group": "Furniture_Service",
  3770. "permission": [
  3771. {
  3772. "name": "none"
  3773. }
  3774. ],
  3775. "version": "0.1.0",
  3776. "parameter": {
  3777. "fields": {
  3778. "Parameter": [
  3779. {
  3780. "group": "Parameter",
  3781. "type": "string",
  3782. "optional": false,
  3783. "field": "store_id",
  3784. "description": ""
  3785. },
  3786. {
  3787. "group": "Parameter",
  3788. "type": "string",
  3789. "optional": true,
  3790. "field": "user_id",
  3791. "description": "<p>(填写user_id,查询用户个人订单,不填则查询店铺订单)</p>"
  3792. },
  3793. {
  3794. "group": "Parameter",
  3795. "type": "string",
  3796. "optional": true,
  3797. "field": "status",
  3798. "description": "<p>(可填) (选填 0:待审核;1:待生产;2:生产中;3:待发货;4:运输中/未签收 5:已签收/待评价 6:已评价 7:已取消 null:全部订单 8:生产部全部订单/个人待发货订单 9:包装部全部订单)</p>"
  3799. },
  3800. {
  3801. "group": "Parameter",
  3802. "type": "string",
  3803. "optional": true,
  3804. "field": "expected",
  3805. "description": "<p>(1:查询逾期的订单)</p>"
  3806. }
  3807. ]
  3808. }
  3809. },
  3810. "success": {
  3811. "examples": [
  3812. {
  3813. "title": "Success-Response:",
  3814. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"picture\": \"1.ipg\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null,\n \"store_id\": 1,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\"\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/getorder\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2 //订单数量\n }\n}",
  3815. "type": "json"
  3816. }
  3817. ]
  3818. },
  3819. "error": {
  3820. "examples": [
  3821. {
  3822. "title": "Error-Response:",
  3823. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3824. "type": "json"
  3825. }
  3826. ]
  3827. },
  3828. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3829. "groupTitle": "Furniture_Service",
  3830. "name": "GetApiFurnitureGetorder"
  3831. },
  3832. {
  3833. "type": "get",
  3834. "url": "/api/furniture/getorderdetail",
  3835. "title": "获取订单详情",
  3836. "description": "<p>获取订单详情</p>",
  3837. "group": "Furniture_Service",
  3838. "permission": [
  3839. {
  3840. "name": "Passport"
  3841. }
  3842. ],
  3843. "version": "0.1.0",
  3844. "parameter": {
  3845. "fields": {
  3846. "Parameter": [
  3847. {
  3848. "group": "Parameter",
  3849. "type": "string",
  3850. "optional": false,
  3851. "field": "store_id",
  3852. "description": ""
  3853. },
  3854. {
  3855. "group": "Parameter",
  3856. "type": "string",
  3857. "optional": false,
  3858. "field": "order_id",
  3859. "description": ""
  3860. }
  3861. ]
  3862. }
  3863. },
  3864. "success": {
  3865. "examples": [
  3866. {
  3867. "title": "Success-Response:",
  3868. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"order\": { //订单详情\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null, //备注\n \"store_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\",\n \"pcture\": [\n \"1.png\",\n \"2.png\"\n ]\n },\n \"progress\": [ //订单进度\n...\n {\n \"created_at\": \"2018-08-02 17:31:14\",\n \"description\": \"订单已提交,等待审核\",\n \"status\": 0\n }\n...\n ],\n \"parts\": [ //订单配件\n...\n {\n \"name\": \"螺丝刀\",\n \"count\": 1\n },\n...\n ]\n }\n}",
  3869. "type": "json"
  3870. }
  3871. ]
  3872. },
  3873. "error": {
  3874. "examples": [
  3875. {
  3876. "title": "Error-Response:",
  3877. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3878. "type": "json"
  3879. }
  3880. ]
  3881. },
  3882. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3883. "groupTitle": "Furniture_Service",
  3884. "name": "GetApiFurnitureGetorderdetail"
  3885. },
  3886. {
  3887. "type": "get",
  3888. "url": "/api/furniture/getprogress",
  3889. "title": "订单进度统计",
  3890. "description": "<p>订单进度统计</p>",
  3891. "group": "Furniture_Service",
  3892. "permission": [
  3893. {
  3894. "name": "none"
  3895. }
  3896. ],
  3897. "version": "0.1.0",
  3898. "parameter": {
  3899. "fields": {
  3900. "Parameter": [
  3901. {
  3902. "group": "Parameter",
  3903. "type": "string",
  3904. "optional": false,
  3905. "field": "store_id",
  3906. "description": ""
  3907. },
  3908. {
  3909. "group": "Parameter",
  3910. "type": "string",
  3911. "optional": true,
  3912. "field": "user_id",
  3913. "description": "<p>(查询用户个人各个订单状态数量时带上此参数)</p>"
  3914. },
  3915. {
  3916. "group": "Parameter",
  3917. "type": "string",
  3918. "optional": true,
  3919. "field": "status",
  3920. "description": "<p>( 0:待审核;1:待生产;2:生产中;3:待发货;4:未签收,不填写则返回所有状态下的订单数量)</p>"
  3921. },
  3922. {
  3923. "group": "Parameter",
  3924. "type": "string",
  3925. "optional": true,
  3926. "field": "expected",
  3927. "description": "<p>1:逾期)</p>"
  3928. }
  3929. ]
  3930. }
  3931. },
  3932. "success": {
  3933. "examples": [
  3934. {
  3935. "title": "Success-Response:",
  3936. "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"\"count\": [\n {\n \"status\": 0, //订单状态\n \"total\": 1 //改状态订单数量\n },\n {\n \"status\": 1,\n \"total\": ''\n },\n \"status\": 2,\n \"total\": ''\n },\n \"status\": 3,\n \"total\": ''\n },\n \"status\": 4,\n \"total\": ''\n },\n {\n \"expected\": 1,\n \"total\": 1\n }\n ]\n }\n}",
  3937. "type": "json"
  3938. },
  3939. {
  3940. "title": "Success-Response:",
  3941. "content": "HTTP/1.1 200 OK 具体状态下统计图\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"count\": [\n...\n {\n \"customer_name\": \"\", //联系人姓名\n \"days\": \"\" //该状态维持天数\n }\n...\n ]\n }\n}",
  3942. "type": "json"
  3943. }
  3944. ]
  3945. },
  3946. "error": {
  3947. "examples": [
  3948. {
  3949. "title": "Error-Response:",
  3950. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  3951. "type": "json"
  3952. }
  3953. ]
  3954. },
  3955. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  3956. "groupTitle": "Furniture_Service",
  3957. "name": "GetApiFurnitureGetprogress"
  3958. },
  3959. {
  3960. "type": "get",
  3961. "url": "/api/furniture/getreviewcount",
  3962. "title": "评价统计",
  3963. "description": "<p>评价统计</p>",
  3964. "group": "Furniture_Service",
  3965. "permission": [
  3966. {
  3967. "name": "none"
  3968. }
  3969. ],
  3970. "version": "0.1.0",
  3971. "parameter": {
  3972. "fields": {
  3973. "Parameter": [
  3974. {
  3975. "group": "Parameter",
  3976. "type": "string",
  3977. "optional": false,
  3978. "field": "store_id",
  3979. "description": ""
  3980. },
  3981. {
  3982. "group": "Parameter",
  3983. "type": "string",
  3984. "optional": true,
  3985. "field": "days",
  3986. "description": "<p>(必填 0:今天;7:7天内;30:30天内</p>"
  3987. }
  3988. ]
  3989. }
  3990. },
  3991. "success": {
  3992. "examples": [
  3993. {
  3994. "title": "Success-Response:",
  3995. "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"verifier\": [ //客服部\n {\n \"verifier_review\": 0, 评价等级:0:好评 1:中评 2:差评\n \"verifier\": 7 评价数量\n },\n {\n \"verifier_review\": 1,\n \"verifier\": 5\n },\n ],\n \"producer\": [ //生产部\n {\n \"producer_review\": 0,\n \"producer\": 1\n },\n ...\n ],\n \"packer\": [ //包装部\n {\n \"producer_review\": 0,\n \"producer\": 1\n },\n ...\n ]\n }\n}",
  3996. "type": "json"
  3997. }
  3998. ]
  3999. },
  4000. "error": {
  4001. "examples": [
  4002. {
  4003. "title": "Error-Response:",
  4004. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4005. "type": "json"
  4006. }
  4007. ]
  4008. },
  4009. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4010. "groupTitle": "Furniture_Service",
  4011. "name": "GetApiFurnitureGetreviewcount"
  4012. },
  4013. {
  4014. "type": "get",
  4015. "url": "/api/furniture/ordercount",
  4016. "title": "按产品/品类统计",
  4017. "description": "<p>按产品/品类统计</p>",
  4018. "group": "Furniture_Service",
  4019. "permission": [
  4020. {
  4021. "name": "none"
  4022. }
  4023. ],
  4024. "version": "0.1.0",
  4025. "parameter": {
  4026. "fields": {
  4027. "Parameter": [
  4028. {
  4029. "group": "Parameter",
  4030. "type": "string",
  4031. "optional": false,
  4032. "field": "store_id",
  4033. "description": ""
  4034. },
  4035. {
  4036. "group": "Parameter",
  4037. "type": "string",
  4038. "optional": true,
  4039. "field": "type",
  4040. "description": "<p>按产品统计,可选值:1</p>"
  4041. },
  4042. {
  4043. "group": "Parameter",
  4044. "type": "string",
  4045. "optional": true,
  4046. "field": "category",
  4047. "description": "<p>按品类统计,与type二选一,不能与type同时传值。可选值:1(所有品类)具体品类的值(统计具体品类)</p>"
  4048. },
  4049. {
  4050. "group": "Parameter",
  4051. "type": "string",
  4052. "optional": true,
  4053. "field": "days",
  4054. "description": "<p>可选:0,7,30</p>"
  4055. }
  4056. ]
  4057. }
  4058. },
  4059. "success": {
  4060. "examples": [
  4061. {
  4062. "title": "Success-Response:",
  4063. "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n...\n {\n \"days\": \"2018-07-03\", //日期\n \"count\": 2, //数量\n \"category\": \"冰箱\", //品类\n \"type\": \"s1002\" //产品型号\n },\n...\n }\n}",
  4064. "type": "json"
  4065. }
  4066. ]
  4067. },
  4068. "error": {
  4069. "examples": [
  4070. {
  4071. "title": "Error-Response:",
  4072. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4073. "type": "json"
  4074. }
  4075. ]
  4076. },
  4077. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4078. "groupTitle": "Furniture_Service",
  4079. "name": "GetApiFurnitureOrdercount"
  4080. },
  4081. {
  4082. "type": "get",
  4083. "url": "/api/furniture/searchlist",
  4084. "title": "产品订单搜索列表页",
  4085. "description": "<p>产品订单搜索列表页</p>",
  4086. "group": "Furniture_Service",
  4087. "permission": [
  4088. {
  4089. "name": "none"
  4090. }
  4091. ],
  4092. "version": "0.1.0",
  4093. "parameter": {
  4094. "fields": {
  4095. "Parameter": [
  4096. {
  4097. "group": "Parameter",
  4098. "type": "string",
  4099. "optional": false,
  4100. "field": "store_id",
  4101. "description": ""
  4102. },
  4103. {
  4104. "group": "Parameter",
  4105. "type": "string",
  4106. "optional": true,
  4107. "field": "keyword",
  4108. "description": "<p>搜索关键字</p>"
  4109. }
  4110. ]
  4111. }
  4112. },
  4113. "success": {
  4114. "examples": [
  4115. {
  4116. "title": "Success-Response:",
  4117. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"picture\": \"1.ipg\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null,\n \"store_id\": 1,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\"\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/getorder\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2 //订单数量\n }\n}",
  4118. "type": "json"
  4119. }
  4120. ]
  4121. },
  4122. "error": {
  4123. "examples": [
  4124. {
  4125. "title": "Error-Response:",
  4126. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4127. "type": "json"
  4128. }
  4129. ]
  4130. },
  4131. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4132. "groupTitle": "Furniture_Service",
  4133. "name": "GetApiFurnitureSearchlist"
  4134. },
  4135. {
  4136. "type": "post",
  4137. "url": "/api/furniture/addreview",
  4138. "title": "添加评论",
  4139. "description": "<p>添加评论</p>",
  4140. "group": "Furniture_Service",
  4141. "permission": [
  4142. {
  4143. "name": "Passport"
  4144. }
  4145. ],
  4146. "version": "0.1.0",
  4147. "parameter": {
  4148. "fields": {
  4149. "Parameter": [
  4150. {
  4151. "group": "Parameter",
  4152. "type": "string",
  4153. "optional": false,
  4154. "field": "store_id",
  4155. "description": ""
  4156. },
  4157. {
  4158. "group": "Parameter",
  4159. "type": "int",
  4160. "optional": false,
  4161. "field": "order_id",
  4162. "description": ""
  4163. },
  4164. {
  4165. "group": "Parameter",
  4166. "type": "int",
  4167. "optional": false,
  4168. "field": "verifier_review",
  4169. "description": "<p>客服部评论:0:好评;1:中评:2:差评</p>"
  4170. },
  4171. {
  4172. "group": "Parameter",
  4173. "type": "int",
  4174. "optional": false,
  4175. "field": "producer_review",
  4176. "description": "<p>生产部部评论:0:好评;1:中评:2:差评</p>"
  4177. },
  4178. {
  4179. "group": "Parameter",
  4180. "type": "int",
  4181. "optional": false,
  4182. "field": "packer_review",
  4183. "description": "<p>包装部评论:0:好评;1:中评:2:差评</p>"
  4184. },
  4185. {
  4186. "group": "Parameter",
  4187. "type": "int",
  4188. "optional": true,
  4189. "field": "description",
  4190. "description": "<p>评论描述</p>"
  4191. },
  4192. {
  4193. "group": "Parameter",
  4194. "type": "int",
  4195. "optional": true,
  4196. "field": "picture",
  4197. "description": "<p>图片</p>"
  4198. }
  4199. ]
  4200. }
  4201. },
  4202. "success": {
  4203. "examples": [
  4204. {
  4205. "title": "Success-Response:",
  4206. "content": "HTTP/1.1 200 OK 添加评论成功\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"store_id\": \"1\",\n \"verifier_review\": \"0\",\n \"producer_review\": \"0\",\n \"packer_review\": \"1\",\n \"order_id\": \"1\",\n \"updated_at\": \"2018-07-26 15:03:33\",\n \"created_at\": \"2018-07-26 15:03:33\",\n \"id\": 5\n }\n}",
  4207. "type": "json"
  4208. }
  4209. ]
  4210. },
  4211. "error": {
  4212. "examples": [
  4213. {
  4214. "title": "Error-Response:",
  4215. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4216. "type": "json"
  4217. }
  4218. ]
  4219. },
  4220. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4221. "groupTitle": "Furniture_Service",
  4222. "name": "PostApiFurnitureAddreview"
  4223. },
  4224. {
  4225. "type": "post",
  4226. "url": "/api/furniture/createorder",
  4227. "title": "创建售后订单",
  4228. "description": "<p>创建售后订单</p>",
  4229. "group": "Furniture_Service",
  4230. "permission": [
  4231. {
  4232. "name": "Passport"
  4233. }
  4234. ],
  4235. "version": "0.1.0",
  4236. "parameter": {
  4237. "fields": {
  4238. "Parameter": [
  4239. {
  4240. "group": "Parameter",
  4241. "type": "string",
  4242. "optional": false,
  4243. "field": "store_id",
  4244. "description": "<p>Store_id</p>"
  4245. },
  4246. {
  4247. "group": "Parameter",
  4248. "type": "string",
  4249. "optional": false,
  4250. "field": "category",
  4251. "description": "<p>产品类别</p>"
  4252. },
  4253. {
  4254. "group": "Parameter",
  4255. "type": "string",
  4256. "optional": false,
  4257. "field": "type",
  4258. "description": "<p>产品型号</p>"
  4259. },
  4260. {
  4261. "group": "Parameter",
  4262. "type": "string",
  4263. "optional": true,
  4264. "field": "color",
  4265. "description": "<p>产品颜色</p>"
  4266. },
  4267. {
  4268. "group": "Parameter",
  4269. "type": "string",
  4270. "optional": false,
  4271. "field": "question",
  4272. "description": "<p>问题描述</p>"
  4273. },
  4274. {
  4275. "group": "Parameter",
  4276. "type": "string",
  4277. "optional": true,
  4278. "field": "picture",
  4279. "description": "<p>图片</p>"
  4280. },
  4281. {
  4282. "group": "Parameter",
  4283. "type": "string",
  4284. "optional": false,
  4285. "field": "customer_name",
  4286. "description": "<p>联系人姓名</p>"
  4287. },
  4288. {
  4289. "group": "Parameter",
  4290. "type": "string",
  4291. "optional": false,
  4292. "field": "customer_phone",
  4293. "description": "<p>联系人电话</p>"
  4294. },
  4295. {
  4296. "group": "Parameter",
  4297. "type": "string",
  4298. "optional": false,
  4299. "field": "customer_address",
  4300. "description": "<p>联系人地址</p>"
  4301. }
  4302. ]
  4303. }
  4304. },
  4305. "success": {
  4306. "examples": [
  4307. {
  4308. "title": "Success-Response:",
  4309. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"category\": [\n\n ]\n }\n}",
  4310. "type": "json"
  4311. }
  4312. ]
  4313. },
  4314. "error": {
  4315. "examples": [
  4316. {
  4317. "title": "Error-Response:",
  4318. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4319. "type": "json"
  4320. }
  4321. ]
  4322. },
  4323. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4324. "groupTitle": "Furniture_Service",
  4325. "name": "PostApiFurnitureCreateorder"
  4326. },
  4327. {
  4328. "type": "post",
  4329. "url": "/api/furniture/getphonenumber",
  4330. "title": "获取手机号",
  4331. "description": "<p>获取手机号</p>",
  4332. "group": "Furniture_Service",
  4333. "permission": [
  4334. {
  4335. "name": "none"
  4336. }
  4337. ],
  4338. "version": "0.1.0",
  4339. "parameter": {
  4340. "fields": {
  4341. "Parameter": [
  4342. {
  4343. "group": "Parameter",
  4344. "type": "string",
  4345. "optional": false,
  4346. "field": "store_id",
  4347. "description": ""
  4348. },
  4349. {
  4350. "group": "Parameter",
  4351. "type": "string",
  4352. "optional": false,
  4353. "field": "session_key",
  4354. "description": ""
  4355. },
  4356. {
  4357. "group": "Parameter",
  4358. "type": "string",
  4359. "optional": false,
  4360. "field": "iv",
  4361. "description": ""
  4362. },
  4363. {
  4364. "group": "Parameter",
  4365. "type": "string",
  4366. "optional": false,
  4367. "field": "encryptData",
  4368. "description": ""
  4369. }
  4370. ]
  4371. }
  4372. },
  4373. "success": {
  4374. "examples": [
  4375. {
  4376. "title": "Success-Response:",
  4377. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"decryptedData\": [\n\n ]\n\n }\n\n}",
  4378. "type": "json"
  4379. }
  4380. ]
  4381. },
  4382. "error": {
  4383. "examples": [
  4384. {
  4385. "title": "Error-Response:",
  4386. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4387. "type": "json"
  4388. }
  4389. ]
  4390. },
  4391. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4392. "groupTitle": "Furniture_Service",
  4393. "name": "PostApiFurnitureGetphonenumber"
  4394. },
  4395. {
  4396. "type": "post",
  4397. "url": "/api/furniture/printorder",
  4398. "title": "打印订单",
  4399. "description": "<p>打印订单</p>",
  4400. "group": "Furniture_Service",
  4401. "permission": [
  4402. {
  4403. "name": "none"
  4404. }
  4405. ],
  4406. "version": "0.1.0",
  4407. "parameter": {
  4408. "fields": {
  4409. "Parameter": [
  4410. {
  4411. "group": "Parameter",
  4412. "type": "string",
  4413. "optional": false,
  4414. "field": "store_id",
  4415. "description": ""
  4416. },
  4417. {
  4418. "group": "Parameter",
  4419. "type": "string",
  4420. "optional": false,
  4421. "field": "order_id",
  4422. "description": ""
  4423. },
  4424. {
  4425. "group": "Parameter",
  4426. "type": "int",
  4427. "optional": false,
  4428. "field": "role",
  4429. "description": "<p>1:生产部</p>"
  4430. }
  4431. ]
  4432. }
  4433. },
  4434. "success": {
  4435. "examples": [
  4436. {
  4437. "title": "Success-Response:",
  4438. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"code\": 200,\n \"msg\": \"打印成功!\"\n }\n}",
  4439. "type": "json"
  4440. }
  4441. ]
  4442. },
  4443. "error": {
  4444. "examples": [
  4445. {
  4446. "title": "Error-Response:",
  4447. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4448. "type": "json"
  4449. }
  4450. ]
  4451. },
  4452. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4453. "groupTitle": "Furniture_Service",
  4454. "name": "PostApiFurniturePrintorder"
  4455. },
  4456. {
  4457. "type": "post",
  4458. "url": "/api/furniture/saveformid",
  4459. "title": "保存formid",
  4460. "description": "<p>保存formid</p>",
  4461. "group": "Furniture_Service",
  4462. "permission": [
  4463. {
  4464. "name": "none"
  4465. }
  4466. ],
  4467. "version": "0.1.0",
  4468. "parameter": {
  4469. "fields": {
  4470. "Parameter": [
  4471. {
  4472. "group": "Parameter",
  4473. "type": "string",
  4474. "optional": false,
  4475. "field": "store_id",
  4476. "description": ""
  4477. },
  4478. {
  4479. "group": "Parameter",
  4480. "type": "string",
  4481. "optional": false,
  4482. "field": "openid",
  4483. "description": ""
  4484. },
  4485. {
  4486. "group": "Parameter",
  4487. "type": "string",
  4488. "optional": false,
  4489. "field": "formid",
  4490. "description": ""
  4491. }
  4492. ]
  4493. }
  4494. },
  4495. "success": {
  4496. "examples": [
  4497. {
  4498. "title": "Success-Response:",
  4499. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"code\": 200,\n \"msg\": \"添加成功\"\n}\n}",
  4500. "type": "json"
  4501. }
  4502. ]
  4503. },
  4504. "error": {
  4505. "examples": [
  4506. {
  4507. "title": "Error-Response:",
  4508. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4509. "type": "json"
  4510. }
  4511. ]
  4512. },
  4513. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4514. "groupTitle": "Furniture_Service",
  4515. "name": "PostApiFurnitureSaveformid"
  4516. },
  4517. {
  4518. "type": "post",
  4519. "url": "/api/furniture/service_login",
  4520. "title": "登陆(login)",
  4521. "description": "<p>登陆(login)</p>",
  4522. "group": "Furniture_Service",
  4523. "permission": [
  4524. {
  4525. "name": "none"
  4526. }
  4527. ],
  4528. "version": "0.1.0",
  4529. "parameter": {
  4530. "fields": {
  4531. "Parameter": [
  4532. {
  4533. "group": "Parameter",
  4534. "type": "string",
  4535. "optional": false,
  4536. "field": "code",
  4537. "description": "<p>小程序登录生成的code</p>"
  4538. },
  4539. {
  4540. "group": "Parameter",
  4541. "type": "string",
  4542. "optional": false,
  4543. "field": "nickName",
  4544. "description": "<p>微信昵称</p>"
  4545. },
  4546. {
  4547. "group": "Parameter",
  4548. "type": "string",
  4549. "optional": false,
  4550. "field": "avatar",
  4551. "description": "<p>微信头像</p>"
  4552. }
  4553. ]
  4554. }
  4555. },
  4556. "success": {
  4557. "examples": [
  4558. {
  4559. "title": "Success-Response:",
  4560. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n\"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjUzMzYwMzNlNzIwOTE3YjE0NDc4YjgxMWY5MmI4MjBmMThlNDgxNjJjZGFkYmEwNGI3ZjliZTNmZjRlMTY2YjU4NGU4MzJhN2RmYzY2ZTcxIn0.eyJhdWQiOiIxIiwianRpIjoiNTMzNjAzM2U3MjA5MTdiMTQ0NzhiODExZjkyYjgyMGYxOGU0ODE2MmNkYWRiYTA0YjdmOWJlM2ZmNGUxNjZiNTg0ZTgzMmE3ZGZjNjZlNzEiLCJpYXQiOjE1MzI0MjA3NDAsIm5iZiI6MTUzMjQyMDc0MCwiZXhwIjoxNTYzOTU2NzQwLCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.YnuRiJI9jlt-KeQ480UEpLWCUU8FEJvlTRtAdjOlP0BWmcdo0E9rGS4hriYnpfJOn09Cw0aRYuc4dgQYL_JWD2fodlGg1LRIvPTOtvM5TiwM86kQJawvfFw7X7p9nOhxrFa5Tyir0cdTcV0SmQbq8KIptjdR8j7wUTByKhONexBXtNnlZSpw70ckTQrAstkn97IDwPo04hhGhf6eDPc8ler0HONiAVqbRvvNG6yHShJarP1hxyXrYN2BM0N7dtLD_8Sr8XaXL6ie4rRFVM4fNwpn74DkiDwXY6-5Xet6mzPvvzARAmU5vJ7JHhcL1N7m7poNp6YCx_mZAZ1z8PGDKrtQWoVeAmIxo7qtI6jvgvUpEFnJQ-KHCunXflNBL-vIYW4o3llnYqku1pcBdAUfkYLjYUgB3EZio280_8q-6Q24VAMiHZ58AjYvHHJJssdOa3dVHGD9Iq2z1dWR6gmZ4MgGCunCcAe9L_CbDm7VtMq3nKj4a1WScRiMD5nlKAHgy4O32rtNXqDr5T-eV-QNa4ZOv4VZ1AR-WE4RkO4ArKPaFxgSa9mak98PU8NHcPaJ_B3eDbvtwtMloTXWSQP08cmUPXKjEwXvszdkUt-ZWirw5Sd22h3qMdCI3gcvzT4_rnDKCEk37P09fUIK8LZrS4s2xOhueHziMzheAF0QekI\",\n \"user\": {\n \"id\": 2,\n \"store_id\": 1,\n \"username\": \"roger\",\n \"role\": 0, //用户类型:0:普通用户;1:生产部 2:包装部 3:经理\n \"wechat_open_id\": \"olAS94uwfTdsL3nDnvG67p_v5Vks\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/IOcxico8l4A7W3qxDeA53Id5kVAj2ibUGvQib9QibicTp5c1RNshDj6EKz2PKWp3reHfib0xxT4wa7jJzcb7a4EggkVw/132\",\n \"is_dealer\": 0 //是否经销商 0:不是 1:是\n },\n \"session_key\": 'pGgENkTGXLQD4hPuTF8yEw=='\n }\n}",
  4561. "type": "json"
  4562. }
  4563. ]
  4564. },
  4565. "error": {
  4566. "examples": [
  4567. {
  4568. "title": "Error-Response:",
  4569. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 40029 获取openid失败",
  4570. "type": "json"
  4571. }
  4572. ]
  4573. },
  4574. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4575. "groupTitle": "Furniture_Service",
  4576. "name": "PostApiFurnitureService_login"
  4577. },
  4578. {
  4579. "type": "post",
  4580. "url": "/api/furniture/updatestatus",
  4581. "title": "更新订单状态",
  4582. "description": "<p>更新订单状态</p>",
  4583. "group": "Furniture_Service",
  4584. "permission": [
  4585. {
  4586. "name": "Passport"
  4587. }
  4588. ],
  4589. "version": "0.1.0",
  4590. "parameter": {
  4591. "fields": {
  4592. "Parameter": [
  4593. {
  4594. "group": "Parameter",
  4595. "type": "string",
  4596. "optional": false,
  4597. "field": "store_id",
  4598. "description": ""
  4599. },
  4600. {
  4601. "group": "Parameter",
  4602. "type": "int",
  4603. "optional": false,
  4604. "field": "order_id",
  4605. "description": ""
  4606. },
  4607. {
  4608. "group": "Parameter",
  4609. "type": "int",
  4610. "optional": false,
  4611. "field": "status",
  4612. "description": "<p>2:开始生产 3:生产完毕并入库 4:发货 5:确认收货 7:取消订单</p>"
  4613. },
  4614. {
  4615. "group": "Parameter",
  4616. "type": "int",
  4617. "optional": true,
  4618. "field": "remark",
  4619. "description": "<p>备注,发货时可携带此参数</p>"
  4620. }
  4621. ]
  4622. }
  4623. },
  4624. "success": {
  4625. "examples": [
  4626. {
  4627. "title": "Success-Response:",
  4628. "content": "HTTP/1.1 200 OK 更新状态成功\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"ok\":1\n }\n}",
  4629. "type": "json"
  4630. }
  4631. ]
  4632. },
  4633. "error": {
  4634. "examples": [
  4635. {
  4636. "title": "Error-Response:",
  4637. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  4638. "type": "json"
  4639. }
  4640. ]
  4641. },
  4642. "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
  4643. "groupTitle": "Furniture_Service",
  4644. "name": "PostApiFurnitureUpdatestatus"
  4645. },
  4646. {
  4647. "type": "get",
  4648. "url": "/api/goods/addtocar",
  4649. "title": "添加至购物车",
  4650. "description": "<p>添加至购物车</p>",
  4651. "group": "Goods",
  4652. "parameter": {
  4653. "fields": {
  4654. "Parameter": [
  4655. {
  4656. "group": "Parameter",
  4657. "type": "string",
  4658. "optional": false,
  4659. "field": "appid",
  4660. "description": "<p>appid</p>"
  4661. },
  4662. {
  4663. "group": "Parameter",
  4664. "type": "int",
  4665. "optional": false,
  4666. "field": "id",
  4667. "description": "<p>商品id</p>"
  4668. },
  4669. {
  4670. "group": "Parameter",
  4671. "type": "int",
  4672. "optional": false,
  4673. "field": "number",
  4674. "description": "<p>商品数量</p>"
  4675. },
  4676. {
  4677. "group": "Parameter",
  4678. "type": "array",
  4679. "optional": false,
  4680. "field": "attr",
  4681. "description": "<p>商品属性</p>"
  4682. }
  4683. ]
  4684. }
  4685. },
  4686. "permission": [
  4687. {
  4688. "name": "none"
  4689. }
  4690. ],
  4691. "version": "0.1.0",
  4692. "success": {
  4693. "examples": [
  4694. {
  4695. "title": "Success-Response:",
  4696. "content": "HTTP/1.1 200 OK",
  4697. "type": "json"
  4698. }
  4699. ]
  4700. },
  4701. "error": {
  4702. "examples": [
  4703. {
  4704. "title": "Error-Response:",
  4705. "content": "HTTP/1.1 400 Bad Request",
  4706. "type": "json"
  4707. }
  4708. ]
  4709. },
  4710. "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
  4711. "groupTitle": "Goods",
  4712. "name": "GetApiGoodsAddtocar"
  4713. },
  4714. {
  4715. "type": "get",
  4716. "url": "/api/goods/chose_attr",
  4717. "title": "选择属性",
  4718. "description": "<p>选择属性</p>",
  4719. "group": "Goods",
  4720. "parameter": {
  4721. "fields": {
  4722. "Parameter": [
  4723. {
  4724. "group": "Parameter",
  4725. "type": "int",
  4726. "optional": false,
  4727. "field": "id",
  4728. "description": "<p>商品id</p>"
  4729. },
  4730. {
  4731. "group": "Parameter",
  4732. "type": "array",
  4733. "optional": false,
  4734. "field": "attr",
  4735. "description": "<p>商品属性</p>"
  4736. }
  4737. ]
  4738. }
  4739. },
  4740. "permission": [
  4741. {
  4742. "name": "none"
  4743. }
  4744. ],
  4745. "version": "0.1.0",
  4746. "success": {
  4747. "examples": [
  4748. {
  4749. "title": "Success-Response:",
  4750. "content": "HTTP/1.1 200 OK",
  4751. "type": "json"
  4752. }
  4753. ]
  4754. },
  4755. "error": {
  4756. "examples": [
  4757. {
  4758. "title": "Error-Response:",
  4759. "content": "HTTP/1.1 400 Bad Request",
  4760. "type": "json"
  4761. }
  4762. ]
  4763. },
  4764. "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
  4765. "groupTitle": "Goods",
  4766. "name": "GetApiGoodsChose_attr"
  4767. },
  4768. {
  4769. "type": "get",
  4770. "url": "/api/goods/collection",
  4771. "title": "收藏/取消",
  4772. "description": "<p>收藏/取消</p>",
  4773. "group": "Goods",
  4774. "parameter": {
  4775. "fields": {
  4776. "Parameter": [
  4777. {
  4778. "group": "Parameter",
  4779. "type": "int",
  4780. "optional": false,
  4781. "field": "id",
  4782. "description": "<p>商品id</p>"
  4783. },
  4784. {
  4785. "group": "Parameter",
  4786. "type": "int",
  4787. "optional": false,
  4788. "field": "value",
  4789. "description": "<p>0或1 0(取消收藏)</p>"
  4790. }
  4791. ]
  4792. }
  4793. },
  4794. "permission": [
  4795. {
  4796. "name": "none"
  4797. }
  4798. ],
  4799. "version": "0.1.0",
  4800. "success": {
  4801. "examples": [
  4802. {
  4803. "title": "Success-Response:",
  4804. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  4805. "type": "json"
  4806. }
  4807. ]
  4808. },
  4809. "error": {
  4810. "examples": [
  4811. {
  4812. "title": "Error-Response:",
  4813. "content": "HTTP/1.1 400 Bad Request",
  4814. "type": "json"
  4815. }
  4816. ]
  4817. },
  4818. "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
  4819. "groupTitle": "Goods",
  4820. "name": "GetApiGoodsCollection"
  4821. },
  4822. {
  4823. "type": "get",
  4824. "url": "/api/goods/show",
  4825. "title": "商品详情",
  4826. "description": "<p>商品详情</p>",
  4827. "group": "Goods",
  4828. "parameter": {
  4829. "fields": {
  4830. "Parameter": [
  4831. {
  4832. "group": "Parameter",
  4833. "type": "string",
  4834. "optional": false,
  4835. "field": "appid",
  4836. "description": "<p>appid</p>"
  4837. },
  4838. {
  4839. "group": "Parameter",
  4840. "type": "int",
  4841. "optional": false,
  4842. "field": "id",
  4843. "description": "<p>商品id</p>"
  4844. }
  4845. ]
  4846. }
  4847. },
  4848. "permission": [
  4849. {
  4850. "name": "none"
  4851. }
  4852. ],
  4853. "version": "0.1.0",
  4854. "success": {
  4855. "examples": [
  4856. {
  4857. "title": "Success-Response:",
  4858. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 1,\n \"appid\": \"dsfbdffd32434dfvdf\",\n \"cate_id\": 4,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"attr_id\": 0,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"weight\": 1001,\n \"stock\": 10081,\n \"status\": 1,\n \"market_price\": 100100,\n \"price\": 101100,\n \"cost_price\": 99100,\n \"junior_price\": 0,\n \"middle_price\": 0,\n \"top_price\": 0,\n \"sale_number\": 91,\n \"info\": \"好东西1\",\n \"is_address\": 1,\n \"sort\": 11,\n \"is_favorite\": 1, 或 0 1已经收藏\n \"ground_time\": \"2017-10-13 10:29:19\",\n \"draw_time\": \"0000-00-00 00:00:00\",\n \"created_at\": \"2017-10-13 02:29:19\",\n \"updated_at\": \"2017-10-13 03:02:21\",\n \"deleted_at\": null,\n 'attr_info':null 已经选择的属性\n \"attr\": { 属性\n \"规格\": [\n \"ML\",\n \"L\",\n \"XL\",\n \"XXL\"\n ],\n \"颜色\": [\n \"黑色\",\n \"白色\"\n ]\n },\n \"images\": [ 图片\n {\n \"url\": \"/upload/s1/goods/shows/20171013/46072732d071540939acd5e875f383dd.jpg\",\n },\n ],\n \"comments\": [ 评论\n {\n \"id\": 1,\n \"wx_user_id\": 1,\n \"wx_user_avatar\": \"0\", 头像\n \"wx_user_nickname\": \"0\", 昵称\n \"comment\": \"dsgdsfdfsdfbf\",\n \"created_at\": null,\n \"updated_at\": null\n }\n ]\n }\n }",
  4859. "type": "json"
  4860. }
  4861. ]
  4862. },
  4863. "error": {
  4864. "examples": [
  4865. {
  4866. "title": "Error-Response:",
  4867. "content": "HTTP/1.1 400 Bad Request",
  4868. "type": "json"
  4869. }
  4870. ]
  4871. },
  4872. "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
  4873. "groupTitle": "Goods",
  4874. "name": "GetApiGoodsShow"
  4875. },
  4876. {
  4877. "type": "post",
  4878. "url": "/api/goods/comment",
  4879. "title": "评价/回复评价",
  4880. "description": "<p>评价</p>",
  4881. "group": "Goods",
  4882. "parameter": {
  4883. "fields": {
  4884. "Parameter": [
  4885. {
  4886. "group": "Parameter",
  4887. "type": "int",
  4888. "optional": false,
  4889. "field": "goods_id",
  4890. "description": "<p>商品id</p>"
  4891. },
  4892. {
  4893. "group": "Parameter",
  4894. "type": "int",
  4895. "optional": false,
  4896. "field": "level",
  4897. "description": "<p>评论星级(321好中差)</p>"
  4898. },
  4899. {
  4900. "group": "Parameter",
  4901. "type": "string",
  4902. "optional": false,
  4903. "field": "comment",
  4904. "description": "<p>评论内容不能为空</p>"
  4905. },
  4906. {
  4907. "group": "Parameter",
  4908. "type": "int",
  4909. "optional": true,
  4910. "field": "comment_id",
  4911. "description": "<p>评论id</p>"
  4912. },
  4913. {
  4914. "group": "Parameter",
  4915. "type": "array",
  4916. "optional": true,
  4917. "field": "images",
  4918. "description": "<p>上传图片</p>"
  4919. }
  4920. ]
  4921. }
  4922. },
  4923. "permission": [
  4924. {
  4925. "name": "none"
  4926. }
  4927. ],
  4928. "version": "0.1.0",
  4929. "success": {
  4930. "examples": [
  4931. {
  4932. "title": "Success-Response:",
  4933. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  4934. "type": "json"
  4935. }
  4936. ]
  4937. },
  4938. "error": {
  4939. "examples": [
  4940. {
  4941. "title": "Error-Response:",
  4942. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  4943. "type": "json"
  4944. }
  4945. ]
  4946. },
  4947. "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
  4948. "groupTitle": "Goods",
  4949. "name": "PostApiGoodsComment"
  4950. },
  4951. {
  4952. "type": "get",
  4953. "url": "/api/home/index",
  4954. "title": "首页",
  4955. "description": "<p>首页</p>",
  4956. "group": "Home",
  4957. "parameter": {
  4958. "fields": {
  4959. "Parameter": [
  4960. {
  4961. "group": "Parameter",
  4962. "type": "string",
  4963. "optional": false,
  4964. "field": "appid",
  4965. "description": "<p>appid</p>"
  4966. },
  4967. {
  4968. "group": "Parameter",
  4969. "type": "int",
  4970. "optional": true,
  4971. "field": "head_cate_id",
  4972. "description": "<p>头部分类id</p>"
  4973. }
  4974. ]
  4975. }
  4976. },
  4977. "permission": [
  4978. {
  4979. "name": "none"
  4980. }
  4981. ],
  4982. "version": "0.1.0",
  4983. "success": {
  4984. "examples": [
  4985. {
  4986. "title": "Success-Response:",
  4987. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": [ 轮播图\n {\n \"id\": 1002,\n \"value\": \"/upload/banner/20171015/cd985cb0aac48ca5ea7b34c366c711fa.jpg\",\n \"sort\": 1,\n }\n ],\n \"cates\": [ 分类\n {\n \"id\": 4,\n \"name\": \"商品分类2\",\n \"pic\": \"/upload/goods/cate/20171013/923996f99388fa90acfee1bf31a909fa.jpg\",\n \"status\": 1,\n \"sort\": 11,\n \"goods\": [\n {\n \"id\": 1,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n }\n ]\n }\n ],\n \"goods\": [ 商品\n {\n \"id\": 1,\n \"name\": \"首页分类1\",\n \"pic\": \"/upload/goods/cate/20171013/2454820f914e59dd4a90b575cd47e03c.jpg\",\n \"goods\": [\n {\n \"id\": 1,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n }\n ]\n },\n ]\n }\n }",
  4988. "type": "json"
  4989. }
  4990. ]
  4991. },
  4992. "error": {
  4993. "examples": [
  4994. {
  4995. "title": "Error-Response:",
  4996. "content": "HTTP/1.1 400 Bad Request",
  4997. "type": "json"
  4998. }
  4999. ]
  5000. },
  5001. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  5002. "groupTitle": "Home",
  5003. "name": "GetApiHomeIndex"
  5004. },
  5005. {
  5006. "type": "get",
  5007. "url": "/api/home/search",
  5008. "title": "搜索",
  5009. "description": "<p>搜索</p>",
  5010. "group": "Home",
  5011. "parameter": {
  5012. "fields": {
  5013. "Parameter": [
  5014. {
  5015. "group": "Parameter",
  5016. "type": "string",
  5017. "optional": false,
  5018. "field": "appid",
  5019. "description": "<p>appid</p>"
  5020. },
  5021. {
  5022. "group": "Parameter",
  5023. "type": "string",
  5024. "optional": false,
  5025. "field": "keyword",
  5026. "description": "<p>keyword</p>"
  5027. }
  5028. ]
  5029. }
  5030. },
  5031. "permission": [
  5032. {
  5033. "name": "none"
  5034. }
  5035. ],
  5036. "version": "0.1.0",
  5037. "success": {
  5038. "examples": [
  5039. {
  5040. "title": "Success-Response:",
  5041. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": [\n {\n \"value\": \"/upload/banner/20171012/71a9962b9b9de1876c4d76ed6d879afd.jpg\",\n },\n ],\n \"cates\": [\n {\n \"name\": \"商品分类2\",\n \"pic\": \"/upload/goods/cate/20171013/923996f99388fa90acfee1bf31a909fa.jpg\",\n \"goods\": []\n }\n ],\n \"goods\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/home/search?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/home/search?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/home/search\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n }\n }",
  5042. "type": "json"
  5043. }
  5044. ]
  5045. },
  5046. "error": {
  5047. "examples": [
  5048. {
  5049. "title": "Error-Response:",
  5050. "content": "HTTP/1.1 400 Bad Request",
  5051. "type": "json"
  5052. }
  5053. ]
  5054. },
  5055. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  5056. "groupTitle": "Home",
  5057. "name": "GetApiHomeSearch"
  5058. },
  5059. {
  5060. "type": "get",
  5061. "url": "/api/my/address/area",
  5062. "title": "返回省市区地址",
  5063. "description": "<p>返回省市区地址</p>",
  5064. "group": "My",
  5065. "permission": [
  5066. {
  5067. "name": "none"
  5068. }
  5069. ],
  5070. "version": "0.1.0",
  5071. "success": {
  5072. "examples": [
  5073. {
  5074. "title": "Success-Response:",
  5075. "content": "HTTP/1.1 200 OK",
  5076. "type": "json"
  5077. }
  5078. ]
  5079. },
  5080. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5081. "groupTitle": "My",
  5082. "name": "GetApiMyAddressArea"
  5083. },
  5084. {
  5085. "type": "get",
  5086. "url": "/api/my/address/delete",
  5087. "title": "地址删除",
  5088. "description": "<p>地址删除</p>",
  5089. "group": "My",
  5090. "parameter": {
  5091. "fields": {
  5092. "Parameter": [
  5093. {
  5094. "group": "Parameter",
  5095. "type": "int",
  5096. "optional": false,
  5097. "field": "id",
  5098. "description": "<p>主键id</p>"
  5099. }
  5100. ]
  5101. }
  5102. },
  5103. "permission": [
  5104. {
  5105. "name": "none"
  5106. }
  5107. ],
  5108. "version": "0.1.0",
  5109. "success": {
  5110. "examples": [
  5111. {
  5112. "title": "Success-Response:",
  5113. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  5114. "type": "json"
  5115. }
  5116. ]
  5117. },
  5118. "error": {
  5119. "examples": [
  5120. {
  5121. "title": "Error-Response:",
  5122. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  5123. "type": "json"
  5124. }
  5125. ]
  5126. },
  5127. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5128. "groupTitle": "My",
  5129. "name": "GetApiMyAddressDelete"
  5130. },
  5131. {
  5132. "type": "get",
  5133. "url": "/api/my/address/edit",
  5134. "title": "修改默认地址",
  5135. "description": "<p>修改默认地址</p>",
  5136. "group": "My",
  5137. "parameter": {
  5138. "fields": {
  5139. "Parameter": [
  5140. {
  5141. "group": "Parameter",
  5142. "type": "int",
  5143. "optional": false,
  5144. "field": "id",
  5145. "description": "<p>主键id</p>"
  5146. },
  5147. {
  5148. "group": "Parameter",
  5149. "type": "int",
  5150. "optional": false,
  5151. "field": "status",
  5152. "description": "<p>1</p>"
  5153. }
  5154. ]
  5155. }
  5156. },
  5157. "permission": [
  5158. {
  5159. "name": "none"
  5160. }
  5161. ],
  5162. "version": "0.1.0",
  5163. "success": {
  5164. "examples": [
  5165. {
  5166. "title": "Success-Response:",
  5167. "content": "HTTP/1.1 200 OK",
  5168. "type": "json"
  5169. }
  5170. ]
  5171. },
  5172. "error": {
  5173. "examples": [
  5174. {
  5175. "title": "Error-Response:",
  5176. "content": "HTTP/1.1 400 Bad Request",
  5177. "type": "json"
  5178. }
  5179. ]
  5180. },
  5181. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5182. "groupTitle": "My",
  5183. "name": "GetApiMyAddressEdit"
  5184. },
  5185. {
  5186. "type": "get",
  5187. "url": "/api/my/address/index",
  5188. "title": "地址列表",
  5189. "description": "<p>地址列表</p>",
  5190. "group": "My",
  5191. "permission": [
  5192. {
  5193. "name": "none"
  5194. }
  5195. ],
  5196. "version": "0.1.0",
  5197. "success": {
  5198. "examples": [
  5199. {
  5200. "title": "Success-Response:",
  5201. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"name1\",\n \"tel\": \"13880642880\",\n \"area\": \"330104\", 区域代码\n \"address\": \"蜀西路\",\n \"status\": \"1\", 1默认地址\n \"addr\": {\n \"merger_name\": \"中国,浙江省,杭州市,江干区\",\n }\n }\n ]\n }",
  5202. "type": "json"
  5203. }
  5204. ]
  5205. },
  5206. "error": {
  5207. "examples": [
  5208. {
  5209. "title": "Error-Response:",
  5210. "content": "HTTP/1.1 400 Bad Request",
  5211. "type": "json"
  5212. }
  5213. ]
  5214. },
  5215. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5216. "groupTitle": "My",
  5217. "name": "GetApiMyAddressIndex"
  5218. },
  5219. {
  5220. "type": "get",
  5221. "url": "/api/my/address/show",
  5222. "title": "地址详情",
  5223. "description": "<p>地址详情</p>",
  5224. "group": "My",
  5225. "parameter": {
  5226. "fields": {
  5227. "Parameter": [
  5228. {
  5229. "group": "Parameter",
  5230. "type": "int",
  5231. "optional": false,
  5232. "field": "id",
  5233. "description": "<p>收货人地址id</p>"
  5234. }
  5235. ]
  5236. }
  5237. },
  5238. "permission": [
  5239. {
  5240. "name": "none"
  5241. }
  5242. ],
  5243. "version": "0.1.0",
  5244. "success": {
  5245. "examples": [
  5246. {
  5247. "title": "Success-Response:",
  5248. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 1,\n \"name\": \"hahahahaha\",\n \"tel\": \"13880634889\",\n \"area\": \"330104\",\n \"address\": \"三泰魔方123\",\n \"status\": \"0\",\n \"addr\": {\n \"merger_name\": \"中国,浙江省,杭州市,江干区\",\n }\n }\n }",
  5249. "type": "json"
  5250. }
  5251. ]
  5252. },
  5253. "error": {
  5254. "examples": [
  5255. {
  5256. "title": "Error-Response:",
  5257. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  5258. "type": "json"
  5259. }
  5260. ]
  5261. },
  5262. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5263. "groupTitle": "My",
  5264. "name": "GetApiMyAddressShow"
  5265. },
  5266. {
  5267. "type": "get",
  5268. "url": "/api/my/favorite",
  5269. "title": "收藏",
  5270. "description": "<p>收藏</p>",
  5271. "group": "My",
  5272. "parameter": {
  5273. "fields": {
  5274. "Parameter": [
  5275. {
  5276. "group": "Parameter",
  5277. "type": "int",
  5278. "optional": true,
  5279. "field": "page",
  5280. "defaultValue": "1",
  5281. "description": "<p>分页参数</p>"
  5282. }
  5283. ]
  5284. }
  5285. },
  5286. "permission": [
  5287. {
  5288. "name": "none"
  5289. }
  5290. ],
  5291. "version": "0.1.0",
  5292. "success": {
  5293. "examples": [
  5294. {
  5295. "title": "Success-Response:",
  5296. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 3,\n \"s1_goods_id\": 1,\n \"wx_user_id\": 1,\n \"created_at\": \"2017-10-19 16:36:16\",\n \"updated_at\": \"2017-10-19 16:36:16\",\n \"goods\": {\n \"id\": 1,\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"name\": \"商品1\"\n }\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/my/favorite?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/my/favorite?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/my/favorite\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }",
  5297. "type": "json"
  5298. }
  5299. ]
  5300. },
  5301. "error": {
  5302. "examples": [
  5303. {
  5304. "title": "Error-Response:",
  5305. "content": "HTTP/1.1 400 Bad Request",
  5306. "type": "json"
  5307. }
  5308. ]
  5309. },
  5310. "filename": "app/Http/Controllers/Api/V1/MyController.php",
  5311. "groupTitle": "My",
  5312. "name": "GetApiMyFavorite"
  5313. },
  5314. {
  5315. "type": "get",
  5316. "url": "/api/my/index",
  5317. "title": "首页",
  5318. "description": "<p>首页</p>",
  5319. "group": "My",
  5320. "parameter": {
  5321. "fields": {
  5322. "Parameter": [
  5323. {
  5324. "group": "Parameter",
  5325. "type": "string",
  5326. "optional": false,
  5327. "field": "appid",
  5328. "description": "<p>appid</p>"
  5329. }
  5330. ]
  5331. }
  5332. },
  5333. "permission": [
  5334. {
  5335. "name": "none"
  5336. }
  5337. ],
  5338. "version": "0.1.0",
  5339. "success": {
  5340. "examples": [
  5341. {
  5342. "title": "Success-Response:",
  5343. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user\": {\n \"id\": 1,\n \"appid\": \"dsfbdffd32434dfvdf\",\n \"nickname\": \"nickname1\",\n \"openid\": \"openid123\",\n \"avatar\": \"/upload/wx_user/20171012/8cea5bda71481b13edbe54ae2509e063.jpg\",\n \"password\": \"password123\",\n \"score\": 1000123,\n \"level_id\": 1,\n \"balance\": \"\",\n \"remark\": null,\n \"status\": 1,\n \"created_at\": \"2017-10-12 15:56:20\",\n \"updated_at\": \"2017-10-12 15:56:46\",\n \"deleted_at\": null,\n \"favorite\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ]\n },\n \"order1\": [\n {\n \"id\": 13,\n \"amount\": \"1250100\",\n \"goods\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n },\n {\n \"id\": 2,\n \"name\": \"test\",\n \"pic\": \"/upload/s1/goods/face/20171013/cdfe1a254ac611d055cd9aacaa11c58a.png\",\n }\n ]\n },\n ],\n }\n }",
  5344. "type": "json"
  5345. }
  5346. ]
  5347. },
  5348. "error": {
  5349. "examples": [
  5350. {
  5351. "title": "Error-Response:",
  5352. "content": "HTTP/1.1 400 Bad Request",
  5353. "type": "json"
  5354. }
  5355. ]
  5356. },
  5357. "filename": "app/Http/Controllers/Api/V1/MyController.php",
  5358. "groupTitle": "My",
  5359. "name": "GetApiMyIndex"
  5360. },
  5361. {
  5362. "type": "post",
  5363. "url": "/api/my/address/update",
  5364. "title": "地址编辑",
  5365. "description": "<p>地址编辑</p>",
  5366. "group": "My",
  5367. "parameter": {
  5368. "fields": {
  5369. "Parameter": [
  5370. {
  5371. "group": "Parameter",
  5372. "type": "int",
  5373. "optional": true,
  5374. "field": "id",
  5375. "description": "<p>主键id 存在表示修改</p>"
  5376. },
  5377. {
  5378. "group": "Parameter",
  5379. "type": "string",
  5380. "optional": false,
  5381. "field": "name",
  5382. "description": "<p>收货人姓名</p>"
  5383. },
  5384. {
  5385. "group": "Parameter",
  5386. "type": "int",
  5387. "optional": false,
  5388. "field": "tel",
  5389. "description": "<p>收货人电话</p>"
  5390. },
  5391. {
  5392. "group": "Parameter",
  5393. "type": "int",
  5394. "optional": false,
  5395. "field": "area",
  5396. "description": "<p>省市区地址</p>"
  5397. },
  5398. {
  5399. "group": "Parameter",
  5400. "type": "string",
  5401. "optional": false,
  5402. "field": "address",
  5403. "description": "<p>详细地址</p>"
  5404. },
  5405. {
  5406. "group": "Parameter",
  5407. "type": "int",
  5408. "optional": false,
  5409. "field": "status",
  5410. "description": "<p>1或0 1为默认地址</p>"
  5411. }
  5412. ]
  5413. }
  5414. },
  5415. "permission": [
  5416. {
  5417. "name": "none"
  5418. }
  5419. ],
  5420. "version": "0.1.0",
  5421. "success": {
  5422. "examples": [
  5423. {
  5424. "title": "Success-Response:",
  5425. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  5426. "type": "json"
  5427. }
  5428. ]
  5429. },
  5430. "error": {
  5431. "examples": [
  5432. {
  5433. "title": "Error-Response:",
  5434. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  5435. "type": "json"
  5436. }
  5437. ]
  5438. },
  5439. "filename": "app/Http/Controllers/Api/V1/AddressController.php",
  5440. "groupTitle": "My",
  5441. "name": "PostApiMyAddressUpdate"
  5442. },
  5443. {
  5444. "type": "get",
  5445. "url": "/api/order/create",
  5446. "title": "创建订单",
  5447. "description": "<p>创建订单</p>",
  5448. "group": "Order",
  5449. "parameter": {
  5450. "fields": {
  5451. "Parameter": [
  5452. {
  5453. "group": "Parameter",
  5454. "type": "string",
  5455. "optional": false,
  5456. "field": "appid",
  5457. "description": "<p>appid</p>"
  5458. },
  5459. {
  5460. "group": "Parameter",
  5461. "type": "int",
  5462. "optional": false,
  5463. "field": "address_id",
  5464. "description": "<p>收货地址id</p>"
  5465. },
  5466. {
  5467. "group": "Parameter",
  5468. "type": "int",
  5469. "optional": true,
  5470. "field": "id",
  5471. "description": "<p>商品id</p>"
  5472. },
  5473. {
  5474. "group": "Parameter",
  5475. "type": "int",
  5476. "optional": true,
  5477. "field": "number",
  5478. "description": "<p>商品数量</p>"
  5479. },
  5480. {
  5481. "group": "Parameter",
  5482. "type": "array",
  5483. "optional": true,
  5484. "field": "attr",
  5485. "description": "<p>商品属性 //购物车id列表或是商品id</p>"
  5486. },
  5487. {
  5488. "group": "Parameter",
  5489. "type": "array",
  5490. "optional": true,
  5491. "field": "cart_id_list",
  5492. "description": "<p>购物车id</p>"
  5493. }
  5494. ]
  5495. }
  5496. },
  5497. "permission": [
  5498. {
  5499. "name": "none"
  5500. }
  5501. ],
  5502. "version": "0.1.0",
  5503. "success": {
  5504. "examples": [
  5505. {
  5506. "title": "Success-Response:",
  5507. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"s1_order_id\": 15\n }\n }",
  5508. "type": "json"
  5509. }
  5510. ]
  5511. },
  5512. "error": {
  5513. "examples": [
  5514. {
  5515. "title": "Error-Response:",
  5516. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2004,\n \"message\": \"数据异常\",\n \"data\": null\n }",
  5517. "type": "json"
  5518. }
  5519. ]
  5520. },
  5521. "filename": "app/Http/Controllers/Api/V1/OrderController.php",
  5522. "groupTitle": "Order",
  5523. "name": "GetApiOrderCreate"
  5524. },
  5525. {
  5526. "type": "get",
  5527. "url": "/api/order/show",
  5528. "title": "订单详情",
  5529. "description": "<p>订单详情</p>",
  5530. "group": "Order",
  5531. "parameter": {
  5532. "fields": {
  5533. "Parameter": [
  5534. {
  5535. "group": "Parameter",
  5536. "type": "int",
  5537. "optional": false,
  5538. "field": "id",
  5539. "description": "<p>订单id</p>"
  5540. }
  5541. ]
  5542. }
  5543. },
  5544. "permission": [
  5545. {
  5546. "name": "none"
  5547. }
  5548. ],
  5549. "version": "0.1.0",
  5550. "success": {
  5551. "examples": [
  5552. {
  5553. "title": "Success-Response:",
  5554. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user_name\": \"hahahahaha\",\n \"address\": \"中国,浙江省,杭州市,江干区三泰魔方123\",\n \"trade_no\": \"123123\",\n \"order_time\": \"2017-10-13 09:55:00\",\n \"amount\": \"10000\",\n \"goods_number\": 2\n }\n }",
  5555. "type": "json"
  5556. }
  5557. ]
  5558. },
  5559. "error": {
  5560. "examples": [
  5561. {
  5562. "title": "Error-Response:",
  5563. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2009,\n \"message\": \"订单没有找到\",\n \"data\": null\n }",
  5564. "type": "json"
  5565. }
  5566. ]
  5567. },
  5568. "filename": "app/Http/Controllers/Api/V1/OrderController.php",
  5569. "groupTitle": "Order",
  5570. "name": "GetApiOrderShow"
  5571. },
  5572. {
  5573. "type": "get",
  5574. "url": "/api/order/sure",
  5575. "title": "立即购买(或是购物车结算)",
  5576. "description": "<p>立即购买(或是购物车结算)</p>",
  5577. "group": "Order",
  5578. "parameter": {
  5579. "fields": {
  5580. "Parameter": [
  5581. {
  5582. "group": "Parameter",
  5583. "type": "string",
  5584. "optional": false,
  5585. "field": "appid",
  5586. "description": "<p>appid</p>"
  5587. },
  5588. {
  5589. "group": "Parameter",
  5590. "type": "int",
  5591. "optional": true,
  5592. "field": "id",
  5593. "description": "<p>商品id</p>"
  5594. },
  5595. {
  5596. "group": "Parameter",
  5597. "type": "int",
  5598. "optional": true,
  5599. "field": "number",
  5600. "description": "<p>商品数量</p>"
  5601. },
  5602. {
  5603. "group": "Parameter",
  5604. "type": "array",
  5605. "optional": true,
  5606. "field": "cart_id",
  5607. "description": "<p>购物车id</p>"
  5608. }
  5609. ]
  5610. }
  5611. },
  5612. "permission": [
  5613. {
  5614. "name": "none"
  5615. }
  5616. ],
  5617. "version": "0.1.0",
  5618. "success": {
  5619. "examples": [
  5620. {
  5621. "title": "Success-Response:",
  5622. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"goods\": { 购买商品\n \"name\": \"商品1\",\n \"sure_number\": \"12\", 确认数量\n \"attr_info\": \"属性\", 已选属性\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n },\n \"address\": { 默认地址\n \"name\": \"hahahahaha\",\n \"tel\": \"134324\",\n \"area\": \"23423423\",\n \"address\": \"address\",\n }\n }\n }",
  5623. "type": "json"
  5624. }
  5625. ]
  5626. },
  5627. "error": {
  5628. "examples": [
  5629. {
  5630. "title": "Error-Response:",
  5631. "content": "HTTP/1.1 400 Bad Request",
  5632. "type": "json"
  5633. }
  5634. ]
  5635. },
  5636. "filename": "app/Http/Controllers/Api/V1/OrderController.php",
  5637. "groupTitle": "Order",
  5638. "name": "GetApiOrderSure"
  5639. },
  5640. {
  5641. "type": "post",
  5642. "url": "/api/order/pay",
  5643. "title": "支付",
  5644. "description": "<p>支付</p>",
  5645. "group": "Order",
  5646. "parameter": {
  5647. "fields": {
  5648. "Parameter": [
  5649. {
  5650. "group": "Parameter",
  5651. "type": "int",
  5652. "optional": false,
  5653. "field": "id",
  5654. "description": "<p>订单id</p>"
  5655. }
  5656. ]
  5657. }
  5658. },
  5659. "permission": [
  5660. {
  5661. "name": "none"
  5662. }
  5663. ],
  5664. "version": "0.1.0",
  5665. "success": {
  5666. "examples": [
  5667. {
  5668. "title": "Success-Response:",
  5669. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  5670. "type": "json"
  5671. }
  5672. ]
  5673. },
  5674. "error": {
  5675. "examples": [
  5676. {
  5677. "title": "Error-Response:",
  5678. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  5679. "type": "json"
  5680. }
  5681. ]
  5682. },
  5683. "filename": "app/Http/Controllers/Api/V1/OrderController.php",
  5684. "groupTitle": "Order",
  5685. "name": "PostApiOrderPay"
  5686. },
  5687. {
  5688. "type": "post",
  5689. "url": "/api/order/refund",
  5690. "title": "申请售后",
  5691. "description": "<p>申请售后</p>",
  5692. "group": "Order",
  5693. "parameter": {
  5694. "fields": {
  5695. "Parameter": [
  5696. {
  5697. "group": "Parameter",
  5698. "type": "int",
  5699. "optional": false,
  5700. "field": "order_id",
  5701. "description": "<p>订单id</p>"
  5702. },
  5703. {
  5704. "group": "Parameter",
  5705. "type": "int",
  5706. "optional": false,
  5707. "field": "refund_type",
  5708. "description": "<p>售后类型</p>"
  5709. },
  5710. {
  5711. "group": "Parameter",
  5712. "type": "int",
  5713. "optional": true,
  5714. "field": "refund_price",
  5715. "description": "<p>价格</p>"
  5716. },
  5717. {
  5718. "group": "Parameter",
  5719. "type": "string",
  5720. "optional": false,
  5721. "field": "refund_desc",
  5722. "description": "<p>原因</p>"
  5723. },
  5724. {
  5725. "group": "Parameter",
  5726. "type": "array",
  5727. "optional": false,
  5728. "field": "pic_list",
  5729. "description": "<p>凭证</p>"
  5730. }
  5731. ]
  5732. }
  5733. },
  5734. "permission": [
  5735. {
  5736. "name": "none"
  5737. }
  5738. ],
  5739. "version": "0.1.0",
  5740. "success": {
  5741. "examples": [
  5742. {
  5743. "title": "Success-Response:",
  5744. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  5745. "type": "json"
  5746. }
  5747. ]
  5748. },
  5749. "error": {
  5750. "examples": [
  5751. {
  5752. "title": "Error-Response:",
  5753. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
  5754. "type": "json"
  5755. }
  5756. ]
  5757. },
  5758. "filename": "app/Http/Controllers/Api/V1/OrderController.php",
  5759. "groupTitle": "Order",
  5760. "name": "PostApiOrderRefund"
  5761. }
  5762. ] });