docs.go 216 KB

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