1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133 |
- 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": "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": "parent_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": ""
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "parent_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/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/download",
- "title": "下载海报(download)",
- "description": "<p>生成海报(download)</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": "int",
- "optional": true,
- "field": "poster_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/AlbumPosterController.php",
- "groupTitle": "Album_Post",
- "name": "PostApiAlbum_postDownload"
- },
- {
- "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/boss_interactive",
- "title": "经销商互动排名(boss_interactive)",
- "description": "<p>经销商互动排名(boss_interactive)</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 {\n \"realname\" : 释迦摩尼,\n \"interactive\" : 111\n \"avatar\" : 111\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_bossBoss_interactive"
- },
- {
- "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_analysis",
- "title": "经销商分析(agent_analysis)",
- "description": "<p>经销商分析(agent_analysis)</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 {\n \"realname\" : 释迦摩尼,\n \"pointCount\" : 111\n \"callCount\" : 111\n \"favoriteCount\" : 111\n \"get_count\" : 111\n \"share_times\" : 111\n \"newCount\" : 111\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_analysis"
- },
- {
- "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>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "pageNum",
- "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 \"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_active",
- "title": "经销商总览活跃客户(agent_overview_active)",
- "description": "<p>经销商总览活跃客户(agent_overview_active)</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 \"activeCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\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_active"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview_call",
- "title": "经销商总览咨询(agent_overview_call)",
- "description": "<p>经销商总览咨询(agent_overview_call)</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": "day",
- "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 \"callCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\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_call"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview_favorite",
- "title": "经销商总览兴趣占比(agent_overview_favorite)",
- "description": "<p>经销商总览兴趣占比(agent_overview_favorite)</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": "parent_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 \"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_favorite"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview_funnel",
- "title": "经销商总览漏斗(agent_overview_funnel)",
- "description": "<p>经销商总览漏斗(agent_overview_funnel)</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 \"customerFollow\":11,\n \"shareCount\":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_overview_funnel"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview_left",
- "title": "经销商总览左侧(agent_overview_left)",
- "description": "<p>经销商总览左侧(agent_overview_left)</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 }\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_left"
- },
- {
- "type": "post",
- "url": "/api/album_boss/agent_overview_new",
- "title": "经销商总览新增客户(agent_overview_new)",
- "description": "<p>经销商总览新增客户(agent_overview_new)</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": "day",
- "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 \"newCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\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_new"
- },
- {
- "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"
- }
- ] });
|