swagger.yaml 104 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654
  1. definitions:
  2. base.HTTPError:
  3. properties:
  4. code:
  5. example: 500
  6. format: int
  7. type: integer
  8. message:
  9. example: status bad request
  10. type: string
  11. type: object
  12. v1.AlarmContact:
  13. properties:
  14. email:
  15. description: 告警联系人邮件
  16. type: string
  17. id:
  18. description: id
  19. type: integer
  20. phone:
  21. description: 告警联系人电话
  22. type: string
  23. project_id:
  24. description: 项目id
  25. type: integer
  26. type: object
  27. v1.AlarmContactAddBody:
  28. properties:
  29. email:
  30. type: string
  31. phone:
  32. type: string
  33. required:
  34. - email
  35. - phone
  36. type: object
  37. v1.AlarmContactAddReply:
  38. properties:
  39. id:
  40. type: integer
  41. type: object
  42. v1.AlarmContactAddResponse:
  43. properties:
  44. code:
  45. default: 0
  46. description: 返回码
  47. format: int
  48. type: integer
  49. data:
  50. $ref: '#/definitions/v1.AlarmContactAddReply'
  51. type: object
  52. message:
  53. default: success
  54. description: 消息
  55. type: string
  56. type: object
  57. v1.AlarmContactDeleteResponse:
  58. properties:
  59. code:
  60. default: 0
  61. description: 返回码
  62. format: int
  63. type: integer
  64. message:
  65. default: success
  66. description: 消息
  67. type: string
  68. type: object
  69. v1.AlarmContactListReply:
  70. properties:
  71. list:
  72. items:
  73. $ref: '#/definitions/v1.AlarmContact'
  74. type: array
  75. type: object
  76. v1.AlarmContactListResponse:
  77. properties:
  78. code:
  79. default: 0
  80. description: 返回码
  81. format: int
  82. type: integer
  83. data:
  84. $ref: '#/definitions/v1.AlarmContactListReply'
  85. type: object
  86. message:
  87. default: success
  88. description: 消息
  89. type: string
  90. type: object
  91. v1.AlarmContactUpdateBody:
  92. properties:
  93. email:
  94. type: string
  95. id:
  96. type: integer
  97. phone:
  98. type: string
  99. required:
  100. - email
  101. - id
  102. - phone
  103. type: object
  104. v1.AlarmContactUpdateReply:
  105. type: object
  106. v1.AlarmContactUpdateResponse:
  107. properties:
  108. code:
  109. default: 0
  110. description: 返回码
  111. format: int
  112. type: integer
  113. data:
  114. $ref: '#/definitions/v1.AlarmContactUpdateReply'
  115. type: object
  116. message:
  117. default: success
  118. description: 消息
  119. type: string
  120. type: object
  121. v1.AlarmItem:
  122. properties:
  123. id:
  124. type: integer
  125. is_handled:
  126. type: boolean
  127. name:
  128. type: string
  129. project_id:
  130. type: integer
  131. reason:
  132. type: string
  133. sn:
  134. type: string
  135. time:
  136. type: string
  137. type_name:
  138. type: string
  139. type: object
  140. v1.AlarmListReply:
  141. properties:
  142. has_more:
  143. type: boolean
  144. list:
  145. items:
  146. $ref: '#/definitions/v1.AlarmItem'
  147. type: array
  148. page:
  149. type: integer
  150. page_size:
  151. type: integer
  152. timestamp:
  153. type: integer
  154. total:
  155. type: integer
  156. type: object
  157. v1.AlarmListResponse:
  158. properties:
  159. code:
  160. default: 0
  161. description: 返回码
  162. format: int
  163. type: integer
  164. data:
  165. $ref: '#/definitions/v1.AlarmListReply'
  166. type: object
  167. message:
  168. default: success
  169. description: 消息
  170. type: string
  171. type: object
  172. v1.AlarmRule:
  173. properties:
  174. alarm_count:
  175. type: integer
  176. continue_period:
  177. type: integer
  178. device_name:
  179. type: string
  180. id:
  181. type: integer
  182. is_on:
  183. type: boolean
  184. project_id:
  185. type: integer
  186. project_name:
  187. type: string
  188. silence_period:
  189. type: integer
  190. sn:
  191. type: string
  192. type: object
  193. v1.AlarmRuleAddBody:
  194. properties:
  195. alarm_count:
  196. type: integer
  197. continue_period:
  198. type: integer
  199. is_on:
  200. type: boolean
  201. silence_period:
  202. type: integer
  203. sn:
  204. type: string
  205. required:
  206. - alarm_count
  207. - continue_period
  208. - is_on
  209. - silence_period
  210. - sn
  211. type: object
  212. v1.AlarmRuleAddReply:
  213. properties:
  214. id:
  215. type: integer
  216. type: object
  217. v1.AlarmRuleAddResponse:
  218. properties:
  219. code:
  220. default: 0
  221. description: 返回码
  222. format: int
  223. type: integer
  224. data:
  225. $ref: '#/definitions/v1.AlarmRuleAddReply'
  226. type: object
  227. message:
  228. default: success
  229. description: 消息
  230. type: string
  231. type: object
  232. v1.AlarmRuleDeleteResponse:
  233. properties:
  234. code:
  235. default: 0
  236. description: 返回码
  237. format: int
  238. type: integer
  239. message:
  240. default: success
  241. description: 消息
  242. type: string
  243. type: object
  244. v1.AlarmRuleListReply:
  245. properties:
  246. list:
  247. items:
  248. $ref: '#/definitions/v1.AlarmRule'
  249. type: array
  250. page:
  251. type: integer
  252. page_size:
  253. type: integer
  254. total:
  255. type: integer
  256. type: object
  257. v1.AlarmRuleListResponse:
  258. properties:
  259. code:
  260. default: 0
  261. description: 返回码
  262. format: int
  263. type: integer
  264. data:
  265. $ref: '#/definitions/v1.AlarmRuleListReply'
  266. type: object
  267. message:
  268. default: success
  269. description: 消息
  270. type: string
  271. type: object
  272. v1.AlarmRuleOnOffBody:
  273. properties:
  274. id:
  275. type: integer
  276. is_on:
  277. type: boolean
  278. required:
  279. - id
  280. - is_on
  281. type: object
  282. v1.AlarmRuleOnOffResponse:
  283. properties:
  284. code:
  285. default: 0
  286. description: 返回码
  287. format: int
  288. type: integer
  289. message:
  290. default: success
  291. description: 消息
  292. type: string
  293. type: object
  294. v1.AlarmRuleUpdateBody:
  295. properties:
  296. alarm_count:
  297. type: integer
  298. continue_period:
  299. type: integer
  300. id:
  301. type: integer
  302. is_on:
  303. type: boolean
  304. silence_period:
  305. type: integer
  306. sn:
  307. type: string
  308. required:
  309. - alarm_count
  310. - continue_period
  311. - id
  312. - is_on
  313. - silence_period
  314. - sn
  315. type: object
  316. v1.AlarmRuleUpdateResponse:
  317. properties:
  318. code:
  319. default: 0
  320. description: 返回码
  321. format: int
  322. type: integer
  323. message:
  324. default: success
  325. description: 消息
  326. type: string
  327. type: object
  328. v1.AreaCodeItem:
  329. properties:
  330. area_addr:
  331. type: string
  332. area_code:
  333. type: string
  334. id:
  335. type: integer
  336. type: object
  337. v1.AreaCodeListReply:
  338. properties:
  339. list:
  340. items:
  341. $ref: '#/definitions/v1.AreaCodeItem'
  342. type: array
  343. type: object
  344. v1.AreaCodeListResponse:
  345. properties:
  346. code:
  347. default: 0
  348. description: 返回码
  349. format: int
  350. type: integer
  351. data:
  352. $ref: '#/definitions/v1.AreaCodeListReply'
  353. type: object
  354. message:
  355. default: success
  356. description: 消息
  357. type: string
  358. type: object
  359. v1.CaptchaIdResponse:
  360. properties:
  361. captureId:
  362. type: string
  363. code:
  364. default: 0
  365. description: 返回码
  366. format: int
  367. type: integer
  368. message:
  369. default: success
  370. description: 消息
  371. type: string
  372. type: object
  373. v1.ChangePasswdBody:
  374. properties:
  375. new:
  376. type: string
  377. old:
  378. type: string
  379. type: object
  380. v1.ChangePasswdResponse:
  381. properties:
  382. code:
  383. default: 0
  384. description: 返回码
  385. format: int
  386. type: integer
  387. message:
  388. default: success
  389. description: 消息
  390. type: string
  391. type: object
  392. v1.ChannelItem:
  393. properties:
  394. channel_no:
  395. type: string
  396. id:
  397. type: integer
  398. name:
  399. type: string
  400. state:
  401. type: integer
  402. type: object
  403. v1.ChannelListReply:
  404. properties:
  405. has_more:
  406. type: boolean
  407. list:
  408. items:
  409. $ref: '#/definitions/v1.ChannelItem'
  410. type: array
  411. page:
  412. type: integer
  413. page_size:
  414. type: integer
  415. total:
  416. type: integer
  417. type: object
  418. v1.ChannelListResponse:
  419. properties:
  420. code:
  421. default: 0
  422. description: 返回码
  423. format: int
  424. type: integer
  425. data:
  426. $ref: '#/definitions/v1.ChannelListReply'
  427. type: object
  428. message:
  429. default: success
  430. description: 消息
  431. type: string
  432. type: object
  433. v1.ChannelUpdateBody:
  434. properties:
  435. id:
  436. type: integer
  437. name:
  438. type: string
  439. type: object
  440. v1.ChannelUpdateResponse:
  441. properties:
  442. code:
  443. default: 0
  444. description: 返回码
  445. format: int
  446. type: integer
  447. message:
  448. default: success
  449. description: 消息
  450. type: string
  451. type: object
  452. v1.DeviceApproveBody:
  453. properties:
  454. device_code:
  455. type: integer
  456. feedback:
  457. description: 审批回复
  458. type: string
  459. id:
  460. description: 设备id
  461. type: integer
  462. status:
  463. description: true 通过 false 不通过
  464. type: boolean
  465. type: object
  466. v1.DeviceApproveResponse:
  467. properties:
  468. code:
  469. default: 0
  470. description: 返回码
  471. format: int
  472. type: integer
  473. message:
  474. default: success
  475. description: 消息
  476. type: string
  477. type: object
  478. v1.DeviceBindCameraBody:
  479. properties:
  480. channel_id:
  481. type: integer
  482. device_code:
  483. type: integer
  484. device_id:
  485. type: integer
  486. type: object
  487. v1.DeviceBindCameraResponse:
  488. properties:
  489. code:
  490. default: 0
  491. description: 返回码
  492. format: int
  493. type: integer
  494. message:
  495. default: success
  496. description: 消息
  497. type: string
  498. type: object
  499. v1.DeviceItem:
  500. properties:
  501. approve_time:
  502. description: 审批时间
  503. type: string
  504. batch:
  505. type: string
  506. channel_id:
  507. type: integer
  508. created_time:
  509. description: 申请时间
  510. type: string
  511. id:
  512. type: integer
  513. key:
  514. type: string
  515. kind:
  516. description: 实名制设备类型
  517. type: string
  518. lat:
  519. type: number
  520. lon:
  521. type: number
  522. manufacturer:
  523. type: string
  524. model:
  525. type: string
  526. name:
  527. type: string
  528. person:
  529. type: string
  530. phone:
  531. type: string
  532. project_name:
  533. type: string
  534. provider_name:
  535. type: string
  536. safety_record_no:
  537. description: 安检备案号
  538. type: string
  539. sn:
  540. type: string
  541. social_code:
  542. type: string
  543. state:
  544. description: 0 离线 1 在线
  545. type: integer
  546. status:
  547. description: 0 待审核 1 项目通过 2 项目不通过
  548. type: integer
  549. sub_kind:
  550. description: 实名制设备类别
  551. type: string
  552. type_code:
  553. description: 设备类型编码
  554. type: integer
  555. type_name:
  556. type: string
  557. unit:
  558. type: string
  559. url:
  560. type: string
  561. type: object
  562. v1.DeviceListReply:
  563. properties:
  564. list:
  565. items:
  566. $ref: '#/definitions/v1.DeviceItem'
  567. type: array
  568. page:
  569. type: integer
  570. page_size:
  571. type: integer
  572. total:
  573. type: integer
  574. type: object
  575. v1.DeviceListResponse:
  576. properties:
  577. code:
  578. default: 0
  579. description: 返回码
  580. format: int
  581. type: integer
  582. data:
  583. $ref: '#/definitions/v1.DeviceListReply'
  584. type: object
  585. message:
  586. default: success
  587. description: 消息
  588. type: string
  589. type: object
  590. v1.DeviceUnbindCameraBody:
  591. properties:
  592. channel_id:
  593. type: integer
  594. device_code:
  595. type: integer
  596. device_id:
  597. type: integer
  598. type: object
  599. v1.DeviceUnbindCameraResponse:
  600. properties:
  601. code:
  602. default: 0
  603. description: 返回码
  604. format: int
  605. type: integer
  606. message:
  607. default: success
  608. description: 消息
  609. type: string
  610. type: object
  611. v1.DeviceVideoChannelReply:
  612. properties:
  613. channel_no:
  614. type: string
  615. id:
  616. type: integer
  617. name:
  618. type: string
  619. state:
  620. type: integer
  621. type: object
  622. v1.DeviceVideoChannelResponse:
  623. properties:
  624. code:
  625. default: 0
  626. description: 返回码
  627. format: int
  628. type: integer
  629. data:
  630. $ref: '#/definitions/v1.DeviceVideoChannelReply'
  631. type: object
  632. message:
  633. default: success
  634. description: 消息
  635. type: string
  636. type: object
  637. v1.DustAqiData:
  638. properties:
  639. aqi:
  640. type: integer
  641. type: object
  642. v1.DustAqiResponse:
  643. properties:
  644. code:
  645. default: 0
  646. description: 返回码
  647. format: int
  648. type: integer
  649. data:
  650. $ref: '#/definitions/v1.DustAqiData'
  651. type: object
  652. message:
  653. default: success
  654. description: 消息
  655. type: string
  656. type: object
  657. v1.DustListItem:
  658. properties:
  659. id:
  660. type: integer
  661. name:
  662. type: string
  663. sn:
  664. type: string
  665. state:
  666. type: integer
  667. type: object
  668. v1.DustListReply:
  669. properties:
  670. list:
  671. items:
  672. $ref: '#/definitions/v1.DustListItem'
  673. type: array
  674. offline:
  675. type: integer
  676. online:
  677. type: integer
  678. page:
  679. type: integer
  680. page_size:
  681. type: integer
  682. total:
  683. type: integer
  684. type: object
  685. v1.DustListResponse:
  686. properties:
  687. code:
  688. default: 0
  689. description: 返回码
  690. format: int
  691. type: integer
  692. data:
  693. $ref: '#/definitions/v1.DustListReply'
  694. type: object
  695. message:
  696. default: success
  697. description: 消息
  698. type: string
  699. type: object
  700. v1.DustMonitorData:
  701. properties:
  702. b03:
  703. description: 噪声
  704. type: number
  705. date:
  706. type: string
  707. h01:
  708. description: 湿度
  709. type: number
  710. p01:
  711. description: 气压
  712. type: number
  713. pm10:
  714. type: number
  715. pm25:
  716. type: number
  717. r01:
  718. description: 雨量
  719. type: number
  720. t01:
  721. description: 温度
  722. type: number
  723. tsp:
  724. type: number
  725. w01:
  726. description: 风向
  727. type: number
  728. w02:
  729. description: 风速
  730. type: number
  731. type: object
  732. v1.DustMonitorHistoryReply:
  733. properties:
  734. list:
  735. items:
  736. $ref: '#/definitions/v1.DustMonitorData'
  737. type: array
  738. type: object
  739. v1.DustMonitorHistoryResponse:
  740. properties:
  741. code:
  742. default: 0
  743. description: 返回码
  744. format: int
  745. type: integer
  746. data:
  747. $ref: '#/definitions/v1.DustMonitorHistoryReply'
  748. type: object
  749. message:
  750. default: success
  751. description: 消息
  752. type: string
  753. type: object
  754. v1.GetVcodeReply:
  755. properties:
  756. vcode:
  757. type: integer
  758. type: object
  759. v1.IotDataItem:
  760. properties:
  761. name:
  762. type: string
  763. unit:
  764. type: string
  765. value:
  766. type: string
  767. type: object
  768. v1.IotLastReply:
  769. properties:
  770. list:
  771. items:
  772. $ref: '#/definitions/v1.IotDataItem'
  773. type: array
  774. pic:
  775. type: string
  776. type: object
  777. v1.IotLastResponse:
  778. properties:
  779. code:
  780. default: 0
  781. description: 返回码
  782. format: int
  783. type: integer
  784. data:
  785. $ref: '#/definitions/v1.IotLastReply'
  786. type: object
  787. message:
  788. default: success
  789. description: 消息
  790. type: string
  791. type: object
  792. v1.IotListItem:
  793. properties:
  794. id:
  795. type: integer
  796. name:
  797. type: string
  798. sn:
  799. type: string
  800. state:
  801. type: integer
  802. type: object
  803. v1.IotListReply:
  804. properties:
  805. list:
  806. items:
  807. $ref: '#/definitions/v1.IotListItem'
  808. type: array
  809. offline:
  810. type: integer
  811. online:
  812. type: integer
  813. page:
  814. type: integer
  815. page_size:
  816. type: integer
  817. total:
  818. type: integer
  819. type: object
  820. v1.IotListResponse:
  821. properties:
  822. code:
  823. default: 0
  824. description: 返回码
  825. format: int
  826. type: integer
  827. data:
  828. $ref: '#/definitions/v1.IotListReply'
  829. type: object
  830. message:
  831. default: success
  832. description: 消息
  833. type: string
  834. type: object
  835. v1.IotTypeListItem:
  836. properties:
  837. id:
  838. type: integer
  839. type_code:
  840. type: integer
  841. type_name:
  842. type: string
  843. type: object
  844. v1.IotTypeListReply:
  845. properties:
  846. list:
  847. items:
  848. $ref: '#/definitions/v1.IotTypeListItem'
  849. type: array
  850. type: object
  851. v1.IotTypeListResponse:
  852. properties:
  853. code:
  854. default: 0
  855. description: 返回码
  856. format: int
  857. type: integer
  858. data:
  859. $ref: '#/definitions/v1.IotTypeListReply'
  860. type: object
  861. message:
  862. default: success
  863. description: 消息
  864. type: string
  865. type: object
  866. v1.LaborCompanyStatistics:
  867. properties:
  868. attendance:
  869. description: 出勤人数
  870. type: integer
  871. labor_attendance:
  872. description: 劳务人员
  873. type: integer
  874. labor_company:
  875. description: 员工类型
  876. type: string
  877. manager_attendance:
  878. description: 管理人员
  879. type: integer
  880. total:
  881. description: 总人数
  882. type: integer
  883. type: object
  884. v1.LaborCompanyStatisticsReply:
  885. properties:
  886. list:
  887. items:
  888. $ref: '#/definitions/v1.LaborCompanyStatistics'
  889. type: array
  890. type: object
  891. v1.LaborCompanyStatisticsResponse:
  892. properties:
  893. code:
  894. default: 0
  895. description: 返回码
  896. format: int
  897. type: integer
  898. data:
  899. $ref: '#/definitions/v1.LaborCompanyStatisticsReply'
  900. type: object
  901. message:
  902. default: success
  903. description: 消息
  904. type: string
  905. type: object
  906. v1.LatestDustMonitorDataResponse:
  907. properties:
  908. code:
  909. default: 0
  910. description: 返回码
  911. format: int
  912. type: integer
  913. data:
  914. $ref: '#/definitions/v1.DustMonitorData'
  915. type: object
  916. message:
  917. default: success
  918. description: 消息
  919. type: string
  920. type: object
  921. v1.LatestStaffDataReply:
  922. properties:
  923. group:
  924. type: string
  925. in_out:
  926. description: 进出
  927. type: integer
  928. name:
  929. type: string
  930. photo:
  931. description: 照片
  932. type: string
  933. recog_time:
  934. description: 打卡时间
  935. type: string
  936. work_no:
  937. description: 工号
  938. type: string
  939. work_type:
  940. type: string
  941. type: object
  942. v1.LatestStaffDataResponse:
  943. properties:
  944. code:
  945. default: 0
  946. description: 返回码
  947. format: int
  948. type: integer
  949. data:
  950. $ref: '#/definitions/v1.LatestStaffDataReply'
  951. type: object
  952. message:
  953. default: success
  954. description: 消息
  955. type: string
  956. type: object
  957. v1.LatestTowerMonitorDataResponse:
  958. properties:
  959. code:
  960. default: 0
  961. description: 返回码
  962. format: int
  963. type: integer
  964. data:
  965. $ref: '#/definitions/v1.TowerMonitorData'
  966. type: object
  967. message:
  968. default: success
  969. description: 消息
  970. type: string
  971. type: object
  972. v1.LogInfo:
  973. properties:
  974. detail:
  975. type: string
  976. name:
  977. type: string
  978. operation:
  979. type: string
  980. project_id:
  981. type: integer
  982. project_name:
  983. type: string
  984. project_no:
  985. type: string
  986. result:
  987. type: string
  988. safety_record_no:
  989. type: string
  990. time:
  991. type: string
  992. uid:
  993. type: integer
  994. type: object
  995. v1.LogListReply:
  996. properties:
  997. list:
  998. items:
  999. $ref: '#/definitions/v1.LogInfo'
  1000. type: array
  1001. page:
  1002. type: integer
  1003. page_size:
  1004. type: integer
  1005. total:
  1006. type: integer
  1007. type: object
  1008. v1.LogListResponse:
  1009. properties:
  1010. code:
  1011. default: 0
  1012. description: 返回码
  1013. format: int
  1014. type: integer
  1015. data:
  1016. $ref: '#/definitions/v1.LogListReply'
  1017. type: object
  1018. message:
  1019. default: success
  1020. description: 消息
  1021. type: string
  1022. type: object
  1023. v1.LoginBody:
  1024. properties:
  1025. captcha:
  1026. type: string
  1027. password:
  1028. type: string
  1029. remberPassword:
  1030. type: boolean
  1031. user:
  1032. type: string
  1033. verify:
  1034. type: string
  1035. type: object
  1036. v1.LoginData:
  1037. properties:
  1038. is_admin:
  1039. type: boolean
  1040. refresh_token:
  1041. type: string
  1042. token:
  1043. type: string
  1044. uid:
  1045. type: integer
  1046. user:
  1047. type: string
  1048. type: object
  1049. v1.LoginResponse:
  1050. properties:
  1051. code:
  1052. default: 0
  1053. description: 返回码
  1054. format: int
  1055. type: integer
  1056. data:
  1057. $ref: '#/definitions/v1.LoginData'
  1058. type: object
  1059. message:
  1060. default: success
  1061. description: 消息
  1062. type: string
  1063. type: object
  1064. v1.MailPrepareBody:
  1065. properties:
  1066. email:
  1067. type: string
  1068. password:
  1069. type: string
  1070. type: object
  1071. v1.MailPrepareResponse:
  1072. properties:
  1073. code:
  1074. default: 0
  1075. description: 返回码
  1076. format: int
  1077. type: integer
  1078. message:
  1079. default: success
  1080. description: 消息
  1081. type: string
  1082. type: object
  1083. v1.MailUpdateResponse:
  1084. properties:
  1085. code:
  1086. default: 0
  1087. description: 返回码
  1088. format: int
  1089. type: integer
  1090. message:
  1091. default: success
  1092. description: 消息
  1093. type: string
  1094. type: object
  1095. v1.PhoneUpdateBody:
  1096. properties:
  1097. phone:
  1098. type: string
  1099. vcode:
  1100. type: integer
  1101. type: object
  1102. v1.PhoneUpdateResponse:
  1103. properties:
  1104. code:
  1105. default: 0
  1106. description: 返回码
  1107. format: int
  1108. type: integer
  1109. message:
  1110. default: success
  1111. description: 消息
  1112. type: string
  1113. type: object
  1114. v1.ProjectCorpAddBody:
  1115. properties:
  1116. area_code:
  1117. description: 单位所在行政区域代码
  1118. type: string
  1119. corp_type:
  1120. description: 参建类型
  1121. type: integer
  1122. name:
  1123. description: 单位名称
  1124. type: string
  1125. register_date:
  1126. description: 注册日期
  1127. type: integer
  1128. social_code:
  1129. description: 单位社会信用码
  1130. type: string
  1131. type: object
  1132. v1.ProjectCorpAddReply:
  1133. properties:
  1134. id:
  1135. type: integer
  1136. type: object
  1137. v1.ProjectCorpAddResponse:
  1138. properties:
  1139. code:
  1140. default: 0
  1141. description: 返回码
  1142. format: int
  1143. type: integer
  1144. data:
  1145. $ref: '#/definitions/v1.ProjectCorpAddReply'
  1146. type: object
  1147. message:
  1148. default: success
  1149. description: 消息
  1150. type: string
  1151. type: object
  1152. v1.ProjectCorpDelResponse:
  1153. properties:
  1154. code:
  1155. default: 0
  1156. description: 返回码
  1157. format: int
  1158. type: integer
  1159. message:
  1160. default: success
  1161. description: 消息
  1162. type: string
  1163. type: object
  1164. v1.ProjectCorpListItem:
  1165. properties:
  1166. area_code:
  1167. description: 单位所在行政区域代码
  1168. type: string
  1169. corp_type:
  1170. description: 参建类型
  1171. type: integer
  1172. id:
  1173. type: integer
  1174. name:
  1175. description: 单位名称
  1176. type: string
  1177. register_date:
  1178. description: 注册日期
  1179. type: integer
  1180. social_code:
  1181. description: 单位社会信用码
  1182. type: string
  1183. type: object
  1184. v1.ProjectCorpListReply:
  1185. properties:
  1186. list:
  1187. items:
  1188. $ref: '#/definitions/v1.ProjectCorpListItem'
  1189. type: array
  1190. type: object
  1191. v1.ProjectCorpListResponse:
  1192. properties:
  1193. code:
  1194. default: 0
  1195. description: 返回码
  1196. format: int
  1197. type: integer
  1198. data:
  1199. $ref: '#/definitions/v1.ProjectCorpListReply'
  1200. type: object
  1201. message:
  1202. default: success
  1203. description: 消息
  1204. type: string
  1205. type: object
  1206. v1.ProjectCorpUpdateBody:
  1207. properties:
  1208. area_code:
  1209. description: 单位所在行政区域代码
  1210. type: string
  1211. corp_type:
  1212. description: 参建类型
  1213. type: integer
  1214. id:
  1215. type: integer
  1216. name:
  1217. description: 单位名称
  1218. type: string
  1219. register_date:
  1220. description: 注册日期
  1221. type: integer
  1222. social_code:
  1223. description: 单位社会信用码
  1224. type: string
  1225. type: object
  1226. v1.ProjectCorpUpdateResponse:
  1227. properties:
  1228. code:
  1229. default: 0
  1230. description: 返回码
  1231. format: int
  1232. type: integer
  1233. message:
  1234. default: success
  1235. description: 消息
  1236. type: string
  1237. type: object
  1238. v1.ProjectDeviceStatistics:
  1239. properties:
  1240. device_type:
  1241. description: 设备类型
  1242. type: string
  1243. online:
  1244. description: 在线数
  1245. type: integer
  1246. total:
  1247. description: 总数
  1248. type: integer
  1249. type: object
  1250. v1.ProjectDeviceStatisticsReply:
  1251. properties:
  1252. list:
  1253. items:
  1254. $ref: '#/definitions/v1.ProjectDeviceStatistics'
  1255. type: array
  1256. type: object
  1257. v1.ProjectDeviceStatisticsResponse:
  1258. properties:
  1259. code:
  1260. default: 0
  1261. description: 返回码
  1262. format: int
  1263. type: integer
  1264. data:
  1265. $ref: '#/definitions/v1.ProjectDeviceStatisticsReply'
  1266. type: object
  1267. message:
  1268. default: success
  1269. description: 消息
  1270. type: string
  1271. type: object
  1272. v1.ProjectInfoReply:
  1273. properties:
  1274. area_code:
  1275. description: 项目所在地行政区域代码
  1276. type: string
  1277. category:
  1278. description: 项目类别 1 房屋建筑工程 2 市政工程 3 其他
  1279. type: string
  1280. construct_type:
  1281. description: 建设性质 1 新建 2 改建 3 扩建
  1282. type: string
  1283. construction:
  1284. description: 施工单位
  1285. type: string
  1286. covered_area:
  1287. description: 总面积
  1288. type: number
  1289. create_time:
  1290. type: string
  1291. desc:
  1292. description: 项目简介
  1293. type: string
  1294. design:
  1295. description: 设计单位
  1296. type: string
  1297. development:
  1298. description: 建设单位
  1299. type: string
  1300. end_day:
  1301. description: 计划完工日期
  1302. type: string
  1303. exploration:
  1304. description: 勘察单位
  1305. type: string
  1306. id:
  1307. type: integer
  1308. invest_type:
  1309. description: 资金来源
  1310. type: string
  1311. lat:
  1312. description: 纬度
  1313. type: number
  1314. location:
  1315. description: 建设地址
  1316. type: string
  1317. lon:
  1318. description: 经度
  1319. type: number
  1320. manager:
  1321. type: string
  1322. manager_phone:
  1323. type: string
  1324. name:
  1325. description: 项目名称
  1326. type: string
  1327. oversee:
  1328. description: 监理单位
  1329. type: string
  1330. price:
  1331. description: 总投资 万元
  1332. type: number
  1333. project_effect_pic:
  1334. description: 项目效果图
  1335. type: string
  1336. project_plan:
  1337. description: 项目平面图
  1338. type: string
  1339. project_status:
  1340. description: 1 筹备 2 立项 3 在建 4 完工 5 停工
  1341. type: string
  1342. safety_record_no:
  1343. description: 安监备案号
  1344. type: string
  1345. scale:
  1346. description: 项目规模
  1347. type: string
  1348. start_day:
  1349. description: 计划开工日期
  1350. type: string
  1351. type: object
  1352. v1.ProjectInfoResponse:
  1353. properties:
  1354. code:
  1355. default: 0
  1356. description: 返回码
  1357. format: int
  1358. type: integer
  1359. data:
  1360. $ref: '#/definitions/v1.ProjectInfoReply'
  1361. type: object
  1362. message:
  1363. default: success
  1364. description: 消息
  1365. type: string
  1366. type: object
  1367. v1.ProjectPMAddBody:
  1368. properties:
  1369. cert_num:
  1370. description: 证件号
  1371. type: string
  1372. cert_type:
  1373. description: 证件类型
  1374. type: integer
  1375. corp_id:
  1376. type: integer
  1377. name:
  1378. description: 姓名
  1379. type: string
  1380. p_type:
  1381. description: 人员类型
  1382. type: integer
  1383. phone:
  1384. description: 电话号
  1385. type: string
  1386. type: object
  1387. v1.ProjectPMAddReply:
  1388. properties:
  1389. id:
  1390. type: integer
  1391. type: object
  1392. v1.ProjectPMAddResponse:
  1393. properties:
  1394. code:
  1395. default: 0
  1396. description: 返回码
  1397. format: int
  1398. type: integer
  1399. data:
  1400. $ref: '#/definitions/v1.ProjectPMAddReply'
  1401. type: object
  1402. message:
  1403. default: success
  1404. description: 消息
  1405. type: string
  1406. type: object
  1407. v1.ProjectPMDelResponse:
  1408. properties:
  1409. code:
  1410. default: 0
  1411. description: 返回码
  1412. format: int
  1413. type: integer
  1414. message:
  1415. default: success
  1416. description: 消息
  1417. type: string
  1418. type: object
  1419. v1.ProjectPMListItem:
  1420. properties:
  1421. cert_num:
  1422. description: 证件号
  1423. type: string
  1424. cert_type:
  1425. description: 证件类型
  1426. type: integer
  1427. corp_id:
  1428. type: integer
  1429. corp_name:
  1430. type: string
  1431. corp_type:
  1432. description: 参建类型
  1433. type: integer
  1434. created_time:
  1435. type: string
  1436. id:
  1437. type: integer
  1438. name:
  1439. description: 姓名
  1440. type: string
  1441. p_type:
  1442. description: 人员类型
  1443. type: integer
  1444. phone:
  1445. description: 电话号
  1446. type: string
  1447. social_code:
  1448. description: 单位社会信用码
  1449. type: string
  1450. type: object
  1451. v1.ProjectPMListReply:
  1452. properties:
  1453. list:
  1454. items:
  1455. $ref: '#/definitions/v1.ProjectPMListItem'
  1456. type: array
  1457. page:
  1458. type: integer
  1459. page_size:
  1460. type: integer
  1461. total:
  1462. type: integer
  1463. type: object
  1464. v1.ProjectPMListResponse:
  1465. properties:
  1466. code:
  1467. default: 0
  1468. description: 返回码
  1469. format: int
  1470. type: integer
  1471. data:
  1472. $ref: '#/definitions/v1.ProjectPMListReply'
  1473. type: object
  1474. message:
  1475. default: success
  1476. description: 消息
  1477. type: string
  1478. type: object
  1479. v1.ProjectPMUpdateBody:
  1480. properties:
  1481. cert_num:
  1482. description: 证件号
  1483. type: string
  1484. cert_type:
  1485. description: 证件类型
  1486. type: integer
  1487. corp_id:
  1488. description: 单位社会信用码
  1489. type: integer
  1490. id:
  1491. type: integer
  1492. name:
  1493. description: 姓名
  1494. type: string
  1495. p_type:
  1496. description: 人员类型
  1497. type: integer
  1498. phone:
  1499. description: 电话号
  1500. type: string
  1501. type: object
  1502. v1.ProjectPMUpdateResponse:
  1503. properties:
  1504. code:
  1505. default: 0
  1506. description: 返回码
  1507. format: int
  1508. type: integer
  1509. message:
  1510. default: success
  1511. description: 消息
  1512. type: string
  1513. type: object
  1514. v1.ProjectProgress:
  1515. properties:
  1516. expect_end_time:
  1517. description: 预计结束时间
  1518. type: string
  1519. expect_start_time:
  1520. description: 预计开始时间
  1521. type: string
  1522. id:
  1523. description: 阶段id
  1524. type: integer
  1525. image:
  1526. description: 阶段图片
  1527. type: string
  1528. name:
  1529. description: 阶段名
  1530. type: string
  1531. reality_end_time:
  1532. description: 实际完工时间
  1533. type: string
  1534. reality_start_time:
  1535. type: string
  1536. status:
  1537. description: 状态 (0 未完工,1 已完成 ,2 进行中)
  1538. type: integer
  1539. type: object
  1540. v1.ProjectProgressAddBody:
  1541. properties:
  1542. expectEndTime:
  1543. type: integer
  1544. expectStartTime:
  1545. type: integer
  1546. name:
  1547. type: string
  1548. type: object
  1549. v1.ProjectProgressAddReply:
  1550. properties:
  1551. id:
  1552. type: integer
  1553. type: object
  1554. v1.ProjectProgressAddResponse:
  1555. properties:
  1556. code:
  1557. default: 0
  1558. description: 返回码
  1559. format: int
  1560. type: integer
  1561. data:
  1562. $ref: '#/definitions/v1.ProjectProgressAddReply'
  1563. type: object
  1564. message:
  1565. default: success
  1566. description: 消息
  1567. type: string
  1568. type: object
  1569. v1.ProjectProgressDelResponse:
  1570. properties:
  1571. code:
  1572. default: 0
  1573. description: 返回码
  1574. format: int
  1575. type: integer
  1576. message:
  1577. default: success
  1578. description: 消息
  1579. type: string
  1580. type: object
  1581. v1.ProjectProgressReply:
  1582. properties:
  1583. end_day:
  1584. description: 项目结束时间
  1585. type: string
  1586. list:
  1587. items:
  1588. $ref: '#/definitions/v1.ProjectProgress'
  1589. type: array
  1590. start_day:
  1591. description: 项目开始时间
  1592. type: string
  1593. start_days:
  1594. description: 开工天数
  1595. type: integer
  1596. total_days:
  1597. description: 总天数
  1598. type: integer
  1599. type: object
  1600. v1.ProjectProgressResponse:
  1601. properties:
  1602. code:
  1603. default: 0
  1604. description: 返回码
  1605. format: int
  1606. type: integer
  1607. data:
  1608. $ref: '#/definitions/v1.ProjectProgressReply'
  1609. type: object
  1610. message:
  1611. default: success
  1612. description: 消息
  1613. type: string
  1614. type: object
  1615. v1.ProjectProgressSetBody:
  1616. properties:
  1617. id:
  1618. type: integer
  1619. image:
  1620. type: string
  1621. reality_end_time:
  1622. type: integer
  1623. reality_start_time:
  1624. type: integer
  1625. type: object
  1626. v1.ProjectProgressSetResponse:
  1627. properties:
  1628. code:
  1629. default: 0
  1630. description: 返回码
  1631. format: int
  1632. type: integer
  1633. message:
  1634. default: success
  1635. description: 消息
  1636. type: string
  1637. type: object
  1638. v1.ProjectSetPicBody:
  1639. properties:
  1640. picType:
  1641. description: 0 平面图 1 效果图
  1642. type: integer
  1643. picUrl:
  1644. items:
  1645. type: string
  1646. type: array
  1647. type: object
  1648. v1.ProjectSetPicResponse:
  1649. properties:
  1650. code:
  1651. default: 0
  1652. description: 返回码
  1653. format: int
  1654. type: integer
  1655. message:
  1656. default: success
  1657. description: 消息
  1658. type: string
  1659. type: object
  1660. v1.PtzResponse:
  1661. properties:
  1662. code:
  1663. default: 0
  1664. description: 返回码
  1665. format: int
  1666. type: integer
  1667. message:
  1668. default: success
  1669. description: 消息
  1670. type: string
  1671. type: object
  1672. v1.RealPlayReply:
  1673. properties:
  1674. flvurl:
  1675. type: string
  1676. hlsurl:
  1677. type: string
  1678. rtcurl:
  1679. type: string
  1680. rtmpurl:
  1681. type: string
  1682. sessionid:
  1683. type: string
  1684. vediourl:
  1685. type: string
  1686. type: object
  1687. v1.RealPlayResponse:
  1688. properties:
  1689. code:
  1690. default: 0
  1691. description: 返回码
  1692. format: int
  1693. type: integer
  1694. data:
  1695. $ref: '#/definitions/v1.RealPlayReply'
  1696. type: object
  1697. message:
  1698. default: success
  1699. description: 消息
  1700. type: string
  1701. type: object
  1702. v1.StaffAttendanceDesc:
  1703. properties:
  1704. in_out:
  1705. description: 进出
  1706. type: string
  1707. is_in:
  1708. type: boolean
  1709. time:
  1710. description: 打卡时间
  1711. type: string
  1712. type: object
  1713. v1.StaffAttendanceItem:
  1714. properties:
  1715. date:
  1716. type: string
  1717. gender:
  1718. type: string
  1719. id:
  1720. type: integer
  1721. list:
  1722. items:
  1723. $ref: '#/definitions/v1.StaffAttendanceDesc'
  1724. type: array
  1725. name:
  1726. type: string
  1727. staff_type:
  1728. type: string
  1729. work_no:
  1730. type: string
  1731. work_type:
  1732. type: string
  1733. type: object
  1734. v1.StaffAttendanceReply:
  1735. properties:
  1736. list:
  1737. items:
  1738. $ref: '#/definitions/v1.StaffAttendanceItem'
  1739. type: array
  1740. page:
  1741. type: integer
  1742. page_size:
  1743. type: integer
  1744. total:
  1745. type: integer
  1746. type: object
  1747. v1.StaffAttendanceResponse:
  1748. properties:
  1749. code:
  1750. default: 0
  1751. description: 返回码
  1752. format: int
  1753. type: integer
  1754. data:
  1755. $ref: '#/definitions/v1.StaffAttendanceReply'
  1756. type: object
  1757. message:
  1758. default: success
  1759. description: 消息
  1760. type: string
  1761. type: object
  1762. v1.StaffListItem:
  1763. properties:
  1764. address:
  1765. description: 住址
  1766. type: string
  1767. birthday:
  1768. description: 生日
  1769. type: string
  1770. created_at:
  1771. type: string
  1772. gender:
  1773. description: 性别
  1774. type: string
  1775. group:
  1776. description: 班组
  1777. type: string
  1778. id:
  1779. type: integer
  1780. id_cert:
  1781. description: 身分证
  1782. type: string
  1783. id_issue:
  1784. description: 发证机关
  1785. type: string
  1786. id_period:
  1787. description: 证件有效期
  1788. type: string
  1789. id_photo:
  1790. description: 证件照片
  1791. type: string
  1792. inf_photo:
  1793. description: 现场人员红外照片
  1794. type: string
  1795. is_delete:
  1796. description: 是否删除
  1797. type: boolean
  1798. labor_company:
  1799. description: 劳务公司
  1800. type: string
  1801. name:
  1802. description: 姓名
  1803. type: string
  1804. photo:
  1805. description: 现场人员可见光照片
  1806. type: string
  1807. project_id:
  1808. type: integer
  1809. sn:
  1810. description: 设备编码
  1811. type: string
  1812. staff_type:
  1813. description: 员工类型
  1814. type: string
  1815. status:
  1816. description: 0 新增,1已下发(待确认) 2 已下发(成功) 3 待删除
  1817. type: integer
  1818. work_no:
  1819. description: 工号
  1820. type: string
  1821. work_type:
  1822. description: 工种
  1823. type: string
  1824. type: object
  1825. v1.StaffListReply:
  1826. properties:
  1827. list:
  1828. items:
  1829. $ref: '#/definitions/v1.StaffListItem'
  1830. type: array
  1831. page:
  1832. type: integer
  1833. page_size:
  1834. type: integer
  1835. total:
  1836. type: integer
  1837. type: object
  1838. v1.StaffListResponse:
  1839. properties:
  1840. code:
  1841. default: 0
  1842. description: 返回码
  1843. format: int
  1844. type: integer
  1845. data:
  1846. $ref: '#/definitions/v1.StaffListReply'
  1847. type: object
  1848. message:
  1849. default: success
  1850. description: 消息
  1851. type: string
  1852. type: object
  1853. v1.StaffTypeStatistics:
  1854. properties:
  1855. attendance:
  1856. description: 出勤人数
  1857. type: integer
  1858. staff_type:
  1859. description: 员工类型
  1860. type: string
  1861. total:
  1862. description: 总人数
  1863. type: integer
  1864. type_code:
  1865. type: integer
  1866. type: object
  1867. v1.StaffTypeStatisticsReply:
  1868. properties:
  1869. list:
  1870. items:
  1871. $ref: '#/definitions/v1.StaffTypeStatistics'
  1872. type: array
  1873. total_attendance:
  1874. type: integer
  1875. total_in:
  1876. type: integer
  1877. type: object
  1878. v1.StaffTypeStatisticsResponse:
  1879. properties:
  1880. code:
  1881. default: 0
  1882. description: 返回码
  1883. format: int
  1884. type: integer
  1885. data:
  1886. $ref: '#/definitions/v1.StaffTypeStatisticsReply'
  1887. type: object
  1888. message:
  1889. default: success
  1890. description: 消息
  1891. type: string
  1892. type: object
  1893. v1.StaffWorkTypeStatisticsReply:
  1894. properties:
  1895. list:
  1896. items:
  1897. $ref: '#/definitions/v1.WorkTypeStatistics'
  1898. type: array
  1899. type: object
  1900. v1.StaffWorkTypeStatisticsResponse:
  1901. properties:
  1902. code:
  1903. default: 0
  1904. description: 返回码
  1905. format: int
  1906. type: integer
  1907. data:
  1908. $ref: '#/definitions/v1.StaffWorkTypeStatisticsReply'
  1909. type: object
  1910. message:
  1911. default: success
  1912. description: 消息
  1913. type: string
  1914. type: object
  1915. v1.TaskFinishBody:
  1916. properties:
  1917. id:
  1918. type: integer
  1919. processing_person:
  1920. type: string
  1921. processing_results:
  1922. type: string
  1923. processing_results_img:
  1924. items:
  1925. type: string
  1926. type: array
  1927. type: object
  1928. v1.TaskFinishResponse:
  1929. properties:
  1930. code:
  1931. default: 0
  1932. description: 返回码
  1933. format: int
  1934. type: integer
  1935. message:
  1936. default: success
  1937. description: 消息
  1938. type: string
  1939. type: object
  1940. v1.TaskInfoReply:
  1941. properties:
  1942. finish_date:
  1943. type: string
  1944. list:
  1945. items:
  1946. $ref: '#/definitions/v1.TaskPipeline'
  1947. type: array
  1948. status:
  1949. type: integer
  1950. task_code:
  1951. type: string
  1952. task_name:
  1953. type: string
  1954. task_type:
  1955. type: integer
  1956. type: object
  1957. v1.TaskInfoResponse:
  1958. properties:
  1959. code:
  1960. default: 0
  1961. description: 返回码
  1962. format: int
  1963. type: integer
  1964. data:
  1965. $ref: '#/definitions/v1.TaskInfoReply'
  1966. type: object
  1967. message:
  1968. default: success
  1969. description: 消息
  1970. type: string
  1971. type: object
  1972. v1.TaskListItem:
  1973. properties:
  1974. created_time:
  1975. type: string
  1976. creater:
  1977. type: string
  1978. finish_date:
  1979. type: string
  1980. id:
  1981. type: integer
  1982. is_overdue:
  1983. type: boolean
  1984. processing_date:
  1985. type: string
  1986. processing_person:
  1987. type: string
  1988. processing_results:
  1989. type: string
  1990. processing_results_img:
  1991. type: string
  1992. project_addr:
  1993. type: string
  1994. project_code:
  1995. type: string
  1996. project_id:
  1997. type: integer
  1998. project_name:
  1999. type: string
  2000. reviewer:
  2001. type: string
  2002. safety_record_no:
  2003. type: string
  2004. status:
  2005. description: 0 未处理 1 待审核 2 已审核
  2006. type: integer
  2007. task_code:
  2008. type: string
  2009. task_desc:
  2010. type: string
  2011. task_img:
  2012. type: string
  2013. task_name:
  2014. type: string
  2015. task_type:
  2016. type: integer
  2017. type: object
  2018. v1.TaskListReply:
  2019. properties:
  2020. list:
  2021. items:
  2022. $ref: '#/definitions/v1.TaskListItem'
  2023. type: array
  2024. page:
  2025. type: integer
  2026. page_size:
  2027. type: integer
  2028. total:
  2029. type: integer
  2030. type: object
  2031. v1.TaskListResponse:
  2032. properties:
  2033. code:
  2034. default: 0
  2035. description: 返回码
  2036. format: int
  2037. type: integer
  2038. data:
  2039. $ref: '#/definitions/v1.TaskListReply'
  2040. type: object
  2041. message:
  2042. default: success
  2043. description: 消息
  2044. type: string
  2045. type: object
  2046. v1.TaskPipeline:
  2047. properties:
  2048. desc:
  2049. type: string
  2050. img:
  2051. type: string
  2052. person:
  2053. type: string
  2054. pipe_time:
  2055. type: string
  2056. pipe_type:
  2057. type: integer
  2058. status:
  2059. type: string
  2060. type: object
  2061. v1.TokenResponse:
  2062. properties:
  2063. code:
  2064. default: 0
  2065. description: 返回码
  2066. format: int
  2067. type: integer
  2068. data:
  2069. type: string
  2070. message:
  2071. default: success
  2072. description: 消息
  2073. type: string
  2074. refresh_token:
  2075. type: string
  2076. type: object
  2077. v1.TowerMonitorData:
  2078. properties:
  2079. angle_x:
  2080. description: 塔身倾斜度 X 向
  2081. type: number
  2082. angle_y:
  2083. description: 塔身倾斜度 Y 向
  2084. type: number
  2085. back_turn:
  2086. description: 回转角度值
  2087. type: number
  2088. battery:
  2089. description: 电池电量
  2090. type: string
  2091. date:
  2092. type: string
  2093. hight:
  2094. description: 吊钩离地面的距离
  2095. type: number
  2096. moment:
  2097. description: 当前力矩所占最大力矩的百分比
  2098. type: string
  2099. scope:
  2100. description: 幅度值
  2101. type: number
  2102. weight:
  2103. description: 吊钩所掉重物的重量
  2104. type: number
  2105. wind_speed:
  2106. description: 风速
  2107. type: number
  2108. type: object
  2109. v1.TowerMonitorHistoryReply:
  2110. properties:
  2111. list:
  2112. items:
  2113. $ref: '#/definitions/v1.TowerMonitorData'
  2114. type: array
  2115. page:
  2116. type: integer
  2117. page_size:
  2118. type: integer
  2119. total:
  2120. type: integer
  2121. type: object
  2122. v1.TowerMonitorHistoryResponse:
  2123. properties:
  2124. code:
  2125. default: 0
  2126. description: 返回码
  2127. format: int
  2128. type: integer
  2129. data:
  2130. $ref: '#/definitions/v1.TowerMonitorHistoryReply'
  2131. type: object
  2132. message:
  2133. default: success
  2134. description: 消息
  2135. type: string
  2136. type: object
  2137. v1.UploadResponse:
  2138. properties:
  2139. code:
  2140. default: 0
  2141. description: 返回码
  2142. format: int
  2143. type: integer
  2144. data:
  2145. type: string
  2146. message:
  2147. default: success
  2148. description: 消息
  2149. type: string
  2150. type: object
  2151. v1.UserInfoReply:
  2152. properties:
  2153. email:
  2154. type: string
  2155. phone:
  2156. type: string
  2157. type: object
  2158. v1.UserInfoResponse:
  2159. properties:
  2160. code:
  2161. default: 0
  2162. description: 返回码
  2163. format: int
  2164. type: integer
  2165. data:
  2166. $ref: '#/definitions/v1.UserInfoReply'
  2167. type: object
  2168. message:
  2169. default: success
  2170. description: 消息
  2171. type: string
  2172. type: object
  2173. v1.UserPermissionData:
  2174. properties:
  2175. is_admin:
  2176. type: boolean
  2177. user_name:
  2178. type: string
  2179. type: object
  2180. v1.UserPermissionResponse:
  2181. properties:
  2182. code:
  2183. default: 0
  2184. description: 返回码
  2185. format: int
  2186. type: integer
  2187. data:
  2188. $ref: '#/definitions/v1.UserPermissionData'
  2189. type: object
  2190. message:
  2191. default: success
  2192. description: 消息
  2193. type: string
  2194. type: object
  2195. v1.VcodeResponse:
  2196. properties:
  2197. code:
  2198. default: 0
  2199. description: 返回码
  2200. format: int
  2201. type: integer
  2202. data:
  2203. $ref: '#/definitions/v1.GetVcodeReply'
  2204. type: object
  2205. message:
  2206. default: success
  2207. description: 消息
  2208. type: string
  2209. type: object
  2210. v1.VedioItem:
  2211. properties:
  2212. apply_time:
  2213. description: 申请时间
  2214. type: string
  2215. approve_time:
  2216. description: 审批时间
  2217. type: string
  2218. channel_count:
  2219. type: integer
  2220. id:
  2221. type: integer
  2222. ip:
  2223. type: string
  2224. key:
  2225. type: string
  2226. media_transport:
  2227. type: string
  2228. name:
  2229. type: string
  2230. port:
  2231. type: integer
  2232. project_name:
  2233. type: string
  2234. provider_name:
  2235. type: string
  2236. safety_record_no:
  2237. description: 安检备案号
  2238. type: string
  2239. sn:
  2240. type: string
  2241. social_code:
  2242. type: string
  2243. state:
  2244. description: 0 离线 1 在线
  2245. type: integer
  2246. status:
  2247. description: 0 待审核 1 项目通过 2 项目不通过
  2248. type: integer
  2249. type_code:
  2250. description: 设备类型编码
  2251. type: integer
  2252. type_name:
  2253. type: string
  2254. type: object
  2255. v1.VedioListReply:
  2256. properties:
  2257. list:
  2258. items:
  2259. $ref: '#/definitions/v1.VedioItem'
  2260. type: array
  2261. page:
  2262. type: integer
  2263. page_size:
  2264. type: integer
  2265. total:
  2266. type: integer
  2267. type: object
  2268. v1.VedioListResponse:
  2269. properties:
  2270. code:
  2271. default: 0
  2272. description: 返回码
  2273. format: int
  2274. type: integer
  2275. data:
  2276. $ref: '#/definitions/v1.VedioListReply'
  2277. type: object
  2278. message:
  2279. default: success
  2280. description: 消息
  2281. type: string
  2282. type: object
  2283. v1.VedioPingReply:
  2284. properties:
  2285. result:
  2286. type: string
  2287. type: object
  2288. v1.VedioPingResponse:
  2289. properties:
  2290. code:
  2291. default: 0
  2292. description: 返回码
  2293. format: int
  2294. type: integer
  2295. data:
  2296. $ref: '#/definitions/v1.VedioPingReply'
  2297. type: object
  2298. message:
  2299. default: success
  2300. description: 消息
  2301. type: string
  2302. type: object
  2303. v1.Vehicle:
  2304. properties:
  2305. clean_image:
  2306. description: 车辆清洗图片
  2307. type: string
  2308. date:
  2309. type: string
  2310. id:
  2311. type: integer
  2312. image:
  2313. description: 车辆进出图片
  2314. type: string
  2315. plate_no:
  2316. description: 车牌
  2317. type: string
  2318. sn:
  2319. type: string
  2320. type:
  2321. description: 进出类型,1 进 2 出
  2322. type: string
  2323. vehicle_type:
  2324. description: 车辆类型
  2325. type: string
  2326. type: object
  2327. v1.VehicleListReply:
  2328. properties:
  2329. list:
  2330. items:
  2331. $ref: '#/definitions/v1.Vehicle'
  2332. type: array
  2333. page:
  2334. type: integer
  2335. page_size:
  2336. type: integer
  2337. total:
  2338. type: integer
  2339. type: object
  2340. v1.VehicleListResponse:
  2341. properties:
  2342. code:
  2343. default: 0
  2344. description: 返回码
  2345. format: int
  2346. type: integer
  2347. data:
  2348. $ref: '#/definitions/v1.VehicleListReply'
  2349. type: object
  2350. message:
  2351. default: success
  2352. description: 消息
  2353. type: string
  2354. type: object
  2355. v1.WorkTypeStatistics:
  2356. properties:
  2357. attendance:
  2358. description: 出勤人数
  2359. type: integer
  2360. id:
  2361. type: integer
  2362. total:
  2363. description: 总人数
  2364. type: integer
  2365. work_type:
  2366. description: 工种
  2367. type: string
  2368. type: object
  2369. info:
  2370. contact: {}
  2371. description: This is a gateway server. On the page, you can go to do testing for every API.
  2372. license: {}
  2373. title: Project smart-site-management-gateway's APIs
  2374. version: "1.1"
  2375. paths:
  2376. /api/v1/alarm/contact:
  2377. post:
  2378. consumes:
  2379. - application/json
  2380. description: 添加告警联系人
  2381. parameters:
  2382. - description: ' '
  2383. in: header
  2384. name: token
  2385. required: true
  2386. type: string
  2387. - description: ' '
  2388. in: body
  2389. name: body
  2390. required: true
  2391. schema:
  2392. $ref: '#/definitions/v1.AlarmContactAddBody'
  2393. produces:
  2394. - application/json
  2395. responses:
  2396. "200":
  2397. description: OK
  2398. schema:
  2399. $ref: '#/definitions/v1.AlarmContactAddResponse'
  2400. "500":
  2401. description: Internal Server Error
  2402. schema:
  2403. $ref: '#/definitions/base.HTTPError'
  2404. summary: 添加告警联系人
  2405. tags:
  2406. - 告警后台设置
  2407. put:
  2408. consumes:
  2409. - application/json
  2410. description: 更新告警联系人列表
  2411. parameters:
  2412. - description: ' '
  2413. in: header
  2414. name: token
  2415. required: true
  2416. type: string
  2417. - description: ' '
  2418. in: body
  2419. name: body
  2420. required: true
  2421. schema:
  2422. $ref: '#/definitions/v1.AlarmContactUpdateBody'
  2423. produces:
  2424. - application/json
  2425. responses:
  2426. "200":
  2427. description: OK
  2428. schema:
  2429. $ref: '#/definitions/v1.AlarmContactUpdateResponse'
  2430. "500":
  2431. description: Internal Server Error
  2432. schema:
  2433. $ref: '#/definitions/base.HTTPError'
  2434. summary: 更新告警联系人
  2435. tags:
  2436. - 告警后台设置
  2437. /api/v1/alarm/contact_delete/{id}:
  2438. delete:
  2439. consumes:
  2440. - application/json
  2441. description: 删除告警联系人列表
  2442. parameters:
  2443. - description: ' '
  2444. in: header
  2445. name: token
  2446. required: true
  2447. type: string
  2448. - description: ' '
  2449. in: path
  2450. name: id
  2451. required: true
  2452. type: string
  2453. produces:
  2454. - application/json
  2455. responses:
  2456. "200":
  2457. description: OK
  2458. schema:
  2459. $ref: '#/definitions/v1.AlarmContactDeleteResponse'
  2460. "500":
  2461. description: Internal Server Error
  2462. schema:
  2463. $ref: '#/definitions/base.HTTPError'
  2464. summary: 删除告警联系人
  2465. tags:
  2466. - 告警后台设置
  2467. /api/v1/alarm/contact_list:
  2468. get:
  2469. consumes:
  2470. - application/json
  2471. description: 告警联系人列表
  2472. parameters:
  2473. - description: ' '
  2474. in: header
  2475. name: token
  2476. required: true
  2477. type: string
  2478. produces:
  2479. - application/json
  2480. responses:
  2481. "200":
  2482. description: OK
  2483. schema:
  2484. $ref: '#/definitions/v1.AlarmContactListResponse'
  2485. "500":
  2486. description: Internal Server Error
  2487. schema:
  2488. $ref: '#/definitions/base.HTTPError'
  2489. summary: 告警联系人列表
  2490. tags:
  2491. - 告警后台设置
  2492. /api/v1/alarm/list:
  2493. get:
  2494. consumes:
  2495. - application/json
  2496. description: 告警列表
  2497. parameters:
  2498. - description: ' '
  2499. in: header
  2500. name: token
  2501. required: true
  2502. type: string
  2503. - description: ' '
  2504. in: query
  2505. name: page
  2506. type: integer
  2507. - description: ' '
  2508. in: query
  2509. name: start
  2510. type: integer
  2511. - description: ' '
  2512. in: query
  2513. name: end
  2514. type: integer
  2515. - description: ' '
  2516. in: query
  2517. name: sn
  2518. type: string
  2519. - description: ' '
  2520. in: query
  2521. name: timestamp
  2522. type: integer
  2523. - description: 0 不过滤 1 已处理 2 未处理
  2524. in: query
  2525. name: filter
  2526. type: integer
  2527. - description: ' '
  2528. in: query
  2529. name: page_size
  2530. type: integer
  2531. - description: 设备类型
  2532. in: query
  2533. name: device_code
  2534. type: integer
  2535. produces:
  2536. - application/json
  2537. responses:
  2538. "200":
  2539. description: OK
  2540. schema:
  2541. $ref: '#/definitions/v1.AlarmListResponse'
  2542. "500":
  2543. description: Internal Server Error
  2544. schema:
  2545. $ref: '#/definitions/base.HTTPError'
  2546. summary: 告警列表
  2547. tags:
  2548. - 告警前台展示
  2549. /api/v1/alarm/rule:
  2550. post:
  2551. consumes:
  2552. - application/json
  2553. description: 告警规则添加
  2554. parameters:
  2555. - description: ' '
  2556. in: header
  2557. name: token
  2558. required: true
  2559. type: string
  2560. - description: ' '
  2561. in: body
  2562. name: body
  2563. required: true
  2564. schema:
  2565. $ref: '#/definitions/v1.AlarmRuleAddBody'
  2566. produces:
  2567. - application/json
  2568. responses:
  2569. "200":
  2570. description: OK
  2571. schema:
  2572. $ref: '#/definitions/v1.AlarmRuleAddResponse'
  2573. "500":
  2574. description: Internal Server Error
  2575. schema:
  2576. $ref: '#/definitions/base.HTTPError'
  2577. summary: 告警规则添加
  2578. tags:
  2579. - 告警后台设置
  2580. put:
  2581. consumes:
  2582. - application/json
  2583. description: 告警规则更新
  2584. parameters:
  2585. - description: ' '
  2586. in: header
  2587. name: token
  2588. required: true
  2589. type: string
  2590. - description: ' '
  2591. in: body
  2592. name: body
  2593. required: true
  2594. schema:
  2595. $ref: '#/definitions/v1.AlarmRuleUpdateBody'
  2596. produces:
  2597. - application/json
  2598. responses:
  2599. "200":
  2600. description: OK
  2601. schema:
  2602. $ref: '#/definitions/v1.AlarmRuleUpdateResponse'
  2603. "500":
  2604. description: Internal Server Error
  2605. schema:
  2606. $ref: '#/definitions/base.HTTPError'
  2607. summary: 告警规则更新
  2608. tags:
  2609. - 告警后台设置
  2610. /api/v1/alarm/rule_delete/{id}:
  2611. delete:
  2612. consumes:
  2613. - application/json
  2614. description: 删除告警规则
  2615. parameters:
  2616. - description: ' '
  2617. in: header
  2618. name: token
  2619. required: true
  2620. type: string
  2621. - description: 规则id
  2622. in: path
  2623. name: id
  2624. required: true
  2625. type: integer
  2626. produces:
  2627. - application/json
  2628. responses:
  2629. "200":
  2630. description: OK
  2631. schema:
  2632. $ref: '#/definitions/v1.AlarmRuleDeleteResponse'
  2633. "500":
  2634. description: Internal Server Error
  2635. schema:
  2636. $ref: '#/definitions/base.HTTPError'
  2637. summary: 删除告警规则
  2638. tags:
  2639. - 告警后台设置
  2640. /api/v1/alarm/rule_list:
  2641. get:
  2642. consumes:
  2643. - application/json
  2644. description: 告警规则列表
  2645. parameters:
  2646. - description: ' '
  2647. in: header
  2648. name: token
  2649. required: true
  2650. type: string
  2651. - description: 设备唯一编号,不传获取所有的告警规则列表
  2652. in: query
  2653. name: sn
  2654. type: string
  2655. - description: ' '
  2656. in: query
  2657. name: page
  2658. type: integer
  2659. produces:
  2660. - application/json
  2661. responses:
  2662. "200":
  2663. description: OK
  2664. schema:
  2665. $ref: '#/definitions/v1.AlarmRuleListResponse'
  2666. "500":
  2667. description: Internal Server Error
  2668. schema:
  2669. $ref: '#/definitions/base.HTTPError'
  2670. summary: 告警规则列表
  2671. tags:
  2672. - 告警后台设置
  2673. /api/v1/alarm/rule_on_off:
  2674. put:
  2675. consumes:
  2676. - application/json
  2677. description: 告警规则起停用
  2678. parameters:
  2679. - description: ' '
  2680. in: header
  2681. name: token
  2682. required: true
  2683. type: string
  2684. - description: ' '
  2685. in: body
  2686. name: body
  2687. required: true
  2688. schema:
  2689. $ref: '#/definitions/v1.AlarmRuleOnOffBody'
  2690. produces:
  2691. - application/json
  2692. responses:
  2693. "200":
  2694. description: OK
  2695. schema:
  2696. $ref: '#/definitions/v1.AlarmRuleOnOffResponse'
  2697. "500":
  2698. description: Internal Server Error
  2699. schema:
  2700. $ref: '#/definitions/base.HTTPError'
  2701. summary: 告警规则起停用
  2702. tags:
  2703. - 告警后台设置
  2704. /api/v1/area_code_list:
  2705. get:
  2706. consumes:
  2707. - application/json
  2708. description: 行政区域编码列表
  2709. produces:
  2710. - application/json
  2711. responses:
  2712. "200":
  2713. description: OK
  2714. schema:
  2715. $ref: '#/definitions/v1.AreaCodeListResponse'
  2716. "500":
  2717. description: Internal Server Error
  2718. schema:
  2719. $ref: '#/definitions/base.HTTPError'
  2720. summary: 行政区域编码列表
  2721. tags:
  2722. - 行政区域
  2723. /api/v1/camera/bind_device:
  2724. put:
  2725. consumes:
  2726. - application/json
  2727. description: 设备绑定摄像头
  2728. parameters:
  2729. - description: ' '
  2730. in: header
  2731. name: token
  2732. required: true
  2733. type: string
  2734. - description: ' '
  2735. in: body
  2736. name: body
  2737. schema:
  2738. $ref: '#/definitions/v1.DeviceBindCameraBody'
  2739. produces:
  2740. - application/json
  2741. responses:
  2742. "200":
  2743. description: OK
  2744. schema:
  2745. $ref: '#/definitions/v1.DeviceBindCameraResponse'
  2746. "500":
  2747. description: Internal Server Error
  2748. schema:
  2749. $ref: '#/definitions/base.HTTPError'
  2750. summary: 设备绑定摄像头
  2751. tags:
  2752. - 摄像头后台设置
  2753. /api/v1/camera/ping:
  2754. get:
  2755. consumes:
  2756. - application/json
  2757. description: 摄像头ping
  2758. parameters:
  2759. - description: ' '
  2760. in: query
  2761. name: session_id
  2762. required: true
  2763. type: string
  2764. produces:
  2765. - application/json
  2766. responses:
  2767. "200":
  2768. description: OK
  2769. schema:
  2770. $ref: '#/definitions/v1.VedioPingResponse'
  2771. "500":
  2772. description: Internal Server Error
  2773. schema:
  2774. $ref: '#/definitions/base.HTTPError'
  2775. summary: 摄像头ping
  2776. tags:
  2777. - camera
  2778. /api/v1/camera/ptz:
  2779. get:
  2780. consumes:
  2781. - application/json
  2782. description: ptz控制
  2783. parameters:
  2784. - description: ' '
  2785. in: header
  2786. name: token
  2787. required: true
  2788. type: string
  2789. - description: ' '
  2790. in: query
  2791. name: channel_no
  2792. required: true
  2793. type: string
  2794. - description: ' 上:up,下:down,左:left,右:right,左上:leftup,左下:leftdown,右上:rightup,右下:rightdown,镜头近:zoomin,镜头远:zoomout, 焦距远:focusfar,焦距近:focusnear, 设置预置位:setpos,调预置位:callpos,调预置位:delpos,停止:stop'
  2795. in: query
  2796. name: ptz_type
  2797. required: true
  2798. type: string
  2799. - description: '速度范围为1-255 '
  2800. in: query
  2801. name: ptz_param
  2802. required: true
  2803. type: integer
  2804. produces:
  2805. - application/json
  2806. responses:
  2807. "200":
  2808. description: OK
  2809. schema:
  2810. $ref: '#/definitions/v1.PtzResponse'
  2811. "500":
  2812. description: Internal Server Error
  2813. schema:
  2814. $ref: '#/definitions/base.HTTPError'
  2815. summary: ptz控制
  2816. tags:
  2817. - ""
  2818. /api/v1/camera/real_play:
  2819. get:
  2820. consumes:
  2821. - application/json
  2822. description: 获取实时播放地址
  2823. parameters:
  2824. - description: ' '
  2825. in: header
  2826. name: token
  2827. required: true
  2828. type: string
  2829. - description: ' '
  2830. in: query
  2831. name: channel_no
  2832. required: true
  2833. type: string
  2834. produces:
  2835. - application/json
  2836. responses:
  2837. "200":
  2838. description: OK
  2839. schema:
  2840. $ref: '#/definitions/v1.RealPlayResponse'
  2841. "500":
  2842. description: Internal Server Error
  2843. schema:
  2844. $ref: '#/definitions/base.HTTPError'
  2845. summary: 获取实时播放地址
  2846. tags:
  2847. - ""
  2848. /api/v1/camera/unbind_device:
  2849. put:
  2850. consumes:
  2851. - application/json
  2852. description: 设备解绑摄像头
  2853. parameters:
  2854. - description: ' '
  2855. in: header
  2856. name: token
  2857. required: true
  2858. type: string
  2859. - description: ' '
  2860. in: body
  2861. name: body
  2862. schema:
  2863. $ref: '#/definitions/v1.DeviceUnbindCameraBody'
  2864. produces:
  2865. - application/json
  2866. responses:
  2867. "200":
  2868. description: OK
  2869. schema:
  2870. $ref: '#/definitions/v1.DeviceUnbindCameraResponse'
  2871. "500":
  2872. description: Internal Server Error
  2873. schema:
  2874. $ref: '#/definitions/base.HTTPError'
  2875. summary: 设备解绑摄像头
  2876. tags:
  2877. - 摄像头后台设置
  2878. /api/v1/device/attendance_list:
  2879. get:
  2880. consumes:
  2881. - application/json
  2882. description: 实名制设备列表
  2883. parameters:
  2884. - description: ' '
  2885. in: header
  2886. name: token
  2887. required: true
  2888. type: string
  2889. - description: ' '
  2890. in: query
  2891. name: page
  2892. type: integer
  2893. - description: ' '
  2894. in: query
  2895. name: page_size
  2896. type: integer
  2897. - description: ' '
  2898. in: query
  2899. name: filter
  2900. type: string
  2901. - description: '-1 0 1 '
  2902. in: query
  2903. name: state
  2904. required: true
  2905. type: integer
  2906. - description: ' 审核状态 -1 不过滤, 0 待审核 1 通过 2 未通过 '
  2907. in: query
  2908. name: status
  2909. type: integer
  2910. produces:
  2911. - application/json
  2912. responses:
  2913. "200":
  2914. description: OK
  2915. schema:
  2916. $ref: '#/definitions/v1.DeviceListResponse'
  2917. "500":
  2918. description: Internal Server Error
  2919. schema:
  2920. $ref: '#/definitions/base.HTTPError'
  2921. summary: 实名制设备列表
  2922. tags:
  2923. - 设备后台设置
  2924. /api/v1/device/dust_list:
  2925. get:
  2926. consumes:
  2927. - application/json
  2928. description: 设备列表
  2929. parameters:
  2930. - description: ' '
  2931. in: header
  2932. name: token
  2933. required: true
  2934. type: string
  2935. - description: ' '
  2936. in: query
  2937. name: page
  2938. type: integer
  2939. - description: ' '
  2940. in: query
  2941. name: page_size
  2942. type: integer
  2943. - description: ' '
  2944. in: query
  2945. name: filter
  2946. type: string
  2947. - description: '-1 0 1 '
  2948. in: query
  2949. name: state
  2950. required: true
  2951. type: integer
  2952. - description: ' 审核状态 -1 不过滤, 0 待审核 1 通过 2 未通过 '
  2953. in: query
  2954. name: status
  2955. type: integer
  2956. produces:
  2957. - application/json
  2958. responses:
  2959. "200":
  2960. description: OK
  2961. schema:
  2962. $ref: '#/definitions/v1.DeviceListResponse'
  2963. "500":
  2964. description: Internal Server Error
  2965. schema:
  2966. $ref: '#/definitions/base.HTTPError'
  2967. summary: 扬尘设备列表
  2968. tags:
  2969. - 设备后台设置
  2970. /api/v1/device/list:
  2971. get:
  2972. consumes:
  2973. - application/json
  2974. description: 所有设备列表
  2975. parameters:
  2976. - description: ' '
  2977. in: header
  2978. name: token
  2979. required: true
  2980. type: string
  2981. - description: ' '
  2982. in: query
  2983. name: page
  2984. type: integer
  2985. - description: ' '
  2986. in: query
  2987. name: page_size
  2988. type: integer
  2989. - description: ' '
  2990. in: query
  2991. name: filter
  2992. type: string
  2993. - description: '-1 0 1 '
  2994. in: query
  2995. name: state
  2996. required: true
  2997. type: integer
  2998. - description: ' 审核状态 -1 不过滤, 0 待审核 1 通过 2 未通过 '
  2999. in: query
  3000. name: status
  3001. type: integer
  3002. produces:
  3003. - application/json
  3004. responses:
  3005. "200":
  3006. description: OK
  3007. schema:
  3008. $ref: '#/definitions/v1.DeviceListResponse'
  3009. "500":
  3010. description: Internal Server Error
  3011. schema:
  3012. $ref: '#/definitions/base.HTTPError'
  3013. summary: 所有设备列表
  3014. tags:
  3015. - 设备后台设置
  3016. /api/v1/device/vedio_channel:
  3017. get:
  3018. consumes:
  3019. - application/json
  3020. description: 设备绑定的摄像头
  3021. parameters:
  3022. - description: ' '
  3023. in: header
  3024. name: token
  3025. required: true
  3026. type: string
  3027. - description: ' '
  3028. in: query
  3029. name: sn
  3030. type: string
  3031. produces:
  3032. - application/json
  3033. responses:
  3034. "200":
  3035. description: OK
  3036. schema:
  3037. $ref: '#/definitions/v1.DeviceVideoChannelResponse'
  3038. "500":
  3039. description: Internal Server Error
  3040. schema:
  3041. $ref: '#/definitions/base.HTTPError'
  3042. summary: 设备绑定的摄像头
  3043. tags:
  3044. - device
  3045. put:
  3046. consumes:
  3047. - application/json
  3048. description: 编辑通道
  3049. parameters:
  3050. - description: ' '
  3051. in: header
  3052. name: token
  3053. required: true
  3054. type: string
  3055. - description: ' '
  3056. in: body
  3057. name: body
  3058. required: true
  3059. schema:
  3060. $ref: '#/definitions/v1.ChannelUpdateBody'
  3061. produces:
  3062. - application/json
  3063. responses:
  3064. "200":
  3065. description: OK
  3066. schema:
  3067. $ref: '#/definitions/v1.ChannelUpdateResponse'
  3068. "500":
  3069. description: Internal Server Error
  3070. schema:
  3071. $ref: '#/definitions/base.HTTPError'
  3072. summary: 编辑通道
  3073. tags:
  3074. - 摄像头后台设置
  3075. /api/v1/device/vedio_channel_list:
  3076. get:
  3077. consumes:
  3078. - application/json
  3079. description: 通道列表
  3080. parameters:
  3081. - description: ' '
  3082. in: header
  3083. name: token
  3084. required: true
  3085. type: string
  3086. - description: ' '
  3087. in: query
  3088. name: sn
  3089. type: string
  3090. - description: ' '
  3091. in: query
  3092. name: page
  3093. type: integer
  3094. - description: ' '
  3095. in: query
  3096. name: page_size
  3097. type: integer
  3098. - description: ' '
  3099. in: query
  3100. name: channel_no
  3101. type: string
  3102. produces:
  3103. - application/json
  3104. responses:
  3105. "200":
  3106. description: OK
  3107. schema:
  3108. $ref: '#/definitions/v1.ChannelListResponse'
  3109. "500":
  3110. description: Internal Server Error
  3111. schema:
  3112. $ref: '#/definitions/base.HTTPError'
  3113. summary: 通道列表
  3114. tags:
  3115. - device
  3116. /api/v1/device/vedio_channel_unbind:
  3117. get:
  3118. consumes:
  3119. - application/json
  3120. description: 未绑定设备的通道列表
  3121. parameters:
  3122. - description: ' '
  3123. in: header
  3124. name: token
  3125. required: true
  3126. type: string
  3127. produces:
  3128. - application/json
  3129. responses:
  3130. "200":
  3131. description: OK
  3132. schema:
  3133. $ref: '#/definitions/v1.ChannelListResponse'
  3134. "500":
  3135. description: Internal Server Error
  3136. schema:
  3137. $ref: '#/definitions/base.HTTPError'
  3138. summary: 未绑定设备的通道列表
  3139. tags:
  3140. - device
  3141. /api/v1/device/vedio_list:
  3142. get:
  3143. consumes:
  3144. - application/json
  3145. description: 视频设备列表
  3146. parameters:
  3147. - description: ' '
  3148. in: header
  3149. name: token
  3150. required: true
  3151. type: string
  3152. - description: 过滤字段
  3153. in: query
  3154. name: filter
  3155. type: string
  3156. - description: '-1 0 1 '
  3157. in: query
  3158. name: state
  3159. required: true
  3160. type: integer
  3161. - description: ' '
  3162. in: query
  3163. name: page
  3164. type: integer
  3165. produces:
  3166. - application/json
  3167. responses:
  3168. "200":
  3169. description: OK
  3170. schema:
  3171. $ref: '#/definitions/v1.VedioListResponse'
  3172. "500":
  3173. description: Internal Server Error
  3174. schema:
  3175. $ref: '#/definitions/base.HTTPError'
  3176. summary: 视频设备列表
  3177. tags:
  3178. - device
  3179. /api/v1/dust/aqi:
  3180. get:
  3181. consumes:
  3182. - application/json
  3183. description: 扬尘aqi
  3184. parameters:
  3185. - description: ' '
  3186. in: header
  3187. name: token
  3188. required: true
  3189. type: string
  3190. - description: ' '
  3191. in: query
  3192. name: sn
  3193. required: true
  3194. type: string
  3195. produces:
  3196. - application/json
  3197. responses:
  3198. "200":
  3199. description: OK
  3200. schema:
  3201. $ref: '#/definitions/v1.DustAqiResponse'
  3202. "500":
  3203. description: Internal Server Error
  3204. schema:
  3205. $ref: '#/definitions/base.HTTPError'
  3206. summary: 扬尘aqi
  3207. tags:
  3208. - 扬尘监控前台展示
  3209. /api/v1/dust/history:
  3210. get:
  3211. consumes:
  3212. - application/json
  3213. description: 扬尘历史
  3214. parameters:
  3215. - description: ' '
  3216. in: header
  3217. name: token
  3218. required: true
  3219. type: string
  3220. - description: ' '
  3221. in: query
  3222. name: type
  3223. required: true
  3224. type: integer
  3225. - description: ' '
  3226. in: query
  3227. name: time
  3228. required: true
  3229. type: integer
  3230. - description: ' '
  3231. in: query
  3232. name: sn
  3233. required: true
  3234. type: string
  3235. produces:
  3236. - application/json
  3237. responses:
  3238. "200":
  3239. description: OK
  3240. schema:
  3241. $ref: '#/definitions/v1.DustMonitorHistoryResponse'
  3242. "500":
  3243. description: Internal Server Error
  3244. schema:
  3245. $ref: '#/definitions/base.HTTPError'
  3246. summary: 扬尘历史
  3247. tags:
  3248. - 扬尘监控前台展示
  3249. /api/v1/dust/last:
  3250. get:
  3251. consumes:
  3252. - application/json
  3253. description: 扬尘最近数据
  3254. parameters:
  3255. - description: ' '
  3256. in: header
  3257. name: token
  3258. required: true
  3259. type: string
  3260. - description: ' '
  3261. in: query
  3262. name: type
  3263. type: integer
  3264. - description: ' '
  3265. in: query
  3266. name: sn
  3267. type: string
  3268. produces:
  3269. - application/json
  3270. responses:
  3271. "200":
  3272. description: OK
  3273. schema:
  3274. $ref: '#/definitions/v1.LatestDustMonitorDataResponse'
  3275. "500":
  3276. description: Internal Server Error
  3277. schema:
  3278. $ref: '#/definitions/base.HTTPError'
  3279. summary: 扬尘最近数据
  3280. tags:
  3281. - 扬尘监控前台展示
  3282. /api/v1/dust/list:
  3283. get:
  3284. consumes:
  3285. - application/json
  3286. description: 扬尘历史
  3287. parameters:
  3288. - description: ' '
  3289. in: header
  3290. name: token
  3291. required: true
  3292. type: string
  3293. - description: ' '
  3294. in: query
  3295. name: page
  3296. required: true
  3297. type: integer
  3298. - description: ' '
  3299. in: query
  3300. name: page_size
  3301. required: true
  3302. type: integer
  3303. produces:
  3304. - application/json
  3305. responses:
  3306. "200":
  3307. description: OK
  3308. schema:
  3309. $ref: '#/definitions/v1.DustListResponse'
  3310. "500":
  3311. description: Internal Server Error
  3312. schema:
  3313. $ref: '#/definitions/base.HTTPError'
  3314. summary: 扬尘设备列表
  3315. tags:
  3316. - 扬尘监控前台展示
  3317. /api/v1/iot/last:
  3318. get:
  3319. consumes:
  3320. - application/json
  3321. description: iot最近数据
  3322. parameters:
  3323. - description: ' '
  3324. in: header
  3325. name: token
  3326. required: true
  3327. type: string
  3328. - description: ' '
  3329. in: query
  3330. name: sn
  3331. required: true
  3332. type: string
  3333. - description: ' '
  3334. in: query
  3335. name: device_code
  3336. required: true
  3337. type: integer
  3338. produces:
  3339. - application/json
  3340. responses:
  3341. "200":
  3342. description: OK
  3343. schema:
  3344. $ref: '#/definitions/v1.IotLastResponse'
  3345. "500":
  3346. description: Internal Server Error
  3347. schema:
  3348. $ref: '#/definitions/base.HTTPError'
  3349. summary: iot最近数据
  3350. tags:
  3351. - 塔吊监控前台展示
  3352. /api/v1/iot/list:
  3353. get:
  3354. consumes:
  3355. - application/json
  3356. description: iot设备列表
  3357. parameters:
  3358. - description: ' '
  3359. in: header
  3360. name: token
  3361. required: true
  3362. type: string
  3363. - description: ' '
  3364. in: query
  3365. name: page
  3366. type: integer
  3367. - description: ' '
  3368. in: query
  3369. name: page_size
  3370. type: integer
  3371. - description: ' '
  3372. in: query
  3373. name: device_code
  3374. required: true
  3375. type: integer
  3376. produces:
  3377. - application/json
  3378. responses:
  3379. "200":
  3380. description: OK
  3381. schema:
  3382. $ref: '#/definitions/v1.IotListResponse'
  3383. "500":
  3384. description: Internal Server Error
  3385. schema:
  3386. $ref: '#/definitions/base.HTTPError'
  3387. summary: iot设备列表
  3388. tags:
  3389. - 塔吊监控前台展示
  3390. /api/v1/iot/tower_history:
  3391. get:
  3392. consumes:
  3393. - application/json
  3394. description: 塔机历史
  3395. parameters:
  3396. - description: ' '
  3397. in: header
  3398. name: token
  3399. required: true
  3400. type: string
  3401. - description: ' '
  3402. in: query
  3403. name: page
  3404. type: integer
  3405. - description: ' '
  3406. in: query
  3407. name: page_size
  3408. type: integer
  3409. - description: ' '
  3410. in: query
  3411. name: start
  3412. type: integer
  3413. - description: ' '
  3414. in: query
  3415. name: end
  3416. type: integer
  3417. - description: ' '
  3418. in: query
  3419. name: sn
  3420. required: true
  3421. type: string
  3422. produces:
  3423. - application/json
  3424. responses:
  3425. "200":
  3426. description: OK
  3427. schema:
  3428. $ref: '#/definitions/v1.TowerMonitorHistoryResponse'
  3429. "500":
  3430. description: Internal Server Error
  3431. schema:
  3432. $ref: '#/definitions/base.HTTPError'
  3433. summary: 塔机历史
  3434. tags:
  3435. - 塔吊监控前台展示
  3436. /api/v1/iot/tower_last:
  3437. get:
  3438. consumes:
  3439. - application/json
  3440. description: 塔吊最近数据
  3441. parameters:
  3442. - description: ' '
  3443. in: header
  3444. name: token
  3445. required: true
  3446. type: string
  3447. - description: ' '
  3448. in: query
  3449. name: sn
  3450. type: string
  3451. produces:
  3452. - application/json
  3453. responses:
  3454. "200":
  3455. description: OK
  3456. schema:
  3457. $ref: '#/definitions/v1.LatestTowerMonitorDataResponse'
  3458. "500":
  3459. description: Internal Server Error
  3460. schema:
  3461. $ref: '#/definitions/base.HTTPError'
  3462. summary: 塔吊最近数据
  3463. tags:
  3464. - 塔吊监控前台展示
  3465. /api/v1/iot/type_list:
  3466. get:
  3467. consumes:
  3468. - application/json
  3469. description: iot设备类型列表
  3470. parameters:
  3471. - description: ' '
  3472. in: header
  3473. name: token
  3474. required: true
  3475. type: string
  3476. produces:
  3477. - application/json
  3478. responses:
  3479. "200":
  3480. description: OK
  3481. schema:
  3482. $ref: '#/definitions/v1.IotTypeListResponse'
  3483. "500":
  3484. description: Internal Server Error
  3485. schema:
  3486. $ref: '#/definitions/base.HTTPError'
  3487. summary: iot设备类型列表
  3488. tags:
  3489. - 塔吊监控前台展示
  3490. /api/v1/log/list:
  3491. get:
  3492. consumes:
  3493. - application/json
  3494. description: 操作日志列表
  3495. parameters:
  3496. - description: ' '
  3497. in: header
  3498. name: token
  3499. required: true
  3500. type: string
  3501. - description: ' '
  3502. in: query
  3503. name: page
  3504. required: true
  3505. type: string
  3506. - description: ' '
  3507. in: query
  3508. name: start
  3509. type: integer
  3510. - description: ' '
  3511. in: query
  3512. name: end
  3513. type: integer
  3514. produces:
  3515. - application/json
  3516. responses:
  3517. "200":
  3518. description: OK
  3519. schema:
  3520. $ref: '#/definitions/v1.LogListResponse'
  3521. "500":
  3522. description: Internal Server Error
  3523. schema:
  3524. $ref: '#/definitions/base.HTTPError'
  3525. summary: 操作日志列表
  3526. tags:
  3527. - log
  3528. /api/v1/project/corp:
  3529. post:
  3530. consumes:
  3531. - application/json
  3532. description: 添加参建单位
  3533. parameters:
  3534. - description: ' '
  3535. in: header
  3536. name: token
  3537. required: true
  3538. type: string
  3539. - description: ' '
  3540. in: body
  3541. name: body
  3542. required: true
  3543. schema:
  3544. $ref: '#/definitions/v1.ProjectCorpAddBody'
  3545. produces:
  3546. - application/json
  3547. responses:
  3548. "200":
  3549. description: OK
  3550. schema:
  3551. $ref: '#/definitions/v1.ProjectCorpAddResponse'
  3552. "500":
  3553. description: Internal Server Error
  3554. schema:
  3555. $ref: '#/definitions/base.HTTPError'
  3556. summary: 添加参建单位
  3557. tags:
  3558. - project
  3559. put:
  3560. consumes:
  3561. - application/json
  3562. description: 更新参建单位
  3563. parameters:
  3564. - description: ' '
  3565. in: header
  3566. name: token
  3567. required: true
  3568. type: string
  3569. - description: ' '
  3570. in: body
  3571. name: body
  3572. required: true
  3573. schema:
  3574. $ref: '#/definitions/v1.ProjectCorpUpdateBody'
  3575. produces:
  3576. - application/json
  3577. responses:
  3578. "200":
  3579. description: OK
  3580. schema:
  3581. $ref: '#/definitions/v1.ProjectCorpUpdateResponse'
  3582. "500":
  3583. description: Internal Server Error
  3584. schema:
  3585. $ref: '#/definitions/base.HTTPError'
  3586. summary: 更新参建单位
  3587. tags:
  3588. - project
  3589. /api/v1/project/corp/{id}:
  3590. delete:
  3591. consumes:
  3592. - application/json
  3593. description: 删除参建单位
  3594. parameters:
  3595. - description: ' '
  3596. in: header
  3597. name: token
  3598. required: true
  3599. type: string
  3600. - description: ' '
  3601. in: path
  3602. name: id
  3603. required: true
  3604. type: integer
  3605. produces:
  3606. - application/json
  3607. responses:
  3608. "200":
  3609. description: OK
  3610. schema:
  3611. $ref: '#/definitions/v1.ProjectCorpDelResponse'
  3612. "500":
  3613. description: Internal Server Error
  3614. schema:
  3615. $ref: '#/definitions/base.HTTPError'
  3616. summary: 删除参建单位
  3617. tags:
  3618. - project
  3619. /api/v1/project/corp_list:
  3620. get:
  3621. consumes:
  3622. - application/json
  3623. description: 参建单位列表
  3624. parameters:
  3625. - description: ' '
  3626. in: header
  3627. name: token
  3628. required: true
  3629. type: string
  3630. produces:
  3631. - application/json
  3632. responses:
  3633. "200":
  3634. description: OK
  3635. schema:
  3636. $ref: '#/definitions/v1.ProjectCorpListResponse'
  3637. "500":
  3638. description: Internal Server Error
  3639. schema:
  3640. $ref: '#/definitions/base.HTTPError'
  3641. summary: 参建单位列表
  3642. tags:
  3643. - project
  3644. /api/v1/project/device_approve:
  3645. put:
  3646. consumes:
  3647. - application/json
  3648. description: 设备入库审批
  3649. parameters:
  3650. - description: ' '
  3651. in: header
  3652. name: token
  3653. required: true
  3654. type: string
  3655. - description: ' '
  3656. in: body
  3657. name: body
  3658. required: true
  3659. schema:
  3660. $ref: '#/definitions/v1.DeviceApproveBody'
  3661. produces:
  3662. - application/json
  3663. responses:
  3664. "200":
  3665. description: OK
  3666. schema:
  3667. $ref: '#/definitions/v1.DeviceApproveResponse'
  3668. "500":
  3669. description: Internal Server Error
  3670. schema:
  3671. $ref: '#/definitions/base.HTTPError'
  3672. summary: 设备入库审批
  3673. tags:
  3674. - 设备后台设置
  3675. /api/v1/project/device_statistics:
  3676. get:
  3677. consumes:
  3678. - application/json
  3679. description: 项目设备统计
  3680. parameters:
  3681. - description: ' '
  3682. in: header
  3683. name: token
  3684. required: true
  3685. type: string
  3686. produces:
  3687. - application/json
  3688. responses:
  3689. "200":
  3690. description: OK
  3691. schema:
  3692. $ref: '#/definitions/v1.ProjectDeviceStatisticsResponse'
  3693. "500":
  3694. description: Internal Server Error
  3695. schema:
  3696. $ref: '#/definitions/base.HTTPError'
  3697. summary: 项目设备统计
  3698. tags:
  3699. - project
  3700. /api/v1/project/info:
  3701. get:
  3702. consumes:
  3703. - application/json
  3704. description: 项目信息
  3705. parameters:
  3706. - description: ' '
  3707. in: header
  3708. name: token
  3709. required: true
  3710. type: string
  3711. produces:
  3712. - application/json
  3713. responses:
  3714. "200":
  3715. description: OK
  3716. schema:
  3717. $ref: '#/definitions/v1.ProjectInfoResponse'
  3718. "500":
  3719. description: Internal Server Error
  3720. schema:
  3721. $ref: '#/definitions/base.HTTPError'
  3722. summary: 项目信息
  3723. tags:
  3724. - project
  3725. /api/v1/project/pic:
  3726. put:
  3727. consumes:
  3728. - application/json
  3729. description: 设置项目平面图或效果图
  3730. parameters:
  3731. - description: ' '
  3732. in: header
  3733. name: token
  3734. required: true
  3735. type: string
  3736. - description: ' '
  3737. in: body
  3738. name: body
  3739. required: true
  3740. schema:
  3741. $ref: '#/definitions/v1.ProjectSetPicBody'
  3742. produces:
  3743. - application/json
  3744. responses:
  3745. "200":
  3746. description: OK
  3747. schema:
  3748. $ref: '#/definitions/v1.ProjectSetPicResponse'
  3749. "500":
  3750. description: Internal Server Error
  3751. schema:
  3752. $ref: '#/definitions/base.HTTPError'
  3753. summary: 设置项目平面图或效果图
  3754. tags:
  3755. - 项目后台设置
  3756. /api/v1/project/pm:
  3757. post:
  3758. consumes:
  3759. - application/json
  3760. description: 添加管理人员
  3761. parameters:
  3762. - description: ' '
  3763. in: header
  3764. name: token
  3765. required: true
  3766. type: string
  3767. - description: ' '
  3768. in: body
  3769. name: body
  3770. required: true
  3771. schema:
  3772. $ref: '#/definitions/v1.ProjectPMAddBody'
  3773. produces:
  3774. - application/json
  3775. responses:
  3776. "200":
  3777. description: OK
  3778. schema:
  3779. $ref: '#/definitions/v1.ProjectPMAddResponse'
  3780. "500":
  3781. description: Internal Server Error
  3782. schema:
  3783. $ref: '#/definitions/base.HTTPError'
  3784. summary: 添加管理人员
  3785. tags:
  3786. - project
  3787. put:
  3788. consumes:
  3789. - application/json
  3790. description: 更新管理人员
  3791. parameters:
  3792. - description: ' '
  3793. in: header
  3794. name: token
  3795. required: true
  3796. type: string
  3797. - description: ' '
  3798. in: body
  3799. name: body
  3800. required: true
  3801. schema:
  3802. $ref: '#/definitions/v1.ProjectPMUpdateBody'
  3803. produces:
  3804. - application/json
  3805. responses:
  3806. "200":
  3807. description: OK
  3808. schema:
  3809. $ref: '#/definitions/v1.ProjectPMUpdateResponse'
  3810. "500":
  3811. description: Internal Server Error
  3812. schema:
  3813. $ref: '#/definitions/base.HTTPError'
  3814. summary: 更新管理人员
  3815. tags:
  3816. - project
  3817. /api/v1/project/pm/{id}:
  3818. delete:
  3819. consumes:
  3820. - application/json
  3821. description: 删除管理人员
  3822. parameters:
  3823. - description: ' '
  3824. in: header
  3825. name: token
  3826. required: true
  3827. type: string
  3828. - description: ' '
  3829. in: path
  3830. name: id
  3831. required: true
  3832. type: integer
  3833. produces:
  3834. - application/json
  3835. responses:
  3836. "200":
  3837. description: OK
  3838. schema:
  3839. $ref: '#/definitions/v1.ProjectPMDelResponse'
  3840. "500":
  3841. description: Internal Server Error
  3842. schema:
  3843. $ref: '#/definitions/base.HTTPError'
  3844. summary: 删除管理人员
  3845. tags:
  3846. - project
  3847. /api/v1/project/pm_list:
  3848. get:
  3849. consumes:
  3850. - application/json
  3851. description: 管理人员列表
  3852. parameters:
  3853. - description: ' '
  3854. in: header
  3855. name: token
  3856. required: true
  3857. type: string
  3858. - description: ' '
  3859. in: query
  3860. name: page
  3861. type: integer
  3862. - description: ' '
  3863. in: query
  3864. name: page_size
  3865. type: integer
  3866. produces:
  3867. - application/json
  3868. responses:
  3869. "200":
  3870. description: OK
  3871. schema:
  3872. $ref: '#/definitions/v1.ProjectPMListResponse'
  3873. "500":
  3874. description: Internal Server Error
  3875. schema:
  3876. $ref: '#/definitions/base.HTTPError'
  3877. summary: 管理人员列表
  3878. tags:
  3879. - project
  3880. /api/v1/project/progress:
  3881. post:
  3882. consumes:
  3883. - application/json
  3884. description: 添加项目进度
  3885. parameters:
  3886. - description: ' '
  3887. in: header
  3888. name: token
  3889. required: true
  3890. type: string
  3891. - description: ' '
  3892. in: body
  3893. name: body
  3894. required: true
  3895. schema:
  3896. $ref: '#/definitions/v1.ProjectProgressAddBody'
  3897. produces:
  3898. - application/json
  3899. responses:
  3900. "200":
  3901. description: OK
  3902. schema:
  3903. $ref: '#/definitions/v1.ProjectProgressAddResponse'
  3904. "500":
  3905. description: Internal Server Error
  3906. schema:
  3907. $ref: '#/definitions/base.HTTPError'
  3908. summary: 添加项目进度
  3909. tags:
  3910. - project
  3911. put:
  3912. consumes:
  3913. - application/json
  3914. description: 项目进度完成或开工
  3915. parameters:
  3916. - description: ' '
  3917. in: header
  3918. name: token
  3919. required: true
  3920. type: string
  3921. - description: ' '
  3922. in: body
  3923. name: body
  3924. required: true
  3925. schema:
  3926. $ref: '#/definitions/v1.ProjectProgressSetBody'
  3927. produces:
  3928. - application/json
  3929. responses:
  3930. "200":
  3931. description: OK
  3932. schema:
  3933. $ref: '#/definitions/v1.ProjectProgressSetResponse'
  3934. "500":
  3935. description: Internal Server Error
  3936. schema:
  3937. $ref: '#/definitions/base.HTTPError'
  3938. summary: 项目进度完成或开工
  3939. tags:
  3940. - project
  3941. /api/v1/project/progress/{id}:
  3942. delete:
  3943. consumes:
  3944. - application/json
  3945. description: 删除项目进度
  3946. parameters:
  3947. - description: ' '
  3948. in: header
  3949. name: token
  3950. required: true
  3951. type: string
  3952. - description: ' '
  3953. in: path
  3954. name: id
  3955. required: true
  3956. type: integer
  3957. produces:
  3958. - application/json
  3959. responses:
  3960. "200":
  3961. description: OK
  3962. schema:
  3963. $ref: '#/definitions/v1.ProjectProgressDelResponse'
  3964. "500":
  3965. description: Internal Server Error
  3966. schema:
  3967. $ref: '#/definitions/base.HTTPError'
  3968. summary: 删除项目进度
  3969. tags:
  3970. - project
  3971. /api/v1/project/progress_list:
  3972. get:
  3973. consumes:
  3974. - application/json
  3975. description: 项目进度列表
  3976. parameters:
  3977. - description: ' '
  3978. in: header
  3979. name: token
  3980. required: true
  3981. type: string
  3982. produces:
  3983. - application/json
  3984. responses:
  3985. "200":
  3986. description: OK
  3987. schema:
  3988. $ref: '#/definitions/v1.ProjectProgressResponse'
  3989. "500":
  3990. description: Internal Server Error
  3991. schema:
  3992. $ref: '#/definitions/base.HTTPError'
  3993. summary: 项目进度列表
  3994. tags:
  3995. - project
  3996. /api/v1/staff/attendance:
  3997. get:
  3998. consumes:
  3999. - application/json
  4000. description: 员工考勤
  4001. parameters:
  4002. - description: ' '
  4003. in: header
  4004. name: token
  4005. required: true
  4006. type: string
  4007. - description: ' '
  4008. in: query
  4009. name: page
  4010. type: integer
  4011. - description: ' '
  4012. in: query
  4013. name: start
  4014. type: integer
  4015. - description: ' '
  4016. in: query
  4017. name: end
  4018. type: integer
  4019. - description: ' 员工姓名或工种或员工类型'
  4020. in: query
  4021. name: filter
  4022. type: string
  4023. produces:
  4024. - application/json
  4025. responses:
  4026. "200":
  4027. description: OK
  4028. schema:
  4029. $ref: '#/definitions/v1.StaffAttendanceResponse'
  4030. "500":
  4031. description: Internal Server Error
  4032. schema:
  4033. $ref: '#/definitions/base.HTTPError'
  4034. summary: 员工考勤
  4035. tags:
  4036. - staff
  4037. /api/v1/staff/company_statistics:
  4038. get:
  4039. consumes:
  4040. - application/json
  4041. description: 员工按劳务公司统计
  4042. parameters:
  4043. - description: ' '
  4044. in: header
  4045. name: token
  4046. required: true
  4047. type: string
  4048. produces:
  4049. - application/json
  4050. responses:
  4051. "200":
  4052. description: OK
  4053. schema:
  4054. $ref: '#/definitions/v1.LaborCompanyStatisticsResponse'
  4055. "500":
  4056. description: Internal Server Error
  4057. schema:
  4058. $ref: '#/definitions/base.HTTPError'
  4059. summary: 员工按劳务公司统计
  4060. tags:
  4061. - 人员管理前台展示
  4062. /api/v1/staff/last:
  4063. get:
  4064. consumes:
  4065. - application/json
  4066. description: 最近考勤数据
  4067. parameters:
  4068. - description: ' '
  4069. in: header
  4070. name: token
  4071. required: true
  4072. type: string
  4073. produces:
  4074. - application/json
  4075. responses:
  4076. "200":
  4077. description: OK
  4078. schema:
  4079. $ref: '#/definitions/v1.LatestStaffDataResponse'
  4080. "500":
  4081. description: Internal Server Error
  4082. schema:
  4083. $ref: '#/definitions/base.HTTPError'
  4084. summary: 最近考勤数据
  4085. tags:
  4086. - 人员管理前台展示
  4087. /api/v1/staff/list:
  4088. get:
  4089. consumes:
  4090. - application/json
  4091. description: 员工列表
  4092. parameters:
  4093. - description: ' '
  4094. in: header
  4095. name: token
  4096. required: true
  4097. type: string
  4098. - description: ' '
  4099. in: query
  4100. name: page
  4101. type: integer
  4102. - description: ' 员工姓名或工种或员工类型'
  4103. in: query
  4104. name: filter
  4105. type: string
  4106. produces:
  4107. - application/json
  4108. responses:
  4109. "200":
  4110. description: OK
  4111. schema:
  4112. $ref: '#/definitions/v1.StaffListResponse'
  4113. "500":
  4114. description: Internal Server Error
  4115. schema:
  4116. $ref: '#/definitions/base.HTTPError'
  4117. summary: 员工列表
  4118. tags:
  4119. - staff
  4120. /api/v1/staff/type_statistics:
  4121. get:
  4122. consumes:
  4123. - application/json
  4124. description: 员工类型统计
  4125. parameters:
  4126. - description: ' '
  4127. in: header
  4128. name: token
  4129. required: true
  4130. type: string
  4131. produces:
  4132. - application/json
  4133. responses:
  4134. "200":
  4135. description: OK
  4136. schema:
  4137. $ref: '#/definitions/v1.StaffTypeStatisticsResponse'
  4138. "500":
  4139. description: Internal Server Error
  4140. schema:
  4141. $ref: '#/definitions/base.HTTPError'
  4142. summary: 员工类型统计
  4143. tags:
  4144. - 人员管理前台展示
  4145. /api/v1/staff/work_type_statistics:
  4146. get:
  4147. consumes:
  4148. - application/json
  4149. description: 工种统计
  4150. parameters:
  4151. - description: ' '
  4152. in: header
  4153. name: token
  4154. required: true
  4155. type: string
  4156. produces:
  4157. - application/json
  4158. responses:
  4159. "200":
  4160. description: OK
  4161. schema:
  4162. $ref: '#/definitions/v1.StaffWorkTypeStatisticsResponse'
  4163. "500":
  4164. description: Internal Server Error
  4165. schema:
  4166. $ref: '#/definitions/base.HTTPError'
  4167. summary: 工种统计
  4168. tags:
  4169. - 人员管理前台展示
  4170. /api/v1/task:
  4171. put:
  4172. consumes:
  4173. - application/json
  4174. description: 处理任务
  4175. parameters:
  4176. - description: ' '
  4177. in: header
  4178. name: token
  4179. required: true
  4180. type: string
  4181. - description: ' '
  4182. in: body
  4183. name: body
  4184. required: true
  4185. schema:
  4186. $ref: '#/definitions/v1.TaskFinishBody'
  4187. produces:
  4188. - application/json
  4189. responses:
  4190. "200":
  4191. description: OK
  4192. schema:
  4193. $ref: '#/definitions/v1.TaskFinishResponse'
  4194. "500":
  4195. description: Internal Server Error
  4196. schema:
  4197. $ref: '#/definitions/base.HTTPError'
  4198. summary: 处理任务
  4199. tags:
  4200. - 任务模块
  4201. /api/v1/task/info/{id}:
  4202. get:
  4203. consumes:
  4204. - application/json
  4205. description: 任务详情
  4206. parameters:
  4207. - description: ' '
  4208. in: header
  4209. name: token
  4210. required: true
  4211. type: string
  4212. - description: ' '
  4213. in: path
  4214. name: id
  4215. required: true
  4216. type: integer
  4217. produces:
  4218. - application/json
  4219. responses:
  4220. "200":
  4221. description: OK
  4222. schema:
  4223. $ref: '#/definitions/v1.TaskInfoResponse'
  4224. "500":
  4225. description: Internal Server Error
  4226. schema:
  4227. $ref: '#/definitions/base.HTTPError'
  4228. summary: 任务详情
  4229. tags:
  4230. - 任务模块
  4231. /api/v1/task/list:
  4232. get:
  4233. consumes:
  4234. - application/json
  4235. description: 任务列表
  4236. parameters:
  4237. - description: ' '
  4238. in: header
  4239. name: token
  4240. required: true
  4241. type: string
  4242. - description: ' '
  4243. in: query
  4244. name: page
  4245. type: integer
  4246. - description: ' '
  4247. in: query
  4248. name: start_time
  4249. type: integer
  4250. - description: ' '
  4251. in: query
  4252. name: end_time
  4253. type: integer
  4254. - description: ' 任务名,任务号 '
  4255. in: query
  4256. name: filter
  4257. type: string
  4258. - description: ' '
  4259. in: query
  4260. name: page_size
  4261. type: integer
  4262. - description: ' '
  4263. in: query
  4264. name: task_type
  4265. type: integer
  4266. - description: ' '
  4267. in: query
  4268. name: status
  4269. type: integer
  4270. - description: ' 0 不过滤 1 超期 2 未超期'
  4271. in: query
  4272. name: overdue
  4273. type: integer
  4274. - description: ' 0 不过滤 1 普通 2 告警任务'
  4275. in: query
  4276. name: source
  4277. type: integer
  4278. produces:
  4279. - application/json
  4280. responses:
  4281. "200":
  4282. description: OK
  4283. schema:
  4284. $ref: '#/definitions/v1.TaskListResponse'
  4285. "500":
  4286. description: Internal Server Error
  4287. schema:
  4288. $ref: '#/definitions/base.HTTPError'
  4289. summary: 任务列表
  4290. tags:
  4291. - 任务模块
  4292. /api/v1/token_refresh:
  4293. put:
  4294. consumes:
  4295. - application/json
  4296. description: 刷新token
  4297. parameters:
  4298. - description: token
  4299. in: header
  4300. name: token
  4301. required: true
  4302. type: string
  4303. produces:
  4304. - application/json
  4305. responses:
  4306. "200":
  4307. description: OK
  4308. schema:
  4309. $ref: '#/definitions/v1.TokenResponse'
  4310. "500":
  4311. description: Internal Server Error
  4312. schema:
  4313. $ref: '#/definitions/base.HTTPError'
  4314. summary: 刷新token
  4315. tags:
  4316. - 用户
  4317. /api/v1/upload:
  4318. post:
  4319. consumes:
  4320. - application/json
  4321. description: 上传文件
  4322. parameters:
  4323. - description: jwt token
  4324. in: header
  4325. name: token
  4326. required: true
  4327. type: string
  4328. - description: file
  4329. in: formData
  4330. name: file
  4331. type: file
  4332. produces:
  4333. - application/json
  4334. responses:
  4335. "200":
  4336. description: OK
  4337. schema:
  4338. $ref: '#/definitions/v1.UploadResponse'
  4339. "500":
  4340. description: Internal Server Error
  4341. schema:
  4342. $ref: '#/definitions/base.HTTPError'
  4343. summary: 上传文件
  4344. tags:
  4345. - 上传文件
  4346. /api/v1/user/captcha_id:
  4347. get:
  4348. consumes:
  4349. - application/json
  4350. description: 获取图片验证码id
  4351. produces:
  4352. - application/json
  4353. responses:
  4354. "200":
  4355. description: OK
  4356. schema:
  4357. $ref: '#/definitions/v1.CaptchaIdResponse'
  4358. "500":
  4359. description: Internal Server Error
  4360. schema:
  4361. $ref: '#/definitions/base.HTTPError'
  4362. summary: 获取图片验证码id
  4363. tags:
  4364. - user
  4365. /api/v1/user/captcha_png/{captcha_id}:
  4366. get:
  4367. consumes:
  4368. - application/json
  4369. description: 获取图片验证码图片
  4370. parameters:
  4371. - description: ' '
  4372. in: path
  4373. name: captcha_id
  4374. required: true
  4375. type: string
  4376. produces:
  4377. - application/json
  4378. responses:
  4379. "500":
  4380. description: Internal Server Error
  4381. schema:
  4382. $ref: '#/definitions/base.HTTPError'
  4383. summary: 获取图片验证码图片
  4384. tags:
  4385. - user
  4386. /api/v1/user/change_passwd:
  4387. put:
  4388. consumes:
  4389. - application/json
  4390. description: 修改密码
  4391. parameters:
  4392. - description: ' '
  4393. in: header
  4394. name: token
  4395. required: true
  4396. type: string
  4397. - description: ' '
  4398. in: body
  4399. name: body
  4400. required: true
  4401. schema:
  4402. $ref: '#/definitions/v1.ChangePasswdBody'
  4403. produces:
  4404. - application/json
  4405. responses:
  4406. "200":
  4407. description: OK
  4408. schema:
  4409. $ref: '#/definitions/v1.ChangePasswdResponse'
  4410. "500":
  4411. description: Internal Server Error
  4412. schema:
  4413. $ref: '#/definitions/base.HTTPError'
  4414. summary: 修改密码
  4415. tags:
  4416. - user
  4417. /api/v1/user/info:
  4418. get:
  4419. consumes:
  4420. - application/json
  4421. description: 获取电话和邮箱
  4422. parameters:
  4423. - description: ' '
  4424. in: header
  4425. name: token
  4426. required: true
  4427. type: string
  4428. produces:
  4429. - application/json
  4430. responses:
  4431. "200":
  4432. description: OK
  4433. schema:
  4434. $ref: '#/definitions/v1.UserInfoResponse'
  4435. "500":
  4436. description: Internal Server Error
  4437. schema:
  4438. $ref: '#/definitions/base.HTTPError'
  4439. summary: 获取电话和邮箱
  4440. tags:
  4441. - 用户
  4442. /api/v1/user/login_front:
  4443. post:
  4444. consumes:
  4445. - application/json
  4446. description: 可视化登录
  4447. parameters:
  4448. - description: 临时token
  4449. in: header
  4450. name: token
  4451. type: string
  4452. - description: 登录信息
  4453. in: body
  4454. name: body
  4455. required: true
  4456. schema:
  4457. $ref: '#/definitions/v1.LoginBody'
  4458. produces:
  4459. - application/json
  4460. responses:
  4461. "200":
  4462. description: OK
  4463. schema:
  4464. $ref: '#/definitions/v1.LoginResponse'
  4465. "500":
  4466. description: Internal Server Error
  4467. schema:
  4468. $ref: '#/definitions/base.HTTPError'
  4469. summary: 可视化登录
  4470. tags:
  4471. - 用户
  4472. /api/v1/user/mail:
  4473. get:
  4474. consumes:
  4475. - application/json
  4476. description: 修改邮箱
  4477. parameters:
  4478. - description: ' '
  4479. in: query
  4480. name: token
  4481. required: true
  4482. type: string
  4483. produces:
  4484. - application/json
  4485. responses:
  4486. "200":
  4487. description: OK
  4488. schema:
  4489. $ref: '#/definitions/v1.MailUpdateResponse'
  4490. "500":
  4491. description: Internal Server Error
  4492. schema:
  4493. $ref: '#/definitions/base.HTTPError'
  4494. summary: 修改邮箱
  4495. tags:
  4496. - user
  4497. /api/v1/user/permission:
  4498. get:
  4499. consumes:
  4500. - application/json
  4501. description: 获取账户权限
  4502. parameters:
  4503. - description: ' '
  4504. in: header
  4505. name: token
  4506. required: true
  4507. type: string
  4508. produces:
  4509. - application/json
  4510. responses:
  4511. "200":
  4512. description: OK
  4513. schema:
  4514. $ref: '#/definitions/v1.UserPermissionResponse'
  4515. "500":
  4516. description: Internal Server Error
  4517. schema:
  4518. $ref: '#/definitions/base.HTTPError'
  4519. summary: 获取账户权限
  4520. tags:
  4521. - 用户
  4522. /api/v1/user/phone:
  4523. put:
  4524. consumes:
  4525. - application/json
  4526. description: 修改电话号码
  4527. parameters:
  4528. - description: ' '
  4529. in: header
  4530. name: token
  4531. required: true
  4532. type: string
  4533. - description: ' '
  4534. in: body
  4535. name: body
  4536. required: true
  4537. schema:
  4538. $ref: '#/definitions/v1.PhoneUpdateBody'
  4539. produces:
  4540. - application/json
  4541. responses:
  4542. "200":
  4543. description: OK
  4544. schema:
  4545. $ref: '#/definitions/v1.PhoneUpdateResponse'
  4546. "500":
  4547. description: Internal Server Error
  4548. schema:
  4549. $ref: '#/definitions/base.HTTPError'
  4550. summary: 修改电话号码
  4551. tags:
  4552. - user
  4553. /api/v1/user/verify_mail:
  4554. put:
  4555. consumes:
  4556. - application/json
  4557. description: 发送验证邮件
  4558. parameters:
  4559. - description: ' '
  4560. in: header
  4561. name: token
  4562. required: true
  4563. type: string
  4564. - description: ' '
  4565. in: body
  4566. name: body
  4567. required: true
  4568. schema:
  4569. $ref: '#/definitions/v1.MailPrepareBody'
  4570. produces:
  4571. - application/json
  4572. responses:
  4573. "200":
  4574. description: OK
  4575. schema:
  4576. $ref: '#/definitions/v1.MailPrepareResponse'
  4577. "500":
  4578. description: Internal Server Error
  4579. schema:
  4580. $ref: '#/definitions/base.HTTPError'
  4581. summary: 发送验证邮件
  4582. tags:
  4583. - user
  4584. /api/v1/vcode:
  4585. get:
  4586. consumes:
  4587. - application/json
  4588. description: 获取短信验证码
  4589. parameters:
  4590. - description: phone
  4591. in: query
  4592. name: phone
  4593. required: true
  4594. type: string
  4595. produces:
  4596. - application/json
  4597. responses:
  4598. "200":
  4599. description: OK
  4600. schema:
  4601. $ref: '#/definitions/v1.VcodeResponse'
  4602. "500":
  4603. description: Internal Server Error
  4604. schema:
  4605. $ref: '#/definitions/base.HTTPError'
  4606. summary: 获取短信验证码
  4607. tags:
  4608. - 用户
  4609. /api/v1/vehicle/list:
  4610. get:
  4611. consumes:
  4612. - application/json
  4613. description: 车辆
  4614. parameters:
  4615. - description: ' '
  4616. in: header
  4617. name: token
  4618. required: true
  4619. type: string
  4620. - description: ' '
  4621. in: query
  4622. name: page
  4623. type: integer
  4624. - description: ' '
  4625. in: query
  4626. name: page_size
  4627. type: integer
  4628. - description: ' '
  4629. in: query
  4630. name: plate_no
  4631. type: string
  4632. - description: ' '
  4633. in: query
  4634. name: start
  4635. type: integer
  4636. - description: ' '
  4637. in: query
  4638. name: end
  4639. type: integer
  4640. produces:
  4641. - application/json
  4642. responses:
  4643. "200":
  4644. description: OK
  4645. schema:
  4646. $ref: '#/definitions/v1.VehicleListResponse'
  4647. "500":
  4648. description: Internal Server Error
  4649. schema:
  4650. $ref: '#/definitions/base.HTTPError'
  4651. summary: 车辆
  4652. tags:
  4653. - 车辆进出场前台展示
  4654. swagger: "2.0"