swagger.json 135 KB

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