12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762 |
- define({ "api": [
- {
- "type": "get",
- "url": "/api/agent/version",
- "title": "获取配置信息(version)",
- "description": "<p>获取配置信息(version)</p>",
- "group": "Agent",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"version\": []版本信息\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n可能出现的错误代码:\n1000 运营商非法",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CompanyController.php",
- "groupTitle": "Agent",
- "name": "GetApiAgentVersion"
- },
- {
- "type": "get",
- "url": "/api/album/add_agent",
- "title": "申请经销商(add_agent)",
- "description": "<p>申请经销商(add_agent)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "realname",
- "description": "<p>姓名</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "address",
- "description": "<p>地址</p>"
- },
- {
- "group": "Parameter",
- "type": "double",
- "optional": true,
- "field": "lat",
- "description": "<p>lat</p>"
- },
- {
- "group": "Parameter",
- "type": "double",
- "optional": true,
- "field": "lon",
- "description": "<p>lon</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "phone",
- "description": "<p>电话</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumAdd_agent"
- },
- {
- "type": "get",
- "url": "/api/album/add_favorite",
- "title": "添加收藏(add_favorite)",
- "description": "<p>添加收藏(favorite_list)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "product_id",
- "description": "<p>商品id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumAdd_favorite"
- },
- {
- "type": "get",
- "url": "/api/album/cat",
- "title": "分类列表(cat)",
- "description": "<p>画册分类(cat)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "parent_id",
- "description": "<p>一级菜单传0 二级菜单的id从一级菜单里面获取</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumCat"
- },
- {
- "type": "get",
- "url": "/api/album/checklogin",
- "title": "登陆应用(checklogin)",
- "description": "<p>登陆应用(checklogin)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumChecklogin"
- },
- {
- "type": "get",
- "url": "/api/album/customer-goods",
- "title": "获取客户浏览商品统计(customer-goods)",
- "description": "<p>获取客户浏览商品统计(customer-goods)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumCustomerGoods"
- },
- {
- "type": "get",
- "url": "/api/album/favorite_del",
- "title": "收藏删除(favorite_del)",
- "description": "<p>收藏删除(favorite_del)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "favorite_id",
- "description": "<p>收藏id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[]//返回状态\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumFavorite_del"
- },
- {
- "type": "get",
- "url": "/api/album/favorite_list",
- "title": "收藏列表(favorite_list)",
- "description": "<p>收藏列表(favorite_list)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumFavorite_list"
- },
- {
- "type": "get",
- "url": "/api/album/get-agent-address",
- "title": "获取经销商地址(get-agent-address)",
- "description": "<p>获取经销商地址(get-agent-address)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGetAgentAddress"
- },
- {
- "type": "get",
- "url": "/api/album/get-banner",
- "title": "获取banner和視頻(get-banner)",
- "description": "<p>获取banner和視頻(get-banner)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGetBanner"
- },
- {
- "type": "get",
- "url": "/api/album/get-customer",
- "title": "获取客户信息(get-customer)",
- "description": "<p>获取客户信息(get-customer)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "openid_id",
- "description": "<p>open_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGetCustomer"
- },
- {
- "type": "get",
- "url": "/api/album/get-user-info",
- "title": "获取客户详细(get-user-info)",
- "description": "<p>获取客户详细(get-user-info)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "AUTH"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGetUserInfo"
- },
- {
- "type": "get",
- "url": "/api/album/goods",
- "title": "商品列表(goods)",
- "description": "<p>商品列表(goods)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "cat_id",
- "description": "<p>分类id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "keywords",
- "description": "<p>关键词.</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "status",
- "description": "<p>状态 1 只选择热销 2 只选择最新上市 3只选择一个风格 4 同时选择热销和最新上市 5同时选择热销和风格 6同时选择最新上市和风格 7全选 0全不选</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "style",
- "description": "<p>风格</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGoods"
- },
- {
- "type": "get",
- "url": "/api/album/goods-detail",
- "title": "商品详细(goods-detail)",
- "description": "<p>商品列表(goods-detail)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "goods_id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumGoodsDetail"
- },
- {
- "type": "get",
- "url": "/api/album/save_form_id",
- "title": "添加Form_id(save_form_id)",
- "description": "<p>添加Form_id(save_form_id)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "form_id",
- "description": "<p>form_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumSave_form_id"
- },
- {
- "type": "get",
- "url": "/api/album/set-price",
- "title": "经销商修改价格(set-price)",
- "description": "<p>画册(set-price)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "goods_id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "double",
- "optional": true,
- "field": "price",
- "description": "<p>价格</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n \"data\":修改后价格\n ]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumSetPrice"
- },
- {
- "type": "get",
- "url": "/api/album/style",
- "title": "属性列表(style)",
- "description": "<p>分类样式(style)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "GetApiAlbumStyle"
- },
- {
- "type": "post",
- "url": "/api/album/agent_price_set",
- "title": "厂家价格设置(agent_price_set)",
- "description": "<p>厂家价格设置(agent_price_set)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "AUTH"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "point",
- "description": "<p>价格设置比例 为0不设置</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "is_show_ma_price",
- "description": "<p>厂家价格是否可见 0 不可见 1 可见</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumAgent_price_set"
- },
- {
- "type": "post",
- "url": "/api/album/customer-goods-detail",
- "title": "获取客户浏览商品详细(customer-goods-detail)",
- "description": "<p>获取客户浏览商品详细(customer-goods-detail)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "open_id",
- "description": "<p>openid</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumCustomerGoodsDetail"
- },
- {
- "type": "post",
- "url": "/api/album/get-cart-of-watch",
- "title": "客户浏览情况概览(get-cart-of-watch)",
- "description": "<p>客户浏览情况概览(get-cart-of-watch)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGetCartOfWatch"
- },
- {
- "type": "post",
- "url": "/api/album/get-count-favorite",
- "title": "获取客户收藏商品详细(get-count-favorite)",
- "description": "<p>获取客户收藏商品详细(get-count-favorite)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "AUTH"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGetCountFavorite"
- },
- {
- "type": "post",
- "url": "/api/album/get-watch-recored",
- "title": "查看客户浏览情况(get-watch-recored)",
- "description": "<p>查看客户浏览情况(get-watch-recored)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "type",
- "description": "<p>查询方式 1 按用户 2 按时间 3 按类型</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "user_id",
- "description": "<p>user_id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "action",
- "description": "<p>行为类型 1 收藏 2查看类目 3查看商品 4登陆 5点击图片 6 点击导航 7一键拨号</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "start_time",
- "description": "<p>查询开始时间</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "end_time",
- "description": "<p>查询结束时间</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGetWatchRecored"
- },
- {
- "type": "post",
- "url": "/api/album/get_data_cat",
- "title": "获取分类访问数据(get_data_cat)",
- "description": "<p>获取分类访问数据(get_data_cat)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "style_id",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGet_data_cat"
- },
- {
- "type": "post",
- "url": "/api/album/get_data_cat_single",
- "title": "单用户获取分类访问数据(get_data_cat_single)",
- "description": "<p>单用户获取分类访问数据(get_data_cat_single)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "open_id",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGet_data_cat_single"
- },
- {
- "type": "post",
- "url": "/api/album/get_data_goods",
- "title": "获取访问数据(get_data_goods)",
- "description": "<p>获取访问数据(get_data_goods)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGet_data_goods"
- },
- {
- "type": "post",
- "url": "/api/album/get_statistical",
- "title": "获取分享记录(get-statistical)",
- "description": "<p>获取分享记录(get-statistical)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "AUTH"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "open_id",
- "description": "<p>open_id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "type",
- "description": "<p>1 尺寸统计 2拨打电话 3 分享</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumGet_statistical"
- },
- {
- "type": "post",
- "url": "/api/album/set-customer",
- "title": "设置客户信息(set-customer)",
- "description": "<p>设置客户信息(set-customer)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "openid_id",
- "description": "<p>openid</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "key",
- "description": "<p>键</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "value",
- "description": "<p>值</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumSetCustomer"
- },
- {
- "type": "post",
- "url": "/api/album/set-phone",
- "title": "获取用户号码(set-phone)",
- "description": "<p>获取用户号码(set-phone)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "code",
- "description": "<p>code</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "iv",
- "description": "<p>偏移量</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "encrypted",
- "description": "<p>加密参数</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumSetPhone"
- },
- {
- "type": "post",
- "url": "/api/album/set-watch",
- "title": "获取用户操作记录(set-watch)",
- "description": "<p>获取用户操作记录(set-watch)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id 模拟值为0</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "detail",
- "description": "<p>详细</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "type",
- "description": "<p>5点击图片 6 点击导航 7一键拨号</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumSetWatch"
- },
- {
- "type": "post",
- "url": "/api/album/statistical",
- "title": "记录分享次数(statistical)",
- "description": "<p>记录分享次数(statistical)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "AUTH"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "goods_id",
- "description": "<p>商品id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumStatistical"
- },
- {
- "type": "post",
- "url": "/api/album/xyx_login",
- "title": "登陆(xyx_login)",
- "description": "<p>登陆(xyx_login)</p>",
- "group": "Album",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "code",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "agent_id",
- "description": "<p>经销商id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
- "groupTitle": "Album",
- "name": "PostApiAlbumXyx_login"
- },
- {
- "type": "post",
- "url": "/api/album_post/create",
- "title": "生成海报(create)",
- "description": "<p>生成海报(create)</p>",
- "group": "Album_Post",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "image",
- "description": "<p>图片</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n 'real_url':'asdawd', //海报\n ]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
- "groupTitle": "Album_Post",
- "name": "PostApiAlbum_postCreate"
- },
- {
- "type": "post",
- "url": "/api/album_post/del",
- "title": "删除海报(del)",
- "description": "<p>删除海报(del)</p>",
- "group": "Album_Post",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "url",
- "description": "<p>图片</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
- "groupTitle": "Album_Post",
- "name": "PostApiAlbum_postDel"
- },
- {
- "type": "post",
- "url": "/api/album_post/info",
- "title": "获取海报数据(info)",
- "description": "<p>获取海报数据(info)</p>",
- "group": "Album_Post",
- "permission": [
- {
- "name": "需要登录"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php",
- "groupTitle": "Album_Post",
- "name": "PostApiAlbum_postInfo"
- },
- {
- "type": "get",
- "url": "/api/attachment/delete/{md5}",
- "title": "删除文件(图片)",
- "description": "<p>删除文件(图片)</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "md5",
- "description": "<p>图片md5码</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 附件不存在",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "GetApiAttachmentDeleteMd5"
- },
- {
- "type": "get",
- "url": "/api/attachment/download/{md5}",
- "title": "下载文件(图片)",
- "description": "<p>下载文件(图片)(get code)</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "md5",
- "description": "<p>图片md5码</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n 文件二进制码\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 404 Not found",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "GetApiAttachmentDownloadMd5"
- },
- {
- "type": "post",
- "url": "/api/attachment/upload",
- "title": "通用上传接口",
- "description": "<p>通用上传接口</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "tag",
- "description": "<p>附件标签 avatar video dream</p>"
- },
- {
- "group": "Parameter",
- "type": "File",
- "optional": false,
- "field": "file",
- "description": "<p>附件(可以多个,使用file.xxx,可返回多个)[默认大小【10M】, 类型图片png jpg gif,视频类型mp4]</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 附件不存在",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "PostApiAttachmentUpload"
- },
- {
- "type": "post",
- "url": "/api/auth/login",
- "title": "微信登陆入口(login)",
- "description": "<p>微信登陆入口(login)</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "code",
- "description": "<p>登录凭证</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "nickname",
- "description": "<p>微信昵称</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "avatar",
- "description": "<p>微信头像</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 用户名或密码不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AuthController.php",
- "groupTitle": "Auth",
- "name": "PostApiAuthLogin"
- },
- {
- "type": "get",
- "url": "/api/album_boss/get_top",
- "title": "经销商排行榜(get_top)",
- "description": "<p>经销商排行榜(get_top)</p>",
- "group": "Boss",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
- "groupTitle": "Boss",
- "name": "GetApiAlbum_bossGet_top"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_customer",
- "title": "经销商客户(agent_customer)",
- "description": "<p>经销商客户(agent_customer)</p>",
- "group": "Boss",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "agent_id",
- "description": "<p>经销商id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
- "groupTitle": "Boss",
- "name": "PostApiAlbum_bossAgent_customer"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview",
- "title": "经销商总览(agent_overview)",
- "description": "<p>经销商总览(agent_overview)</p>",
- "group": "Boss",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "start",
- "description": "<p>开始时间</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "end",
- "description": "<p>结束时间</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
- "groupTitle": "Boss",
- "name": "PostApiAlbum_bossAgent_overview"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_statistical",
- "title": "经销商数据(agent_statistical)",
- "description": "<p>经销商数据(agent_statistical)</p>",
- "group": "Boss",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "agent_id",
- "description": "<p>经销商id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "start",
- "description": "<p>开始时间</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "end",
- "description": "<p>结束时间</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php",
- "groupTitle": "Boss",
- "name": "PostApiAlbum_bossAgent_statistical"
- },
- {
- "type": "get",
- "url": "/api/car/delete",
- "title": "删除",
- "description": "<p>删除</p>",
- "group": "Car",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "ids",
- "description": "<p>主键id 数组</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CarController.php",
- "groupTitle": "Car",
- "name": "GetApiCarDelete"
- },
- {
- "type": "get",
- "url": "/api/car/index",
- "title": "购物车",
- "description": "<p>购物车</p>",
- "group": "Car",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CarController.php",
- "groupTitle": "Car",
- "name": "GetApiCarIndex"
- },
- {
- "type": "post",
- "url": "/api/car/update",
- "title": "编辑",
- "description": "<p>编辑(修改购物车商品数量)</p>",
- "group": "Car",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "number",
- "description": "<p>购买数量</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CarController.php",
- "groupTitle": "Car",
- "name": "PostApiCarUpdate"
- },
- {
- "type": "get",
- "url": "/api/card/honor",
- "title": "个人荣誉(honor)",
- "description": "<p>个人荣誉(honor)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"honor\": []//个人荣誉\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardHonor"
- },
- {
- "type": "get",
- "url": "/api/card/index",
- "title": "名片主页(index)",
- "description": "<p>公司详情(index)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardIndex"
- },
- {
- "type": "get",
- "url": "/api/card/info",
- "title": "个人详情(info)",
- "description": "<p>个人详情(info)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//个人详情\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardInfo"
- },
- {
- "type": "get",
- "url": "/api/card/progress",
- "title": "个人经历(progress)",
- "description": "<p>个人经历(progress)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"progress\": []//个人经历\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardProgress"
- },
- {
- "type": "get",
- "url": "/api/card/project",
- "title": "经营项目(project)",
- "description": "<p>经营项目(project)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardProject"
- },
- {
- "type": "get",
- "url": "/api/card/projectDetail",
- "title": "经营项目详情(projectDetail)",
- "description": "<p>经营项目详情(projectDetail)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "pro_id",
- "description": "<p>项目ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardProjectdetail"
- },
- {
- "type": "get",
- "url": "/api/card/setting",
- "title": "基础设置",
- "description": "<p>基础设置</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardSetting"
- },
- {
- "type": "get",
- "url": "/api/card/trend",
- "title": "所有动态(trend)",
- "description": "<p>所有动态(trend)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//所有动态\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardTrend"
- },
- {
- "type": "get",
- "url": "/api/card/trendDetail",
- "title": "个人动态详情(trendDetail)",
- "description": "<p>个人动态详情(trendDetail)</p>",
- "group": "Card",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>user_id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "trend_id",
- "description": "<p>动态ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//经营项目\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CardController.php",
- "groupTitle": "Card",
- "name": "GetApiCardTrenddetail"
- },
- {
- "type": "get",
- "url": "/api/cate/index",
- "title": "分类",
- "description": "<p>分类</p>",
- "group": "Cate",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "page",
- "defaultValue": "1",
- "description": "<p>页码(分页参数)</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "id",
- "description": "<p>分类 id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CateController.php",
- "groupTitle": "Cate",
- "name": "GetApiCateIndex"
- },
- {
- "type": "get",
- "url": "/api/company/info",
- "title": "公司详情(info)",
- "description": "<p>公司详情(info)</p>",
- "group": "Company",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//公司详情\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/CompanyController.php",
- "groupTitle": "Company",
- "name": "GetApiCompanyInfo"
- },
- {
- "type": "get",
- "url": "/api/find/index",
- "title": "发现",
- "description": "<p>发现</p>",
- "group": "Find",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "page",
- "description": "<p>分页参数</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FindController.php",
- "groupTitle": "Find",
- "name": "GetApiFindIndex"
- },
- {
- "type": "get",
- "url": "/api/furniture/add_comments",
- "title": "添加新闻评论",
- "description": "<p>添加新闻评论(news_list)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "news_id",
- "description": "<p>新闻ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "content",
- "description": "<p>评论内容</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comments_id",
- "description": "<p>被回复的评论ID。对新闻评论:0; 对评论回复:被回复的评论的具体ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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已过期,请重新登录",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureAdd_comments"
- },
- {
- "type": "get",
- "url": "/api/furniture/addtolike",
- "title": "新闻点赞",
- "description": "<p>新闻点赞</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "None"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "news_id",
- "description": "<p>新闻ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "like",
- "description": "<p>喜欢 (参数:1)</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureAddtolike"
- },
- {
- "type": "get",
- "url": "/api/furniture/getmorecomments",
- "title": "获取全部评论/回复",
- "description": "<p>获取全部评论/回复(getmorecomments)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>评论/回复 id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureGetmorecomments"
- },
- {
- "type": "get",
- "url": "/api/furniture/goods_list",
- "title": "获取产品列表",
- "description": "<p>获取产品列表(goods_list)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureGoods_list"
- },
- {
- "type": "get",
- "url": "/api/furniture/newgoods_index",
- "title": "新品发布详情",
- "description": "<p>获取新品发布详情(news_index)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>新品id 模拟值为1</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureNewgoods_index"
- },
- {
- "type": "get",
- "url": "/api/furniture/newgoods_list",
- "title": "新品发布列表",
- "description": "<p>获取新品发布列表(news_list)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureNewgoods_list"
- },
- {
- "type": "get",
- "url": "/api/furniture/news_detail",
- "title": "获取新闻详情",
- "description": "<p>获取新闻详情(news_detail)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "newsid",
- "description": "<p>新闻id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureNews_detail"
- },
- {
- "type": "get",
- "url": "/api/furniture/news_list",
- "title": "获取新闻列表",
- "description": "<p>获取新闻列表(news_list)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "GetApiFurnitureNews_list"
- },
- {
- "type": "post",
- "url": "/api/furniture/newgoods_addbooking",
- "title": "新品发布添加预售",
- "description": "<p>添加预售(newgoods_addbooking)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "newgoods_id",
- "description": "<p>新品id 模拟值为1</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "phone",
- "description": "<p>电话</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "receiver_name",
- "description": "<p>姓名</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "receiver_address",
- "description": "<p>地址</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "PostApiFurnitureNewgoods_addbooking"
- },
- {
- "type": "post",
- "url": "/api/furniture/newgoods_addcomment",
- "title": "新品发布添加评论",
- "description": "<p>添加评论(newgoods_addcomment)</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "store_id",
- "description": "<p>商户id 模拟值为1</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "newgoods_id",
- "description": "<p>新品id 模拟值为1</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comments_field_1",
- "description": "<p>字段1评分 1-5</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comments_field_2",
- "description": "<p>字段1评分 1-5</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comments_field_3",
- "description": "<p>字段1评分 1-5</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comments_field_4",
- "description": "<p>字段1评分 1-5</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "content",
- "description": "<p>评论详情</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": true,
- "field": "picture",
- "description": "<p>图片</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "PostApiFurnitureNewgoods_addcomment"
- },
- {
- "type": "post",
- "url": "/api/furniture/setting",
- "title": "首页基本设置",
- "description": "<p>首页基本设置</p>",
- "group": "Furniture",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": "<p>店铺ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture",
- "name": "PostApiFurnitureSetting"
- },
- {
- "type": "get",
- "url": "/api/furniture/getattr",
- "title": "获取产品属性",
- "description": "<p>获取产品属性</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "id",
- "description": "<p>默认获取品类,传品类id获取该品类的型号,传型号id获取该型号的颜色</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetattr"
- },
- {
- "type": "get",
- "url": "/api/furniture/getfurnitureads",
- "title": "获取首页广告",
- "description": "<p>获取首页广告</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetfurnitureads"
- },
- {
- "type": "get",
- "url": "/api/furniture/getorder",
- "title": "获取订单信息",
- "description": "<p>获取订单</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "user_id",
- "description": "<p>(填写user_id,查询用户个人订单,不填则查询店铺订单)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "status",
- "description": "<p>(可填) (选填 0:待审核;1:待生产;2:生产中;3:待发货;4:运输中/未签收 5:已签收/待评价 6:已评价 7:已取消 null:全部订单 8:生产部全部订单/个人待发货订单 9:包装部全部订单)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "expected",
- "description": "<p>(1:查询逾期的订单)</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetorder"
- },
- {
- "type": "get",
- "url": "/api/furniture/getorderdetail",
- "title": "获取订单详情",
- "description": "<p>获取订单详情</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "order_id",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetorderdetail"
- },
- {
- "type": "get",
- "url": "/api/furniture/getprogress",
- "title": "订单进度统计",
- "description": "<p>订单进度统计</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "user_id",
- "description": "<p>(查询用户个人各个订单状态数量时带上此参数)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "status",
- "description": "<p>( 0:待审核;1:待生产;2:生产中;3:待发货;4:未签收,不填写则返回所有状态下的订单数量)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "expected",
- "description": "<p>1:逾期)</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- },
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetprogress"
- },
- {
- "type": "get",
- "url": "/api/furniture/getreviewcount",
- "title": "评价统计",
- "description": "<p>评价统计</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "days",
- "description": "<p>(必填 0:今天;7:7天内;30:30天内</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureGetreviewcount"
- },
- {
- "type": "get",
- "url": "/api/furniture/ordercount",
- "title": "按产品/品类统计",
- "description": "<p>按产品/品类统计</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "type",
- "description": "<p>按产品统计,可选值:1</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "category",
- "description": "<p>按品类统计,与type二选一,不能与type同时传值。可选值:1(所有品类)具体品类的值(统计具体品类)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "days",
- "description": "<p>可选:0,7,30</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureOrdercount"
- },
- {
- "type": "get",
- "url": "/api/furniture/searchlist",
- "title": "产品订单搜索列表页",
- "description": "<p>产品订单搜索列表页</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "keyword",
- "description": "<p>搜索关键字</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "GetApiFurnitureSearchlist"
- },
- {
- "type": "post",
- "url": "/api/furniture/addreview",
- "title": "添加评论",
- "description": "<p>添加评论</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "order_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "verifier_review",
- "description": "<p>客服部评论:0:好评;1:中评:2:差评</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "producer_review",
- "description": "<p>生产部部评论:0:好评;1:中评:2:差评</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "packer_review",
- "description": "<p>包装部评论:0:好评;1:中评:2:差评</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "description",
- "description": "<p>评论描述</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "picture",
- "description": "<p>图片</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureAddreview"
- },
- {
- "type": "post",
- "url": "/api/furniture/createorder",
- "title": "创建售后订单",
- "description": "<p>创建售后订单</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": "<p>Store_id</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "category",
- "description": "<p>产品类别</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "type",
- "description": "<p>产品型号</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "color",
- "description": "<p>产品颜色</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "question",
- "description": "<p>问题描述</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "picture",
- "description": "<p>图片</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "customer_name",
- "description": "<p>联系人姓名</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "customer_phone",
- "description": "<p>联系人电话</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "customer_address",
- "description": "<p>联系人地址</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"category\": [\n\n ]\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureCreateorder"
- },
- {
- "type": "post",
- "url": "/api/furniture/getphonenumber",
- "title": "获取手机号",
- "description": "<p>获取手机号</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "session_key",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "iv",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "encryptData",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureGetphonenumber"
- },
- {
- "type": "post",
- "url": "/api/furniture/printorder",
- "title": "打印订单",
- "description": "<p>打印订单</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "order_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "role",
- "description": "<p>1:生产部</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurniturePrintorder"
- },
- {
- "type": "post",
- "url": "/api/furniture/saveformid",
- "title": "保存formid",
- "description": "<p>保存formid</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "openid",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "formid",
- "description": ""
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureSaveformid"
- },
- {
- "type": "post",
- "url": "/api/furniture/service_login",
- "title": "登陆(login)",
- "description": "<p>登陆(login)</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "code",
- "description": "<p>小程序登录生成的code</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "nickName",
- "description": "<p>微信昵称</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "avatar",
- "description": "<p>微信头像</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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失败",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureService_login"
- },
- {
- "type": "post",
- "url": "/api/furniture/updatestatus",
- "title": "更新订单状态",
- "description": "<p>更新订单状态</p>",
- "group": "Furniture_Service",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "store_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "order_id",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "status",
- "description": "<p>2:开始生产 3:生产完毕并入库 4:发货 5:确认收货 7:取消订单</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "remark",
- "description": "<p>备注,发货时可携带此参数</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK 更新状态成功\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"ok\":1\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/FurnitureController.php",
- "groupTitle": "Furniture_Service",
- "name": "PostApiFurnitureUpdatestatus"
- },
- {
- "type": "get",
- "url": "/api/goods/addtocar",
- "title": "添加至购物车",
- "description": "<p>添加至购物车</p>",
- "group": "Goods",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "number",
- "description": "<p>商品数量</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": false,
- "field": "attr",
- "description": "<p>商品属性</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
- "groupTitle": "Goods",
- "name": "GetApiGoodsAddtocar"
- },
- {
- "type": "get",
- "url": "/api/goods/chose_attr",
- "title": "选择属性",
- "description": "<p>选择属性</p>",
- "group": "Goods",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": false,
- "field": "attr",
- "description": "<p>商品属性</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
- "groupTitle": "Goods",
- "name": "GetApiGoodsChose_attr"
- },
- {
- "type": "get",
- "url": "/api/goods/collection",
- "title": "收藏/取消",
- "description": "<p>收藏/取消</p>",
- "group": "Goods",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "value",
- "description": "<p>0或1 0(取消收藏)</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
- "groupTitle": "Goods",
- "name": "GetApiGoodsCollection"
- },
- {
- "type": "get",
- "url": "/api/goods/show",
- "title": "商品详情",
- "description": "<p>商品详情</p>",
- "group": "Goods",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>商品id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
- "groupTitle": "Goods",
- "name": "GetApiGoodsShow"
- },
- {
- "type": "post",
- "url": "/api/goods/comment",
- "title": "评价/回复评价",
- "description": "<p>评价</p>",
- "group": "Goods",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "goods_id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "level",
- "description": "<p>评论星级(321好中差)</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "comment",
- "description": "<p>评论内容不能为空</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "comment_id",
- "description": "<p>评论id</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": true,
- "field": "images",
- "description": "<p>上传图片</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/GoodsController.php",
- "groupTitle": "Goods",
- "name": "PostApiGoodsComment"
- },
- {
- "type": "get",
- "url": "/api/home/index",
- "title": "首页",
- "description": "<p>首页</p>",
- "group": "Home",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "head_cate_id",
- "description": "<p>头部分类id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/HomeController.php",
- "groupTitle": "Home",
- "name": "GetApiHomeIndex"
- },
- {
- "type": "get",
- "url": "/api/home/search",
- "title": "搜索",
- "description": "<p>搜索</p>",
- "group": "Home",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "keyword",
- "description": "<p>keyword</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/HomeController.php",
- "groupTitle": "Home",
- "name": "GetApiHomeSearch"
- },
- {
- "type": "get",
- "url": "/api/my/address/area",
- "title": "返回省市区地址",
- "description": "<p>返回省市区地址</p>",
- "group": "My",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "GetApiMyAddressArea"
- },
- {
- "type": "get",
- "url": "/api/my/address/delete",
- "title": "地址删除",
- "description": "<p>地址删除</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>主键id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "GetApiMyAddressDelete"
- },
- {
- "type": "get",
- "url": "/api/my/address/edit",
- "title": "修改默认地址",
- "description": "<p>修改默认地址</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>主键id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "status",
- "description": "<p>1</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "GetApiMyAddressEdit"
- },
- {
- "type": "get",
- "url": "/api/my/address/index",
- "title": "地址列表",
- "description": "<p>地址列表</p>",
- "group": "My",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "GetApiMyAddressIndex"
- },
- {
- "type": "get",
- "url": "/api/my/address/show",
- "title": "地址详情",
- "description": "<p>地址详情</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>收货人地址id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "GetApiMyAddressShow"
- },
- {
- "type": "get",
- "url": "/api/my/favorite",
- "title": "收藏",
- "description": "<p>收藏</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "page",
- "defaultValue": "1",
- "description": "<p>分页参数</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyFavorite"
- },
- {
- "type": "get",
- "url": "/api/my/index",
- "title": "首页",
- "description": "<p>首页</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyIndex"
- },
- {
- "type": "post",
- "url": "/api/my/address/update",
- "title": "地址编辑",
- "description": "<p>地址编辑</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "id",
- "description": "<p>主键id 存在表示修改</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "name",
- "description": "<p>收货人姓名</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "tel",
- "description": "<p>收货人电话</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "area",
- "description": "<p>省市区地址</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "address",
- "description": "<p>详细地址</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "status",
- "description": "<p>1或0 1为默认地址</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/AddressController.php",
- "groupTitle": "My",
- "name": "PostApiMyAddressUpdate"
- },
- {
- "type": "get",
- "url": "/api/order/create",
- "title": "创建订单",
- "description": "<p>创建订单</p>",
- "group": "Order",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "address_id",
- "description": "<p>收货地址id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "number",
- "description": "<p>商品数量</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": true,
- "field": "attr",
- "description": "<p>商品属性 //购物车id列表或是商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": true,
- "field": "cart_id_list",
- "description": "<p>购物车id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2004,\n \"message\": \"数据异常\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/OrderController.php",
- "groupTitle": "Order",
- "name": "GetApiOrderCreate"
- },
- {
- "type": "get",
- "url": "/api/order/show",
- "title": "订单详情",
- "description": "<p>订单详情</p>",
- "group": "Order",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>订单id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2009,\n \"message\": \"订单没有找到\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/OrderController.php",
- "groupTitle": "Order",
- "name": "GetApiOrderShow"
- },
- {
- "type": "get",
- "url": "/api/order/sure",
- "title": "立即购买(或是购物车结算)",
- "description": "<p>立即购买(或是购物车结算)</p>",
- "group": "Order",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "appid",
- "description": "<p>appid</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "id",
- "description": "<p>商品id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "number",
- "description": "<p>商品数量</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": true,
- "field": "cart_id",
- "description": "<p>购物车id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/OrderController.php",
- "groupTitle": "Order",
- "name": "GetApiOrderSure"
- },
- {
- "type": "post",
- "url": "/api/order/pay",
- "title": "支付",
- "description": "<p>支付</p>",
- "group": "Order",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>订单id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/OrderController.php",
- "groupTitle": "Order",
- "name": "PostApiOrderPay"
- },
- {
- "type": "post",
- "url": "/api/order/refund",
- "title": "申请售后",
- "description": "<p>申请售后</p>",
- "group": "Order",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "order_id",
- "description": "<p>订单id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "refund_type",
- "description": "<p>售后类型</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "refund_price",
- "description": "<p>价格</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "refund_desc",
- "description": "<p>原因</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": false,
- "field": "pic_list",
- "description": "<p>凭证</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/OrderController.php",
- "groupTitle": "Order",
- "name": "PostApiOrderRefund"
- }
- ] });
|