docs.go 211 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import (
  5. "bytes"
  6. "encoding/json"
  7. "strings"
  8. "github.com/alecthomas/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{.Description}}",
  16. "title": "{{.Title}}",
  17. "contact": {},
  18. "license": {},
  19. "version": "{{.Version}}"
  20. },
  21. "host": "{{.Host}}",
  22. "basePath": "{{.BasePath}}",
  23. "paths": {
  24. "/api/v1/application": {
  25. "get": {
  26. "description": "应用列表",
  27. "consumes": [
  28. "application/json"
  29. ],
  30. "produces": [
  31. "application/json"
  32. ],
  33. "tags": [
  34. "应用"
  35. ],
  36. "summary": "应用列表",
  37. "parameters": [
  38. {
  39. "type": "string",
  40. "description": " ",
  41. "name": "token",
  42. "in": "header",
  43. "required": true
  44. },
  45. {
  46. "type": "integer",
  47. "description": "第几页,1为起始页, -1 不分页返回所有",
  48. "name": "page",
  49. "in": "query",
  50. "required": true
  51. },
  52. {
  53. "type": "integer",
  54. "description": "每页条数,-1 不分页返回所有",
  55. "name": "page_size",
  56. "in": "query"
  57. },
  58. {
  59. "type": "integer",
  60. "description": "0不过滤,1已发布的 2 未发布的",
  61. "name": "enable",
  62. "in": "query"
  63. }
  64. ],
  65. "responses": {
  66. "200": {
  67. "description": "OK",
  68. "schema": {
  69. "$ref": "#/definitions/v1.ApplicationListResponse"
  70. }
  71. },
  72. "500": {
  73. "description": "Internal Server Error",
  74. "schema": {
  75. "$ref": "#/definitions/base.HTTPError"
  76. }
  77. }
  78. }
  79. },
  80. "put": {
  81. "description": "编辑应用",
  82. "consumes": [
  83. "application/json"
  84. ],
  85. "produces": [
  86. "application/json"
  87. ],
  88. "tags": [
  89. "应用"
  90. ],
  91. "summary": "编辑应用",
  92. "parameters": [
  93. {
  94. "type": "string",
  95. "description": " ",
  96. "name": "token",
  97. "in": "header",
  98. "required": true
  99. },
  100. {
  101. "description": "信息",
  102. "name": "body",
  103. "in": "body",
  104. "required": true,
  105. "schema": {
  106. "$ref": "#/definitions/v1.ApplicationUpdateBody"
  107. }
  108. }
  109. ],
  110. "responses": {
  111. "200": {
  112. "description": "OK",
  113. "schema": {
  114. "$ref": "#/definitions/v1.ApplicationUpdateResponse"
  115. }
  116. },
  117. "500": {
  118. "description": "Internal Server Error",
  119. "schema": {
  120. "$ref": "#/definitions/base.HTTPError"
  121. }
  122. }
  123. }
  124. },
  125. "post": {
  126. "description": "添加应用",
  127. "consumes": [
  128. "application/json"
  129. ],
  130. "produces": [
  131. "application/json"
  132. ],
  133. "tags": [
  134. "应用"
  135. ],
  136. "summary": "添加应用",
  137. "parameters": [
  138. {
  139. "type": "string",
  140. "description": " ",
  141. "name": "token",
  142. "in": "header",
  143. "required": true
  144. },
  145. {
  146. "description": "信息",
  147. "name": "body",
  148. "in": "body",
  149. "required": true,
  150. "schema": {
  151. "$ref": "#/definitions/v1.ApplicationAddBody"
  152. }
  153. }
  154. ],
  155. "responses": {
  156. "200": {
  157. "description": "OK",
  158. "schema": {
  159. "$ref": "#/definitions/v1.ApplicationAddResponse"
  160. }
  161. },
  162. "500": {
  163. "description": "Internal Server Error",
  164. "schema": {
  165. "$ref": "#/definitions/base.HTTPError"
  166. }
  167. }
  168. }
  169. },
  170. "delete": {
  171. "description": "删除应用",
  172. "consumes": [
  173. "application/json"
  174. ],
  175. "produces": [
  176. "application/json"
  177. ],
  178. "tags": [
  179. "应用"
  180. ],
  181. "summary": "删除应用",
  182. "parameters": [
  183. {
  184. "type": "string",
  185. "description": " ",
  186. "name": "token",
  187. "in": "header",
  188. "required": true
  189. },
  190. {
  191. "type": "integer",
  192. "description": "应用id",
  193. "name": "id",
  194. "in": "query",
  195. "required": true
  196. }
  197. ],
  198. "responses": {
  199. "200": {
  200. "description": "OK",
  201. "schema": {
  202. "$ref": "#/definitions/v1.ApplicationDelResponse"
  203. }
  204. },
  205. "500": {
  206. "description": "Internal Server Error",
  207. "schema": {
  208. "$ref": "#/definitions/base.HTTPError"
  209. }
  210. }
  211. }
  212. }
  213. },
  214. "/api/v1/application/enable": {
  215. "put": {
  216. "description": "发布和下架",
  217. "consumes": [
  218. "application/json"
  219. ],
  220. "produces": [
  221. "application/json"
  222. ],
  223. "tags": [
  224. "应用"
  225. ],
  226. "summary": "发布和下架",
  227. "parameters": [
  228. {
  229. "type": "string",
  230. "description": " ",
  231. "name": "token",
  232. "in": "header",
  233. "required": true
  234. },
  235. {
  236. "description": "信息",
  237. "name": "body",
  238. "in": "body",
  239. "required": true,
  240. "schema": {
  241. "$ref": "#/definitions/v1.ApplicationEnableSetBody"
  242. }
  243. }
  244. ],
  245. "responses": {
  246. "200": {
  247. "description": "OK",
  248. "schema": {
  249. "$ref": "#/definitions/v1.ApplicationEnableSetResponse"
  250. }
  251. },
  252. "500": {
  253. "description": "Internal Server Error",
  254. "schema": {
  255. "$ref": "#/definitions/base.HTTPError"
  256. }
  257. }
  258. }
  259. }
  260. },
  261. "/api/v1/application/permissions": {
  262. "get": {
  263. "description": "应用的菜单列表",
  264. "consumes": [
  265. "application/json"
  266. ],
  267. "produces": [
  268. "application/json"
  269. ],
  270. "tags": [
  271. "应用"
  272. ],
  273. "summary": "应用的菜单列表",
  274. "parameters": [
  275. {
  276. "type": "string",
  277. "description": " ",
  278. "name": "token",
  279. "in": "header",
  280. "required": true
  281. },
  282. {
  283. "type": "integer",
  284. "description": "应用id",
  285. "name": "id",
  286. "in": "query",
  287. "required": true
  288. }
  289. ],
  290. "responses": {
  291. "200": {
  292. "description": "OK",
  293. "schema": {
  294. "$ref": "#/definitions/v1.ApplicationPermissionsResponse"
  295. }
  296. },
  297. "500": {
  298. "description": "Internal Server Error",
  299. "schema": {
  300. "$ref": "#/definitions/base.HTTPError"
  301. }
  302. }
  303. }
  304. },
  305. "put": {
  306. "description": "给应用添加菜单",
  307. "consumes": [
  308. "application/json"
  309. ],
  310. "produces": [
  311. "application/json"
  312. ],
  313. "tags": [
  314. "应用"
  315. ],
  316. "summary": "给应用添加菜单",
  317. "parameters": [
  318. {
  319. "type": "string",
  320. "description": " ",
  321. "name": "token",
  322. "in": "header",
  323. "required": true
  324. },
  325. {
  326. "description": "信息",
  327. "name": "body",
  328. "in": "body",
  329. "required": true,
  330. "schema": {
  331. "$ref": "#/definitions/v1.ApplicationPermissionsSetBody"
  332. }
  333. }
  334. ],
  335. "responses": {
  336. "200": {
  337. "description": "OK",
  338. "schema": {
  339. "$ref": "#/definitions/v1.ApplicationPermissionsSetResponse"
  340. }
  341. },
  342. "500": {
  343. "description": "Internal Server Error",
  344. "schema": {
  345. "$ref": "#/definitions/base.HTTPError"
  346. }
  347. }
  348. }
  349. }
  350. },
  351. "/api/v1/area/province_city_area": {
  352. "get": {
  353. "description": "省市区列表",
  354. "consumes": [
  355. "application/json"
  356. ],
  357. "produces": [
  358. "application/json"
  359. ],
  360. "tags": [
  361. "区域"
  362. ],
  363. "summary": "省市区列表",
  364. "parameters": [
  365. {
  366. "type": "string",
  367. "description": " ",
  368. "name": "token",
  369. "in": "header",
  370. "required": true
  371. }
  372. ],
  373. "responses": {
  374. "200": {
  375. "description": "OK",
  376. "schema": {
  377. "$ref": "#/definitions/v1.ProvinceCityAreaResponse"
  378. }
  379. },
  380. "500": {
  381. "description": "Internal Server Error",
  382. "schema": {
  383. "$ref": "#/definitions/base.HTTPError"
  384. }
  385. }
  386. }
  387. }
  388. },
  389. "/api/v1/area/street_committee": {
  390. "get": {
  391. "description": "街道社区列表",
  392. "consumes": [
  393. "application/json"
  394. ],
  395. "produces": [
  396. "application/json"
  397. ],
  398. "tags": [
  399. "区域"
  400. ],
  401. "summary": "街道社区列表",
  402. "parameters": [
  403. {
  404. "type": "string",
  405. "description": " ",
  406. "name": "token",
  407. "in": "header",
  408. "required": true
  409. },
  410. {
  411. "type": "string",
  412. "description": "区域代码",
  413. "name": "area_code",
  414. "in": "query",
  415. "required": true
  416. }
  417. ],
  418. "responses": {
  419. "200": {
  420. "description": "OK",
  421. "schema": {
  422. "$ref": "#/definitions/v1.StreetCommitteeResponse"
  423. }
  424. },
  425. "500": {
  426. "description": "Internal Server Error",
  427. "schema": {
  428. "$ref": "#/definitions/base.HTTPError"
  429. }
  430. }
  431. }
  432. }
  433. },
  434. "/api/v1/company/approve": {
  435. "put": {
  436. "description": "审核公司",
  437. "consumes": [
  438. "application/json"
  439. ],
  440. "produces": [
  441. "application/json"
  442. ],
  443. "tags": [
  444. "物业公司"
  445. ],
  446. "summary": "审核公司",
  447. "parameters": [
  448. {
  449. "type": "string",
  450. "description": " ",
  451. "name": "token",
  452. "in": "header",
  453. "required": true
  454. },
  455. {
  456. "description": "审批信息",
  457. "name": "body",
  458. "in": "body",
  459. "required": true,
  460. "schema": {
  461. "$ref": "#/definitions/v1.CompanyApproveBody"
  462. }
  463. }
  464. ],
  465. "responses": {
  466. "200": {
  467. "description": "OK",
  468. "schema": {
  469. "$ref": "#/definitions/v1.CompanyApproveResponse"
  470. }
  471. },
  472. "500": {
  473. "description": "Internal Server Error",
  474. "schema": {
  475. "$ref": "#/definitions/base.HTTPError"
  476. }
  477. }
  478. }
  479. }
  480. },
  481. "/api/v1/company/free_garden": {
  482. "put": {
  483. "description": "修改配额",
  484. "consumes": [
  485. "application/json"
  486. ],
  487. "produces": [
  488. "application/json"
  489. ],
  490. "tags": [
  491. "物业公司"
  492. ],
  493. "summary": "修改配额",
  494. "parameters": [
  495. {
  496. "type": "string",
  497. "description": " ",
  498. "name": "token",
  499. "in": "header",
  500. "required": true
  501. },
  502. {
  503. "description": " ",
  504. "name": "body",
  505. "in": "body",
  506. "required": true,
  507. "schema": {
  508. "$ref": "#/definitions/v1.CompanyChangeFreeGardenBody"
  509. }
  510. }
  511. ],
  512. "responses": {
  513. "200": {
  514. "description": "OK",
  515. "schema": {
  516. "$ref": "#/definitions/v1.CompanyChangeFreeGardenResponse"
  517. }
  518. },
  519. "500": {
  520. "description": "Internal Server Error",
  521. "schema": {
  522. "$ref": "#/definitions/base.HTTPError"
  523. }
  524. }
  525. }
  526. }
  527. },
  528. "/api/v1/company/list": {
  529. "get": {
  530. "description": "公司列表",
  531. "consumes": [
  532. "application/json"
  533. ],
  534. "produces": [
  535. "application/json"
  536. ],
  537. "tags": [
  538. "物业公司"
  539. ],
  540. "summary": "公司列表",
  541. "parameters": [
  542. {
  543. "type": "string",
  544. "description": " ",
  545. "name": "token",
  546. "in": "header",
  547. "required": true
  548. },
  549. {
  550. "type": "string",
  551. "description": "公司名称",
  552. "name": "company_name",
  553. "in": "query"
  554. },
  555. {
  556. "type": "integer",
  557. "description": "0 所有 1 待审核 2 未通过 3 通过",
  558. "name": "approve_status",
  559. "in": "query"
  560. },
  561. {
  562. "type": "integer",
  563. "description": "第几页,1为起始页, -1 不分页返回所有",
  564. "name": "page",
  565. "in": "query",
  566. "required": true
  567. },
  568. {
  569. "type": "integer",
  570. "description": "每页条数",
  571. "name": "page_size",
  572. "in": "query"
  573. }
  574. ],
  575. "responses": {
  576. "200": {
  577. "description": "OK",
  578. "schema": {
  579. "$ref": "#/definitions/v1.CompanyListResponse"
  580. }
  581. },
  582. "500": {
  583. "description": "Internal Server Error",
  584. "schema": {
  585. "$ref": "#/definitions/base.HTTPError"
  586. }
  587. }
  588. }
  589. }
  590. },
  591. "/api/v1/company/package": {
  592. "get": {
  593. "description": "套餐列表",
  594. "consumes": [
  595. "application/json"
  596. ],
  597. "produces": [
  598. "application/json"
  599. ],
  600. "tags": [
  601. "公司套餐"
  602. ],
  603. "summary": "套餐列表",
  604. "parameters": [
  605. {
  606. "type": "string",
  607. "description": " ",
  608. "name": "token",
  609. "in": "header",
  610. "required": true
  611. },
  612. {
  613. "type": "integer",
  614. "description": "第几页,1为起始页, -1 不分页返回所有",
  615. "name": "page",
  616. "in": "query",
  617. "required": true
  618. },
  619. {
  620. "type": "integer",
  621. "description": "每页条数,-1 不分页返回所有",
  622. "name": "page_size",
  623. "in": "query"
  624. },
  625. {
  626. "type": "integer",
  627. "description": "公司id(用于获取公司下的套餐)",
  628. "name": "cid",
  629. "in": "query"
  630. }
  631. ],
  632. "responses": {
  633. "200": {
  634. "description": "OK",
  635. "schema": {
  636. "$ref": "#/definitions/v1.CompanyPackageListResponse"
  637. }
  638. },
  639. "500": {
  640. "description": "Internal Server Error",
  641. "schema": {
  642. "$ref": "#/definitions/base.HTTPError"
  643. }
  644. }
  645. }
  646. }
  647. },
  648. "/api/v1/company/register": {
  649. "post": {
  650. "description": "添加公司",
  651. "consumes": [
  652. "application/json"
  653. ],
  654. "produces": [
  655. "application/json"
  656. ],
  657. "tags": [
  658. "物业公司"
  659. ],
  660. "summary": "添加公司",
  661. "parameters": [
  662. {
  663. "type": "string",
  664. "description": " ",
  665. "name": "token",
  666. "in": "header",
  667. "required": true
  668. },
  669. {
  670. "description": "注册信息",
  671. "name": "body",
  672. "in": "body",
  673. "required": true,
  674. "schema": {
  675. "$ref": "#/definitions/v1.CompanyRegisterBody"
  676. }
  677. }
  678. ],
  679. "responses": {
  680. "200": {
  681. "description": "OK",
  682. "schema": {
  683. "$ref": "#/definitions/v1.CompanyRegisterResponse"
  684. }
  685. },
  686. "500": {
  687. "description": "Internal Server Error",
  688. "schema": {
  689. "$ref": "#/definitions/base.HTTPError"
  690. }
  691. }
  692. }
  693. }
  694. },
  695. "/api/v1/company/wx_account": {
  696. "get": {
  697. "description": "微信商户申请记录",
  698. "consumes": [
  699. "application/json"
  700. ],
  701. "produces": [
  702. "application/json"
  703. ],
  704. "tags": [
  705. "公司"
  706. ],
  707. "summary": "微信商户申请记录",
  708. "parameters": [
  709. {
  710. "type": "string",
  711. "description": " ",
  712. "name": "token",
  713. "in": "header",
  714. "required": true
  715. },
  716. {
  717. "type": "integer",
  718. "description": " ",
  719. "name": "page",
  720. "in": "query",
  721. "required": true
  722. },
  723. {
  724. "type": "integer",
  725. "description": " ",
  726. "name": "page_size",
  727. "in": "query",
  728. "required": true
  729. }
  730. ],
  731. "responses": {
  732. "200": {
  733. "description": "OK",
  734. "schema": {
  735. "$ref": "#/definitions/v1.CompanyWxAccountListResponse"
  736. }
  737. },
  738. "500": {
  739. "description": "Internal Server Error",
  740. "schema": {
  741. "$ref": "#/definitions/base.HTTPError"
  742. }
  743. }
  744. }
  745. }
  746. },
  747. "/api/v1/company/wx_account_info": {
  748. "get": {
  749. "description": "微信商户申请资料详情",
  750. "consumes": [
  751. "application/json"
  752. ],
  753. "produces": [
  754. "application/json"
  755. ],
  756. "tags": [
  757. "公司"
  758. ],
  759. "summary": "微信商户申请资料详情",
  760. "parameters": [
  761. {
  762. "type": "string",
  763. "description": " ",
  764. "name": "token",
  765. "in": "header",
  766. "required": true
  767. },
  768. {
  769. "type": "integer",
  770. "description": "申请记录id",
  771. "name": "id",
  772. "in": "query",
  773. "required": true
  774. }
  775. ],
  776. "responses": {
  777. "200": {
  778. "description": "OK",
  779. "schema": {
  780. "$ref": "#/definitions/v1.CompanyWxAccountApplyInfoResponse"
  781. }
  782. },
  783. "500": {
  784. "description": "Internal Server Error",
  785. "schema": {
  786. "$ref": "#/definitions/base.HTTPError"
  787. }
  788. }
  789. }
  790. }
  791. },
  792. "/api/v1/garden": {
  793. "get": {
  794. "description": "小区列表",
  795. "consumes": [
  796. "application/json"
  797. ],
  798. "produces": [
  799. "application/json"
  800. ],
  801. "tags": [
  802. "小区"
  803. ],
  804. "summary": "小区列表",
  805. "parameters": [
  806. {
  807. "type": "string",
  808. "description": " ",
  809. "name": "token",
  810. "in": "header",
  811. "required": true
  812. },
  813. {
  814. "type": "string",
  815. "description": "社区代码",
  816. "name": "committee_code",
  817. "in": "query"
  818. },
  819. {
  820. "type": "string",
  821. "description": "街道代码",
  822. "name": "street_code",
  823. "in": "query"
  824. },
  825. {
  826. "type": "string",
  827. "description": "小区名字",
  828. "name": "garden_name",
  829. "in": "query"
  830. },
  831. {
  832. "type": "integer",
  833. "description": "第几页,1为起始页, -1 不分页返回所有",
  834. "name": "page",
  835. "in": "query",
  836. "required": true
  837. },
  838. {
  839. "type": "integer",
  840. "description": "每页条数,-1 不分页返回所有",
  841. "name": "page_size",
  842. "in": "query"
  843. },
  844. {
  845. "type": "boolean",
  846. "description": "true 待审批或未通过的数据 false 审批通过的数据",
  847. "name": "not_approved",
  848. "in": "query"
  849. }
  850. ],
  851. "responses": {
  852. "200": {
  853. "description": "OK",
  854. "schema": {
  855. "$ref": "#/definitions/v1.GardenListResponse"
  856. }
  857. },
  858. "500": {
  859. "description": "Internal Server Error",
  860. "schema": {
  861. "$ref": "#/definitions/base.HTTPError"
  862. }
  863. }
  864. }
  865. },
  866. "put": {
  867. "description": "新增小区审核",
  868. "consumes": [
  869. "application/json"
  870. ],
  871. "produces": [
  872. "application/json"
  873. ],
  874. "tags": [
  875. "小区"
  876. ],
  877. "summary": "新增小区审核",
  878. "parameters": [
  879. {
  880. "type": "string",
  881. "description": " ",
  882. "name": "token",
  883. "in": "header",
  884. "required": true
  885. },
  886. {
  887. "description": "小区信息",
  888. "name": "body",
  889. "in": "body",
  890. "required": true,
  891. "schema": {
  892. "$ref": "#/definitions/v1.GardenApproveBody"
  893. }
  894. }
  895. ],
  896. "responses": {
  897. "200": {
  898. "description": "OK",
  899. "schema": {
  900. "$ref": "#/definitions/v1.GardenApproveResponse"
  901. }
  902. },
  903. "500": {
  904. "description": "Internal Server Error",
  905. "schema": {
  906. "$ref": "#/definitions/base.HTTPError"
  907. }
  908. }
  909. }
  910. }
  911. },
  912. "/api/v1/garden/company": {
  913. "put": {
  914. "description": "小区更换物业公司",
  915. "consumes": [
  916. "application/json"
  917. ],
  918. "produces": [
  919. "application/json"
  920. ],
  921. "tags": [
  922. "小区"
  923. ],
  924. "summary": "小区更换物业公司",
  925. "parameters": [
  926. {
  927. "type": "string",
  928. "description": " ",
  929. "name": "token",
  930. "in": "header",
  931. "required": true
  932. },
  933. {
  934. "description": " ",
  935. "name": "body",
  936. "in": "body",
  937. "required": true,
  938. "schema": {
  939. "$ref": "#/definitions/v1.GardenChangeCompanyBody"
  940. }
  941. }
  942. ],
  943. "responses": {
  944. "200": {
  945. "description": "OK",
  946. "schema": {
  947. "$ref": "#/definitions/v1.GardenChangeCompanyResponse"
  948. }
  949. },
  950. "500": {
  951. "description": "Internal Server Error",
  952. "schema": {
  953. "$ref": "#/definitions/base.HTTPError"
  954. }
  955. }
  956. }
  957. }
  958. },
  959. "/api/v1/garden/enable": {
  960. "put": {
  961. "description": "启用停用",
  962. "consumes": [
  963. "application/json"
  964. ],
  965. "produces": [
  966. "application/json"
  967. ],
  968. "tags": [
  969. "小区"
  970. ],
  971. "summary": "启用停用",
  972. "parameters": [
  973. {
  974. "type": "string",
  975. "description": " ",
  976. "name": "token",
  977. "in": "header",
  978. "required": true
  979. },
  980. {
  981. "description": "信息",
  982. "name": "body",
  983. "in": "body",
  984. "required": true,
  985. "schema": {
  986. "$ref": "#/definitions/v1.GardenEnableSetBody"
  987. }
  988. }
  989. ],
  990. "responses": {
  991. "200": {
  992. "description": "OK",
  993. "schema": {
  994. "$ref": "#/definitions/v1.GardenEnableSetResponse"
  995. }
  996. },
  997. "500": {
  998. "description": "Internal Server Error",
  999. "schema": {
  1000. "$ref": "#/definitions/base.HTTPError"
  1001. }
  1002. }
  1003. }
  1004. }
  1005. },
  1006. "/api/v1/garden/key_info": {
  1007. "get": {
  1008. "description": "小区关键信息申请列表",
  1009. "consumes": [
  1010. "application/json"
  1011. ],
  1012. "produces": [
  1013. "application/json"
  1014. ],
  1015. "tags": [
  1016. "小区"
  1017. ],
  1018. "summary": "小区关键信息申请列表",
  1019. "parameters": [
  1020. {
  1021. "type": "string",
  1022. "description": " ",
  1023. "name": "token",
  1024. "in": "header",
  1025. "required": true
  1026. },
  1027. {
  1028. "type": "integer",
  1029. "description": " ",
  1030. "name": "page",
  1031. "in": "query"
  1032. },
  1033. {
  1034. "type": "integer",
  1035. "description": " ",
  1036. "name": "page_size",
  1037. "in": "query"
  1038. },
  1039. {
  1040. "type": "integer",
  1041. "description": "0不过率 1 待审核 2 审核通过 3 未通过 ",
  1042. "name": "status",
  1043. "in": "query"
  1044. }
  1045. ],
  1046. "responses": {
  1047. "200": {
  1048. "description": "OK",
  1049. "schema": {
  1050. "$ref": "#/definitions/v1.GardenKeyInfoChangeListResponse"
  1051. }
  1052. },
  1053. "500": {
  1054. "description": "Internal Server Error",
  1055. "schema": {
  1056. "$ref": "#/definitions/base.HTTPError"
  1057. }
  1058. }
  1059. }
  1060. },
  1061. "put": {
  1062. "description": "小区关键信息修改审核",
  1063. "consumes": [
  1064. "application/json"
  1065. ],
  1066. "produces": [
  1067. "application/json"
  1068. ],
  1069. "tags": [
  1070. "小区"
  1071. ],
  1072. "summary": "小区关键信息修改审核",
  1073. "parameters": [
  1074. {
  1075. "type": "string",
  1076. "description": " ",
  1077. "name": "token",
  1078. "in": "header",
  1079. "required": true
  1080. },
  1081. {
  1082. "description": "小区信息",
  1083. "name": "body",
  1084. "in": "body",
  1085. "required": true,
  1086. "schema": {
  1087. "$ref": "#/definitions/v1.GardenKeyInfoApproveBody"
  1088. }
  1089. }
  1090. ],
  1091. "responses": {
  1092. "200": {
  1093. "description": "OK",
  1094. "schema": {
  1095. "$ref": "#/definitions/v1.GardenKeyInfoApproveResponse"
  1096. }
  1097. },
  1098. "500": {
  1099. "description": "Internal Server Error",
  1100. "schema": {
  1101. "$ref": "#/definitions/base.HTTPError"
  1102. }
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "/api/v1/gate": {
  1108. "get": {
  1109. "description": "门禁列表",
  1110. "consumes": [
  1111. "application/json"
  1112. ],
  1113. "produces": [
  1114. "application/json"
  1115. ],
  1116. "tags": [
  1117. "门禁"
  1118. ],
  1119. "summary": "门禁列表",
  1120. "parameters": [
  1121. {
  1122. "type": "string",
  1123. "description": " ",
  1124. "name": "token",
  1125. "in": "header",
  1126. "required": true
  1127. },
  1128. {
  1129. "type": "integer",
  1130. "description": " ",
  1131. "name": "page",
  1132. "in": "query"
  1133. },
  1134. {
  1135. "type": "integer",
  1136. "description": " ",
  1137. "name": "page_size",
  1138. "in": "query"
  1139. },
  1140. {
  1141. "type": "integer",
  1142. "description": "小区id",
  1143. "name": "garden_id",
  1144. "in": "query"
  1145. },
  1146. {
  1147. "type": "integer",
  1148. "description": "0 不过滤 1 已出库 2 未出库",
  1149. "name": "out",
  1150. "in": "query"
  1151. },
  1152. {
  1153. "type": "string",
  1154. "description": "设备sn",
  1155. "name": "sn",
  1156. "in": "query"
  1157. }
  1158. ],
  1159. "responses": {
  1160. "200": {
  1161. "description": "OK",
  1162. "schema": {
  1163. "$ref": "#/definitions/v1.GateListResponse"
  1164. }
  1165. },
  1166. "500": {
  1167. "description": "Internal Server Error",
  1168. "schema": {
  1169. "$ref": "#/definitions/base.HTTPError"
  1170. }
  1171. }
  1172. }
  1173. },
  1174. "delete": {
  1175. "description": "门禁删除",
  1176. "consumes": [
  1177. "application/json"
  1178. ],
  1179. "produces": [
  1180. "application/json"
  1181. ],
  1182. "tags": [
  1183. "门禁"
  1184. ],
  1185. "summary": "门禁删除",
  1186. "parameters": [
  1187. {
  1188. "type": "string",
  1189. "description": " ",
  1190. "name": "token",
  1191. "in": "header",
  1192. "required": true
  1193. },
  1194. {
  1195. "type": "integer",
  1196. "description": "设备id",
  1197. "name": "device_id",
  1198. "in": "query",
  1199. "required": true
  1200. }
  1201. ],
  1202. "responses": {
  1203. "200": {
  1204. "description": "OK",
  1205. "schema": {
  1206. "$ref": "#/definitions/v1.GateDelResponse"
  1207. }
  1208. },
  1209. "500": {
  1210. "description": "Internal Server Error",
  1211. "schema": {
  1212. "$ref": "#/definitions/base.HTTPError"
  1213. }
  1214. }
  1215. }
  1216. }
  1217. },
  1218. "/api/v1/gate/import": {
  1219. "post": {
  1220. "description": "门禁批量入库",
  1221. "consumes": [
  1222. "application/json"
  1223. ],
  1224. "produces": [
  1225. "application/json"
  1226. ],
  1227. "tags": [
  1228. "门禁"
  1229. ],
  1230. "summary": "门禁批量入库",
  1231. "parameters": [
  1232. {
  1233. "type": "string",
  1234. "description": "token",
  1235. "name": "token",
  1236. "in": "header",
  1237. "required": true
  1238. },
  1239. {
  1240. "type": "file",
  1241. "description": "file",
  1242. "name": "file",
  1243. "in": "formData",
  1244. "required": true
  1245. }
  1246. ],
  1247. "responses": {
  1248. "200": {
  1249. "description": "OK",
  1250. "schema": {
  1251. "$ref": "#/definitions/v1.GateInResponse"
  1252. }
  1253. },
  1254. "500": {
  1255. "description": "Internal Server Error",
  1256. "schema": {
  1257. "$ref": "#/definitions/base.HTTPError"
  1258. }
  1259. }
  1260. }
  1261. }
  1262. },
  1263. "/api/v1/gate/in": {
  1264. "post": {
  1265. "description": "门禁入库",
  1266. "consumes": [
  1267. "application/json"
  1268. ],
  1269. "produces": [
  1270. "application/json"
  1271. ],
  1272. "tags": [
  1273. "门禁"
  1274. ],
  1275. "summary": "门禁入库",
  1276. "parameters": [
  1277. {
  1278. "type": "string",
  1279. "description": " ",
  1280. "name": "token",
  1281. "in": "header",
  1282. "required": true
  1283. },
  1284. {
  1285. "description": " ",
  1286. "name": "body",
  1287. "in": "body",
  1288. "required": true,
  1289. "schema": {
  1290. "$ref": "#/definitions/v1.GateInBody"
  1291. }
  1292. }
  1293. ],
  1294. "responses": {
  1295. "200": {
  1296. "description": "OK",
  1297. "schema": {
  1298. "$ref": "#/definitions/v1.GateInResponse"
  1299. }
  1300. },
  1301. "500": {
  1302. "description": "Internal Server Error",
  1303. "schema": {
  1304. "$ref": "#/definitions/base.HTTPError"
  1305. }
  1306. }
  1307. }
  1308. }
  1309. },
  1310. "/api/v1/gate/out": {
  1311. "put": {
  1312. "description": "门禁出库",
  1313. "consumes": [
  1314. "application/json"
  1315. ],
  1316. "produces": [
  1317. "application/json"
  1318. ],
  1319. "tags": [
  1320. "门禁"
  1321. ],
  1322. "summary": "门禁出库",
  1323. "parameters": [
  1324. {
  1325. "type": "string",
  1326. "description": " ",
  1327. "name": "token",
  1328. "in": "header",
  1329. "required": true
  1330. },
  1331. {
  1332. "description": " ",
  1333. "name": "body",
  1334. "in": "body",
  1335. "required": true,
  1336. "schema": {
  1337. "$ref": "#/definitions/v1.GateOutBody"
  1338. }
  1339. }
  1340. ],
  1341. "responses": {
  1342. "200": {
  1343. "description": "OK",
  1344. "schema": {
  1345. "$ref": "#/definitions/v1.GateOutResponse"
  1346. }
  1347. },
  1348. "500": {
  1349. "description": "Internal Server Error",
  1350. "schema": {
  1351. "$ref": "#/definitions/base.HTTPError"
  1352. }
  1353. }
  1354. }
  1355. }
  1356. },
  1357. "/api/v1/gate/protocols": {
  1358. "get": {
  1359. "description": "门禁协议列表",
  1360. "consumes": [
  1361. "application/json"
  1362. ],
  1363. "produces": [
  1364. "application/json"
  1365. ],
  1366. "tags": [
  1367. "门禁"
  1368. ],
  1369. "summary": "门禁协议列表",
  1370. "parameters": [
  1371. {
  1372. "type": "string",
  1373. "description": " ",
  1374. "name": "token",
  1375. "in": "header",
  1376. "required": true
  1377. }
  1378. ],
  1379. "responses": {
  1380. "200": {
  1381. "description": "OK",
  1382. "schema": {
  1383. "$ref": "#/definitions/v1.GateProtocolsResponse"
  1384. }
  1385. },
  1386. "500": {
  1387. "description": "Internal Server Error",
  1388. "schema": {
  1389. "$ref": "#/definitions/base.HTTPError"
  1390. }
  1391. }
  1392. }
  1393. }
  1394. },
  1395. "/api/v1/gate/recovery": {
  1396. "put": {
  1397. "description": "门禁回收",
  1398. "consumes": [
  1399. "application/json"
  1400. ],
  1401. "produces": [
  1402. "application/json"
  1403. ],
  1404. "tags": [
  1405. "门禁"
  1406. ],
  1407. "summary": "门禁回收",
  1408. "parameters": [
  1409. {
  1410. "type": "string",
  1411. "description": " ",
  1412. "name": "token",
  1413. "in": "header",
  1414. "required": true
  1415. },
  1416. {
  1417. "description": " ",
  1418. "name": "body",
  1419. "in": "body",
  1420. "required": true,
  1421. "schema": {
  1422. "$ref": "#/definitions/v1.GateRecoveryBody"
  1423. }
  1424. }
  1425. ],
  1426. "responses": {
  1427. "200": {
  1428. "description": "OK",
  1429. "schema": {
  1430. "$ref": "#/definitions/v1.GateRecoveryResponse"
  1431. }
  1432. },
  1433. "500": {
  1434. "description": "Internal Server Error",
  1435. "schema": {
  1436. "$ref": "#/definitions/base.HTTPError"
  1437. }
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "/api/v1/gate/template": {
  1443. "get": {
  1444. "description": "获取门禁模板",
  1445. "consumes": [
  1446. "application/json"
  1447. ],
  1448. "produces": [
  1449. "application/json"
  1450. ],
  1451. "tags": [
  1452. "门禁"
  1453. ],
  1454. "summary": "获取门禁模板",
  1455. "parameters": [
  1456. {
  1457. "type": "string",
  1458. "description": "token",
  1459. "name": "token",
  1460. "in": "header",
  1461. "required": true
  1462. }
  1463. ],
  1464. "responses": {
  1465. "200": {
  1466. "description": "OK",
  1467. "schema": {
  1468. "$ref": "#/definitions/v1.TemplateResponse"
  1469. }
  1470. },
  1471. "500": {
  1472. "description": "Internal Server Error",
  1473. "schema": {
  1474. "$ref": "#/definitions/base.HTTPError"
  1475. }
  1476. }
  1477. }
  1478. }
  1479. },
  1480. "/api/v1/material": {
  1481. "get": {
  1482. "description": "素材列表",
  1483. "consumes": [
  1484. "application/json"
  1485. ],
  1486. "produces": [
  1487. "application/json"
  1488. ],
  1489. "tags": [
  1490. "物业素材"
  1491. ],
  1492. "summary": "素材列表",
  1493. "parameters": [
  1494. {
  1495. "type": "string",
  1496. "description": " ",
  1497. "name": "token",
  1498. "in": "header",
  1499. "required": true
  1500. },
  1501. {
  1502. "type": "integer",
  1503. "description": " ",
  1504. "name": "page",
  1505. "in": "query"
  1506. },
  1507. {
  1508. "type": "integer",
  1509. "description": " ",
  1510. "name": "page_size",
  1511. "in": "query"
  1512. }
  1513. ],
  1514. "responses": {
  1515. "200": {
  1516. "description": "OK",
  1517. "schema": {
  1518. "$ref": "#/definitions/v1.MaterialListResponse"
  1519. }
  1520. },
  1521. "500": {
  1522. "description": "Internal Server Error",
  1523. "schema": {
  1524. "$ref": "#/definitions/base.HTTPError"
  1525. }
  1526. }
  1527. }
  1528. },
  1529. "put": {
  1530. "description": "更改素材",
  1531. "consumes": [
  1532. "application/json"
  1533. ],
  1534. "produces": [
  1535. "application/json"
  1536. ],
  1537. "tags": [
  1538. "物业素材"
  1539. ],
  1540. "summary": "更改素材",
  1541. "parameters": [
  1542. {
  1543. "type": "string",
  1544. "description": " ",
  1545. "name": "token",
  1546. "in": "header",
  1547. "required": true
  1548. },
  1549. {
  1550. "description": "信息",
  1551. "name": "body",
  1552. "in": "body",
  1553. "required": true,
  1554. "schema": {
  1555. "$ref": "#/definitions/v1.MaterialUpdateBody"
  1556. }
  1557. }
  1558. ],
  1559. "responses": {
  1560. "200": {
  1561. "description": "OK",
  1562. "schema": {
  1563. "$ref": "#/definitions/v1.MaterialUpdateResponse"
  1564. }
  1565. },
  1566. "500": {
  1567. "description": "Internal Server Error",
  1568. "schema": {
  1569. "$ref": "#/definitions/base.HTTPError"
  1570. }
  1571. }
  1572. }
  1573. },
  1574. "post": {
  1575. "description": "添加素材",
  1576. "consumes": [
  1577. "application/json"
  1578. ],
  1579. "produces": [
  1580. "application/json"
  1581. ],
  1582. "tags": [
  1583. "物业素材"
  1584. ],
  1585. "summary": "添加素材",
  1586. "parameters": [
  1587. {
  1588. "type": "string",
  1589. "description": " ",
  1590. "name": "token",
  1591. "in": "header",
  1592. "required": true
  1593. },
  1594. {
  1595. "description": "信息",
  1596. "name": "body",
  1597. "in": "body",
  1598. "required": true,
  1599. "schema": {
  1600. "$ref": "#/definitions/v1.MaterialAddBody"
  1601. }
  1602. }
  1603. ],
  1604. "responses": {
  1605. "200": {
  1606. "description": "OK",
  1607. "schema": {
  1608. "$ref": "#/definitions/v1.MaterialAddResponse"
  1609. }
  1610. },
  1611. "500": {
  1612. "description": "Internal Server Error",
  1613. "schema": {
  1614. "$ref": "#/definitions/base.HTTPError"
  1615. }
  1616. }
  1617. }
  1618. },
  1619. "delete": {
  1620. "description": "删除素材",
  1621. "consumes": [
  1622. "application/json"
  1623. ],
  1624. "produces": [
  1625. "application/json"
  1626. ],
  1627. "tags": [
  1628. "物业素材"
  1629. ],
  1630. "summary": "删除素材",
  1631. "parameters": [
  1632. {
  1633. "type": "string",
  1634. "description": " ",
  1635. "name": "token",
  1636. "in": "header",
  1637. "required": true
  1638. },
  1639. {
  1640. "type": "integer",
  1641. "description": " ",
  1642. "name": "id",
  1643. "in": "query",
  1644. "required": true
  1645. }
  1646. ],
  1647. "responses": {
  1648. "200": {
  1649. "description": "OK",
  1650. "schema": {
  1651. "$ref": "#/definitions/v1.MaterialDelResponse"
  1652. }
  1653. },
  1654. "500": {
  1655. "description": "Internal Server Error",
  1656. "schema": {
  1657. "$ref": "#/definitions/base.HTTPError"
  1658. }
  1659. }
  1660. }
  1661. }
  1662. },
  1663. "/api/v1/material/enable": {
  1664. "put": {
  1665. "description": "发布或下架",
  1666. "consumes": [
  1667. "application/json"
  1668. ],
  1669. "produces": [
  1670. "application/json"
  1671. ],
  1672. "tags": [
  1673. "物业素材"
  1674. ],
  1675. "summary": "发布或下架",
  1676. "parameters": [
  1677. {
  1678. "type": "string",
  1679. "description": " ",
  1680. "name": "token",
  1681. "in": "header",
  1682. "required": true
  1683. },
  1684. {
  1685. "description": " ",
  1686. "name": "body",
  1687. "in": "body",
  1688. "required": true,
  1689. "schema": {
  1690. "$ref": "#/definitions/v1.MaterialEnableBody"
  1691. }
  1692. }
  1693. ],
  1694. "responses": {
  1695. "200": {
  1696. "description": "OK",
  1697. "schema": {
  1698. "$ref": "#/definitions/v1.MaterialUpdateResponse"
  1699. }
  1700. },
  1701. "500": {
  1702. "description": "Internal Server Error",
  1703. "schema": {
  1704. "$ref": "#/definitions/base.HTTPError"
  1705. }
  1706. }
  1707. }
  1708. }
  1709. },
  1710. "/api/v1/msg_package": {
  1711. "get": {
  1712. "description": "套餐列表",
  1713. "consumes": [
  1714. "application/json"
  1715. ],
  1716. "produces": [
  1717. "application/json"
  1718. ],
  1719. "tags": [
  1720. "短信套餐"
  1721. ],
  1722. "summary": "套餐列表",
  1723. "parameters": [
  1724. {
  1725. "type": "string",
  1726. "description": " ",
  1727. "name": "token",
  1728. "in": "header",
  1729. "required": true
  1730. },
  1731. {
  1732. "type": "integer",
  1733. "description": "第几页,1为起始页, -1 不分页返回所有",
  1734. "name": "page",
  1735. "in": "query",
  1736. "required": true
  1737. },
  1738. {
  1739. "type": "integer",
  1740. "description": "每页条数,-1 不分页返回所有",
  1741. "name": "page_size",
  1742. "in": "query"
  1743. }
  1744. ],
  1745. "responses": {
  1746. "200": {
  1747. "description": "OK",
  1748. "schema": {
  1749. "$ref": "#/definitions/v1.MsgPackageListResponse"
  1750. }
  1751. },
  1752. "500": {
  1753. "description": "Internal Server Error",
  1754. "schema": {
  1755. "$ref": "#/definitions/base.HTTPError"
  1756. }
  1757. }
  1758. }
  1759. },
  1760. "put": {
  1761. "description": "编辑套餐",
  1762. "consumes": [
  1763. "application/json"
  1764. ],
  1765. "produces": [
  1766. "application/json"
  1767. ],
  1768. "tags": [
  1769. "短信套餐"
  1770. ],
  1771. "summary": "编辑套餐",
  1772. "parameters": [
  1773. {
  1774. "type": "string",
  1775. "description": " ",
  1776. "name": "token",
  1777. "in": "header",
  1778. "required": true
  1779. },
  1780. {
  1781. "description": "信息",
  1782. "name": "body",
  1783. "in": "body",
  1784. "required": true,
  1785. "schema": {
  1786. "$ref": "#/definitions/v1.MsgPackageUpdateBody"
  1787. }
  1788. }
  1789. ],
  1790. "responses": {
  1791. "200": {
  1792. "description": "OK",
  1793. "schema": {
  1794. "$ref": "#/definitions/v1.MsgPackageUpdateResponse"
  1795. }
  1796. },
  1797. "500": {
  1798. "description": "Internal Server Error",
  1799. "schema": {
  1800. "$ref": "#/definitions/base.HTTPError"
  1801. }
  1802. }
  1803. }
  1804. },
  1805. "post": {
  1806. "description": "添加套餐",
  1807. "consumes": [
  1808. "application/json"
  1809. ],
  1810. "produces": [
  1811. "application/json"
  1812. ],
  1813. "tags": [
  1814. "短信套餐"
  1815. ],
  1816. "summary": "添加套餐",
  1817. "parameters": [
  1818. {
  1819. "type": "string",
  1820. "description": " ",
  1821. "name": "token",
  1822. "in": "header",
  1823. "required": true
  1824. },
  1825. {
  1826. "description": "信息",
  1827. "name": "body",
  1828. "in": "body",
  1829. "required": true,
  1830. "schema": {
  1831. "$ref": "#/definitions/v1.MsgPackageAddBody"
  1832. }
  1833. }
  1834. ],
  1835. "responses": {
  1836. "200": {
  1837. "description": "OK",
  1838. "schema": {
  1839. "$ref": "#/definitions/v1.MsgPackageAddResponse"
  1840. }
  1841. },
  1842. "500": {
  1843. "description": "Internal Server Error",
  1844. "schema": {
  1845. "$ref": "#/definitions/base.HTTPError"
  1846. }
  1847. }
  1848. }
  1849. },
  1850. "delete": {
  1851. "description": "删除套餐",
  1852. "consumes": [
  1853. "application/json"
  1854. ],
  1855. "produces": [
  1856. "application/json"
  1857. ],
  1858. "tags": [
  1859. "短信套餐"
  1860. ],
  1861. "summary": "删除套餐",
  1862. "parameters": [
  1863. {
  1864. "type": "string",
  1865. "description": " ",
  1866. "name": "token",
  1867. "in": "header",
  1868. "required": true
  1869. },
  1870. {
  1871. "type": "integer",
  1872. "description": "套餐id",
  1873. "name": "id",
  1874. "in": "query",
  1875. "required": true
  1876. }
  1877. ],
  1878. "responses": {
  1879. "200": {
  1880. "description": "OK",
  1881. "schema": {
  1882. "$ref": "#/definitions/v1.MsgPackageDelResponse"
  1883. }
  1884. },
  1885. "500": {
  1886. "description": "Internal Server Error",
  1887. "schema": {
  1888. "$ref": "#/definitions/base.HTTPError"
  1889. }
  1890. }
  1891. }
  1892. }
  1893. },
  1894. "/api/v1/order/application": {
  1895. "get": {
  1896. "description": "应用订单列表",
  1897. "consumes": [
  1898. "application/json"
  1899. ],
  1900. "produces": [
  1901. "application/json"
  1902. ],
  1903. "tags": [
  1904. "应用订单"
  1905. ],
  1906. "summary": "应用订单列表",
  1907. "parameters": [
  1908. {
  1909. "type": "string",
  1910. "description": " ",
  1911. "name": "token",
  1912. "in": "header",
  1913. "required": true
  1914. },
  1915. {
  1916. "type": "integer",
  1917. "description": "第几页,1为起始页, -1 不分页返回所有",
  1918. "name": "page",
  1919. "in": "query",
  1920. "required": true
  1921. },
  1922. {
  1923. "type": "integer",
  1924. "description": "每页条数,-1 不分页返回所有",
  1925. "name": "page_size",
  1926. "in": "query"
  1927. },
  1928. {
  1929. "type": "integer",
  1930. "description": "0不过滤,1待认证 2 已通过 3 未通过",
  1931. "name": "status",
  1932. "in": "query"
  1933. }
  1934. ],
  1935. "responses": {
  1936. "200": {
  1937. "description": "OK",
  1938. "schema": {
  1939. "$ref": "#/definitions/v1.GardenApplicationListResponse"
  1940. }
  1941. },
  1942. "500": {
  1943. "description": "Internal Server Error",
  1944. "schema": {
  1945. "$ref": "#/definitions/base.HTTPError"
  1946. }
  1947. }
  1948. }
  1949. },
  1950. "put": {
  1951. "description": "应用订单审批",
  1952. "consumes": [
  1953. "application/json"
  1954. ],
  1955. "produces": [
  1956. "application/json"
  1957. ],
  1958. "tags": [
  1959. "应用订单"
  1960. ],
  1961. "summary": "应用订单审批",
  1962. "parameters": [
  1963. {
  1964. "type": "string",
  1965. "description": " ",
  1966. "name": "token",
  1967. "in": "header",
  1968. "required": true
  1969. },
  1970. {
  1971. "description": "信息",
  1972. "name": "body",
  1973. "in": "body",
  1974. "required": true,
  1975. "schema": {
  1976. "$ref": "#/definitions/v1.ApplicationOrderApproveBody"
  1977. }
  1978. }
  1979. ],
  1980. "responses": {
  1981. "200": {
  1982. "description": "OK",
  1983. "schema": {
  1984. "$ref": "#/definitions/v1.ApplicationOrderApproveResponse"
  1985. }
  1986. },
  1987. "500": {
  1988. "description": "Internal Server Error",
  1989. "schema": {
  1990. "$ref": "#/definitions/base.HTTPError"
  1991. }
  1992. }
  1993. }
  1994. }
  1995. },
  1996. "/api/v1/order/application/amount": {
  1997. "put": {
  1998. "description": "应用订单改价",
  1999. "consumes": [
  2000. "application/json"
  2001. ],
  2002. "produces": [
  2003. "application/json"
  2004. ],
  2005. "tags": [
  2006. "套餐订单"
  2007. ],
  2008. "summary": "应用订单改价",
  2009. "parameters": [
  2010. {
  2011. "type": "string",
  2012. "description": " ",
  2013. "name": "token",
  2014. "in": "header",
  2015. "required": true
  2016. },
  2017. {
  2018. "description": "信息",
  2019. "name": "body",
  2020. "in": "body",
  2021. "required": true,
  2022. "schema": {
  2023. "$ref": "#/definitions/v1.ApplicationOrderAmountBody"
  2024. }
  2025. }
  2026. ],
  2027. "responses": {
  2028. "200": {
  2029. "description": "OK",
  2030. "schema": {
  2031. "$ref": "#/definitions/v1.ApplicationOrderAmountResponse"
  2032. }
  2033. },
  2034. "500": {
  2035. "description": "Internal Server Error",
  2036. "schema": {
  2037. "$ref": "#/definitions/base.HTTPError"
  2038. }
  2039. }
  2040. }
  2041. }
  2042. },
  2043. "/api/v1/order/msg_package": {
  2044. "get": {
  2045. "description": "短信订单列表",
  2046. "consumes": [
  2047. "application/json"
  2048. ],
  2049. "produces": [
  2050. "application/json"
  2051. ],
  2052. "tags": [
  2053. "短信订单"
  2054. ],
  2055. "summary": "短信订单列表",
  2056. "parameters": [
  2057. {
  2058. "type": "string",
  2059. "description": " ",
  2060. "name": "token",
  2061. "in": "header",
  2062. "required": true
  2063. },
  2064. {
  2065. "type": "integer",
  2066. "description": "第几页,1为起始页, -1 不分页返回所有",
  2067. "name": "page",
  2068. "in": "query",
  2069. "required": true
  2070. },
  2071. {
  2072. "type": "integer",
  2073. "description": "每页条数,-1 不分页返回所有",
  2074. "name": "page_size",
  2075. "in": "query"
  2076. },
  2077. {
  2078. "type": "integer",
  2079. "description": "0不过滤,1待认证 2 已通过 3 未通过",
  2080. "name": "status",
  2081. "in": "query"
  2082. }
  2083. ],
  2084. "responses": {
  2085. "200": {
  2086. "description": "OK",
  2087. "schema": {
  2088. "$ref": "#/definitions/v1.MsgPackageOrderListResponse"
  2089. }
  2090. },
  2091. "500": {
  2092. "description": "Internal Server Error",
  2093. "schema": {
  2094. "$ref": "#/definitions/base.HTTPError"
  2095. }
  2096. }
  2097. }
  2098. },
  2099. "put": {
  2100. "description": "短信订单审批",
  2101. "consumes": [
  2102. "application/json"
  2103. ],
  2104. "produces": [
  2105. "application/json"
  2106. ],
  2107. "tags": [
  2108. "短信订单"
  2109. ],
  2110. "summary": "短信订单审批",
  2111. "parameters": [
  2112. {
  2113. "type": "string",
  2114. "description": " ",
  2115. "name": "token",
  2116. "in": "header",
  2117. "required": true
  2118. },
  2119. {
  2120. "description": "信息",
  2121. "name": "body",
  2122. "in": "body",
  2123. "required": true,
  2124. "schema": {
  2125. "$ref": "#/definitions/v1.MsgPackageOrderApproveBody"
  2126. }
  2127. }
  2128. ],
  2129. "responses": {
  2130. "200": {
  2131. "description": "OK",
  2132. "schema": {
  2133. "$ref": "#/definitions/v1.MsgPackageOrderApproveResponse"
  2134. }
  2135. },
  2136. "500": {
  2137. "description": "Internal Server Error",
  2138. "schema": {
  2139. "$ref": "#/definitions/base.HTTPError"
  2140. }
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "/api/v1/order/package": {
  2146. "get": {
  2147. "description": "套餐订单列表",
  2148. "consumes": [
  2149. "application/json"
  2150. ],
  2151. "produces": [
  2152. "application/json"
  2153. ],
  2154. "tags": [
  2155. "套餐订单"
  2156. ],
  2157. "summary": "套餐订单列表",
  2158. "parameters": [
  2159. {
  2160. "type": "string",
  2161. "description": " ",
  2162. "name": "token",
  2163. "in": "header",
  2164. "required": true
  2165. },
  2166. {
  2167. "type": "integer",
  2168. "description": "第几页,1为起始页, -1 不分页返回所有",
  2169. "name": "page",
  2170. "in": "query",
  2171. "required": true
  2172. },
  2173. {
  2174. "type": "integer",
  2175. "description": "每页条数,-1 不分页返回所有",
  2176. "name": "page_size",
  2177. "in": "query"
  2178. },
  2179. {
  2180. "type": "integer",
  2181. "description": "0不过滤,1待认证 2 已通过 3 未通过",
  2182. "name": "status",
  2183. "in": "query"
  2184. },
  2185. {
  2186. "type": "integer",
  2187. "description": "公司id(用于获取公司下的套餐)",
  2188. "name": "cid",
  2189. "in": "query"
  2190. }
  2191. ],
  2192. "responses": {
  2193. "200": {
  2194. "description": "OK",
  2195. "schema": {
  2196. "$ref": "#/definitions/v1.CompanyPackageListResponse"
  2197. }
  2198. },
  2199. "500": {
  2200. "description": "Internal Server Error",
  2201. "schema": {
  2202. "$ref": "#/definitions/base.HTTPError"
  2203. }
  2204. }
  2205. }
  2206. },
  2207. "put": {
  2208. "description": "套餐订单审批",
  2209. "consumes": [
  2210. "application/json"
  2211. ],
  2212. "produces": [
  2213. "application/json"
  2214. ],
  2215. "tags": [
  2216. "套餐订单"
  2217. ],
  2218. "summary": "套餐订单审批",
  2219. "parameters": [
  2220. {
  2221. "type": "string",
  2222. "description": " ",
  2223. "name": "token",
  2224. "in": "header",
  2225. "required": true
  2226. },
  2227. {
  2228. "description": "信息",
  2229. "name": "body",
  2230. "in": "body",
  2231. "required": true,
  2232. "schema": {
  2233. "$ref": "#/definitions/v1.PackageOrderApproveBody"
  2234. }
  2235. }
  2236. ],
  2237. "responses": {
  2238. "200": {
  2239. "description": "OK",
  2240. "schema": {
  2241. "$ref": "#/definitions/v1.PackageOrderApproveResponse"
  2242. }
  2243. },
  2244. "500": {
  2245. "description": "Internal Server Error",
  2246. "schema": {
  2247. "$ref": "#/definitions/base.HTTPError"
  2248. }
  2249. }
  2250. }
  2251. },
  2252. "post": {
  2253. "description": "新增套餐",
  2254. "consumes": [
  2255. "application/json"
  2256. ],
  2257. "produces": [
  2258. "application/json"
  2259. ],
  2260. "tags": [
  2261. "公司套餐"
  2262. ],
  2263. "summary": "新增套餐",
  2264. "parameters": [
  2265. {
  2266. "type": "string",
  2267. "description": " ",
  2268. "name": "token",
  2269. "in": "header",
  2270. "required": true
  2271. },
  2272. {
  2273. "description": "信息",
  2274. "name": "body",
  2275. "in": "body",
  2276. "required": true,
  2277. "schema": {
  2278. "$ref": "#/definitions/v1.PackageOrderAddBody"
  2279. }
  2280. }
  2281. ],
  2282. "responses": {
  2283. "200": {
  2284. "description": "OK",
  2285. "schema": {
  2286. "$ref": "#/definitions/v1.PackageOrderAddResponse"
  2287. }
  2288. },
  2289. "500": {
  2290. "description": "Internal Server Error",
  2291. "schema": {
  2292. "$ref": "#/definitions/base.HTTPError"
  2293. }
  2294. }
  2295. }
  2296. }
  2297. },
  2298. "/api/v1/order/package/amount": {
  2299. "put": {
  2300. "description": "套餐订单改价",
  2301. "consumes": [
  2302. "application/json"
  2303. ],
  2304. "produces": [
  2305. "application/json"
  2306. ],
  2307. "tags": [
  2308. "套餐订单"
  2309. ],
  2310. "summary": "套餐订单改价",
  2311. "parameters": [
  2312. {
  2313. "type": "string",
  2314. "description": " ",
  2315. "name": "token",
  2316. "in": "header",
  2317. "required": true
  2318. },
  2319. {
  2320. "description": "信息",
  2321. "name": "body",
  2322. "in": "body",
  2323. "required": true,
  2324. "schema": {
  2325. "$ref": "#/definitions/v1.PackageOrderAmountBody"
  2326. }
  2327. }
  2328. ],
  2329. "responses": {
  2330. "200": {
  2331. "description": "OK",
  2332. "schema": {
  2333. "$ref": "#/definitions/v1.PackageOrderAmountResponse"
  2334. }
  2335. },
  2336. "500": {
  2337. "description": "Internal Server Error",
  2338. "schema": {
  2339. "$ref": "#/definitions/base.HTTPError"
  2340. }
  2341. }
  2342. }
  2343. }
  2344. },
  2345. "/api/v1/order/renew": {
  2346. "post": {
  2347. "description": "套餐续费",
  2348. "consumes": [
  2349. "application/json"
  2350. ],
  2351. "produces": [
  2352. "application/json"
  2353. ],
  2354. "tags": [
  2355. "公司套餐"
  2356. ],
  2357. "summary": "套餐续费",
  2358. "parameters": [
  2359. {
  2360. "type": "string",
  2361. "description": " ",
  2362. "name": "token",
  2363. "in": "header",
  2364. "required": true
  2365. },
  2366. {
  2367. "description": "信息",
  2368. "name": "body",
  2369. "in": "body",
  2370. "required": true,
  2371. "schema": {
  2372. "$ref": "#/definitions/v1.PackageOrderAddRenewBody"
  2373. }
  2374. }
  2375. ],
  2376. "responses": {
  2377. "200": {
  2378. "description": "OK",
  2379. "schema": {
  2380. "$ref": "#/definitions/v1.PackageOrderAddRenewResponse"
  2381. }
  2382. },
  2383. "500": {
  2384. "description": "Internal Server Error",
  2385. "schema": {
  2386. "$ref": "#/definitions/base.HTTPError"
  2387. }
  2388. }
  2389. }
  2390. }
  2391. },
  2392. "/api/v1/package": {
  2393. "get": {
  2394. "description": "套餐列表",
  2395. "consumes": [
  2396. "application/json"
  2397. ],
  2398. "produces": [
  2399. "application/json"
  2400. ],
  2401. "tags": [
  2402. "套餐"
  2403. ],
  2404. "summary": "套餐列表",
  2405. "parameters": [
  2406. {
  2407. "type": "string",
  2408. "description": " ",
  2409. "name": "token",
  2410. "in": "header",
  2411. "required": true
  2412. },
  2413. {
  2414. "type": "integer",
  2415. "description": "第几页,1为起始页, -1 不分页返回所有",
  2416. "name": "page",
  2417. "in": "query",
  2418. "required": true
  2419. },
  2420. {
  2421. "type": "integer",
  2422. "description": "每页条数,-1 不分页返回所有",
  2423. "name": "page_size",
  2424. "in": "query"
  2425. },
  2426. {
  2427. "type": "integer",
  2428. "description": "0不过滤,1已发布的 2 未发布的",
  2429. "name": "enable",
  2430. "in": "query"
  2431. }
  2432. ],
  2433. "responses": {
  2434. "200": {
  2435. "description": "OK",
  2436. "schema": {
  2437. "$ref": "#/definitions/v1.PackageListResponse"
  2438. }
  2439. },
  2440. "500": {
  2441. "description": "Internal Server Error",
  2442. "schema": {
  2443. "$ref": "#/definitions/base.HTTPError"
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "put": {
  2449. "description": "编辑套餐",
  2450. "consumes": [
  2451. "application/json"
  2452. ],
  2453. "produces": [
  2454. "application/json"
  2455. ],
  2456. "tags": [
  2457. "套餐"
  2458. ],
  2459. "summary": "编辑套餐",
  2460. "parameters": [
  2461. {
  2462. "type": "string",
  2463. "description": " ",
  2464. "name": "token",
  2465. "in": "header",
  2466. "required": true
  2467. },
  2468. {
  2469. "description": "信息",
  2470. "name": "body",
  2471. "in": "body",
  2472. "required": true,
  2473. "schema": {
  2474. "$ref": "#/definitions/v1.PackageUpdateBody"
  2475. }
  2476. }
  2477. ],
  2478. "responses": {
  2479. "200": {
  2480. "description": "OK",
  2481. "schema": {
  2482. "$ref": "#/definitions/v1.PackageUpdateResponse"
  2483. }
  2484. },
  2485. "500": {
  2486. "description": "Internal Server Error",
  2487. "schema": {
  2488. "$ref": "#/definitions/base.HTTPError"
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "post": {
  2494. "description": "添加套餐",
  2495. "consumes": [
  2496. "application/json"
  2497. ],
  2498. "produces": [
  2499. "application/json"
  2500. ],
  2501. "tags": [
  2502. "套餐"
  2503. ],
  2504. "summary": "添加套餐",
  2505. "parameters": [
  2506. {
  2507. "type": "string",
  2508. "description": " ",
  2509. "name": "token",
  2510. "in": "header",
  2511. "required": true
  2512. },
  2513. {
  2514. "description": "信息",
  2515. "name": "body",
  2516. "in": "body",
  2517. "required": true,
  2518. "schema": {
  2519. "$ref": "#/definitions/v1.PackageAddBody"
  2520. }
  2521. }
  2522. ],
  2523. "responses": {
  2524. "200": {
  2525. "description": "OK",
  2526. "schema": {
  2527. "$ref": "#/definitions/v1.PackageAddResponse"
  2528. }
  2529. },
  2530. "500": {
  2531. "description": "Internal Server Error",
  2532. "schema": {
  2533. "$ref": "#/definitions/base.HTTPError"
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "delete": {
  2539. "description": "删除套餐",
  2540. "consumes": [
  2541. "application/json"
  2542. ],
  2543. "produces": [
  2544. "application/json"
  2545. ],
  2546. "tags": [
  2547. "套餐"
  2548. ],
  2549. "summary": "删除套餐",
  2550. "parameters": [
  2551. {
  2552. "type": "string",
  2553. "description": " ",
  2554. "name": "token",
  2555. "in": "header",
  2556. "required": true
  2557. },
  2558. {
  2559. "type": "integer",
  2560. "description": "套餐id",
  2561. "name": "id",
  2562. "in": "query",
  2563. "required": true
  2564. }
  2565. ],
  2566. "responses": {
  2567. "200": {
  2568. "description": "OK",
  2569. "schema": {
  2570. "$ref": "#/definitions/v1.PackageDelResponse"
  2571. }
  2572. },
  2573. "500": {
  2574. "description": "Internal Server Error",
  2575. "schema": {
  2576. "$ref": "#/definitions/base.HTTPError"
  2577. }
  2578. }
  2579. }
  2580. }
  2581. },
  2582. "/api/v1/package/application": {
  2583. "get": {
  2584. "description": "套餐的应用列表",
  2585. "consumes": [
  2586. "application/json"
  2587. ],
  2588. "produces": [
  2589. "application/json"
  2590. ],
  2591. "tags": [
  2592. "套餐"
  2593. ],
  2594. "summary": "套餐的应用列表",
  2595. "parameters": [
  2596. {
  2597. "type": "string",
  2598. "description": " ",
  2599. "name": "token",
  2600. "in": "header",
  2601. "required": true
  2602. },
  2603. {
  2604. "type": "integer",
  2605. "description": "套餐id",
  2606. "name": "package_id",
  2607. "in": "query",
  2608. "required": true
  2609. }
  2610. ],
  2611. "responses": {
  2612. "200": {
  2613. "description": "OK",
  2614. "schema": {
  2615. "$ref": "#/definitions/v1.ApplicationListResponse"
  2616. }
  2617. },
  2618. "500": {
  2619. "description": "Internal Server Error",
  2620. "schema": {
  2621. "$ref": "#/definitions/base.HTTPError"
  2622. }
  2623. }
  2624. }
  2625. },
  2626. "put": {
  2627. "description": "给套餐添加应用",
  2628. "consumes": [
  2629. "application/json"
  2630. ],
  2631. "produces": [
  2632. "application/json"
  2633. ],
  2634. "tags": [
  2635. "套餐"
  2636. ],
  2637. "summary": "给套餐添加应用",
  2638. "parameters": [
  2639. {
  2640. "type": "string",
  2641. "description": " ",
  2642. "name": "token",
  2643. "in": "header",
  2644. "required": true
  2645. },
  2646. {
  2647. "description": "信息",
  2648. "name": "body",
  2649. "in": "body",
  2650. "required": true,
  2651. "schema": {
  2652. "$ref": "#/definitions/v1.PackageApplicationSetBody"
  2653. }
  2654. }
  2655. ],
  2656. "responses": {
  2657. "200": {
  2658. "description": "OK",
  2659. "schema": {
  2660. "$ref": "#/definitions/v1.PackageApplicationSetResponse"
  2661. }
  2662. },
  2663. "500": {
  2664. "description": "Internal Server Error",
  2665. "schema": {
  2666. "$ref": "#/definitions/base.HTTPError"
  2667. }
  2668. }
  2669. }
  2670. }
  2671. },
  2672. "/api/v1/package/application_can_add": {
  2673. "get": {
  2674. "description": "套餐还可添加的应用列表",
  2675. "consumes": [
  2676. "application/json"
  2677. ],
  2678. "produces": [
  2679. "application/json"
  2680. ],
  2681. "tags": [
  2682. "套餐"
  2683. ],
  2684. "summary": "套餐还可添加的应用列表",
  2685. "parameters": [
  2686. {
  2687. "type": "string",
  2688. "description": " ",
  2689. "name": "token",
  2690. "in": "header",
  2691. "required": true
  2692. },
  2693. {
  2694. "type": "integer",
  2695. "description": "套餐id",
  2696. "name": "package_id",
  2697. "in": "query",
  2698. "required": true
  2699. }
  2700. ],
  2701. "responses": {
  2702. "200": {
  2703. "description": "OK",
  2704. "schema": {
  2705. "$ref": "#/definitions/v1.ApplicationListResponse"
  2706. }
  2707. },
  2708. "500": {
  2709. "description": "Internal Server Error",
  2710. "schema": {
  2711. "$ref": "#/definitions/base.HTTPError"
  2712. }
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "/api/v1/package/enable": {
  2718. "put": {
  2719. "description": "发布和下架",
  2720. "consumes": [
  2721. "application/json"
  2722. ],
  2723. "produces": [
  2724. "application/json"
  2725. ],
  2726. "tags": [
  2727. "套餐"
  2728. ],
  2729. "summary": "发布和下架",
  2730. "parameters": [
  2731. {
  2732. "type": "string",
  2733. "description": " ",
  2734. "name": "token",
  2735. "in": "header",
  2736. "required": true
  2737. },
  2738. {
  2739. "description": "信息",
  2740. "name": "body",
  2741. "in": "body",
  2742. "required": true,
  2743. "schema": {
  2744. "$ref": "#/definitions/v1.PackageEnableSetBody"
  2745. }
  2746. }
  2747. ],
  2748. "responses": {
  2749. "200": {
  2750. "description": "OK",
  2751. "schema": {
  2752. "$ref": "#/definitions/v1.PackageEnableSetResponse"
  2753. }
  2754. },
  2755. "500": {
  2756. "description": "Internal Server Error",
  2757. "schema": {
  2758. "$ref": "#/definitions/base.HTTPError"
  2759. }
  2760. }
  2761. }
  2762. }
  2763. },
  2764. "/api/v1/system_permission": {
  2765. "get": {
  2766. "description": "权限节点列表",
  2767. "consumes": [
  2768. "application/json"
  2769. ],
  2770. "produces": [
  2771. "application/json"
  2772. ],
  2773. "tags": [
  2774. "物业权限节点"
  2775. ],
  2776. "summary": "权限节点列表",
  2777. "parameters": [
  2778. {
  2779. "type": "string",
  2780. "description": " ",
  2781. "name": "token",
  2782. "in": "header",
  2783. "required": true
  2784. }
  2785. ],
  2786. "responses": {
  2787. "200": {
  2788. "description": "OK",
  2789. "schema": {
  2790. "$ref": "#/definitions/v1.SystemPermissionListResponse"
  2791. }
  2792. },
  2793. "500": {
  2794. "description": "Internal Server Error",
  2795. "schema": {
  2796. "$ref": "#/definitions/base.HTTPError"
  2797. }
  2798. }
  2799. }
  2800. },
  2801. "put": {
  2802. "description": "更改权限节点",
  2803. "consumes": [
  2804. "application/json"
  2805. ],
  2806. "produces": [
  2807. "application/json"
  2808. ],
  2809. "tags": [
  2810. "物业权限节点"
  2811. ],
  2812. "summary": "更改权限节点",
  2813. "parameters": [
  2814. {
  2815. "type": "string",
  2816. "description": " ",
  2817. "name": "token",
  2818. "in": "header",
  2819. "required": true
  2820. },
  2821. {
  2822. "description": "节点信息",
  2823. "name": "body",
  2824. "in": "body",
  2825. "required": true,
  2826. "schema": {
  2827. "$ref": "#/definitions/v1.SystemPermissionUpdateBody"
  2828. }
  2829. }
  2830. ],
  2831. "responses": {
  2832. "200": {
  2833. "description": "OK",
  2834. "schema": {
  2835. "$ref": "#/definitions/v1.SystemPermissionUpdateResponse"
  2836. }
  2837. },
  2838. "500": {
  2839. "description": "Internal Server Error",
  2840. "schema": {
  2841. "$ref": "#/definitions/base.HTTPError"
  2842. }
  2843. }
  2844. }
  2845. },
  2846. "post": {
  2847. "description": "添加权限节点",
  2848. "consumes": [
  2849. "application/json"
  2850. ],
  2851. "produces": [
  2852. "application/json"
  2853. ],
  2854. "tags": [
  2855. "物业权限节点"
  2856. ],
  2857. "summary": "添加权限节点",
  2858. "parameters": [
  2859. {
  2860. "type": "string",
  2861. "description": " ",
  2862. "name": "token",
  2863. "in": "header",
  2864. "required": true
  2865. },
  2866. {
  2867. "description": "节点信息",
  2868. "name": "body",
  2869. "in": "body",
  2870. "required": true,
  2871. "schema": {
  2872. "$ref": "#/definitions/v1.SystemPermissionAddBody"
  2873. }
  2874. }
  2875. ],
  2876. "responses": {
  2877. "200": {
  2878. "description": "OK",
  2879. "schema": {
  2880. "$ref": "#/definitions/v1.SystemPermissionAddResponse"
  2881. }
  2882. },
  2883. "500": {
  2884. "description": "Internal Server Error",
  2885. "schema": {
  2886. "$ref": "#/definitions/base.HTTPError"
  2887. }
  2888. }
  2889. }
  2890. },
  2891. "delete": {
  2892. "description": "删除权限节点",
  2893. "consumes": [
  2894. "application/json"
  2895. ],
  2896. "produces": [
  2897. "application/json"
  2898. ],
  2899. "tags": [
  2900. "物业权限节点"
  2901. ],
  2902. "summary": "删除权限节点",
  2903. "parameters": [
  2904. {
  2905. "type": "string",
  2906. "description": " ",
  2907. "name": "token",
  2908. "in": "header",
  2909. "required": true
  2910. },
  2911. {
  2912. "type": "string",
  2913. "description": "节点code",
  2914. "name": "code",
  2915. "in": "query",
  2916. "required": true
  2917. }
  2918. ],
  2919. "responses": {
  2920. "200": {
  2921. "description": "OK",
  2922. "schema": {
  2923. "$ref": "#/definitions/v1.SystemPermissionDelResponse"
  2924. }
  2925. },
  2926. "500": {
  2927. "description": "Internal Server Error",
  2928. "schema": {
  2929. "$ref": "#/definitions/base.HTTPError"
  2930. }
  2931. }
  2932. }
  2933. }
  2934. },
  2935. "/api/v1/system_permission/enable": {
  2936. "put": {
  2937. "description": "发布或下架",
  2938. "consumes": [
  2939. "application/json"
  2940. ],
  2941. "produces": [
  2942. "application/json"
  2943. ],
  2944. "tags": [
  2945. "物业权限节点"
  2946. ],
  2947. "summary": "发布或下架",
  2948. "parameters": [
  2949. {
  2950. "type": "string",
  2951. "description": " ",
  2952. "name": "token",
  2953. "in": "header",
  2954. "required": true
  2955. },
  2956. {
  2957. "description": "节点信息",
  2958. "name": "body",
  2959. "in": "body",
  2960. "required": true,
  2961. "schema": {
  2962. "$ref": "#/definitions/v1.SystemPermissionEnableBody"
  2963. }
  2964. }
  2965. ],
  2966. "responses": {
  2967. "200": {
  2968. "description": "OK",
  2969. "schema": {
  2970. "$ref": "#/definitions/v1.SystemPermissionUpdateResponse"
  2971. }
  2972. },
  2973. "500": {
  2974. "description": "Internal Server Error",
  2975. "schema": {
  2976. "$ref": "#/definitions/base.HTTPError"
  2977. }
  2978. }
  2979. }
  2980. }
  2981. },
  2982. "/api/v1/token_refresh": {
  2983. "put": {
  2984. "description": "刷新token",
  2985. "consumes": [
  2986. "application/json"
  2987. ],
  2988. "produces": [
  2989. "application/json"
  2990. ],
  2991. "tags": [
  2992. "用户"
  2993. ],
  2994. "summary": "刷新token",
  2995. "parameters": [
  2996. {
  2997. "type": "string",
  2998. "description": "token",
  2999. "name": "token",
  3000. "in": "header",
  3001. "required": true
  3002. }
  3003. ],
  3004. "responses": {
  3005. "200": {
  3006. "description": "OK",
  3007. "schema": {
  3008. "$ref": "#/definitions/v1.TokenResponse"
  3009. }
  3010. },
  3011. "500": {
  3012. "description": "Internal Server Error",
  3013. "schema": {
  3014. "$ref": "#/definitions/base.HTTPError"
  3015. }
  3016. }
  3017. }
  3018. }
  3019. },
  3020. "/api/v1/upload": {
  3021. "post": {
  3022. "description": "上传文件",
  3023. "consumes": [
  3024. "application/json"
  3025. ],
  3026. "produces": [
  3027. "application/json"
  3028. ],
  3029. "tags": [
  3030. "upload"
  3031. ],
  3032. "summary": "上传文件",
  3033. "parameters": [
  3034. {
  3035. "type": "string",
  3036. "description": "jwt token",
  3037. "name": "token",
  3038. "in": "header",
  3039. "required": true
  3040. },
  3041. {
  3042. "type": "file",
  3043. "description": "file",
  3044. "name": "file",
  3045. "in": "formData"
  3046. }
  3047. ],
  3048. "responses": {
  3049. "200": {
  3050. "description": "OK",
  3051. "schema": {
  3052. "$ref": "#/definitions/v1.UploadResponse"
  3053. }
  3054. },
  3055. "500": {
  3056. "description": "Internal Server Error",
  3057. "schema": {
  3058. "$ref": "#/definitions/base.HTTPError"
  3059. }
  3060. }
  3061. }
  3062. }
  3063. },
  3064. "/api/v1/user/login": {
  3065. "post": {
  3066. "description": "登录",
  3067. "consumes": [
  3068. "application/json"
  3069. ],
  3070. "produces": [
  3071. "application/json"
  3072. ],
  3073. "tags": [
  3074. "用户"
  3075. ],
  3076. "summary": "登录",
  3077. "parameters": [
  3078. {
  3079. "description": "登录信息",
  3080. "name": "body",
  3081. "in": "body",
  3082. "required": true,
  3083. "schema": {
  3084. "$ref": "#/definitions/v1.LoginBody"
  3085. }
  3086. }
  3087. ],
  3088. "responses": {
  3089. "200": {
  3090. "description": "OK",
  3091. "schema": {
  3092. "$ref": "#/definitions/v1.LoginResponse"
  3093. }
  3094. },
  3095. "500": {
  3096. "description": "Internal Server Error",
  3097. "schema": {
  3098. "$ref": "#/definitions/base.HTTPError"
  3099. }
  3100. }
  3101. }
  3102. }
  3103. },
  3104. "/api/v1/wx/public/mini": {
  3105. "post": {
  3106. "description": "公众号添加小程序入口",
  3107. "consumes": [
  3108. "application/json"
  3109. ],
  3110. "produces": [
  3111. "application/json"
  3112. ],
  3113. "tags": [
  3114. "微信相关"
  3115. ],
  3116. "summary": "公众号添加小程序入口",
  3117. "parameters": [
  3118. {
  3119. "type": "string",
  3120. "description": " ",
  3121. "name": "token",
  3122. "in": "header",
  3123. "required": true
  3124. },
  3125. {
  3126. "description": " ",
  3127. "name": "body",
  3128. "in": "body",
  3129. "required": true,
  3130. "schema": {
  3131. "$ref": "#/definitions/v1.WxPublicAddMiniBody"
  3132. }
  3133. }
  3134. ],
  3135. "responses": {
  3136. "200": {
  3137. "description": "OK",
  3138. "schema": {
  3139. "$ref": "#/definitions/v1.WxPublicAddMiniResponse"
  3140. }
  3141. },
  3142. "500": {
  3143. "description": "Internal Server Error",
  3144. "schema": {
  3145. "$ref": "#/definitions/base.HTTPError"
  3146. }
  3147. }
  3148. }
  3149. }
  3150. }
  3151. },
  3152. "definitions": {
  3153. "base.HTTPError": {
  3154. "type": "object",
  3155. "properties": {
  3156. "code": {
  3157. "type": "integer",
  3158. "format": "int",
  3159. "example": 500
  3160. },
  3161. "message": {
  3162. "type": "string",
  3163. "example": "status bad request"
  3164. }
  3165. }
  3166. },
  3167. "v1.ApplicationAddBody": {
  3168. "type": "object",
  3169. "properties": {
  3170. "content": {
  3171. "type": "string"
  3172. },
  3173. "desc": {
  3174. "type": "string"
  3175. },
  3176. "icon": {
  3177. "type": "string"
  3178. },
  3179. "name": {
  3180. "type": "string"
  3181. },
  3182. "price": {
  3183. "type": "integer"
  3184. }
  3185. }
  3186. },
  3187. "v1.ApplicationAddResponse": {
  3188. "type": "object",
  3189. "properties": {
  3190. "code": {
  3191. "description": "返回码",
  3192. "type": "integer",
  3193. "format": "int",
  3194. "default": 0
  3195. },
  3196. "message": {
  3197. "description": "消息",
  3198. "type": "string",
  3199. "default": "success"
  3200. }
  3201. }
  3202. },
  3203. "v1.ApplicationDelResponse": {
  3204. "type": "object",
  3205. "properties": {
  3206. "code": {
  3207. "description": "返回码",
  3208. "type": "integer",
  3209. "format": "int",
  3210. "default": 0
  3211. },
  3212. "message": {
  3213. "description": "消息",
  3214. "type": "string",
  3215. "default": "success"
  3216. }
  3217. }
  3218. },
  3219. "v1.ApplicationEnableSetBody": {
  3220. "type": "object",
  3221. "properties": {
  3222. "enable": {
  3223. "description": "true 发布 false 下架",
  3224. "type": "boolean"
  3225. },
  3226. "id": {
  3227. "type": "integer"
  3228. }
  3229. }
  3230. },
  3231. "v1.ApplicationEnableSetResponse": {
  3232. "type": "object",
  3233. "properties": {
  3234. "code": {
  3235. "description": "返回码",
  3236. "type": "integer",
  3237. "format": "int",
  3238. "default": 0
  3239. },
  3240. "message": {
  3241. "description": "消息",
  3242. "type": "string",
  3243. "default": "success"
  3244. }
  3245. }
  3246. },
  3247. "v1.ApplicationItem": {
  3248. "type": "object",
  3249. "properties": {
  3250. "content": {
  3251. "type": "string"
  3252. },
  3253. "desc": {
  3254. "type": "string"
  3255. },
  3256. "enable": {
  3257. "type": "boolean"
  3258. },
  3259. "icon": {
  3260. "type": "string"
  3261. },
  3262. "id": {
  3263. "type": "integer"
  3264. },
  3265. "name": {
  3266. "type": "string"
  3267. },
  3268. "price": {
  3269. "type": "integer"
  3270. }
  3271. }
  3272. },
  3273. "v1.ApplicationListReply": {
  3274. "type": "object",
  3275. "properties": {
  3276. "list": {
  3277. "type": "array",
  3278. "items": {
  3279. "$ref": "#/definitions/v1.ApplicationItem"
  3280. }
  3281. },
  3282. "page": {
  3283. "type": "integer"
  3284. },
  3285. "total": {
  3286. "type": "integer"
  3287. }
  3288. }
  3289. },
  3290. "v1.ApplicationListResponse": {
  3291. "type": "object",
  3292. "properties": {
  3293. "code": {
  3294. "description": "返回码",
  3295. "type": "integer",
  3296. "format": "int",
  3297. "default": 0
  3298. },
  3299. "data": {
  3300. "type": "object",
  3301. "$ref": "#/definitions/v1.ApplicationListReply"
  3302. },
  3303. "message": {
  3304. "description": "消息",
  3305. "type": "string",
  3306. "default": "success"
  3307. }
  3308. }
  3309. },
  3310. "v1.ApplicationOrderAmountBody": {
  3311. "type": "object",
  3312. "properties": {
  3313. "amount": {
  3314. "type": "integer"
  3315. },
  3316. "order_id": {
  3317. "type": "integer"
  3318. }
  3319. }
  3320. },
  3321. "v1.ApplicationOrderAmountResponse": {
  3322. "type": "object",
  3323. "properties": {
  3324. "code": {
  3325. "description": "返回码",
  3326. "type": "integer",
  3327. "format": "int",
  3328. "default": 0
  3329. },
  3330. "message": {
  3331. "description": "消息",
  3332. "type": "string",
  3333. "default": "success"
  3334. }
  3335. }
  3336. },
  3337. "v1.ApplicationOrderApproveBody": {
  3338. "type": "object",
  3339. "properties": {
  3340. "feedback": {
  3341. "type": "string"
  3342. },
  3343. "order_id": {
  3344. "type": "integer"
  3345. },
  3346. "status": {
  3347. "type": "boolean"
  3348. }
  3349. }
  3350. },
  3351. "v1.ApplicationOrderApproveResponse": {
  3352. "type": "object",
  3353. "properties": {
  3354. "code": {
  3355. "description": "返回码",
  3356. "type": "integer",
  3357. "format": "int",
  3358. "default": 0
  3359. },
  3360. "message": {
  3361. "description": "消息",
  3362. "type": "string",
  3363. "default": "success"
  3364. }
  3365. }
  3366. },
  3367. "v1.ApplicationPermissionItem": {
  3368. "type": "object",
  3369. "properties": {
  3370. "applete_path": {
  3371. "description": "小程序组件路径",
  3372. "type": "string"
  3373. },
  3374. "childs": {
  3375. "type": "array",
  3376. "items": {
  3377. "$ref": "#/definitions/v1.ApplicationPermissionItem"
  3378. }
  3379. },
  3380. "code": {
  3381. "type": "string"
  3382. },
  3383. "name": {
  3384. "description": "权限名字",
  3385. "type": "string"
  3386. },
  3387. "path": {
  3388. "description": "组件路径",
  3389. "type": "string"
  3390. },
  3391. "pcode": {
  3392. "description": "父code,若没有则填空",
  3393. "type": "string"
  3394. },
  3395. "router": {
  3396. "description": "路由",
  3397. "type": "string"
  3398. },
  3399. "selected": {
  3400. "description": "是否拥有该权限",
  3401. "type": "boolean"
  3402. }
  3403. }
  3404. },
  3405. "v1.ApplicationPermissionsReply": {
  3406. "type": "object",
  3407. "properties": {
  3408. "list": {
  3409. "type": "array",
  3410. "items": {
  3411. "$ref": "#/definitions/v1.ApplicationPermissionItem"
  3412. }
  3413. }
  3414. }
  3415. },
  3416. "v1.ApplicationPermissionsResponse": {
  3417. "type": "object",
  3418. "properties": {
  3419. "code": {
  3420. "description": "返回码",
  3421. "type": "integer",
  3422. "format": "int",
  3423. "default": 0
  3424. },
  3425. "data": {
  3426. "type": "object",
  3427. "$ref": "#/definitions/v1.ApplicationPermissionsReply"
  3428. },
  3429. "message": {
  3430. "description": "消息",
  3431. "type": "string",
  3432. "default": "success"
  3433. }
  3434. }
  3435. },
  3436. "v1.ApplicationPermissionsSetBody": {
  3437. "type": "object",
  3438. "properties": {
  3439. "id": {
  3440. "type": "integer"
  3441. },
  3442. "permissions": {
  3443. "type": "array",
  3444. "items": {
  3445. "type": "string"
  3446. }
  3447. }
  3448. }
  3449. },
  3450. "v1.ApplicationPermissionsSetResponse": {
  3451. "type": "object",
  3452. "properties": {
  3453. "code": {
  3454. "description": "返回码",
  3455. "type": "integer",
  3456. "format": "int",
  3457. "default": 0
  3458. },
  3459. "message": {
  3460. "description": "消息",
  3461. "type": "string",
  3462. "default": "success"
  3463. }
  3464. }
  3465. },
  3466. "v1.ApplicationUpdateBody": {
  3467. "type": "object",
  3468. "properties": {
  3469. "content": {
  3470. "type": "string"
  3471. },
  3472. "desc": {
  3473. "type": "string"
  3474. },
  3475. "icon": {
  3476. "type": "string"
  3477. },
  3478. "id": {
  3479. "type": "integer"
  3480. },
  3481. "name": {
  3482. "type": "string"
  3483. },
  3484. "price": {
  3485. "type": "integer"
  3486. }
  3487. }
  3488. },
  3489. "v1.ApplicationUpdateResponse": {
  3490. "type": "object",
  3491. "properties": {
  3492. "code": {
  3493. "description": "返回码",
  3494. "type": "integer",
  3495. "format": "int",
  3496. "default": 0
  3497. },
  3498. "message": {
  3499. "description": "消息",
  3500. "type": "string",
  3501. "default": "success"
  3502. }
  3503. }
  3504. },
  3505. "v1.AreaData": {
  3506. "type": "object",
  3507. "properties": {
  3508. "city_code": {
  3509. "type": "string"
  3510. },
  3511. "code": {
  3512. "type": "string"
  3513. },
  3514. "name": {
  3515. "type": "string"
  3516. },
  3517. "province_code": {
  3518. "type": "string"
  3519. }
  3520. }
  3521. },
  3522. "v1.CityData": {
  3523. "type": "object",
  3524. "properties": {
  3525. "code": {
  3526. "type": "string"
  3527. },
  3528. "name": {
  3529. "type": "string"
  3530. },
  3531. "province_code": {
  3532. "type": "string"
  3533. }
  3534. }
  3535. },
  3536. "v1.CommitteeData": {
  3537. "type": "object",
  3538. "properties": {
  3539. "code": {
  3540. "type": "string"
  3541. },
  3542. "name": {
  3543. "type": "string"
  3544. },
  3545. "street_code": {
  3546. "type": "string"
  3547. }
  3548. }
  3549. },
  3550. "v1.CompanyApproveBody": {
  3551. "type": "object",
  3552. "properties": {
  3553. "feedback": {
  3554. "description": "回复",
  3555. "type": "string"
  3556. },
  3557. "id": {
  3558. "type": "integer"
  3559. },
  3560. "status": {
  3561. "description": "true 通过 false 不通过",
  3562. "type": "boolean"
  3563. }
  3564. }
  3565. },
  3566. "v1.CompanyApproveResponse": {
  3567. "type": "object",
  3568. "properties": {
  3569. "code": {
  3570. "description": "返回码",
  3571. "type": "integer",
  3572. "format": "int",
  3573. "default": 0
  3574. },
  3575. "message": {
  3576. "description": "消息",
  3577. "type": "string",
  3578. "default": "success"
  3579. }
  3580. }
  3581. },
  3582. "v1.CompanyChangeFreeGardenBody": {
  3583. "type": "object",
  3584. "properties": {
  3585. "count": {
  3586. "type": "integer"
  3587. },
  3588. "id": {
  3589. "type": "integer"
  3590. }
  3591. }
  3592. },
  3593. "v1.CompanyChangeFreeGardenResponse": {
  3594. "type": "object",
  3595. "properties": {
  3596. "code": {
  3597. "description": "返回码",
  3598. "type": "integer",
  3599. "format": "int",
  3600. "default": 0
  3601. },
  3602. "message": {
  3603. "description": "消息",
  3604. "type": "string",
  3605. "default": "success"
  3606. }
  3607. }
  3608. },
  3609. "v1.CompanyItem": {
  3610. "type": "object",
  3611. "properties": {
  3612. "applicant": {
  3613. "description": "申请人",
  3614. "type": "string"
  3615. },
  3616. "applicant_duty": {
  3617. "description": "申请人职位",
  3618. "type": "string"
  3619. },
  3620. "applicant_identification": {
  3621. "description": "申请人身份",
  3622. "type": "string"
  3623. },
  3624. "applicant_phone": {
  3625. "description": "申请人电话",
  3626. "type": "string"
  3627. },
  3628. "approve_status": {
  3629. "description": "审核状态",
  3630. "type": "integer"
  3631. },
  3632. "approved_at": {
  3633. "description": "审批时间",
  3634. "type": "string"
  3635. },
  3636. "business_license": {
  3637. "description": "营业执照",
  3638. "type": "string"
  3639. },
  3640. "company_addr": {
  3641. "description": "公司地址",
  3642. "type": "string"
  3643. },
  3644. "company_name": {
  3645. "description": "公司名称",
  3646. "type": "string"
  3647. },
  3648. "company_phone": {
  3649. "description": "公司电话",
  3650. "type": "string"
  3651. },
  3652. "created_at": {
  3653. "description": "申请时间",
  3654. "type": "string"
  3655. },
  3656. "expire": {
  3657. "description": "小区有效期天",
  3658. "type": "integer"
  3659. },
  3660. "free_garden_count": {
  3661. "description": "免费小区个数",
  3662. "type": "integer"
  3663. },
  3664. "garden_count": {
  3665. "description": "已有小区个数",
  3666. "type": "integer"
  3667. },
  3668. "id": {
  3669. "type": "integer"
  3670. },
  3671. "legal_person": {
  3672. "description": "法人",
  3673. "type": "string"
  3674. },
  3675. "license_type": {
  3676. "description": "营业执照类型",
  3677. "type": "integer"
  3678. },
  3679. "password": {
  3680. "description": "密码",
  3681. "type": "string"
  3682. },
  3683. "social_code": {
  3684. "description": "社会信用码",
  3685. "type": "string"
  3686. },
  3687. "username": {
  3688. "description": "账户名",
  3689. "type": "string"
  3690. }
  3691. }
  3692. },
  3693. "v1.CompanyListReply": {
  3694. "type": "object",
  3695. "properties": {
  3696. "list": {
  3697. "type": "array",
  3698. "items": {
  3699. "$ref": "#/definitions/v1.CompanyItem"
  3700. }
  3701. },
  3702. "page": {
  3703. "type": "integer"
  3704. },
  3705. "page_size": {
  3706. "type": "integer"
  3707. },
  3708. "total": {
  3709. "type": "integer"
  3710. }
  3711. }
  3712. },
  3713. "v1.CompanyListResponse": {
  3714. "type": "object",
  3715. "properties": {
  3716. "code": {
  3717. "description": "返回码",
  3718. "type": "integer",
  3719. "format": "int",
  3720. "default": 0
  3721. },
  3722. "data": {
  3723. "type": "object",
  3724. "$ref": "#/definitions/v1.CompanyListReply"
  3725. },
  3726. "message": {
  3727. "description": "消息",
  3728. "type": "string",
  3729. "default": "success"
  3730. }
  3731. }
  3732. },
  3733. "v1.CompanyPackageApplicationItem": {
  3734. "type": "object",
  3735. "properties": {
  3736. "content": {
  3737. "type": "string"
  3738. },
  3739. "desc": {
  3740. "type": "string"
  3741. },
  3742. "enable": {
  3743. "type": "boolean"
  3744. },
  3745. "icon": {
  3746. "type": "string"
  3747. },
  3748. "id": {
  3749. "type": "integer"
  3750. },
  3751. "name": {
  3752. "type": "string"
  3753. },
  3754. "price": {
  3755. "type": "integer"
  3756. }
  3757. }
  3758. },
  3759. "v1.CompanyPackageItem": {
  3760. "type": "object",
  3761. "properties": {
  3762. "amount": {
  3763. "description": "总价",
  3764. "type": "integer"
  3765. },
  3766. "application_list": {
  3767. "type": "array",
  3768. "items": {
  3769. "$ref": "#/definitions/v1.CompanyPackageApplicationItem"
  3770. }
  3771. },
  3772. "cid": {
  3773. "type": "integer"
  3774. },
  3775. "company_name": {
  3776. "type": "string"
  3777. },
  3778. "created_at": {
  3779. "type": "integer"
  3780. },
  3781. "desc": {
  3782. "type": "string"
  3783. },
  3784. "enable": {
  3785. "type": "boolean"
  3786. },
  3787. "expire_at": {
  3788. "type": "integer"
  3789. },
  3790. "feedback": {
  3791. "type": "string"
  3792. },
  3793. "garden_id": {
  3794. "type": "integer"
  3795. },
  3796. "garden_name": {
  3797. "type": "string"
  3798. },
  3799. "name": {
  3800. "type": "string"
  3801. },
  3802. "order_id": {
  3803. "type": "integer"
  3804. },
  3805. "package_id": {
  3806. "type": "integer"
  3807. },
  3808. "pay_type": {
  3809. "description": "1 对公转帐",
  3810. "type": "integer"
  3811. },
  3812. "period": {
  3813. "description": "周期",
  3814. "type": "integer"
  3815. },
  3816. "price": {
  3817. "description": "套餐价格",
  3818. "type": "integer"
  3819. },
  3820. "status": {
  3821. "description": "1 待审批 2 通过 3 未通过",
  3822. "type": "integer"
  3823. }
  3824. }
  3825. },
  3826. "v1.CompanyPackageListReply": {
  3827. "type": "object",
  3828. "properties": {
  3829. "list": {
  3830. "type": "array",
  3831. "items": {
  3832. "$ref": "#/definitions/v1.CompanyPackageItem"
  3833. }
  3834. },
  3835. "page": {
  3836. "type": "integer"
  3837. },
  3838. "total": {
  3839. "type": "integer"
  3840. }
  3841. }
  3842. },
  3843. "v1.CompanyPackageListResponse": {
  3844. "type": "object",
  3845. "properties": {
  3846. "code": {
  3847. "description": "返回码",
  3848. "type": "integer",
  3849. "format": "int",
  3850. "default": 0
  3851. },
  3852. "data": {
  3853. "type": "object",
  3854. "$ref": "#/definitions/v1.CompanyPackageListReply"
  3855. },
  3856. "message": {
  3857. "description": "消息",
  3858. "type": "string",
  3859. "default": "success"
  3860. }
  3861. }
  3862. },
  3863. "v1.CompanyRegisterBody": {
  3864. "type": "object",
  3865. "properties": {
  3866. "applicant": {
  3867. "description": "申请人",
  3868. "type": "string"
  3869. },
  3870. "applicant_duty": {
  3871. "description": "申请人职位",
  3872. "type": "string"
  3873. },
  3874. "applicant_identification": {
  3875. "description": "申请人身份",
  3876. "type": "string"
  3877. },
  3878. "applicant_phone": {
  3879. "description": "申请人电话",
  3880. "type": "string"
  3881. },
  3882. "business_license": {
  3883. "description": "营业执照",
  3884. "type": "string"
  3885. },
  3886. "company_addr": {
  3887. "description": "公司地址",
  3888. "type": "string"
  3889. },
  3890. "company_name": {
  3891. "description": "公司名称",
  3892. "type": "string"
  3893. },
  3894. "company_phone": {
  3895. "description": "公司电话",
  3896. "type": "string"
  3897. },
  3898. "free_garden_count": {
  3899. "description": "免费小区个数",
  3900. "type": "integer"
  3901. },
  3902. "legal_person": {
  3903. "description": "法人",
  3904. "type": "string"
  3905. },
  3906. "license_type": {
  3907. "description": "营业执照类型",
  3908. "type": "integer"
  3909. },
  3910. "password": {
  3911. "description": "密码",
  3912. "type": "string"
  3913. },
  3914. "social_code": {
  3915. "description": "社会信用码",
  3916. "type": "string"
  3917. },
  3918. "username": {
  3919. "description": "账户名",
  3920. "type": "string"
  3921. }
  3922. }
  3923. },
  3924. "v1.CompanyRegisterResponse": {
  3925. "type": "object",
  3926. "properties": {
  3927. "code": {
  3928. "description": "返回码",
  3929. "type": "integer",
  3930. "format": "int",
  3931. "default": 0
  3932. },
  3933. "data": {
  3934. "type": "object",
  3935. "$ref": "#/definitions/v1.RegisterReply"
  3936. },
  3937. "message": {
  3938. "description": "消息",
  3939. "type": "string",
  3940. "default": "success"
  3941. }
  3942. }
  3943. },
  3944. "v1.CompanyWxAccountApplyInfoReply": {
  3945. "type": "object",
  3946. "properties": {
  3947. "bank_account_info": {
  3948. "description": "银行账号资料",
  3949. "type": "object",
  3950. "$ref": "#/definitions/v1.CompanyWxBankAccountInfo"
  3951. },
  3952. "business_info": {
  3953. "description": "经营资料",
  3954. "type": "object",
  3955. "$ref": "#/definitions/v1.CompanyWxBusinessInfo"
  3956. },
  3957. "contact_info": {
  3958. "description": "超管员资料",
  3959. "type": "object",
  3960. "$ref": "#/definitions/v1.CompanyWxContactInfo"
  3961. },
  3962. "id": {
  3963. "type": "integer"
  3964. },
  3965. "subject_info": {
  3966. "description": "主体资料",
  3967. "type": "object",
  3968. "$ref": "#/definitions/v1.CompanyWxSubjectInfo"
  3969. }
  3970. }
  3971. },
  3972. "v1.CompanyWxAccountApplyInfoResponse": {
  3973. "type": "object",
  3974. "properties": {
  3975. "code": {
  3976. "description": "返回码",
  3977. "type": "integer",
  3978. "format": "int",
  3979. "default": 0
  3980. },
  3981. "data": {
  3982. "type": "object",
  3983. "$ref": "#/definitions/v1.CompanyWxAccountApplyInfoReply"
  3984. },
  3985. "message": {
  3986. "description": "消息",
  3987. "type": "string",
  3988. "default": "success"
  3989. }
  3990. }
  3991. },
  3992. "v1.CompanyWxAccountApplyListItem": {
  3993. "type": "object",
  3994. "properties": {
  3995. "business_code": {
  3996. "description": "单号",
  3997. "type": "string"
  3998. },
  3999. "id": {
  4000. "type": "integer"
  4001. },
  4002. "mch_id": {
  4003. "description": "商户号(申请审批成功才会有)",
  4004. "type": "string"
  4005. },
  4006. "merchant_name": {
  4007. "description": "申请的商户名称",
  4008. "type": "string"
  4009. },
  4010. "reason": {
  4011. "description": "驳回原因",
  4012. "type": "string"
  4013. },
  4014. "sign_url": {
  4015. "description": "二维码",
  4016. "type": "string"
  4017. },
  4018. "state": {
  4019. "description": "1、APPLYMENT_STATE_EDITTING(编辑中):提交申请发生错误导致,请尝试重新提交。\n2、APPLYMENT_STATE_AUDITING(审核中):申请单正在审核中,超级管理员用微信打开“签约链接”,完成绑定微信号后,申请单进度将通过微信公众号通知超级管理员,引导完成后续步骤。\n3、APPLYMENT_STATE_REJECTED(已驳回):请按照驳回原因修改申请资料,超级管理员用微信打开“签约链接”,完成绑定微信号,后续申请单进度将通过微信公众号通知超级管理员。\n4、APPLYMENT_STATE_TO_BE_CONFIRMED(待账户验证):请超级管理员使用微信打开返回的“签约链接”,根据页面指引完成账户验证。\n5、APPLYMENT_STATE_TO_BE_SIGNED(待签约):请超级管理员使用微信打开返回的“签约链接”,根据页面指引完成签约。\n6、APPLYMENT_STATE_SIGNING(开通权限中):系统开通相关权限中,请耐心等待。\n7、APPLYMENT_STATE_FINISHED(已完成):商户入驻申请已完成。\n8、APPLYMENT_STATE_CANCELED(已作废):申请单已被撤销。",
  4020. "type": "string"
  4021. },
  4022. "state_msg": {
  4023. "description": "状态描述",
  4024. "type": "string"
  4025. }
  4026. }
  4027. },
  4028. "v1.CompanyWxAccountApplyListReply": {
  4029. "type": "object",
  4030. "properties": {
  4031. "list": {
  4032. "type": "array",
  4033. "items": {
  4034. "$ref": "#/definitions/v1.CompanyWxAccountApplyListItem"
  4035. }
  4036. },
  4037. "page": {
  4038. "type": "integer"
  4039. },
  4040. "total": {
  4041. "type": "integer"
  4042. }
  4043. }
  4044. },
  4045. "v1.CompanyWxAccountListResponse": {
  4046. "type": "object",
  4047. "properties": {
  4048. "code": {
  4049. "description": "返回码",
  4050. "type": "integer",
  4051. "format": "int",
  4052. "default": 0
  4053. },
  4054. "data": {
  4055. "type": "object",
  4056. "$ref": "#/definitions/v1.CompanyWxAccountApplyListReply"
  4057. },
  4058. "message": {
  4059. "description": "消息",
  4060. "type": "string",
  4061. "default": "success"
  4062. }
  4063. }
  4064. },
  4065. "v1.CompanyWxBankAccountInfo": {
  4066. "type": "object",
  4067. "properties": {
  4068. "account_bank": {
  4069. "description": "开户行",
  4070. "type": "string"
  4071. },
  4072. "account_name": {
  4073. "description": "开户姓名, 开户名称必须与营业执照/登记证书的“商户名称”一致",
  4074. "type": "string"
  4075. },
  4076. "account_number": {
  4077. "description": "银行账号",
  4078. "type": "string"
  4079. },
  4080. "bank_account_type": {
  4081. "type": "string"
  4082. },
  4083. "bank_address_code": {
  4084. "description": "开户银行省市编码",
  4085. "type": "string"
  4086. },
  4087. "bank_branch_id": {
  4088. "description": "开户银行联行号\n1、17家直连银行无需填写,如为其他银行,则开户银行全称(含支行)和开户银行联行号二选一。\n2、详细参见开户银行全称(含支行)对照表。\n示例值:402713354941",
  4089. "type": "string"
  4090. },
  4091. "bank_name": {
  4092. "description": "开户银行全称(含支行)\n1、17家直连银行无需填写,如为其他银行,则开户银行全称(含支行)和 开户银行联行号二选一。\n2、需填写银行全称,如\"深圳农村商业银行XXX支行\",详细参见开户银行全称(含支行)对照表。\n示例值:施秉县农村信用合作联社城关信用社",
  4093. "type": "string"
  4094. }
  4095. }
  4096. },
  4097. "v1.CompanyWxBusinessInfo": {
  4098. "type": "object",
  4099. "properties": {
  4100. "merchant_shortname": {
  4101. "description": "1、请输入2-30个字符,支持中文/字母/数字/特殊符号\n2、在支付完成页向买家展示,需与微信经营类目相关;\n3、简称要求\n (1)不支持单纯以人名来命名,若为个体户经营,可用“个体户+经营者名称”或“经营者名称+业务”命名,如“个体户张三”或“张三餐饮店”;\n(2)不支持无实际意义的文案,如“XX特约商户”、“800”、“XX客服电话XXX”",
  4102. "type": "string"
  4103. },
  4104. "service_phone": {
  4105. "description": "客服电话",
  4106. "type": "string"
  4107. }
  4108. }
  4109. },
  4110. "v1.CompanyWxBusinessLicenseInfo": {
  4111. "type": "object",
  4112. "properties": {
  4113. "legal_person": {
  4114. "description": "法人姓名",
  4115. "type": "string"
  4116. },
  4117. "license_address": {
  4118. "type": "string"
  4119. },
  4120. "license_copy": {
  4121. "description": "营业执照图片",
  4122. "type": "string"
  4123. },
  4124. "license_copy_url": {
  4125. "description": "营业执照图片",
  4126. "type": "string"
  4127. },
  4128. "license_number": {
  4129. "description": "统一社会信用码",
  4130. "type": "string"
  4131. },
  4132. "merchant_name": {
  4133. "description": "营业执照上的商户名称",
  4134. "type": "string"
  4135. },
  4136. "period_begin": {
  4137. "type": "string"
  4138. },
  4139. "period_end": {
  4140. "type": "string"
  4141. }
  4142. }
  4143. },
  4144. "v1.CompanyWxCertificateInfo": {
  4145. "type": "object",
  4146. "properties": {
  4147. "cert_copy": {
  4148. "description": "证书图片id",
  4149. "type": "string"
  4150. },
  4151. "cert_number": {
  4152. "description": "证书号",
  4153. "type": "string"
  4154. },
  4155. "cert_type": {
  4156. "description": "当主体为事业单位时,选择此枚举值:\nCERTIFICATE_TYPE_2388:事业单位法人证书\n\n当主体为政府机关,选择此枚举值:\nCERTIFICATE_TYPE_2389:统一社会信用代码证书\n\n当主体为社会组织,选择以下枚举值之一:\nCERTIFICATE_TYPE_2389:统一社会信用代码证书\nCERTIFICATE_TYPE_2394:社会团体法人登记证书\nCERTIFICATE_TYPE_2395:民办非企业单位登记证书\nCERTIFICATE_TYPE_2396:基金会法人登记证书\nCERTIFICATE_TYPE_2397:慈善组织公开募捐资格证书(已废弃)\nCERTIFICATE_TYPE_2398:农民专业合作社法人营业执照(已废弃)\nCERTIFICATE_TYPE_2520:执业许可证/执业证\nCERTIFICATE_TYPE_2521:基层群众性自治组织特别法人统一社会信用代码证\nCERTIFICATE_TYPE_2522:农村集体经济组织登记证\nCERTIFICATE_TYPE_2399:宗教活动场所登记证\nCERTIFICATE_TYPE_2400:政府部门下发的其他有效证明文件",
  4157. "type": "string"
  4158. },
  4159. "company_address": {
  4160. "description": "证书上的注册地址",
  4161. "type": "string"
  4162. },
  4163. "legal_person": {
  4164. "description": "证书上的法人",
  4165. "type": "string"
  4166. },
  4167. "merchant_name": {
  4168. "description": "商户名称",
  4169. "type": "string"
  4170. },
  4171. "period_begin": {
  4172. "description": "证书开始时间 2006-01-02",
  4173. "type": "string"
  4174. },
  4175. "period_end": {
  4176. "description": "证书结束时间2006-01-02,若为长期则填长期",
  4177. "type": "string"
  4178. }
  4179. }
  4180. },
  4181. "v1.CompanyWxContactInfo": {
  4182. "type": "object",
  4183. "properties": {
  4184. "business_authorization_letter": {
  4185. "description": "授权函(当为经办人时才填)",
  4186. "type": "string"
  4187. },
  4188. "business_authorization_letter_url": {
  4189. "description": "授权函(当为经办人时才填)",
  4190. "type": "string"
  4191. },
  4192. "contact_email": {
  4193. "description": "联系人邮箱(当为经办人时才填)",
  4194. "type": "string"
  4195. },
  4196. "contact_id_doc_copy": {
  4197. "description": "证件正面图片id(当为经办人时才填)",
  4198. "type": "string"
  4199. },
  4200. "contact_id_doc_copy_back": {
  4201. "description": "证件背面图片id(当为经办人时才填)",
  4202. "type": "string"
  4203. },
  4204. "contact_id_doc_copy_back_url": {
  4205. "description": "证件背面图片id(当为经办人时才填)",
  4206. "type": "string"
  4207. },
  4208. "contact_id_doc_copy_url": {
  4209. "description": "证件正面图片id(当为经办人时才填)",
  4210. "type": "string"
  4211. },
  4212. "contact_id_doc_type": {
  4213. "description": "联系人证件类型(当为经办人时才填)",
  4214. "type": "string"
  4215. },
  4216. "contact_id_number": {
  4217. "description": "证件号(当为经办人时才填)",
  4218. "type": "string"
  4219. },
  4220. "contact_name": {
  4221. "description": "联系人姓名",
  4222. "type": "string"
  4223. },
  4224. "contact_period_begin": {
  4225. "description": "证件开始时间(当为经办人时才填)",
  4226. "type": "string"
  4227. },
  4228. "contact_period_end": {
  4229. "description": "证件结束时间(当为经办人时才填)",
  4230. "type": "string"
  4231. },
  4232. "contact_type": {
  4233. "description": "LEGAL:经营者/法人,SUPER:经办人 。",
  4234. "type": "string"
  4235. },
  4236. "mobile_phone": {
  4237. "description": "联系人电话(当为经办人时才填)",
  4238. "type": "string"
  4239. },
  4240. "openid": {
  4241. "type": "string"
  4242. }
  4243. }
  4244. },
  4245. "v1.CompanyWxIdDocInfo": {
  4246. "type": "object",
  4247. "properties": {
  4248. "doc_period_begin": {
  4249. "description": "开始时间",
  4250. "type": "string"
  4251. },
  4252. "doc_period_end": {
  4253. "description": "结束时间",
  4254. "type": "string"
  4255. },
  4256. "id_doc_address": {
  4257. "type": "string"
  4258. },
  4259. "id_doc_copy": {
  4260. "description": "证件图片",
  4261. "type": "string"
  4262. },
  4263. "id_doc_copy_back": {
  4264. "type": "string"
  4265. },
  4266. "id_doc_copy_back_url": {
  4267. "type": "string"
  4268. },
  4269. "id_doc_copy_url": {
  4270. "description": "证件图片url",
  4271. "type": "string"
  4272. },
  4273. "id_doc_name": {
  4274. "description": "证件姓名",
  4275. "type": "string"
  4276. },
  4277. "id_doc_number": {
  4278. "description": "证件号",
  4279. "type": "string"
  4280. },
  4281. "id_doc_type": {
  4282. "description": "IDENTIFICATION_TYPE_IDCARD:中国大陆居民-身份证\nIDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照\nIDENTIFICATION_TYPE_HONGKONG_PASSPORT:中国香港居民-来往内地通行证\nIDENTIFICATION_TYPE_MACAO_PASSPORT:中国澳门居民-来往内地通行证\nIDENTIFICATION_TYPE_TAIWAN_PASSPORT:中国台湾居民-来往大陆通行证",
  4283. "type": "string"
  4284. }
  4285. }
  4286. },
  4287. "v1.CompanyWxIdentityInfo": {
  4288. "type": "object",
  4289. "properties": {
  4290. "authorize_letter_copy": {
  4291. "description": "法定代表人说明函图片id\n1、当证件持有人类型为经办人时,必须上传。其他情况,无需上传。\n2、若因特殊情况,无法提供法定代表人证件时,请参照示例图打印法定代表人说明函,全部信息需打印,不支持手写商户信息,并加盖公章。\n3、可上传1张图片,请填写通过图片上传APIAPI预先上传图片生成好的MediaID。",
  4292. "type": "string"
  4293. },
  4294. "authorize_letter_copy_url": {
  4295. "type": "string"
  4296. },
  4297. "id_doc_info": {
  4298. "description": "证件信息",
  4299. "type": "object",
  4300. "$ref": "#/definitions/v1.CompanyWxIdDocInfo"
  4301. },
  4302. "id_holder_type": {
  4303. "description": "1. 主体类型为政府机关、事业单位时选传:\n(1)若上传的是法人证件,则不需要上传该字段\n(2)若因特殊情况,无法提供法人证件时,可上传经办人。 (经办人:经商户授权办理微信支付业务的人员,授权范围包括但不限于签约,入驻过程需完成账户验证)。",
  4304. "type": "string"
  4305. },
  4306. "owner": {
  4307. "description": "法人是否为最终受益人",
  4308. "type": "boolean"
  4309. }
  4310. }
  4311. },
  4312. "v1.CompanyWxSubjectInfo": {
  4313. "type": "object",
  4314. "properties": {
  4315. "business_license_info": {
  4316. "description": "营业执照信息",
  4317. "type": "object",
  4318. "$ref": "#/definitions/v1.CompanyWxBusinessLicenseInfo"
  4319. },
  4320. "cert_info": {
  4321. "description": "主体为政府机关/事业单位/其他组织时,必填。",
  4322. "type": "object",
  4323. "$ref": "#/definitions/v1.CompanyWxCertificateInfo"
  4324. },
  4325. "identity_info": {
  4326. "description": "法人身份信息",
  4327. "type": "object",
  4328. "$ref": "#/definitions/v1.CompanyWxIdentityInfo"
  4329. },
  4330. "subject_type": {
  4331. "description": "主体类型需与营业执照/登记证书上一致,可参考选择主体指引\nSUBJECT_TYPE_INDIVIDUAL(个体户):营业执照上的主体类型一般为个体户、个体工商户、个体经营;\nSUBJECT_TYPE_ENTERPRISE(企业):营业执照上的主体类型一般为有限公司、有限责任公司;\nSUBJECT_TYPE_INSTITUTIONS(党政、机关及事业单位):包括国内各级、各类政府机构、事业单位等(如:公安、党团、司法、交通、旅游、工商税务、市政、医疗、教育、学校等机构);\nSUBJECT_TYPE_OTHERS(其他组织):不属于企业、政府/事业单位的组织机构(如社会团体、民办非企业、基金会),要求机构已办理组织机构代码证。",
  4332. "type": "string"
  4333. },
  4334. "ubo_infos": {
  4335. "description": "受益人身份信息,若法人不是最终受益人,该字段必填\n若经营者/法人不是最终受益所有人,则需提填写受益所有人信息。\n根据国家相关法律法规,需要提供公司受益所有人信息,受益所有人需符合至少以下条件之一:\n1、直接或者间接拥有超过25%公司股权或者表决权的自然人。\n2、通过人事、财务等其他方式对公司进行控制的自然人。\n3、公司的高级管理人员,包括公司的经理、副经理、财务负责人、上市公司董事会秘书和公司章程规定的其他人员。",
  4336. "type": "array",
  4337. "items": {
  4338. "$ref": "#/definitions/v1.CompanyWxIdDocInfo"
  4339. }
  4340. }
  4341. }
  4342. },
  4343. "v1.GardenApplicationItem": {
  4344. "type": "object",
  4345. "properties": {
  4346. "amount": {
  4347. "type": "integer"
  4348. },
  4349. "application_id": {
  4350. "type": "integer"
  4351. },
  4352. "content": {
  4353. "type": "string"
  4354. },
  4355. "created_at": {
  4356. "type": "integer"
  4357. },
  4358. "desc": {
  4359. "type": "string"
  4360. },
  4361. "enable": {
  4362. "type": "boolean"
  4363. },
  4364. "feedback": {
  4365. "type": "string"
  4366. },
  4367. "garden_name": {
  4368. "type": "string"
  4369. },
  4370. "icon": {
  4371. "type": "string"
  4372. },
  4373. "name": {
  4374. "type": "string"
  4375. },
  4376. "order_id": {
  4377. "type": "integer"
  4378. },
  4379. "pay_type": {
  4380. "description": "1 对公转帐",
  4381. "type": "integer"
  4382. },
  4383. "status": {
  4384. "description": "1 待审批 2 通过 3 未通过",
  4385. "type": "integer"
  4386. }
  4387. }
  4388. },
  4389. "v1.GardenApplicationListReply": {
  4390. "type": "object",
  4391. "properties": {
  4392. "list": {
  4393. "type": "array",
  4394. "items": {
  4395. "$ref": "#/definitions/v1.GardenApplicationItem"
  4396. }
  4397. },
  4398. "page": {
  4399. "type": "integer"
  4400. },
  4401. "total": {
  4402. "type": "integer"
  4403. }
  4404. }
  4405. },
  4406. "v1.GardenApplicationListResponse": {
  4407. "type": "object",
  4408. "properties": {
  4409. "code": {
  4410. "description": "返回码",
  4411. "type": "integer",
  4412. "format": "int",
  4413. "default": 0
  4414. },
  4415. "data": {
  4416. "type": "object",
  4417. "$ref": "#/definitions/v1.GardenApplicationListReply"
  4418. },
  4419. "message": {
  4420. "description": "消息",
  4421. "type": "string",
  4422. "default": "success"
  4423. }
  4424. }
  4425. },
  4426. "v1.GardenApproveBody": {
  4427. "type": "object",
  4428. "properties": {
  4429. "feedback": {
  4430. "description": "拒绝原因",
  4431. "type": "string"
  4432. },
  4433. "id": {
  4434. "type": "integer"
  4435. },
  4436. "status": {
  4437. "description": "true 通过 false 拒绝",
  4438. "type": "boolean"
  4439. }
  4440. }
  4441. },
  4442. "v1.GardenApproveResponse": {
  4443. "type": "object",
  4444. "properties": {
  4445. "code": {
  4446. "description": "返回码",
  4447. "type": "integer",
  4448. "format": "int",
  4449. "default": 0
  4450. },
  4451. "message": {
  4452. "description": "消息",
  4453. "type": "string",
  4454. "default": "success"
  4455. }
  4456. }
  4457. },
  4458. "v1.GardenChangeCompanyBody": {
  4459. "type": "object",
  4460. "properties": {
  4461. "cid": {
  4462. "type": "integer"
  4463. },
  4464. "garden_id": {
  4465. "type": "integer"
  4466. }
  4467. }
  4468. },
  4469. "v1.GardenChangeCompanyResponse": {
  4470. "type": "object",
  4471. "properties": {
  4472. "code": {
  4473. "description": "返回码",
  4474. "type": "integer",
  4475. "format": "int",
  4476. "default": 0
  4477. },
  4478. "message": {
  4479. "description": "消息",
  4480. "type": "string",
  4481. "default": "success"
  4482. }
  4483. }
  4484. },
  4485. "v1.GardenEnableSetBody": {
  4486. "type": "object",
  4487. "properties": {
  4488. "enable": {
  4489. "description": "true 启用 false 停用",
  4490. "type": "boolean"
  4491. },
  4492. "garden_id": {
  4493. "type": "integer"
  4494. }
  4495. }
  4496. },
  4497. "v1.GardenEnableSetResponse": {
  4498. "type": "object",
  4499. "properties": {
  4500. "code": {
  4501. "description": "返回码",
  4502. "type": "integer",
  4503. "format": "int",
  4504. "default": 0
  4505. },
  4506. "message": {
  4507. "description": "消息",
  4508. "type": "string",
  4509. "default": "success"
  4510. }
  4511. }
  4512. },
  4513. "v1.GardenItem": {
  4514. "type": "object",
  4515. "properties": {
  4516. "appendix": {
  4517. "type": "array",
  4518. "items": {
  4519. "type": "string"
  4520. }
  4521. },
  4522. "area": {
  4523. "description": "区",
  4524. "type": "string"
  4525. },
  4526. "area_code": {
  4527. "type": "string"
  4528. },
  4529. "area_percent": {
  4530. "description": "容积率",
  4531. "type": "number"
  4532. },
  4533. "building_area": {
  4534. "description": "建筑面积",
  4535. "type": "number"
  4536. },
  4537. "building_company": {
  4538. "description": "开发企业",
  4539. "type": "string"
  4540. },
  4541. "building_end": {
  4542. "description": "建成年份结束时间戳",
  4543. "type": "integer"
  4544. },
  4545. "building_start": {
  4546. "description": "建成年份开始时间戳",
  4547. "type": "integer"
  4548. },
  4549. "building_type": {
  4550. "description": "1塔楼 2 板楼 3 塔板结合 4 其他",
  4551. "type": "integer"
  4552. },
  4553. "cid": {
  4554. "description": "物业公司id",
  4555. "type": "integer"
  4556. },
  4557. "city": {
  4558. "description": "市",
  4559. "type": "string"
  4560. },
  4561. "city_code": {
  4562. "type": "string"
  4563. },
  4564. "committee": {
  4565. "description": "社区",
  4566. "type": "string"
  4567. },
  4568. "committee_code": {
  4569. "type": "string"
  4570. },
  4571. "covered_area": {
  4572. "description": "占地面积",
  4573. "type": "number"
  4574. },
  4575. "electric_type": {
  4576. "description": "电费类型多选 1 民用 2 商用",
  4577. "type": "array",
  4578. "items": {
  4579. "type": "integer"
  4580. }
  4581. },
  4582. "enable": {
  4583. "type": "boolean"
  4584. },
  4585. "expire_at": {
  4586. "type": "integer"
  4587. },
  4588. "feedback": {
  4589. "type": "string"
  4590. },
  4591. "garden_addr": {
  4592. "description": "小区地址",
  4593. "type": "string"
  4594. },
  4595. "garden_desc": {
  4596. "type": "string"
  4597. },
  4598. "garden_name": {
  4599. "description": "小区名字",
  4600. "type": "string"
  4601. },
  4602. "garden_pic": {
  4603. "type": "string"
  4604. },
  4605. "garden_pics": {
  4606. "description": "小区图片",
  4607. "type": "array",
  4608. "items": {
  4609. "type": "string"
  4610. }
  4611. },
  4612. "gas_fee_end": {
  4613. "description": "燃气费开始,单位分",
  4614. "type": "integer"
  4615. },
  4616. "gas_fee_start": {
  4617. "description": "燃气费开始,单位分",
  4618. "type": "integer"
  4619. },
  4620. "green_percent": {
  4621. "description": "绿化率",
  4622. "type": "number"
  4623. },
  4624. "house_count": {
  4625. "type": "integer"
  4626. },
  4627. "house_count_limit": {
  4628. "type": "integer"
  4629. },
  4630. "house_total": {
  4631. "description": "总户数",
  4632. "type": "integer"
  4633. },
  4634. "id": {
  4635. "type": "integer"
  4636. },
  4637. "in_use": {
  4638. "type": "boolean"
  4639. },
  4640. "lat": {
  4641. "description": "纬度",
  4642. "type": "number"
  4643. },
  4644. "lnt": {
  4645. "description": "经度",
  4646. "type": "number"
  4647. },
  4648. "mch_id": {
  4649. "type": "string"
  4650. },
  4651. "pay_mode": {
  4652. "type": "integer"
  4653. },
  4654. "property_fee_end": {
  4655. "description": "物业费结束, 单位分",
  4656. "type": "integer"
  4657. },
  4658. "property_fee_start": {
  4659. "description": "物业费开始,单位分",
  4660. "type": "integer"
  4661. },
  4662. "property_person": {
  4663. "description": "物业联系人",
  4664. "type": "string"
  4665. },
  4666. "property_phone": {
  4667. "description": "物业联系人手机号",
  4668. "type": "string"
  4669. },
  4670. "province": {
  4671. "description": "省",
  4672. "type": "string"
  4673. },
  4674. "province_code": {
  4675. "type": "string"
  4676. },
  4677. "space_info": {
  4678. "description": "车位配比",
  4679. "type": "string"
  4680. },
  4681. "space_total": {
  4682. "description": "固定车位数",
  4683. "type": "integer"
  4684. },
  4685. "status": {
  4686. "type": "integer"
  4687. },
  4688. "street": {
  4689. "description": "街道",
  4690. "type": "string"
  4691. },
  4692. "street_code": {
  4693. "type": "string"
  4694. },
  4695. "water_type": {
  4696. "description": "水费类型多选 1 民用 2 商用",
  4697. "type": "array",
  4698. "items": {
  4699. "type": "integer"
  4700. }
  4701. }
  4702. }
  4703. },
  4704. "v1.GardenKeyInfoApproveBody": {
  4705. "type": "object",
  4706. "properties": {
  4707. "feedback": {
  4708. "description": "拒绝原因",
  4709. "type": "string"
  4710. },
  4711. "id": {
  4712. "type": "integer"
  4713. },
  4714. "status": {
  4715. "description": "true 通过 false 拒绝",
  4716. "type": "boolean"
  4717. }
  4718. }
  4719. },
  4720. "v1.GardenKeyInfoApproveResponse": {
  4721. "type": "object",
  4722. "properties": {
  4723. "code": {
  4724. "description": "返回码",
  4725. "type": "integer",
  4726. "format": "int",
  4727. "default": 0
  4728. },
  4729. "message": {
  4730. "description": "消息",
  4731. "type": "string",
  4732. "default": "success"
  4733. }
  4734. }
  4735. },
  4736. "v1.GardenKeyInfoChangeListReply": {
  4737. "type": "object",
  4738. "properties": {
  4739. "list": {
  4740. "type": "array",
  4741. "items": {
  4742. "$ref": "#/definitions/v1.GardenKeyInfoData"
  4743. }
  4744. },
  4745. "page": {
  4746. "type": "integer"
  4747. },
  4748. "total": {
  4749. "type": "integer"
  4750. }
  4751. }
  4752. },
  4753. "v1.GardenKeyInfoChangeListResponse": {
  4754. "type": "object",
  4755. "properties": {
  4756. "code": {
  4757. "description": "返回码",
  4758. "type": "integer",
  4759. "format": "int",
  4760. "default": 0
  4761. },
  4762. "data": {
  4763. "type": "object",
  4764. "$ref": "#/definitions/v1.GardenKeyInfoChangeListReply"
  4765. },
  4766. "message": {
  4767. "description": "消息",
  4768. "type": "string",
  4769. "default": "success"
  4770. }
  4771. }
  4772. },
  4773. "v1.GardenKeyInfoData": {
  4774. "type": "object",
  4775. "properties": {
  4776. "cid": {
  4777. "type": "integer"
  4778. },
  4779. "feedback": {
  4780. "type": "string"
  4781. },
  4782. "garden_detail": {
  4783. "type": "string"
  4784. },
  4785. "garden_id": {
  4786. "type": "integer"
  4787. },
  4788. "garden_name": {
  4789. "type": "string"
  4790. },
  4791. "id": {
  4792. "type": "integer"
  4793. },
  4794. "list": {
  4795. "type": "array",
  4796. "items": {
  4797. "$ref": "#/definitions/v1.GardenKeyInfoItem"
  4798. }
  4799. },
  4800. "status": {
  4801. "type": "integer"
  4802. }
  4803. }
  4804. },
  4805. "v1.GardenKeyInfoItem": {
  4806. "type": "object",
  4807. "properties": {
  4808. "field_name": {
  4809. "type": "string"
  4810. },
  4811. "field_value_dst": {
  4812. "type": "string"
  4813. },
  4814. "field_value_src": {
  4815. "type": "string"
  4816. }
  4817. }
  4818. },
  4819. "v1.GardenListReply": {
  4820. "type": "object",
  4821. "properties": {
  4822. "list": {
  4823. "type": "array",
  4824. "items": {
  4825. "$ref": "#/definitions/v1.GardenItem"
  4826. }
  4827. },
  4828. "page": {
  4829. "type": "integer"
  4830. },
  4831. "total": {
  4832. "type": "integer"
  4833. }
  4834. }
  4835. },
  4836. "v1.GardenListResponse": {
  4837. "type": "object",
  4838. "properties": {
  4839. "code": {
  4840. "description": "返回码",
  4841. "type": "integer",
  4842. "format": "int",
  4843. "default": 0
  4844. },
  4845. "data": {
  4846. "type": "object",
  4847. "$ref": "#/definitions/v1.GardenListReply"
  4848. },
  4849. "message": {
  4850. "description": "消息",
  4851. "type": "string",
  4852. "default": "success"
  4853. }
  4854. }
  4855. },
  4856. "v1.GateDelResponse": {
  4857. "type": "object",
  4858. "properties": {
  4859. "code": {
  4860. "description": "返回码",
  4861. "type": "integer",
  4862. "format": "int",
  4863. "default": 0
  4864. },
  4865. "message": {
  4866. "description": "消息",
  4867. "type": "string",
  4868. "default": "success"
  4869. }
  4870. }
  4871. },
  4872. "v1.GateInBody": {
  4873. "type": "object",
  4874. "properties": {
  4875. "auth_key": {
  4876. "description": "授权key",
  4877. "type": "string"
  4878. },
  4879. "device_id": {
  4880. "description": "设备id",
  4881. "type": "string"
  4882. },
  4883. "device_name": {
  4884. "description": "设备名",
  4885. "type": "string"
  4886. },
  4887. "gate_type": {
  4888. "description": "1 二维码门禁 2 人脸识别门禁",
  4889. "type": "integer"
  4890. },
  4891. "manufactor": {
  4892. "description": "厂商",
  4893. "type": "string"
  4894. },
  4895. "protocol": {
  4896. "description": "协议",
  4897. "type": "integer"
  4898. },
  4899. "sn": {
  4900. "description": "序列号",
  4901. "type": "string"
  4902. }
  4903. }
  4904. },
  4905. "v1.GateInResponse": {
  4906. "type": "object",
  4907. "properties": {
  4908. "code": {
  4909. "description": "返回码",
  4910. "type": "integer",
  4911. "format": "int",
  4912. "default": 0
  4913. },
  4914. "message": {
  4915. "description": "消息",
  4916. "type": "string",
  4917. "default": "success"
  4918. }
  4919. }
  4920. },
  4921. "v1.GateItem": {
  4922. "type": "object",
  4923. "properties": {
  4924. "auth_key": {
  4925. "description": "授权key",
  4926. "type": "string"
  4927. },
  4928. "card_support": {
  4929. "description": "1 支持卡 2 不支持",
  4930. "type": "integer"
  4931. },
  4932. "device_id": {
  4933. "description": "设备id",
  4934. "type": "integer"
  4935. },
  4936. "device_name": {
  4937. "description": "设备名",
  4938. "type": "string"
  4939. },
  4940. "direction": {
  4941. "description": "1 进场 2 出场 3 进出场",
  4942. "type": "integer"
  4943. },
  4944. "enable": {
  4945. "description": "true 已启用 false 已禁用",
  4946. "type": "boolean"
  4947. },
  4948. "garden_id": {
  4949. "description": "小区id",
  4950. "type": "integer"
  4951. },
  4952. "garden_name": {
  4953. "description": "小区名",
  4954. "type": "string"
  4955. },
  4956. "ip": {
  4957. "type": "string"
  4958. },
  4959. "location": {
  4960. "type": "string"
  4961. },
  4962. "mac": {
  4963. "type": "string"
  4964. },
  4965. "manufactor": {
  4966. "description": "厂商",
  4967. "type": "string"
  4968. },
  4969. "out_time": {
  4970. "description": "出库时间",
  4971. "type": "integer"
  4972. },
  4973. "out_user": {
  4974. "description": "出库人",
  4975. "type": "string"
  4976. },
  4977. "password": {
  4978. "type": "string"
  4979. },
  4980. "pic_support": {
  4981. "description": "1 支持人脸 2 不支持",
  4982. "type": "integer"
  4983. },
  4984. "port": {
  4985. "type": "integer"
  4986. },
  4987. "protocol": {
  4988. "description": "协议",
  4989. "type": "integer"
  4990. },
  4991. "protocol_desc": {
  4992. "type": "string"
  4993. },
  4994. "qcode_support": {
  4995. "description": "1支持二维码 2 不支持",
  4996. "type": "integer"
  4997. },
  4998. "sn": {
  4999. "description": "序列号",
  5000. "type": "string"
  5001. },
  5002. "status": {
  5003. "description": "1 在线 2 离线",
  5004. "type": "integer"
  5005. },
  5006. "user_name": {
  5007. "type": "string"
  5008. }
  5009. }
  5010. },
  5011. "v1.GateListReply": {
  5012. "type": "object",
  5013. "properties": {
  5014. "list": {
  5015. "type": "array",
  5016. "items": {
  5017. "$ref": "#/definitions/v1.GateItem"
  5018. }
  5019. },
  5020. "page": {
  5021. "type": "integer"
  5022. },
  5023. "total": {
  5024. "type": "integer"
  5025. }
  5026. }
  5027. },
  5028. "v1.GateListResponse": {
  5029. "type": "object",
  5030. "properties": {
  5031. "code": {
  5032. "description": "返回码",
  5033. "type": "integer",
  5034. "format": "int",
  5035. "default": 0
  5036. },
  5037. "data": {
  5038. "type": "object",
  5039. "$ref": "#/definitions/v1.GateListReply"
  5040. },
  5041. "message": {
  5042. "description": "消息",
  5043. "type": "string",
  5044. "default": "success"
  5045. }
  5046. }
  5047. },
  5048. "v1.GateOutBody": {
  5049. "type": "object",
  5050. "properties": {
  5051. "device_id": {
  5052. "type": "integer"
  5053. },
  5054. "garden_id": {
  5055. "type": "integer"
  5056. }
  5057. }
  5058. },
  5059. "v1.GateOutResponse": {
  5060. "type": "object",
  5061. "properties": {
  5062. "code": {
  5063. "description": "返回码",
  5064. "type": "integer",
  5065. "format": "int",
  5066. "default": 0
  5067. },
  5068. "message": {
  5069. "description": "消息",
  5070. "type": "string",
  5071. "default": "success"
  5072. }
  5073. }
  5074. },
  5075. "v1.GateProtocolData": {
  5076. "type": "object",
  5077. "properties": {
  5078. "card_support": {
  5079. "type": "integer"
  5080. },
  5081. "desc": {
  5082. "type": "string"
  5083. },
  5084. "face_support": {
  5085. "type": "integer"
  5086. },
  5087. "protocol": {
  5088. "type": "integer"
  5089. },
  5090. "qcode_support": {
  5091. "type": "integer"
  5092. }
  5093. }
  5094. },
  5095. "v1.GateProtocolsReply": {
  5096. "type": "object",
  5097. "properties": {
  5098. "list": {
  5099. "type": "array",
  5100. "items": {
  5101. "$ref": "#/definitions/v1.GateProtocolData"
  5102. }
  5103. }
  5104. }
  5105. },
  5106. "v1.GateProtocolsResponse": {
  5107. "type": "object",
  5108. "properties": {
  5109. "data": {
  5110. "type": "object",
  5111. "$ref": "#/definitions/v1.GateProtocolsReply"
  5112. },
  5113. "token": {
  5114. "description": "token",
  5115. "type": "string"
  5116. },
  5117. "userId": {
  5118. "description": "用户id",
  5119. "type": "integer"
  5120. }
  5121. }
  5122. },
  5123. "v1.GateRecoveryBody": {
  5124. "type": "object",
  5125. "properties": {
  5126. "device_id": {
  5127. "type": "integer"
  5128. }
  5129. }
  5130. },
  5131. "v1.GateRecoveryResponse": {
  5132. "type": "object",
  5133. "properties": {
  5134. "code": {
  5135. "description": "返回码",
  5136. "type": "integer",
  5137. "format": "int",
  5138. "default": 0
  5139. },
  5140. "message": {
  5141. "description": "消息",
  5142. "type": "string",
  5143. "default": "success"
  5144. }
  5145. }
  5146. },
  5147. "v1.LoginBody": {
  5148. "type": "object",
  5149. "properties": {
  5150. "password": {
  5151. "type": "string"
  5152. },
  5153. "user": {
  5154. "type": "string"
  5155. }
  5156. }
  5157. },
  5158. "v1.LoginData": {
  5159. "type": "object",
  5160. "properties": {
  5161. "token": {
  5162. "type": "string"
  5163. },
  5164. "uid": {
  5165. "type": "integer"
  5166. },
  5167. "user": {
  5168. "type": "string"
  5169. }
  5170. }
  5171. },
  5172. "v1.LoginResponse": {
  5173. "type": "object",
  5174. "properties": {
  5175. "code": {
  5176. "description": "返回码",
  5177. "type": "integer",
  5178. "format": "int",
  5179. "default": 0
  5180. },
  5181. "data": {
  5182. "type": "object",
  5183. "$ref": "#/definitions/v1.LoginData"
  5184. },
  5185. "message": {
  5186. "description": "消息",
  5187. "type": "string",
  5188. "default": "success"
  5189. }
  5190. }
  5191. },
  5192. "v1.MaterialAddBody": {
  5193. "type": "object",
  5194. "properties": {
  5195. "mtype": {
  5196. "type": "integer"
  5197. },
  5198. "pic": {
  5199. "type": "string"
  5200. }
  5201. }
  5202. },
  5203. "v1.MaterialAddResponse": {
  5204. "type": "object",
  5205. "properties": {
  5206. "code": {
  5207. "description": "返回码",
  5208. "type": "integer",
  5209. "format": "int",
  5210. "default": 0
  5211. },
  5212. "message": {
  5213. "description": "消息",
  5214. "type": "string",
  5215. "default": "success"
  5216. }
  5217. }
  5218. },
  5219. "v1.MaterialDelResponse": {
  5220. "type": "object",
  5221. "properties": {
  5222. "code": {
  5223. "description": "返回码",
  5224. "type": "integer",
  5225. "format": "int",
  5226. "default": 0
  5227. },
  5228. "message": {
  5229. "description": "消息",
  5230. "type": "string",
  5231. "default": "success"
  5232. }
  5233. }
  5234. },
  5235. "v1.MaterialEnableBody": {
  5236. "type": "object",
  5237. "properties": {
  5238. "enable": {
  5239. "description": "1 发布 2 下架或不发布",
  5240. "type": "integer"
  5241. },
  5242. "id": {
  5243. "type": "integer"
  5244. }
  5245. }
  5246. },
  5247. "v1.MaterialItem": {
  5248. "type": "object",
  5249. "properties": {
  5250. "created_at": {
  5251. "type": "integer"
  5252. },
  5253. "enable": {
  5254. "type": "integer"
  5255. },
  5256. "id": {
  5257. "type": "integer"
  5258. },
  5259. "mtype": {
  5260. "type": "integer"
  5261. },
  5262. "pic": {
  5263. "type": "string"
  5264. }
  5265. }
  5266. },
  5267. "v1.MaterialListReply": {
  5268. "type": "object",
  5269. "properties": {
  5270. "list": {
  5271. "type": "array",
  5272. "items": {
  5273. "$ref": "#/definitions/v1.MaterialItem"
  5274. }
  5275. },
  5276. "page": {
  5277. "type": "integer"
  5278. },
  5279. "total": {
  5280. "type": "integer"
  5281. }
  5282. }
  5283. },
  5284. "v1.MaterialListResponse": {
  5285. "type": "object",
  5286. "properties": {
  5287. "code": {
  5288. "description": "返回码",
  5289. "type": "integer",
  5290. "format": "int",
  5291. "default": 0
  5292. },
  5293. "data": {
  5294. "type": "object",
  5295. "$ref": "#/definitions/v1.MaterialListReply"
  5296. },
  5297. "message": {
  5298. "description": "消息",
  5299. "type": "string",
  5300. "default": "success"
  5301. }
  5302. }
  5303. },
  5304. "v1.MaterialUpdateBody": {
  5305. "type": "object",
  5306. "properties": {
  5307. "id": {
  5308. "type": "integer"
  5309. },
  5310. "pic": {
  5311. "type": "string"
  5312. }
  5313. }
  5314. },
  5315. "v1.MaterialUpdateResponse": {
  5316. "type": "object",
  5317. "properties": {
  5318. "code": {
  5319. "description": "返回码",
  5320. "type": "integer",
  5321. "format": "int",
  5322. "default": 0
  5323. },
  5324. "message": {
  5325. "description": "消息",
  5326. "type": "string",
  5327. "default": "success"
  5328. }
  5329. }
  5330. },
  5331. "v1.MsgPackageAddBody": {
  5332. "type": "object",
  5333. "properties": {
  5334. "comment": {
  5335. "description": "套餐描述,可不填",
  5336. "type": "string"
  5337. },
  5338. "msg_count": {
  5339. "description": "短信条数",
  5340. "type": "integer"
  5341. },
  5342. "name": {
  5343. "description": "套餐名 必填",
  5344. "type": "string"
  5345. },
  5346. "price": {
  5347. "description": "价格",
  5348. "type": "integer"
  5349. }
  5350. }
  5351. },
  5352. "v1.MsgPackageAddResponse": {
  5353. "type": "object",
  5354. "properties": {
  5355. "code": {
  5356. "description": "返回码",
  5357. "type": "integer",
  5358. "format": "int",
  5359. "default": 0
  5360. },
  5361. "message": {
  5362. "description": "消息",
  5363. "type": "string",
  5364. "default": "success"
  5365. }
  5366. }
  5367. },
  5368. "v1.MsgPackageDelResponse": {
  5369. "type": "object",
  5370. "properties": {
  5371. "code": {
  5372. "description": "返回码",
  5373. "type": "integer",
  5374. "format": "int",
  5375. "default": 0
  5376. },
  5377. "message": {
  5378. "description": "消息",
  5379. "type": "string",
  5380. "default": "success"
  5381. }
  5382. }
  5383. },
  5384. "v1.MsgPackageItem": {
  5385. "type": "object",
  5386. "properties": {
  5387. "comment": {
  5388. "description": "套餐描述",
  5389. "type": "string"
  5390. },
  5391. "id": {
  5392. "type": "integer"
  5393. },
  5394. "msg_count": {
  5395. "description": "短信条数",
  5396. "type": "integer"
  5397. },
  5398. "name": {
  5399. "description": "套餐名称",
  5400. "type": "string"
  5401. },
  5402. "price": {
  5403. "description": "套餐价格",
  5404. "type": "integer"
  5405. }
  5406. }
  5407. },
  5408. "v1.MsgPackageListReply": {
  5409. "type": "object",
  5410. "properties": {
  5411. "list": {
  5412. "type": "array",
  5413. "items": {
  5414. "$ref": "#/definitions/v1.MsgPackageItem"
  5415. }
  5416. },
  5417. "page": {
  5418. "type": "integer"
  5419. },
  5420. "total": {
  5421. "type": "integer"
  5422. }
  5423. }
  5424. },
  5425. "v1.MsgPackageListResponse": {
  5426. "type": "object",
  5427. "properties": {
  5428. "code": {
  5429. "description": "返回码",
  5430. "type": "integer",
  5431. "format": "int",
  5432. "default": 0
  5433. },
  5434. "data": {
  5435. "type": "object",
  5436. "$ref": "#/definitions/v1.MsgPackageListReply"
  5437. },
  5438. "message": {
  5439. "description": "消息",
  5440. "type": "string",
  5441. "default": "success"
  5442. }
  5443. }
  5444. },
  5445. "v1.MsgPackageOrderApproveBody": {
  5446. "type": "object",
  5447. "properties": {
  5448. "feedback": {
  5449. "type": "string"
  5450. },
  5451. "order_id": {
  5452. "type": "integer"
  5453. },
  5454. "status": {
  5455. "type": "boolean"
  5456. }
  5457. }
  5458. },
  5459. "v1.MsgPackageOrderApproveResponse": {
  5460. "type": "object",
  5461. "properties": {
  5462. "code": {
  5463. "description": "返回码",
  5464. "type": "integer",
  5465. "format": "int",
  5466. "default": 0
  5467. },
  5468. "message": {
  5469. "description": "消息",
  5470. "type": "string",
  5471. "default": "success"
  5472. }
  5473. }
  5474. },
  5475. "v1.MsgPackageOrderItem": {
  5476. "type": "object",
  5477. "properties": {
  5478. "amount": {
  5479. "description": "订单总价",
  5480. "type": "integer"
  5481. },
  5482. "comment": {
  5483. "type": "string"
  5484. },
  5485. "created_at": {
  5486. "type": "integer"
  5487. },
  5488. "feedback": {
  5489. "type": "string"
  5490. },
  5491. "garden_id": {
  5492. "type": "integer"
  5493. },
  5494. "garden_name": {
  5495. "type": "string"
  5496. },
  5497. "msg_available_count": {
  5498. "description": "订单套餐短信剩余条数",
  5499. "type": "integer"
  5500. },
  5501. "msg_count": {
  5502. "description": "套餐短信条数",
  5503. "type": "integer"
  5504. },
  5505. "msg_total_count": {
  5506. "description": "订单套餐短信总条数",
  5507. "type": "integer"
  5508. },
  5509. "name": {
  5510. "type": "string"
  5511. },
  5512. "order_id": {
  5513. "type": "integer"
  5514. },
  5515. "package_count": {
  5516. "description": "订单包含的套餐个数",
  5517. "type": "integer"
  5518. },
  5519. "package_id": {
  5520. "type": "integer"
  5521. },
  5522. "price": {
  5523. "description": "套餐单价",
  5524. "type": "integer"
  5525. },
  5526. "status": {
  5527. "description": "1 待审核 2 通过 3 未通过",
  5528. "type": "integer"
  5529. }
  5530. }
  5531. },
  5532. "v1.MsgPackageOrderListReply": {
  5533. "type": "object",
  5534. "properties": {
  5535. "list": {
  5536. "type": "array",
  5537. "items": {
  5538. "$ref": "#/definitions/v1.MsgPackageOrderItem"
  5539. }
  5540. },
  5541. "page": {
  5542. "type": "integer"
  5543. },
  5544. "total": {
  5545. "type": "integer"
  5546. }
  5547. }
  5548. },
  5549. "v1.MsgPackageOrderListResponse": {
  5550. "type": "object",
  5551. "properties": {
  5552. "code": {
  5553. "description": "返回码",
  5554. "type": "integer",
  5555. "format": "int",
  5556. "default": 0
  5557. },
  5558. "data": {
  5559. "type": "object",
  5560. "$ref": "#/definitions/v1.MsgPackageOrderListReply"
  5561. },
  5562. "message": {
  5563. "description": "消息",
  5564. "type": "string",
  5565. "default": "success"
  5566. }
  5567. }
  5568. },
  5569. "v1.MsgPackageUpdateBody": {
  5570. "type": "object",
  5571. "properties": {
  5572. "comment": {
  5573. "description": "套餐描述,可不填",
  5574. "type": "string"
  5575. },
  5576. "id": {
  5577. "type": "integer"
  5578. },
  5579. "msg_count": {
  5580. "description": "短信条数",
  5581. "type": "integer"
  5582. },
  5583. "name": {
  5584. "description": "套餐名 必填",
  5585. "type": "string"
  5586. },
  5587. "price": {
  5588. "description": "价格",
  5589. "type": "integer"
  5590. }
  5591. }
  5592. },
  5593. "v1.MsgPackageUpdateResponse": {
  5594. "type": "object",
  5595. "properties": {
  5596. "code": {
  5597. "description": "返回码",
  5598. "type": "integer",
  5599. "format": "int",
  5600. "default": 0
  5601. },
  5602. "message": {
  5603. "description": "消息",
  5604. "type": "string",
  5605. "default": "success"
  5606. }
  5607. }
  5608. },
  5609. "v1.PackageAddBody": {
  5610. "type": "object",
  5611. "properties": {
  5612. "desc": {
  5613. "type": "string"
  5614. },
  5615. "house_count": {
  5616. "type": "integer"
  5617. },
  5618. "name": {
  5619. "type": "string"
  5620. },
  5621. "price": {
  5622. "type": "integer"
  5623. }
  5624. }
  5625. },
  5626. "v1.PackageAddResponse": {
  5627. "type": "object",
  5628. "properties": {
  5629. "code": {
  5630. "description": "返回码",
  5631. "type": "integer",
  5632. "format": "int",
  5633. "default": 0
  5634. },
  5635. "message": {
  5636. "description": "消息",
  5637. "type": "string",
  5638. "default": "success"
  5639. }
  5640. }
  5641. },
  5642. "v1.PackageApplicationSetBody": {
  5643. "type": "object",
  5644. "properties": {
  5645. "application_ids": {
  5646. "type": "array",
  5647. "items": {
  5648. "type": "integer"
  5649. }
  5650. },
  5651. "id": {
  5652. "type": "integer"
  5653. }
  5654. }
  5655. },
  5656. "v1.PackageApplicationSetResponse": {
  5657. "type": "object",
  5658. "properties": {
  5659. "code": {
  5660. "description": "返回码",
  5661. "type": "integer",
  5662. "format": "int",
  5663. "default": 0
  5664. },
  5665. "message": {
  5666. "description": "消息",
  5667. "type": "string",
  5668. "default": "success"
  5669. }
  5670. }
  5671. },
  5672. "v1.PackageDelResponse": {
  5673. "type": "object",
  5674. "properties": {
  5675. "code": {
  5676. "description": "返回码",
  5677. "type": "integer",
  5678. "format": "int",
  5679. "default": 0
  5680. },
  5681. "message": {
  5682. "description": "消息",
  5683. "type": "string",
  5684. "default": "success"
  5685. }
  5686. }
  5687. },
  5688. "v1.PackageEnableSetBody": {
  5689. "type": "object",
  5690. "properties": {
  5691. "enable": {
  5692. "type": "boolean"
  5693. },
  5694. "id": {
  5695. "type": "integer"
  5696. }
  5697. }
  5698. },
  5699. "v1.PackageEnableSetResponse": {
  5700. "type": "object",
  5701. "properties": {
  5702. "code": {
  5703. "description": "返回码",
  5704. "type": "integer",
  5705. "format": "int",
  5706. "default": 0
  5707. },
  5708. "message": {
  5709. "description": "消息",
  5710. "type": "string",
  5711. "default": "success"
  5712. }
  5713. }
  5714. },
  5715. "v1.PackageItem": {
  5716. "type": "object",
  5717. "properties": {
  5718. "desc": {
  5719. "type": "string"
  5720. },
  5721. "enable": {
  5722. "type": "boolean"
  5723. },
  5724. "house_count": {
  5725. "type": "integer"
  5726. },
  5727. "id": {
  5728. "type": "integer"
  5729. },
  5730. "name": {
  5731. "type": "string"
  5732. },
  5733. "price": {
  5734. "type": "integer"
  5735. }
  5736. }
  5737. },
  5738. "v1.PackageListReply": {
  5739. "type": "object",
  5740. "properties": {
  5741. "list": {
  5742. "type": "array",
  5743. "items": {
  5744. "$ref": "#/definitions/v1.PackageItem"
  5745. }
  5746. },
  5747. "page": {
  5748. "type": "integer"
  5749. },
  5750. "total": {
  5751. "type": "integer"
  5752. }
  5753. }
  5754. },
  5755. "v1.PackageListResponse": {
  5756. "type": "object",
  5757. "properties": {
  5758. "code": {
  5759. "description": "返回码",
  5760. "type": "integer",
  5761. "format": "int",
  5762. "default": 0
  5763. },
  5764. "data": {
  5765. "type": "object",
  5766. "$ref": "#/definitions/v1.PackageListReply"
  5767. },
  5768. "message": {
  5769. "description": "消息",
  5770. "type": "string",
  5771. "default": "success"
  5772. }
  5773. }
  5774. },
  5775. "v1.PackageOrderAddBody": {
  5776. "type": "object",
  5777. "properties": {
  5778. "amount": {
  5779. "description": "单价*周期得出的总价",
  5780. "type": "integer"
  5781. },
  5782. "cid": {
  5783. "description": "公司id",
  5784. "type": "integer"
  5785. },
  5786. "company_name": {
  5787. "description": "公司名称",
  5788. "type": "string"
  5789. },
  5790. "package_id": {
  5791. "type": "integer"
  5792. },
  5793. "period": {
  5794. "description": "周期年",
  5795. "type": "integer"
  5796. }
  5797. }
  5798. },
  5799. "v1.PackageOrderAddRenewBody": {
  5800. "type": "object",
  5801. "properties": {
  5802. "amount": {
  5803. "type": "integer"
  5804. },
  5805. "garden_id": {
  5806. "type": "integer"
  5807. },
  5808. "package_id": {
  5809. "type": "integer"
  5810. },
  5811. "period": {
  5812. "type": "integer"
  5813. }
  5814. }
  5815. },
  5816. "v1.PackageOrderAddRenewResponse": {
  5817. "type": "object",
  5818. "properties": {
  5819. "code": {
  5820. "description": "返回码",
  5821. "type": "integer",
  5822. "format": "int",
  5823. "default": 0
  5824. },
  5825. "message": {
  5826. "description": "消息",
  5827. "type": "string",
  5828. "default": "success"
  5829. }
  5830. }
  5831. },
  5832. "v1.PackageOrderAddResponse": {
  5833. "type": "object",
  5834. "properties": {
  5835. "code": {
  5836. "description": "返回码",
  5837. "type": "integer",
  5838. "format": "int",
  5839. "default": 0
  5840. },
  5841. "message": {
  5842. "description": "消息",
  5843. "type": "string",
  5844. "default": "success"
  5845. }
  5846. }
  5847. },
  5848. "v1.PackageOrderAmountBody": {
  5849. "type": "object",
  5850. "properties": {
  5851. "amount": {
  5852. "type": "integer"
  5853. },
  5854. "order_id": {
  5855. "type": "integer"
  5856. }
  5857. }
  5858. },
  5859. "v1.PackageOrderAmountResponse": {
  5860. "type": "object",
  5861. "properties": {
  5862. "code": {
  5863. "description": "返回码",
  5864. "type": "integer",
  5865. "format": "int",
  5866. "default": 0
  5867. },
  5868. "message": {
  5869. "description": "消息",
  5870. "type": "string",
  5871. "default": "success"
  5872. }
  5873. }
  5874. },
  5875. "v1.PackageOrderApproveBody": {
  5876. "type": "object",
  5877. "properties": {
  5878. "feedback": {
  5879. "type": "string"
  5880. },
  5881. "order_id": {
  5882. "type": "integer"
  5883. },
  5884. "status": {
  5885. "type": "boolean"
  5886. }
  5887. }
  5888. },
  5889. "v1.PackageOrderApproveResponse": {
  5890. "type": "object",
  5891. "properties": {
  5892. "code": {
  5893. "description": "返回码",
  5894. "type": "integer",
  5895. "format": "int",
  5896. "default": 0
  5897. },
  5898. "message": {
  5899. "description": "消息",
  5900. "type": "string",
  5901. "default": "success"
  5902. }
  5903. }
  5904. },
  5905. "v1.PackageUpdateBody": {
  5906. "type": "object",
  5907. "properties": {
  5908. "desc": {
  5909. "type": "string"
  5910. },
  5911. "house_count": {
  5912. "type": "integer"
  5913. },
  5914. "id": {
  5915. "type": "integer"
  5916. },
  5917. "name": {
  5918. "type": "string"
  5919. },
  5920. "price": {
  5921. "type": "integer"
  5922. }
  5923. }
  5924. },
  5925. "v1.PackageUpdateResponse": {
  5926. "type": "object",
  5927. "properties": {
  5928. "code": {
  5929. "description": "返回码",
  5930. "type": "integer",
  5931. "format": "int",
  5932. "default": 0
  5933. },
  5934. "message": {
  5935. "description": "消息",
  5936. "type": "string",
  5937. "default": "success"
  5938. }
  5939. }
  5940. },
  5941. "v1.ProvinceCityAreaReply": {
  5942. "type": "object",
  5943. "properties": {
  5944. "area_list": {
  5945. "type": "array",
  5946. "items": {
  5947. "$ref": "#/definitions/v1.AreaData"
  5948. }
  5949. },
  5950. "city_list": {
  5951. "type": "array",
  5952. "items": {
  5953. "$ref": "#/definitions/v1.CityData"
  5954. }
  5955. },
  5956. "province_list": {
  5957. "type": "array",
  5958. "items": {
  5959. "$ref": "#/definitions/v1.ProvinceData"
  5960. }
  5961. }
  5962. }
  5963. },
  5964. "v1.ProvinceCityAreaResponse": {
  5965. "type": "object",
  5966. "properties": {
  5967. "code": {
  5968. "description": "返回码",
  5969. "type": "integer",
  5970. "format": "int",
  5971. "default": 0
  5972. },
  5973. "data": {
  5974. "type": "object",
  5975. "$ref": "#/definitions/v1.ProvinceCityAreaReply"
  5976. },
  5977. "message": {
  5978. "description": "消息",
  5979. "type": "string",
  5980. "default": "success"
  5981. }
  5982. }
  5983. },
  5984. "v1.ProvinceData": {
  5985. "type": "object",
  5986. "properties": {
  5987. "code": {
  5988. "type": "string"
  5989. },
  5990. "name": {
  5991. "type": "string"
  5992. }
  5993. }
  5994. },
  5995. "v1.RegisterReply": {
  5996. "type": "object",
  5997. "properties": {
  5998. "id": {
  5999. "type": "integer"
  6000. }
  6001. }
  6002. },
  6003. "v1.StreetCommitteeReply": {
  6004. "type": "object",
  6005. "properties": {
  6006. "committee_list": {
  6007. "type": "array",
  6008. "items": {
  6009. "$ref": "#/definitions/v1.CommitteeData"
  6010. }
  6011. },
  6012. "street_list": {
  6013. "type": "array",
  6014. "items": {
  6015. "$ref": "#/definitions/v1.StreetData"
  6016. }
  6017. }
  6018. }
  6019. },
  6020. "v1.StreetCommitteeResponse": {
  6021. "type": "object",
  6022. "properties": {
  6023. "code": {
  6024. "description": "返回码",
  6025. "type": "integer",
  6026. "format": "int",
  6027. "default": 0
  6028. },
  6029. "data": {
  6030. "type": "object",
  6031. "$ref": "#/definitions/v1.StreetCommitteeReply"
  6032. },
  6033. "message": {
  6034. "description": "消息",
  6035. "type": "string",
  6036. "default": "success"
  6037. }
  6038. }
  6039. },
  6040. "v1.StreetData": {
  6041. "type": "object",
  6042. "properties": {
  6043. "code": {
  6044. "type": "string"
  6045. },
  6046. "name": {
  6047. "type": "string"
  6048. }
  6049. }
  6050. },
  6051. "v1.SystemPermissionAddBody": {
  6052. "type": "object",
  6053. "properties": {
  6054. "applete_path": {
  6055. "description": "小程序组件路径",
  6056. "type": "string"
  6057. },
  6058. "enable": {
  6059. "description": "1 发布 2 下架或不发布",
  6060. "type": "integer"
  6061. },
  6062. "name": {
  6063. "description": "权限名字",
  6064. "type": "string"
  6065. },
  6066. "path": {
  6067. "description": "组件路径",
  6068. "type": "string"
  6069. },
  6070. "pcode": {
  6071. "description": "父code,第一级节点父code为空",
  6072. "type": "string"
  6073. },
  6074. "router": {
  6075. "description": "路由",
  6076. "type": "string"
  6077. }
  6078. }
  6079. },
  6080. "v1.SystemPermissionAddReply": {
  6081. "type": "object",
  6082. "properties": {
  6083. "code": {
  6084. "type": "string"
  6085. }
  6086. }
  6087. },
  6088. "v1.SystemPermissionAddResponse": {
  6089. "type": "object",
  6090. "properties": {
  6091. "code": {
  6092. "description": "返回码",
  6093. "type": "integer",
  6094. "format": "int",
  6095. "default": 0
  6096. },
  6097. "data": {
  6098. "type": "object",
  6099. "$ref": "#/definitions/v1.SystemPermissionAddReply"
  6100. },
  6101. "message": {
  6102. "description": "消息",
  6103. "type": "string",
  6104. "default": "success"
  6105. }
  6106. }
  6107. },
  6108. "v1.SystemPermissionDelResponse": {
  6109. "type": "object",
  6110. "properties": {
  6111. "code": {
  6112. "description": "返回码",
  6113. "type": "integer",
  6114. "format": "int",
  6115. "default": 0
  6116. },
  6117. "message": {
  6118. "description": "消息",
  6119. "type": "string",
  6120. "default": "success"
  6121. }
  6122. }
  6123. },
  6124. "v1.SystemPermissionEnableBody": {
  6125. "type": "object",
  6126. "properties": {
  6127. "code": {
  6128. "description": "权限节点code",
  6129. "type": "string"
  6130. },
  6131. "enable": {
  6132. "description": "1 发布 2 下架或不发布",
  6133. "type": "integer"
  6134. }
  6135. }
  6136. },
  6137. "v1.SystemPermissionItem": {
  6138. "type": "object",
  6139. "properties": {
  6140. "applete_path": {
  6141. "description": "小程序组件路径",
  6142. "type": "string"
  6143. },
  6144. "childs": {
  6145. "type": "array",
  6146. "items": {
  6147. "$ref": "#/definitions/v1.SystemPermissionItem"
  6148. }
  6149. },
  6150. "code": {
  6151. "type": "string"
  6152. },
  6153. "created_at": {
  6154. "type": "integer"
  6155. },
  6156. "enable": {
  6157. "description": "1 已发布 2 未发布",
  6158. "type": "integer"
  6159. },
  6160. "enable_at": {
  6161. "type": "integer"
  6162. },
  6163. "level": {
  6164. "type": "integer"
  6165. },
  6166. "name": {
  6167. "description": "权限名字",
  6168. "type": "string"
  6169. },
  6170. "path": {
  6171. "description": "组件路径",
  6172. "type": "string"
  6173. },
  6174. "pcode": {
  6175. "description": "父code,若没有则填空",
  6176. "type": "string"
  6177. },
  6178. "router": {
  6179. "description": "路由",
  6180. "type": "string"
  6181. }
  6182. }
  6183. },
  6184. "v1.SystemPermissionListReply": {
  6185. "type": "object",
  6186. "properties": {
  6187. "list": {
  6188. "type": "array",
  6189. "items": {
  6190. "$ref": "#/definitions/v1.SystemPermissionItem"
  6191. }
  6192. }
  6193. }
  6194. },
  6195. "v1.SystemPermissionListResponse": {
  6196. "type": "object",
  6197. "properties": {
  6198. "code": {
  6199. "description": "返回码",
  6200. "type": "integer",
  6201. "format": "int",
  6202. "default": 0
  6203. },
  6204. "data": {
  6205. "type": "object",
  6206. "$ref": "#/definitions/v1.SystemPermissionListReply"
  6207. },
  6208. "message": {
  6209. "description": "消息",
  6210. "type": "string",
  6211. "default": "success"
  6212. }
  6213. }
  6214. },
  6215. "v1.SystemPermissionUpdateBody": {
  6216. "type": "object",
  6217. "properties": {
  6218. "applete_path": {
  6219. "description": "小程序组件路径",
  6220. "type": "string"
  6221. },
  6222. "code": {
  6223. "description": "权限节点code",
  6224. "type": "string"
  6225. },
  6226. "name": {
  6227. "description": "权限名字",
  6228. "type": "string"
  6229. },
  6230. "path": {
  6231. "description": "组件路径",
  6232. "type": "string"
  6233. },
  6234. "router": {
  6235. "description": "路由",
  6236. "type": "string"
  6237. }
  6238. }
  6239. },
  6240. "v1.SystemPermissionUpdateResponse": {
  6241. "type": "object",
  6242. "properties": {
  6243. "code": {
  6244. "description": "返回码",
  6245. "type": "integer",
  6246. "format": "int",
  6247. "default": 0
  6248. },
  6249. "message": {
  6250. "description": "消息",
  6251. "type": "string",
  6252. "default": "success"
  6253. }
  6254. }
  6255. },
  6256. "v1.TemplateData": {
  6257. "type": "object",
  6258. "properties": {
  6259. "url": {
  6260. "type": "string"
  6261. }
  6262. }
  6263. },
  6264. "v1.TemplateResponse": {
  6265. "type": "object",
  6266. "properties": {
  6267. "code": {
  6268. "description": "返回码",
  6269. "type": "integer",
  6270. "format": "int",
  6271. "default": 0
  6272. },
  6273. "data": {
  6274. "type": "object",
  6275. "$ref": "#/definitions/v1.TemplateData"
  6276. },
  6277. "message": {
  6278. "description": "消息",
  6279. "type": "string",
  6280. "default": "success"
  6281. }
  6282. }
  6283. },
  6284. "v1.TokenResponse": {
  6285. "type": "object",
  6286. "properties": {
  6287. "code": {
  6288. "description": "返回码",
  6289. "type": "integer",
  6290. "format": "int",
  6291. "default": 0
  6292. },
  6293. "data": {
  6294. "type": "string"
  6295. },
  6296. "message": {
  6297. "description": "消息",
  6298. "type": "string",
  6299. "default": "success"
  6300. },
  6301. "refresh_token": {
  6302. "type": "string"
  6303. }
  6304. }
  6305. },
  6306. "v1.UploadResponse": {
  6307. "type": "object",
  6308. "properties": {
  6309. "code": {
  6310. "description": "返回码",
  6311. "type": "integer",
  6312. "format": "int",
  6313. "default": 0
  6314. },
  6315. "data": {
  6316. "type": "string"
  6317. },
  6318. "message": {
  6319. "description": "消息",
  6320. "type": "string",
  6321. "default": "success"
  6322. }
  6323. }
  6324. },
  6325. "v1.WxPublicAddMiniBody": {
  6326. "type": "object",
  6327. "properties": {
  6328. "mini_pagepath": {
  6329. "type": "string"
  6330. },
  6331. "mini_url": {
  6332. "type": "string"
  6333. }
  6334. }
  6335. },
  6336. "v1.WxPublicAddMiniResponse": {
  6337. "type": "object",
  6338. "properties": {
  6339. "code": {
  6340. "description": "返回码",
  6341. "type": "integer",
  6342. "format": "int",
  6343. "default": 0
  6344. },
  6345. "message": {
  6346. "description": "消息",
  6347. "type": "string",
  6348. "default": "success"
  6349. }
  6350. }
  6351. }
  6352. }
  6353. }`
  6354. type swaggerInfo struct {
  6355. Version string
  6356. Host string
  6357. BasePath string
  6358. Schemes []string
  6359. Title string
  6360. Description string
  6361. }
  6362. // SwaggerInfo holds exported Swagger Info so clients can modify it
  6363. var SwaggerInfo = swaggerInfo{
  6364. Version: "1.1",
  6365. Host: "",
  6366. BasePath: "",
  6367. Schemes: []string{},
  6368. Title: "Project property-management-gateway's APIs",
  6369. Description: "This is a gateway server. On the page, you can go to do testing for every API.",
  6370. }
  6371. type s struct{}
  6372. func (s *s) ReadDoc() string {
  6373. sInfo := SwaggerInfo
  6374. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  6375. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  6376. "marshal": func(v interface{}) string {
  6377. a, _ := json.Marshal(v)
  6378. return string(a)
  6379. },
  6380. }).Parse(doc)
  6381. if err != nil {
  6382. return doc
  6383. }
  6384. var tpl bytes.Buffer
  6385. if err := t.Execute(&tpl, sInfo); err != nil {
  6386. return doc
  6387. }
  6388. return tpl.String()
  6389. }
  6390. func init() {
  6391. swag.Register(swag.Name, &s{})
  6392. }