swagger.json 215 KB

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