swagger.json 195 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "SCD文档管理系统接口文档。本文档仅用于本项目的前端接口说明",
  5. "title": "SCD文档管理系统API",
  6. "termsOfService": "http://swagger.io/terms/",
  7. "contact": {
  8. "name": "liling",
  9. "url": "http://www.swagger.io/support",
  10. "email": "3116246@qq.com"
  11. },
  12. "license": {
  13. "name": "none",
  14. "url": "-"
  15. },
  16. "version": "1.1.0"
  17. },
  18. "host": "localhost:18001",
  19. "basePath": "/api",
  20. "paths": {
  21. "/area/children/list": {
  22. "get": {
  23. "description": "获取指定获取的下级区域列表",
  24. "consumes": [
  25. "application/x-www-form-urlencoded"
  26. ],
  27. "produces": [
  28. "application/json"
  29. ],
  30. "tags": [
  31. "基础服务接口"
  32. ],
  33. "summary": "获取指定获取的下级区域列表",
  34. "parameters": [
  35. {
  36. "type": "string",
  37. "description": "查询条件:区域ID",
  38. "name": "id",
  39. "in": "query",
  40. "required": true
  41. },
  42. {
  43. "type": "integer",
  44. "description": "查询条件:是否获取全部子区域。1表示是,反之表示否。默认为0",
  45. "name": "all",
  46. "in": "query"
  47. }
  48. ],
  49. "responses": {
  50. "200": {
  51. "description": "OK",
  52. "schema": {
  53. "$ref": "#/definitions/controllers.ResultOK"
  54. }
  55. },
  56. "500": {
  57. "description": "Internal Server Error",
  58. "schema": {
  59. "$ref": "#/definitions/controllers.ResultError"
  60. }
  61. }
  62. }
  63. }
  64. },
  65. "/area/tree": {
  66. "get": {
  67. "description": "获取区域列表。以tree结构形式返回。",
  68. "consumes": [
  69. "application/x-www-form-urlencoded"
  70. ],
  71. "produces": [
  72. "application/json"
  73. ],
  74. "tags": [
  75. "基础服务接口"
  76. ],
  77. "summary": "获取区域列表",
  78. "responses": {
  79. "200": {
  80. "description": "OK",
  81. "schema": {
  82. "$ref": "#/definitions/controllers.ResultOK"
  83. }
  84. },
  85. "500": {
  86. "description": "Internal Server Error",
  87. "schema": {
  88. "$ref": "#/definitions/controllers.ResultError"
  89. }
  90. }
  91. }
  92. }
  93. },
  94. "/attachment/cfg/delete": {
  95. "post": {
  96. "description": "删除指定的数据及附件自动清理配置",
  97. "consumes": [
  98. "application/x-www-form-urlencoded"
  99. ],
  100. "produces": [
  101. "application/json"
  102. ],
  103. "tags": [
  104. "文件/附件服务接口"
  105. ],
  106. "summary": "删除指定的数据及附件自动清理配置",
  107. "parameters": [
  108. {
  109. "type": "integer",
  110. "description": "配置记录id",
  111. "name": "id",
  112. "in": "formData",
  113. "required": true
  114. }
  115. ],
  116. "responses": {
  117. "200": {
  118. "description": "OK",
  119. "schema": {
  120. "$ref": "#/definitions/controllers.ResultOK"
  121. }
  122. },
  123. "500": {
  124. "description": "Internal Server Error",
  125. "schema": {
  126. "$ref": "#/definitions/controllers.ResultError"
  127. }
  128. }
  129. }
  130. }
  131. },
  132. "/attachment/cfg/list": {
  133. "get": {
  134. "description": "获取数据及附件自动清理配置列表",
  135. "consumes": [
  136. "application/x-www-form-urlencoded"
  137. ],
  138. "produces": [
  139. "application/json"
  140. ],
  141. "tags": [
  142. "文件/附件服务接口"
  143. ],
  144. "summary": "获取数据及附件自动清理配置列表",
  145. "responses": {
  146. "200": {
  147. "description": "OK",
  148. "schema": {
  149. "$ref": "#/definitions/controllers.ResultOK"
  150. }
  151. },
  152. "500": {
  153. "description": "Internal Server Error",
  154. "schema": {
  155. "$ref": "#/definitions/controllers.ResultError"
  156. }
  157. }
  158. }
  159. }
  160. },
  161. "/attachment/cfg/one": {
  162. "get": {
  163. "description": "获取指定的数据及附件自动清理配置",
  164. "consumes": [
  165. "application/x-www-form-urlencoded"
  166. ],
  167. "produces": [
  168. "application/json"
  169. ],
  170. "tags": [
  171. "文件/附件服务接口"
  172. ],
  173. "summary": "获取指定的数据及附件自动清理配置",
  174. "parameters": [
  175. {
  176. "type": "integer",
  177. "description": "配置记录id。",
  178. "name": "id",
  179. "in": "query",
  180. "required": true
  181. }
  182. ],
  183. "responses": {
  184. "200": {
  185. "description": "OK",
  186. "schema": {
  187. "$ref": "#/definitions/controllers.ResultOK"
  188. }
  189. },
  190. "500": {
  191. "description": "Internal Server Error",
  192. "schema": {
  193. "$ref": "#/definitions/controllers.ResultError"
  194. }
  195. }
  196. }
  197. }
  198. },
  199. "/attachment/cfg/save": {
  200. "post": {
  201. "description": "保存数据及附件自动清理配置",
  202. "consumes": [
  203. "application/x-www-form-urlencoded"
  204. ],
  205. "produces": [
  206. "application/json"
  207. ],
  208. "tags": [
  209. "文件/附件服务接口"
  210. ],
  211. "summary": "保存数据及附件自动清理配置",
  212. "parameters": [
  213. {
  214. "type": "integer",
  215. "description": "配置记录id。不为0时表示编辑保存",
  216. "name": "id",
  217. "in": "formData",
  218. "required": true
  219. },
  220. {
  221. "type": "string",
  222. "description": "配置名称",
  223. "name": "name",
  224. "in": "formData",
  225. "required": true
  226. },
  227. {
  228. "type": "integer",
  229. "description": "数据及附件保留的天数",
  230. "name": "skeepday",
  231. "in": "formData",
  232. "required": true
  233. },
  234. {
  235. "type": "string",
  236. "description": "数据模型名称",
  237. "name": "tablename",
  238. "in": "formData",
  239. "required": true
  240. },
  241. {
  242. "type": "string",
  243. "description": "数据模型中的记录创建日期列名",
  244. "name": "colname",
  245. "in": "formData",
  246. "required": true
  247. },
  248. {
  249. "type": "string",
  250. "description": "数据过滤条件。支持SQL语法",
  251. "name": "filterwhere",
  252. "in": "formData"
  253. },
  254. {
  255. "type": "string",
  256. "description": "配置说明",
  257. "name": "memo",
  258. "in": "formData"
  259. }
  260. ],
  261. "responses": {
  262. "200": {
  263. "description": "OK",
  264. "schema": {
  265. "$ref": "#/definitions/controllers.ResultOK"
  266. }
  267. },
  268. "500": {
  269. "description": "Internal Server Error",
  270. "schema": {
  271. "$ref": "#/definitions/controllers.ResultError"
  272. }
  273. }
  274. }
  275. }
  276. },
  277. "/attachment/delete": {
  278. "post": {
  279. "description": "删除指定的附件",
  280. "consumes": [
  281. "application/x-www-form-urlencoded"
  282. ],
  283. "produces": [
  284. "application/json"
  285. ],
  286. "tags": [
  287. "文件/附件服务接口"
  288. ],
  289. "summary": "删除附件",
  290. "parameters": [
  291. {
  292. "type": "integer",
  293. "description": "需要删除的附件id。",
  294. "name": "id",
  295. "in": "formData",
  296. "required": true
  297. },
  298. {
  299. "type": "string",
  300. "description": "需要删除的附件id。多个附件id使用逗号分隔。",
  301. "name": "ids",
  302. "in": "formData",
  303. "required": true
  304. },
  305. {
  306. "type": "integer",
  307. "description": "SCD文件ID。不为空时表示删除该SCD关联的文件",
  308. "name": "scd_id",
  309. "in": "formData"
  310. },
  311. {
  312. "type": "integer",
  313. "description": "是否是管控文件。1表示是,否则表示为否",
  314. "name": "check_flag",
  315. "in": "formData"
  316. }
  317. ],
  318. "responses": {
  319. "200": {
  320. "description": "OK",
  321. "schema": {
  322. "$ref": "#/definitions/controllers.ResultOK"
  323. }
  324. },
  325. "500": {
  326. "description": "Internal Server Error",
  327. "schema": {
  328. "$ref": "#/definitions/controllers.ResultError"
  329. }
  330. }
  331. }
  332. }
  333. },
  334. "/attachment/download": {
  335. "post": {
  336. "description": "查询附件列表",
  337. "consumes": [
  338. "application/x-www-form-urlencoded"
  339. ],
  340. "produces": [
  341. "application/json"
  342. ],
  343. "tags": [
  344. "文件/附件服务接口"
  345. ],
  346. "summary": "下载附件",
  347. "parameters": [
  348. {
  349. "type": "string",
  350. "description": "需要下载的附件id。多个附件id使用逗号分隔。",
  351. "name": "ids",
  352. "in": "formData",
  353. "required": true
  354. }
  355. ],
  356. "responses": {
  357. "200": {
  358. "description": "OK",
  359. "schema": {
  360. "$ref": "#/definitions/controllers.ResultOK"
  361. }
  362. },
  363. "500": {
  364. "description": "Internal Server Error",
  365. "schema": {
  366. "$ref": "#/definitions/controllers.ResultError"
  367. }
  368. }
  369. }
  370. }
  371. },
  372. "/attachment/download/rec": {
  373. "post": {
  374. "description": "查询指定附件下载历史记录。(预留)",
  375. "consumes": [
  376. "application/x-www-form-urlencoded"
  377. ],
  378. "produces": [
  379. "application/json"
  380. ],
  381. "tags": [
  382. "文件/附件服务接口"
  383. ],
  384. "summary": "查询指定附件下载历史记录",
  385. "parameters": [
  386. {
  387. "type": "integer",
  388. "description": "附件id。",
  389. "name": "id",
  390. "in": "query",
  391. "required": true
  392. }
  393. ],
  394. "responses": {
  395. "200": {
  396. "description": "OK",
  397. "schema": {
  398. "$ref": "#/definitions/controllers.ResultOK"
  399. }
  400. },
  401. "500": {
  402. "description": "Internal Server Error",
  403. "schema": {
  404. "$ref": "#/definitions/controllers.ResultError"
  405. }
  406. }
  407. }
  408. }
  409. },
  410. "/attachment/list": {
  411. "get": {
  412. "description": "查询附件列表",
  413. "consumes": [
  414. "application/x-www-form-urlencoded"
  415. ],
  416. "produces": [
  417. "application/json"
  418. ],
  419. "tags": [
  420. "文件/附件服务接口"
  421. ],
  422. "summary": "查询附件列表",
  423. "parameters": [
  424. {
  425. "type": "integer",
  426. "description": "当前查询的分页页码,默认为1",
  427. "name": "pageindex",
  428. "in": "query",
  429. "required": true
  430. },
  431. {
  432. "type": "integer",
  433. "description": "每页显示的数据条数,默认为20",
  434. "name": "pagesize",
  435. "in": "query",
  436. "required": true
  437. },
  438. {
  439. "type": "integer",
  440. "description": "变电站ID",
  441. "name": "station_id",
  442. "in": "query",
  443. "required": true
  444. },
  445. {
  446. "type": "integer",
  447. "description": "SCD文件ID",
  448. "name": "scd_id",
  449. "in": "query"
  450. },
  451. {
  452. "type": "integer",
  453. "description": "是否管控文档。0 其他文件 1 管控文件 2 裁剪文件",
  454. "name": "is_checkin",
  455. "in": "query"
  456. },
  457. {
  458. "type": "string",
  459. "description": "附件名称",
  460. "name": "name",
  461. "in": "query"
  462. },
  463. {
  464. "type": "string",
  465. "description": "装置名称",
  466. "name": "ied_name",
  467. "in": "query"
  468. },
  469. {
  470. "type": "integer",
  471. "description": "文件类别ID",
  472. "name": "type",
  473. "in": "query"
  474. }
  475. ],
  476. "responses": {
  477. "200": {
  478. "description": "OK",
  479. "schema": {
  480. "$ref": "#/definitions/controllers.ResultOK"
  481. }
  482. },
  483. "500": {
  484. "description": "Internal Server Error",
  485. "schema": {
  486. "$ref": "#/definitions/controllers.ResultError"
  487. }
  488. }
  489. }
  490. }
  491. },
  492. "/attachment/one": {
  493. "get": {
  494. "description": "根据id获取附件信息",
  495. "consumes": [
  496. "application/x-www-form-urlencoded"
  497. ],
  498. "produces": [
  499. "application/json"
  500. ],
  501. "tags": [
  502. "文件/附件服务接口"
  503. ],
  504. "summary": "根据id获取附件信息",
  505. "parameters": [
  506. {
  507. "type": "integer",
  508. "description": "附件ID",
  509. "name": "id",
  510. "in": "query",
  511. "required": true
  512. }
  513. ],
  514. "responses": {
  515. "200": {
  516. "description": "OK",
  517. "schema": {
  518. "$ref": "#/definitions/controllers.ResultOK"
  519. }
  520. },
  521. "500": {
  522. "description": "Internal Server Error",
  523. "schema": {
  524. "$ref": "#/definitions/controllers.ResultError"
  525. }
  526. }
  527. }
  528. }
  529. },
  530. "/attachment/scdparse/start": {
  531. "post": {
  532. "description": "重新解析指定的SCD文件",
  533. "consumes": [
  534. "application/x-www-form-urlencoded"
  535. ],
  536. "produces": [
  537. "application/json"
  538. ],
  539. "tags": [
  540. "文件/附件服务接口"
  541. ],
  542. "summary": "重新解析指定的SCD文件",
  543. "parameters": [
  544. {
  545. "type": "integer",
  546. "description": "变电站ID",
  547. "name": "station_id",
  548. "in": "formData",
  549. "required": true
  550. },
  551. {
  552. "type": "string",
  553. "description": "SCD文件名称",
  554. "name": "scd_name",
  555. "in": "formData",
  556. "required": true
  557. },
  558. {
  559. "type": "string",
  560. "description": "SCD附件路径",
  561. "name": "scd_path",
  562. "in": "formData",
  563. "required": true
  564. }
  565. ],
  566. "responses": {
  567. "200": {
  568. "description": "OK",
  569. "schema": {
  570. "$ref": "#/definitions/controllers.ResultOK"
  571. }
  572. },
  573. "500": {
  574. "description": "Internal Server Error",
  575. "schema": {
  576. "$ref": "#/definitions/controllers.ResultError"
  577. }
  578. }
  579. }
  580. }
  581. },
  582. "/attachment/stat": {
  583. "get": {
  584. "description": "SCD文档分类统计",
  585. "consumes": [
  586. "application/x-www-form-urlencoded"
  587. ],
  588. "produces": [
  589. "application/json"
  590. ],
  591. "tags": [
  592. "统计分析服务接口"
  593. ],
  594. "summary": "SCD文档分类统计",
  595. "parameters": [
  596. {
  597. "type": "integer",
  598. "description": "变电站ID",
  599. "name": "station_id",
  600. "in": "query"
  601. }
  602. ],
  603. "responses": {
  604. "200": {
  605. "description": "OK",
  606. "schema": {
  607. "$ref": "#/definitions/controllers.ResultError"
  608. }
  609. },
  610. "500": {
  611. "description": "Internal Server Error",
  612. "schema": {
  613. "type": "status"
  614. }
  615. }
  616. }
  617. }
  618. },
  619. "/basic_area/del": {
  620. "post": {
  621. "description": "删除指定区域信息",
  622. "consumes": [
  623. "application/x-www-form-urlencoded"
  624. ],
  625. "produces": [
  626. "application/json"
  627. ],
  628. "tags": [
  629. "基础服务接口"
  630. ],
  631. "summary": "删除指定区域信息",
  632. "parameters": [
  633. {
  634. "type": "integer",
  635. "description": "区域ID。",
  636. "name": "id",
  637. "in": "query",
  638. "required": true
  639. },
  640. {
  641. "type": "integer",
  642. "description": "是否同时删除所有下级区域。1为是,反之为否。默认为否",
  643. "name": "isall",
  644. "in": "query"
  645. }
  646. ],
  647. "responses": {
  648. "200": {
  649. "description": "OK",
  650. "schema": {
  651. "$ref": "#/definitions/controllers.ResultOK"
  652. }
  653. },
  654. "500": {
  655. "description": "Internal Server Error",
  656. "schema": {
  657. "$ref": "#/definitions/controllers.ResultError"
  658. }
  659. }
  660. }
  661. }
  662. },
  663. "/basic_area/getchildrencount": {
  664. "get": {
  665. "description": "查询指定区域的下级区域数量",
  666. "consumes": [
  667. "application/x-www-form-urlencoded"
  668. ],
  669. "produces": [
  670. "application/json"
  671. ],
  672. "tags": [
  673. "基础服务接口"
  674. ],
  675. "summary": "查询指定区域的下级区域数量",
  676. "parameters": [
  677. {
  678. "type": "integer",
  679. "description": "查询条件:父级区域ID",
  680. "name": "pid",
  681. "in": "query",
  682. "required": true
  683. }
  684. ],
  685. "responses": {
  686. "200": {
  687. "description": "OK",
  688. "schema": {
  689. "$ref": "#/definitions/controllers.ResultOK"
  690. }
  691. },
  692. "500": {
  693. "description": "Internal Server Error",
  694. "schema": {
  695. "$ref": "#/definitions/controllers.ResultError"
  696. }
  697. }
  698. }
  699. }
  700. },
  701. "/basic_area/list": {
  702. "get": {
  703. "description": "根据查询条件搜索区域列表",
  704. "consumes": [
  705. "application/x-www-form-urlencoded"
  706. ],
  707. "produces": [
  708. "application/json"
  709. ],
  710. "tags": [
  711. "基础服务接口"
  712. ],
  713. "summary": "根据查询条件搜索区域列表",
  714. "parameters": [
  715. {
  716. "type": "integer",
  717. "description": "当前查询的分页页码,默认为1",
  718. "name": "pageindex",
  719. "in": "query"
  720. },
  721. {
  722. "type": "integer",
  723. "description": "每页显示的数据条数,默认为20",
  724. "name": "pagesize",
  725. "in": "query"
  726. },
  727. {
  728. "type": "string",
  729. "description": "查询条件:区域名称。模糊匹配",
  730. "name": "name",
  731. "in": "query"
  732. },
  733. {
  734. "type": "integer",
  735. "description": "查询条件:区域ID",
  736. "name": "id",
  737. "in": "query"
  738. },
  739. {
  740. "type": "integer",
  741. "description": "查询条件:父级区域ID",
  742. "name": "pid",
  743. "in": "query"
  744. }
  745. ],
  746. "responses": {
  747. "200": {
  748. "description": "OK",
  749. "schema": {
  750. "$ref": "#/definitions/controllers.ResultOK"
  751. }
  752. },
  753. "500": {
  754. "description": "Internal Server Error",
  755. "schema": {
  756. "$ref": "#/definitions/controllers.ResultError"
  757. }
  758. }
  759. }
  760. }
  761. },
  762. "/basic_area/save": {
  763. "post": {
  764. "description": "保存区域信息",
  765. "consumes": [
  766. "application/x-www-form-urlencoded"
  767. ],
  768. "produces": [
  769. "application/json"
  770. ],
  771. "tags": [
  772. "基础服务接口"
  773. ],
  774. "summary": "保存区域信息",
  775. "parameters": [
  776. {
  777. "type": "integer",
  778. "description": "区域ID。编辑时必填。",
  779. "name": "id",
  780. "in": "query",
  781. "required": true
  782. },
  783. {
  784. "type": "integer",
  785. "description": "父级区域ID",
  786. "name": "pid",
  787. "in": "query",
  788. "required": true
  789. },
  790. {
  791. "type": "integer",
  792. "description": "区域类型",
  793. "name": "area_type",
  794. "in": "query",
  795. "required": true
  796. },
  797. {
  798. "type": "string",
  799. "description": "区域名称",
  800. "name": "area_name",
  801. "in": "query",
  802. "required": true
  803. },
  804. {
  805. "type": "string",
  806. "description": "区域地址",
  807. "name": "area_addr",
  808. "in": "query"
  809. }
  810. ],
  811. "responses": {
  812. "200": {
  813. "description": "OK",
  814. "schema": {
  815. "$ref": "#/definitions/controllers.ResultOK"
  816. }
  817. },
  818. "500": {
  819. "description": "Internal Server Error",
  820. "schema": {
  821. "$ref": "#/definitions/controllers.ResultError"
  822. }
  823. }
  824. }
  825. }
  826. },
  827. "/code/tree": {
  828. "get": {
  829. "responses": {}
  830. }
  831. },
  832. "/createuser": {
  833. "post": {
  834. "description": "查询用户信息",
  835. "consumes": [
  836. "application/x-www-form-urlencoded"
  837. ],
  838. "produces": [
  839. "application/json"
  840. ],
  841. "tags": [
  842. "基础服务接口"
  843. ],
  844. "summary": "创建用户",
  845. "parameters": [
  846. {
  847. "type": "integer",
  848. "description": "用户ID",
  849. "name": "userid",
  850. "in": "query",
  851. "required": true
  852. },
  853. {
  854. "type": "integer",
  855. "description": "角色ID",
  856. "name": "role",
  857. "in": "query",
  858. "required": true
  859. },
  860. {
  861. "type": "string",
  862. "description": "姓名",
  863. "name": "username",
  864. "in": "query",
  865. "required": true
  866. },
  867. {
  868. "type": "string",
  869. "description": "登录帐号",
  870. "name": "account",
  871. "in": "query",
  872. "required": true
  873. },
  874. {
  875. "type": "string",
  876. "description": "登录密码",
  877. "name": "password",
  878. "in": "query",
  879. "required": true
  880. },
  881. {
  882. "type": "string",
  883. "description": "手机号",
  884. "name": "mobilephone",
  885. "in": "query"
  886. },
  887. {
  888. "type": "string",
  889. "description": "密码过期日期",
  890. "name": "pwd_expire",
  891. "in": "query"
  892. },
  893. {
  894. "type": "string",
  895. "description": "允许登录的IP",
  896. "name": "bind_ips",
  897. "in": "query"
  898. },
  899. {
  900. "type": "string",
  901. "description": "帐号有效期开始日期",
  902. "name": "datelimit_start",
  903. "in": "query"
  904. },
  905. {
  906. "type": "string",
  907. "description": "帐号有效期结束日期",
  908. "name": "datelimit_end",
  909. "in": "query"
  910. },
  911. {
  912. "type": "string",
  913. "description": "其他说明",
  914. "name": "memo",
  915. "in": "query"
  916. }
  917. ],
  918. "responses": {
  919. "200": {
  920. "description": "OK",
  921. "schema": {
  922. "$ref": "#/definitions/controllers.WarpOK"
  923. }
  924. },
  925. "500": {
  926. "description": "Internal Server Error",
  927. "schema": {
  928. "$ref": "#/definitions/controllers.WarpError"
  929. }
  930. }
  931. }
  932. }
  933. },
  934. "/db/backup/del": {
  935. "post": {
  936. "description": "删除指定的数据备份",
  937. "consumes": [
  938. "application/x-www-form-urlencoded"
  939. ],
  940. "produces": [
  941. "application/json"
  942. ],
  943. "tags": [
  944. "基础服务接口"
  945. ],
  946. "summary": "删除指定的数据备份",
  947. "parameters": [
  948. {
  949. "type": "integer",
  950. "description": "备份记录ID",
  951. "name": "id",
  952. "in": "query"
  953. }
  954. ],
  955. "responses": {
  956. "200": {
  957. "description": "OK",
  958. "schema": {
  959. "$ref": "#/definitions/controllers.ResultOK"
  960. }
  961. },
  962. "500": {
  963. "description": "Internal Server Error",
  964. "schema": {
  965. "$ref": "#/definitions/controllers.ResultError"
  966. }
  967. }
  968. }
  969. }
  970. },
  971. "/db/backup/list": {
  972. "get": {
  973. "description": "获取数据备份列表",
  974. "consumes": [
  975. "application/x-www-form-urlencoded"
  976. ],
  977. "produces": [
  978. "application/json"
  979. ],
  980. "tags": [
  981. "基础服务接口"
  982. ],
  983. "summary": "获取数据备份列表",
  984. "parameters": [
  985. {
  986. "type": "integer",
  987. "description": "当前查询的分页页码,默认为1",
  988. "name": "pageindex",
  989. "in": "query"
  990. },
  991. {
  992. "type": "integer",
  993. "description": "每页显示的数据条数,默认为20",
  994. "name": "pagesize",
  995. "in": "query"
  996. },
  997. {
  998. "type": "string",
  999. "description": "备份结束日期",
  1000. "name": "enddate",
  1001. "in": "query"
  1002. },
  1003. {
  1004. "type": "string",
  1005. "description": "备份开始日期",
  1006. "name": "startdate",
  1007. "in": "query"
  1008. }
  1009. ],
  1010. "responses": {
  1011. "200": {
  1012. "description": "OK",
  1013. "schema": {
  1014. "$ref": "#/definitions/controllers.ResultOK"
  1015. }
  1016. },
  1017. "500": {
  1018. "description": "Internal Server Error",
  1019. "schema": {
  1020. "$ref": "#/definitions/controllers.ResultError"
  1021. }
  1022. }
  1023. }
  1024. }
  1025. },
  1026. "/db/backup/new": {
  1027. "post": {
  1028. "description": "创建新数据备份",
  1029. "consumes": [
  1030. "application/x-www-form-urlencoded"
  1031. ],
  1032. "produces": [
  1033. "application/json"
  1034. ],
  1035. "tags": [
  1036. "基础服务接口"
  1037. ],
  1038. "summary": "创建新数据备份",
  1039. "responses": {
  1040. "200": {
  1041. "description": "OK",
  1042. "schema": {
  1043. "$ref": "#/definitions/controllers.ResultOK"
  1044. }
  1045. },
  1046. "500": {
  1047. "description": "Internal Server Error",
  1048. "schema": {
  1049. "$ref": "#/definitions/controllers.ResultError"
  1050. }
  1051. }
  1052. }
  1053. }
  1054. },
  1055. "/db/backup/recover": {
  1056. "post": {
  1057. "description": "还原指定的数据备份",
  1058. "consumes": [
  1059. "application/x-www-form-urlencoded"
  1060. ],
  1061. "produces": [
  1062. "application/json"
  1063. ],
  1064. "tags": [
  1065. "基础服务接口"
  1066. ],
  1067. "summary": "数据还原",
  1068. "parameters": [
  1069. {
  1070. "type": "integer",
  1071. "description": "备份记录ID",
  1072. "name": "id",
  1073. "in": "query",
  1074. "required": true
  1075. }
  1076. ],
  1077. "responses": {
  1078. "200": {
  1079. "description": "OK",
  1080. "schema": {
  1081. "$ref": "#/definitions/controllers.ResultOK"
  1082. }
  1083. },
  1084. "500": {
  1085. "description": "Internal Server Error",
  1086. "schema": {
  1087. "$ref": "#/definitions/controllers.ResultError"
  1088. }
  1089. }
  1090. }
  1091. }
  1092. },
  1093. "/deleteGlobalcode": {
  1094. "post": {
  1095. "description": "根据字典编码或ID删除指定系统字典定义",
  1096. "consumes": [
  1097. "application/x-www-form-urlencoded"
  1098. ],
  1099. "produces": [
  1100. "application/json"
  1101. ],
  1102. "tags": [
  1103. "基础服务接口"
  1104. ],
  1105. "summary": "删除指定系统字典定义",
  1106. "parameters": [
  1107. {
  1108. "type": "string",
  1109. "description": "系统字典编码",
  1110. "name": "code",
  1111. "in": "query"
  1112. },
  1113. {
  1114. "type": "string",
  1115. "description": "系统字典ID",
  1116. "name": "id",
  1117. "in": "query"
  1118. }
  1119. ],
  1120. "responses": {
  1121. "200": {
  1122. "description": "OK",
  1123. "schema": {
  1124. "$ref": "#/definitions/controllers.WarpOK"
  1125. }
  1126. },
  1127. "500": {
  1128. "description": "Internal Server Error",
  1129. "schema": {
  1130. "$ref": "#/definitions/controllers.WarpError"
  1131. }
  1132. }
  1133. }
  1134. }
  1135. },
  1136. "/doc/stat/1": {
  1137. "get": {
  1138. "description": "资料完整度统计",
  1139. "consumes": [
  1140. "application/x-www-form-urlencoded"
  1141. ],
  1142. "produces": [
  1143. "application/json"
  1144. ],
  1145. "tags": [
  1146. "统计分析服务接口"
  1147. ],
  1148. "summary": "资料完整度统计",
  1149. "parameters": [
  1150. {
  1151. "type": "integer",
  1152. "description": "区域ID",
  1153. "name": "id",
  1154. "in": "query"
  1155. }
  1156. ],
  1157. "responses": {
  1158. "200": {
  1159. "description": "OK",
  1160. "schema": {
  1161. "$ref": "#/definitions/controllers.ResultError"
  1162. }
  1163. },
  1164. "500": {
  1165. "description": "Internal Server Error",
  1166. "schema": {
  1167. "type": "status"
  1168. }
  1169. }
  1170. }
  1171. }
  1172. },
  1173. "/expTableData": {
  1174. "get": {
  1175. "description": "Excel数据导出。导出成功时将返回导出文件的下载地址。",
  1176. "consumes": [
  1177. "application/x-www-form-urlencoded"
  1178. ],
  1179. "produces": [
  1180. "application/json"
  1181. ],
  1182. "tags": [
  1183. "文件/附件服务接口"
  1184. ],
  1185. "summary": "Excel数据导出",
  1186. "parameters": [
  1187. {
  1188. "type": "string",
  1189. "description": "业务类型。值为:scd-comp-result(差异对比结果)\\scl-check-result(SCL校验结果)之一",
  1190. "name": "code",
  1191. "in": "query",
  1192. "required": true
  1193. },
  1194. {
  1195. "type": "string",
  1196. "description": "数据标题",
  1197. "name": "caption",
  1198. "in": "query"
  1199. },
  1200. {
  1201. "type": "string",
  1202. "description": "导出的数据列,与expcolnames一一对应。从个数据列之间使用逗号分隔。未设置时将导出业务对应的所有列",
  1203. "name": "expcols",
  1204. "in": "query"
  1205. },
  1206. {
  1207. "type": "string",
  1208. "description": "导出的数据列对应的名称,与expcols一一一对应。从个数据列名之间使用逗号分隔。未设置时将导出业务对应的所有列",
  1209. "name": "expcolnames",
  1210. "in": "query"
  1211. }
  1212. ],
  1213. "responses": {
  1214. "200": {
  1215. "description": "OK",
  1216. "schema": {
  1217. "$ref": "#/definitions/controllers.ResultOK"
  1218. }
  1219. },
  1220. "500": {
  1221. "description": "Internal Server Error",
  1222. "schema": {
  1223. "$ref": "#/definitions/controllers.ResultError"
  1224. }
  1225. }
  1226. }
  1227. }
  1228. },
  1229. "/flow/cnf/deleteuser": {
  1230. "post": {
  1231. "description": "删除指定流程的节点人员配置信息",
  1232. "consumes": [
  1233. "application/x-www-form-urlencoded"
  1234. ],
  1235. "produces": [
  1236. "application/json"
  1237. ],
  1238. "tags": [
  1239. "签入签出流程服务接口"
  1240. ],
  1241. "summary": "删除指定流程的节点人员配置信息",
  1242. "parameters": [
  1243. {
  1244. "type": "string",
  1245. "description": "节点已分配的人员ID",
  1246. "name": "user_id",
  1247. "in": "formData",
  1248. "required": true
  1249. },
  1250. {
  1251. "type": "string",
  1252. "description": "节点与人员的分配记录ID",
  1253. "name": "node_inst_id",
  1254. "in": "formData",
  1255. "required": true
  1256. }
  1257. ],
  1258. "responses": {
  1259. "200": {
  1260. "description": "OK",
  1261. "schema": {
  1262. "$ref": "#/definitions/controllers.ResultOK"
  1263. }
  1264. },
  1265. "500": {
  1266. "description": "Internal Server Error",
  1267. "schema": {
  1268. "$ref": "#/definitions/controllers.ResultError"
  1269. }
  1270. }
  1271. }
  1272. }
  1273. },
  1274. "/flow/cnf/getinfo": {
  1275. "get": {
  1276. "description": "获取流程配置信息",
  1277. "consumes": [
  1278. "application/x-www-form-urlencoded"
  1279. ],
  1280. "produces": [
  1281. "application/json"
  1282. ],
  1283. "tags": [
  1284. "签入签出流程服务接口"
  1285. ],
  1286. "summary": "获取流程配置信息",
  1287. "parameters": [
  1288. {
  1289. "type": "string",
  1290. "description": "变电站ID",
  1291. "name": "station_id",
  1292. "in": "query",
  1293. "required": true
  1294. },
  1295. {
  1296. "type": "string",
  1297. "description": "流程类型。值为:3(SCD签入)、4(SCD签出)之一",
  1298. "name": "flow_type",
  1299. "in": "query"
  1300. },
  1301. {
  1302. "type": "string",
  1303. "description": "是否需要根据当前登录人员进行节点过滤,为1表示需要,主要用于流转时获取节点列表;否则为获取全节点,主要用于后台配置",
  1304. "name": "userfilter",
  1305. "in": "query"
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "description": "OK",
  1311. "schema": {
  1312. "$ref": "#/definitions/controllers.ResultOK"
  1313. }
  1314. },
  1315. "500": {
  1316. "description": "Internal Server Error",
  1317. "schema": {
  1318. "$ref": "#/definitions/controllers.ResultError"
  1319. }
  1320. }
  1321. }
  1322. }
  1323. },
  1324. "/flow/getlastoutworkbook": {
  1325. "get": {
  1326. "description": "获取指定站最新签出流程详细信息",
  1327. "consumes": [
  1328. "application/x-www-form-urlencoded"
  1329. ],
  1330. "produces": [
  1331. "application/json"
  1332. ],
  1333. "tags": [
  1334. "签入签出流程服务接口"
  1335. ],
  1336. "summary": "获取指定站最新签出流程详细信息",
  1337. "parameters": [
  1338. {
  1339. "type": "string",
  1340. "description": "变电站ID",
  1341. "name": "station_id",
  1342. "in": "query",
  1343. "required": true
  1344. }
  1345. ],
  1346. "responses": {
  1347. "200": {
  1348. "description": "OK",
  1349. "schema": {
  1350. "$ref": "#/definitions/controllers.ResultOK"
  1351. }
  1352. },
  1353. "500": {
  1354. "description": "Internal Server Error",
  1355. "schema": {
  1356. "$ref": "#/definitions/controllers.ResultError"
  1357. }
  1358. }
  1359. }
  1360. }
  1361. },
  1362. "/flow/lock/list": {
  1363. "get": {
  1364. "description": "获取指定站的锁定流程记录列表",
  1365. "consumes": [
  1366. "application/x-www-form-urlencoded"
  1367. ],
  1368. "produces": [
  1369. "application/json"
  1370. ],
  1371. "tags": [
  1372. "签入签出流程服务接口"
  1373. ],
  1374. "summary": "获取指定站的锁定流程记录列表",
  1375. "parameters": [
  1376. {
  1377. "type": "string",
  1378. "description": "变电站ID",
  1379. "name": "station_id",
  1380. "in": "query",
  1381. "required": true
  1382. }
  1383. ],
  1384. "responses": {
  1385. "200": {
  1386. "description": "OK",
  1387. "schema": {
  1388. "$ref": "#/definitions/controllers.ResultOK"
  1389. }
  1390. },
  1391. "500": {
  1392. "description": "Internal Server Error",
  1393. "schema": {
  1394. "$ref": "#/definitions/controllers.ResultError"
  1395. }
  1396. }
  1397. }
  1398. }
  1399. },
  1400. "/flow/node/getdata": {
  1401. "get": {
  1402. "description": "获取指节点的详细数据",
  1403. "consumes": [
  1404. "application/x-www-form-urlencoded"
  1405. ],
  1406. "produces": [
  1407. "application/json"
  1408. ],
  1409. "tags": [
  1410. "签入签出流程服务接口"
  1411. ],
  1412. "summary": "获取指节点的详细数据",
  1413. "parameters": [
  1414. {
  1415. "type": "string",
  1416. "description": "变电站ID",
  1417. "name": "station_id",
  1418. "in": "query",
  1419. "required": true
  1420. },
  1421. {
  1422. "type": "string",
  1423. "description": "节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一",
  1424. "name": "node_code",
  1425. "in": "query",
  1426. "required": true
  1427. },
  1428. {
  1429. "type": "integer",
  1430. "description": "流程ID",
  1431. "name": "flow_run_id",
  1432. "in": "query",
  1433. "required": true
  1434. },
  1435. {
  1436. "type": "string",
  1437. "description": "流程类型,值为:3(SCD签入)、4(SCD签出)之一",
  1438. "name": "flow_type",
  1439. "in": "query"
  1440. }
  1441. ],
  1442. "responses": {
  1443. "200": {
  1444. "description": "OK",
  1445. "schema": {
  1446. "$ref": "#/definitions/controllers.ResultOK"
  1447. }
  1448. },
  1449. "500": {
  1450. "description": "Internal Server Error",
  1451. "schema": {
  1452. "$ref": "#/definitions/controllers.ResultError"
  1453. }
  1454. }
  1455. }
  1456. }
  1457. },
  1458. "/flow/node/refuser": {
  1459. "post": {
  1460. "description": "保存流程配置信息",
  1461. "consumes": [
  1462. "application/x-www-form-urlencoded"
  1463. ],
  1464. "produces": [
  1465. "application/json"
  1466. ],
  1467. "tags": [
  1468. "签入签出流程服务接口"
  1469. ],
  1470. "summary": "保存流程配置信息",
  1471. "parameters": [
  1472. {
  1473. "type": "string",
  1474. "description": "变电站ID",
  1475. "name": "station_id",
  1476. "in": "formData",
  1477. "required": true
  1478. },
  1479. {
  1480. "type": "string",
  1481. "description": "节点编号ID",
  1482. "name": "node_id",
  1483. "in": "formData",
  1484. "required": true
  1485. },
  1486. {
  1487. "type": "string",
  1488. "description": "有该节点权限的人员ID列表,多个ID之间用逗号分隔",
  1489. "name": "user_ids",
  1490. "in": "formData",
  1491. "required": true
  1492. },
  1493. {
  1494. "type": "string",
  1495. "description": "节点与人员的分配记录ID",
  1496. "name": "node_inst_id",
  1497. "in": "formData"
  1498. }
  1499. ],
  1500. "responses": {
  1501. "200": {
  1502. "description": "OK",
  1503. "schema": {
  1504. "$ref": "#/definitions/controllers.ResultOK"
  1505. }
  1506. },
  1507. "500": {
  1508. "description": "Internal Server Error",
  1509. "schema": {
  1510. "$ref": "#/definitions/controllers.ResultError"
  1511. }
  1512. }
  1513. }
  1514. }
  1515. },
  1516. "/flow/run/list": {
  1517. "get": {
  1518. "description": "获取指定站的签入签出流程记录列表",
  1519. "consumes": [
  1520. "application/x-www-form-urlencoded"
  1521. ],
  1522. "produces": [
  1523. "application/json"
  1524. ],
  1525. "tags": [
  1526. "签入签出流程服务接口"
  1527. ],
  1528. "summary": "获取指定站的签入签出流程记录列表",
  1529. "parameters": [
  1530. {
  1531. "type": "string",
  1532. "description": "变电站ID",
  1533. "name": "station_id",
  1534. "in": "query",
  1535. "required": true
  1536. },
  1537. {
  1538. "type": "integer",
  1539. "description": "当前页码,默认为1",
  1540. "name": "pageno",
  1541. "in": "query",
  1542. "required": true
  1543. },
  1544. {
  1545. "type": "integer",
  1546. "description": "每页记录条数,默认为20",
  1547. "name": "pagesize",
  1548. "in": "query",
  1549. "required": true
  1550. },
  1551. {
  1552. "type": "string",
  1553. "description": "查询条件:开始日期",
  1554. "name": "dt1",
  1555. "in": "query"
  1556. },
  1557. {
  1558. "type": "string",
  1559. "description": "查询条件:结束日期",
  1560. "name": "dt2",
  1561. "in": "query"
  1562. },
  1563. {
  1564. "type": "string",
  1565. "description": "查询条件:SCD名称。模糊匹配",
  1566. "name": "name",
  1567. "in": "query"
  1568. },
  1569. {
  1570. "type": "string",
  1571. "description": "查询条件:流程类型,值为:3(SCD签入)、4(SCD签出)之一",
  1572. "name": "flowtype",
  1573. "in": "query"
  1574. },
  1575. {
  1576. "type": "string",
  1577. "description": "查询条件:流程状态,值为:0 处理中 1 结束 2 驳回之一",
  1578. "name": "flowstate",
  1579. "in": "query"
  1580. }
  1581. ],
  1582. "responses": {
  1583. "200": {
  1584. "description": "OK",
  1585. "schema": {
  1586. "$ref": "#/definitions/controllers.ResultOK"
  1587. }
  1588. },
  1589. "500": {
  1590. "description": "Internal Server Error",
  1591. "schema": {
  1592. "$ref": "#/definitions/controllers.ResultError"
  1593. }
  1594. }
  1595. }
  1596. }
  1597. },
  1598. "/flow/run/nodedeal/save": {
  1599. "post": {
  1600. "description": "保存指定站的签入签出节点信息",
  1601. "consumes": [
  1602. "application/x-www-form-urlencoded"
  1603. ],
  1604. "produces": [
  1605. "application/json"
  1606. ],
  1607. "tags": [
  1608. "签入签出流程服务接口"
  1609. ],
  1610. "summary": "保存指定站的签入签出节点信息",
  1611. "parameters": [
  1612. {
  1613. "type": "string",
  1614. "description": "变电站ID",
  1615. "name": "station_id",
  1616. "in": "formData",
  1617. "required": true
  1618. },
  1619. {
  1620. "type": "string",
  1621. "description": "节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一",
  1622. "name": "node_code",
  1623. "in": "formData",
  1624. "required": true
  1625. },
  1626. {
  1627. "type": "string",
  1628. "description": "节点填录的所有信息,为JSON对象序列化后的字符串。",
  1629. "name": "content",
  1630. "in": "formData",
  1631. "required": true
  1632. },
  1633. {
  1634. "type": "integer",
  1635. "description": "流程ID",
  1636. "name": "flow_run_id",
  1637. "in": "formData",
  1638. "required": true
  1639. },
  1640. {
  1641. "type": "string",
  1642. "description": "操作类型。1 通过 0 驳回",
  1643. "name": "opt",
  1644. "in": "formData"
  1645. },
  1646. {
  1647. "type": "string",
  1648. "description": "流程类型,值为:3(SCD签入)、4(SCD签出)之一",
  1649. "name": "flow_type",
  1650. "in": "formData"
  1651. }
  1652. ],
  1653. "responses": {
  1654. "200": {
  1655. "description": "OK",
  1656. "schema": {
  1657. "$ref": "#/definitions/controllers.ResultOK"
  1658. }
  1659. },
  1660. "500": {
  1661. "description": "Internal Server Error",
  1662. "schema": {
  1663. "$ref": "#/definitions/controllers.ResultError"
  1664. }
  1665. }
  1666. }
  1667. }
  1668. },
  1669. "/flow/stat/list": {
  1670. "get": {
  1671. "description": "SCD签入签出统计",
  1672. "consumes": [
  1673. "application/x-www-form-urlencoded"
  1674. ],
  1675. "produces": [
  1676. "application/json"
  1677. ],
  1678. "tags": [
  1679. "统计分析服务接口"
  1680. ],
  1681. "summary": "SCD签入签出统计",
  1682. "parameters": [
  1683. {
  1684. "type": "integer",
  1685. "description": "变电站ID",
  1686. "name": "station_id",
  1687. "in": "query"
  1688. }
  1689. ],
  1690. "responses": {
  1691. "200": {
  1692. "description": "OK",
  1693. "schema": {
  1694. "$ref": "#/definitions/controllers.ResultError"
  1695. }
  1696. },
  1697. "500": {
  1698. "description": "Internal Server Error",
  1699. "schema": {
  1700. "type": "status"
  1701. }
  1702. }
  1703. }
  1704. }
  1705. },
  1706. "/getGlobalChildrenCode": {
  1707. "get": {
  1708. "description": "获取指定系统字典的下级字典码定义",
  1709. "consumes": [
  1710. "application/x-www-form-urlencoded"
  1711. ],
  1712. "produces": [
  1713. "application/json"
  1714. ],
  1715. "tags": [
  1716. "基础服务接口"
  1717. ],
  1718. "summary": "获取指定系统字典的下级字典码定义",
  1719. "parameters": [
  1720. {
  1721. "type": "string",
  1722. "description": "未指定code时,将返回根字典下的子字典定义列表。",
  1723. "name": "code",
  1724. "in": "query"
  1725. }
  1726. ],
  1727. "responses": {
  1728. "200": {
  1729. "description": "OK",
  1730. "schema": {
  1731. "$ref": "#/definitions/controllers.ResultOK"
  1732. }
  1733. },
  1734. "500": {
  1735. "description": "Internal Server Error",
  1736. "schema": {
  1737. "$ref": "#/definitions/controllers.ResultError"
  1738. }
  1739. }
  1740. }
  1741. }
  1742. },
  1743. "/getGlobalCode": {
  1744. "get": {
  1745. "description": "查询系统字典列表",
  1746. "consumes": [
  1747. "application/x-www-form-urlencoded"
  1748. ],
  1749. "produces": [
  1750. "application/json"
  1751. ],
  1752. "tags": [
  1753. "基础服务接口"
  1754. ],
  1755. "summary": "查询系统字典列表",
  1756. "parameters": [
  1757. {
  1758. "type": "integer",
  1759. "description": "当前查询的页码。默认为1",
  1760. "name": "pageindex",
  1761. "in": "query"
  1762. },
  1763. {
  1764. "type": "integer",
  1765. "description": "每页显示的数据记录数,默认为20",
  1766. "name": "pagesize",
  1767. "in": "query"
  1768. },
  1769. {
  1770. "type": "string",
  1771. "description": "查询条件:指定的父级字典码",
  1772. "name": "pcode",
  1773. "in": "query"
  1774. },
  1775. {
  1776. "type": "string",
  1777. "description": "查询条件:指定的字典码",
  1778. "name": "code",
  1779. "in": "query"
  1780. }
  1781. ],
  1782. "responses": {
  1783. "200": {
  1784. "description": "OK",
  1785. "schema": {
  1786. "$ref": "#/definitions/controllers.ResultOK"
  1787. }
  1788. },
  1789. "500": {
  1790. "description": "Internal Server Error",
  1791. "schema": {
  1792. "$ref": "#/definitions/controllers.ResultError"
  1793. }
  1794. }
  1795. }
  1796. }
  1797. },
  1798. "/getGlobalCode/byid": {
  1799. "get": {
  1800. "description": "根据id获取字典定义",
  1801. "consumes": [
  1802. "application/x-www-form-urlencoded"
  1803. ],
  1804. "produces": [
  1805. "application/json"
  1806. ],
  1807. "tags": [
  1808. "基础服务接口"
  1809. ],
  1810. "summary": "根据id获取字典定义",
  1811. "parameters": [
  1812. {
  1813. "type": "string",
  1814. "description": "系统字典码ID",
  1815. "name": "id",
  1816. "in": "query"
  1817. }
  1818. ],
  1819. "responses": {
  1820. "200": {
  1821. "description": "OK",
  1822. "schema": {
  1823. "$ref": "#/definitions/controllers.ResultOK"
  1824. }
  1825. },
  1826. "500": {
  1827. "description": "Internal Server Error",
  1828. "schema": {
  1829. "$ref": "#/definitions/controllers.ResultError"
  1830. }
  1831. }
  1832. }
  1833. }
  1834. },
  1835. "/getRoleFuncList": {
  1836. "get": {
  1837. "description": "获取指定角色的功能点列表",
  1838. "consumes": [
  1839. "application/x-www-form-urlencoded"
  1840. ],
  1841. "produces": [
  1842. "application/json"
  1843. ],
  1844. "tags": [
  1845. "基础服务接口"
  1846. ],
  1847. "summary": "获取指定角色的功能点列表",
  1848. "parameters": [
  1849. {
  1850. "type": "integer",
  1851. "description": "角色ID",
  1852. "name": "roleid",
  1853. "in": "query",
  1854. "required": true
  1855. }
  1856. ],
  1857. "responses": {
  1858. "200": {
  1859. "description": "OK",
  1860. "schema": {
  1861. "$ref": "#/definitions/controllers.WarpOK"
  1862. }
  1863. },
  1864. "500": {
  1865. "description": "Internal Server Error",
  1866. "schema": {
  1867. "$ref": "#/definitions/controllers.WarpError"
  1868. }
  1869. }
  1870. }
  1871. }
  1872. },
  1873. "/getSysParamList": {
  1874. "get": {
  1875. "description": "获取全部或者指定的系统参数列表",
  1876. "consumes": [
  1877. "application/x-www-form-urlencoded"
  1878. ],
  1879. "produces": [
  1880. "application/json"
  1881. ],
  1882. "tags": [
  1883. "基础服务接口"
  1884. ],
  1885. "summary": "获取全部或者指定的系统参数列表",
  1886. "parameters": [
  1887. {
  1888. "type": "string",
  1889. "description": "参数名",
  1890. "name": "param_name",
  1891. "in": "query"
  1892. }
  1893. ],
  1894. "responses": {
  1895. "200": {
  1896. "description": "OK",
  1897. "schema": {
  1898. "$ref": "#/definitions/controllers.ResultOK"
  1899. }
  1900. },
  1901. "500": {
  1902. "description": "Internal Server Error",
  1903. "schema": {
  1904. "$ref": "#/definitions/controllers.ResultError"
  1905. }
  1906. }
  1907. }
  1908. }
  1909. },
  1910. "/getSyslogList": {
  1911. "get": {
  1912. "description": "查询操作日志列表",
  1913. "consumes": [
  1914. "application/x-www-form-urlencoded"
  1915. ],
  1916. "produces": [
  1917. "application/json"
  1918. ],
  1919. "tags": [
  1920. "基础服务接口"
  1921. ],
  1922. "summary": "查询操作日志列表",
  1923. "parameters": [
  1924. {
  1925. "type": "integer",
  1926. "description": "当前查询页码。默认为1",
  1927. "name": "pageindex",
  1928. "in": "query",
  1929. "required": true
  1930. },
  1931. {
  1932. "type": "integer",
  1933. "description": "每页显示数据条数。默认20",
  1934. "name": "pagesize",
  1935. "in": "query",
  1936. "required": true
  1937. },
  1938. {
  1939. "type": "string",
  1940. "description": "查询条件:结束日期",
  1941. "name": "enddate",
  1942. "in": "query"
  1943. },
  1944. {
  1945. "type": "string",
  1946. "description": "查询条件:开始日期",
  1947. "name": "startdate",
  1948. "in": "query"
  1949. },
  1950. {
  1951. "type": "string",
  1952. "description": "查询条件:日志内容。模糊匹配",
  1953. "name": "description",
  1954. "in": "query"
  1955. },
  1956. {
  1957. "type": "string",
  1958. "description": "查询条件:操作人姓名。模糊匹配",
  1959. "name": "staff",
  1960. "in": "query"
  1961. },
  1962. {
  1963. "type": "string",
  1964. "description": "查询条件:操作IP地址。模糊匹配",
  1965. "name": "ip",
  1966. "in": "query"
  1967. },
  1968. {
  1969. "type": "integer",
  1970. "description": "查询条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功",
  1971. "name": "success",
  1972. "in": "query"
  1973. },
  1974. {
  1975. "type": "integer",
  1976. "description": "查询条件:操作类型。关联系统字典log_opttype。",
  1977. "name": "opttype",
  1978. "in": "query"
  1979. },
  1980. {
  1981. "type": "integer",
  1982. "description": "查询条件:审计类型。关联系统字典log_audittype。",
  1983. "name": "audittype",
  1984. "in": "query"
  1985. },
  1986. {
  1987. "type": "integer",
  1988. "description": "查询条件:事件类型。关联系统字典log_eventtype。",
  1989. "name": "eventtype",
  1990. "in": "query"
  1991. },
  1992. {
  1993. "type": "integer",
  1994. "description": "查询条件:事件等级。关联系统字典log_eventlevel。",
  1995. "name": "eventlevel",
  1996. "in": "query"
  1997. }
  1998. ],
  1999. "responses": {
  2000. "200": {
  2001. "description": "OK",
  2002. "schema": {
  2003. "$ref": "#/definitions/controllers.ResultOK"
  2004. }
  2005. },
  2006. "500": {
  2007. "description": "Internal Server Error",
  2008. "schema": {
  2009. "$ref": "#/definitions/controllers.ResultError"
  2010. }
  2011. }
  2012. }
  2013. }
  2014. },
  2015. "/getUser": {
  2016. "get": {
  2017. "description": "查询用户信息",
  2018. "consumes": [
  2019. "application/x-www-form-urlencoded"
  2020. ],
  2021. "produces": [
  2022. "application/json"
  2023. ],
  2024. "tags": [
  2025. "基础服务接口"
  2026. ],
  2027. "summary": "查询指定用户的详细信息",
  2028. "parameters": [
  2029. {
  2030. "type": "integer",
  2031. "description": "用户ID",
  2032. "name": "id",
  2033. "in": "query",
  2034. "required": true
  2035. }
  2036. ],
  2037. "responses": {
  2038. "200": {
  2039. "description": "OK",
  2040. "schema": {
  2041. "$ref": "#/definitions/controllers.WarpOK"
  2042. }
  2043. },
  2044. "500": {
  2045. "description": "Internal Server Error",
  2046. "schema": {
  2047. "$ref": "#/definitions/controllers.WarpError"
  2048. }
  2049. }
  2050. }
  2051. }
  2052. },
  2053. "/getUserAreaList": {
  2054. "get": {
  2055. "description": "获取指定用户所管理的区域列表",
  2056. "consumes": [
  2057. "application/x-www-form-urlencoded"
  2058. ],
  2059. "produces": [
  2060. "application/json"
  2061. ],
  2062. "tags": [
  2063. "基础服务接口"
  2064. ],
  2065. "summary": "获取指定用户所管理的区域列表",
  2066. "parameters": [
  2067. {
  2068. "type": "integer",
  2069. "description": "用户ID",
  2070. "name": "userid",
  2071. "in": "query",
  2072. "required": true
  2073. }
  2074. ],
  2075. "responses": {
  2076. "200": {
  2077. "description": "OK",
  2078. "schema": {
  2079. "$ref": "#/definitions/controllers.ResultOK"
  2080. }
  2081. },
  2082. "500": {
  2083. "description": "Internal Server Error",
  2084. "schema": {
  2085. "$ref": "#/definitions/controllers.ResultError"
  2086. }
  2087. }
  2088. }
  2089. }
  2090. },
  2091. "/getUserPrivList": {
  2092. "get": {
  2093. "description": "指定用户的功能列表。非RBAC模式下有效",
  2094. "consumes": [
  2095. "application/x-www-form-urlencoded"
  2096. ],
  2097. "produces": [
  2098. "application/json"
  2099. ],
  2100. "tags": [
  2101. "基础服务接口"
  2102. ],
  2103. "summary": "指定用户的功能列表",
  2104. "parameters": [
  2105. {
  2106. "type": "integer",
  2107. "description": "用户ID",
  2108. "name": "id",
  2109. "in": "query",
  2110. "required": true
  2111. }
  2112. ],
  2113. "responses": {
  2114. "200": {
  2115. "description": "OK",
  2116. "schema": {
  2117. "$ref": "#/definitions/controllers.WarpOK"
  2118. }
  2119. },
  2120. "500": {
  2121. "description": "Internal Server Error",
  2122. "schema": {
  2123. "$ref": "#/definitions/controllers.WarpError"
  2124. }
  2125. }
  2126. }
  2127. }
  2128. },
  2129. "/getVersion": {
  2130. "get": {
  2131. "description": "获取当前程序版本",
  2132. "consumes": [
  2133. "application/x-www-form-urlencoded"
  2134. ],
  2135. "produces": [
  2136. "application/json"
  2137. ],
  2138. "tags": [
  2139. "基础服务接口"
  2140. ],
  2141. "summary": "获取当前程序版本",
  2142. "responses": {
  2143. "200": {
  2144. "description": "OK",
  2145. "schema": {
  2146. "$ref": "#/definitions/controllers.WarpOK"
  2147. }
  2148. },
  2149. "500": {
  2150. "description": "Internal Server Error",
  2151. "schema": {
  2152. "$ref": "#/definitions/controllers.WarpError"
  2153. }
  2154. }
  2155. }
  2156. }
  2157. },
  2158. "/get_menu_tree": {
  2159. "get": {
  2160. "description": "获取角色的已分配资源ID列表",
  2161. "consumes": [
  2162. "application/x-www-form-urlencoded"
  2163. ],
  2164. "produces": [
  2165. "application/json"
  2166. ],
  2167. "tags": [
  2168. "基础服务接口"
  2169. ],
  2170. "summary": "获取角色的已分配资源ID列表",
  2171. "parameters": [
  2172. {
  2173. "type": "string",
  2174. "description": "角色ID",
  2175. "name": "roleid",
  2176. "in": "query",
  2177. "required": true
  2178. }
  2179. ],
  2180. "responses": {
  2181. "200": {
  2182. "description": "OK",
  2183. "schema": {
  2184. "$ref": "#/definitions/controllers.ResultOK"
  2185. }
  2186. },
  2187. "500": {
  2188. "description": "Internal Server Error",
  2189. "schema": {
  2190. "$ref": "#/definitions/controllers.ResultError"
  2191. }
  2192. }
  2193. }
  2194. }
  2195. },
  2196. "/ied/stat": {
  2197. "get": {
  2198. "description": "SCD装置分类统计",
  2199. "consumes": [
  2200. "application/x-www-form-urlencoded"
  2201. ],
  2202. "produces": [
  2203. "application/json"
  2204. ],
  2205. "tags": [
  2206. "统计分析服务接口"
  2207. ],
  2208. "summary": "SCD装置分类统计",
  2209. "parameters": [
  2210. {
  2211. "type": "integer",
  2212. "description": "变电站ID",
  2213. "name": "station_id",
  2214. "in": "query"
  2215. }
  2216. ],
  2217. "responses": {
  2218. "200": {
  2219. "description": "OK",
  2220. "schema": {
  2221. "$ref": "#/definitions/controllers.ResultError"
  2222. }
  2223. },
  2224. "500": {
  2225. "description": "Internal Server Error",
  2226. "schema": {
  2227. "type": "status"
  2228. }
  2229. }
  2230. }
  2231. }
  2232. },
  2233. "/keep-alive": {
  2234. "get": {
  2235. "description": "客户端心跳保持,由浏览器或客户端发起请求,以表示其还处于使用中",
  2236. "consumes": [
  2237. "application/x-www-form-urlencoded"
  2238. ],
  2239. "produces": [
  2240. "application/json"
  2241. ],
  2242. "tags": [
  2243. "基础服务接口"
  2244. ],
  2245. "summary": "客户端心跳",
  2246. "responses": {
  2247. "200": {
  2248. "description": "OK",
  2249. "schema": {
  2250. "type": "status"
  2251. }
  2252. },
  2253. "500": {
  2254. "description": "Internal Server Error",
  2255. "schema": {
  2256. "type": "status"
  2257. }
  2258. }
  2259. }
  2260. }
  2261. },
  2262. "/log/backup": {
  2263. "post": {
  2264. "description": "操作日志备份",
  2265. "consumes": [
  2266. "application/x-www-form-urlencoded"
  2267. ],
  2268. "produces": [
  2269. "application/json"
  2270. ],
  2271. "tags": [
  2272. "基础服务接口"
  2273. ],
  2274. "summary": "操作日志备份",
  2275. "parameters": [
  2276. {
  2277. "type": "string",
  2278. "description": "备份结束日期",
  2279. "name": "enddate",
  2280. "in": "query"
  2281. },
  2282. {
  2283. "type": "string",
  2284. "description": "备份开始日期",
  2285. "name": "startdate",
  2286. "in": "query"
  2287. }
  2288. ],
  2289. "responses": {
  2290. "200": {
  2291. "description": "OK",
  2292. "schema": {
  2293. "$ref": "#/definitions/controllers.ResultOK"
  2294. }
  2295. },
  2296. "500": {
  2297. "description": "Internal Server Error",
  2298. "schema": {
  2299. "$ref": "#/definitions/controllers.ResultError"
  2300. }
  2301. }
  2302. }
  2303. }
  2304. },
  2305. "/log/backup/del": {
  2306. "post": {
  2307. "description": "操作日志备份删除",
  2308. "consumes": [
  2309. "application/x-www-form-urlencoded"
  2310. ],
  2311. "produces": [
  2312. "application/json"
  2313. ],
  2314. "tags": [
  2315. "基础服务接口"
  2316. ],
  2317. "summary": "操作日志备份删除",
  2318. "parameters": [
  2319. {
  2320. "type": "integer",
  2321. "description": "备份记录ID",
  2322. "name": "id",
  2323. "in": "query",
  2324. "required": true
  2325. }
  2326. ],
  2327. "responses": {
  2328. "200": {
  2329. "description": "OK",
  2330. "schema": {
  2331. "$ref": "#/definitions/controllers.ResultOK"
  2332. }
  2333. },
  2334. "500": {
  2335. "description": "Internal Server Error",
  2336. "schema": {
  2337. "$ref": "#/definitions/controllers.ResultError"
  2338. }
  2339. }
  2340. }
  2341. }
  2342. },
  2343. "/log/backup/list": {
  2344. "get": {
  2345. "description": "获取操作日志备份列表",
  2346. "consumes": [
  2347. "application/x-www-form-urlencoded"
  2348. ],
  2349. "produces": [
  2350. "application/json"
  2351. ],
  2352. "tags": [
  2353. "基础服务接口"
  2354. ],
  2355. "summary": "获取操作日志备份列表",
  2356. "parameters": [
  2357. {
  2358. "type": "integer",
  2359. "description": "当前查询的分页页码,默认为1",
  2360. "name": "pageindex",
  2361. "in": "query"
  2362. },
  2363. {
  2364. "type": "integer",
  2365. "description": "每页显示的数据条数,默认为20",
  2366. "name": "pagesize",
  2367. "in": "query"
  2368. },
  2369. {
  2370. "type": "string",
  2371. "description": "备份结束日期",
  2372. "name": "enddate",
  2373. "in": "query"
  2374. },
  2375. {
  2376. "type": "string",
  2377. "description": "备份开始日期",
  2378. "name": "startdate",
  2379. "in": "query"
  2380. }
  2381. ],
  2382. "responses": {
  2383. "200": {
  2384. "description": "OK",
  2385. "schema": {
  2386. "$ref": "#/definitions/controllers.ResultOK"
  2387. }
  2388. },
  2389. "500": {
  2390. "description": "Internal Server Error",
  2391. "schema": {
  2392. "$ref": "#/definitions/controllers.ResultError"
  2393. }
  2394. }
  2395. }
  2396. }
  2397. },
  2398. "/log/chartstat": {
  2399. "get": {
  2400. "description": "操作日志分类(图形)统计",
  2401. "consumes": [
  2402. "application/x-www-form-urlencoded"
  2403. ],
  2404. "produces": [
  2405. "application/json"
  2406. ],
  2407. "tags": [
  2408. "基础服务接口"
  2409. ],
  2410. "summary": "操作日志分类(图形)统计",
  2411. "parameters": [
  2412. {
  2413. "type": "string",
  2414. "description": "统计条件:结束日期",
  2415. "name": "enddate",
  2416. "in": "query"
  2417. },
  2418. {
  2419. "type": "string",
  2420. "description": "统计条件:开始日期",
  2421. "name": "startdate",
  2422. "in": "query"
  2423. },
  2424. {
  2425. "type": "string",
  2426. "description": "统计条件:日志内容。模糊匹配",
  2427. "name": "description",
  2428. "in": "query"
  2429. },
  2430. {
  2431. "type": "string",
  2432. "description": "统计条件:操作人姓名。模糊匹配",
  2433. "name": "staff",
  2434. "in": "query"
  2435. },
  2436. {
  2437. "type": "string",
  2438. "description": "统计条件:操作IP地址。模糊匹配",
  2439. "name": "ip",
  2440. "in": "query"
  2441. },
  2442. {
  2443. "type": "integer",
  2444. "description": "统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功",
  2445. "name": "success",
  2446. "in": "query"
  2447. },
  2448. {
  2449. "type": "integer",
  2450. "description": "统计条件:操作类型。关联系统字典log_opttype。",
  2451. "name": "opttype",
  2452. "in": "query"
  2453. },
  2454. {
  2455. "type": "integer",
  2456. "description": "统计条件:审计类型。关联系统字典log_audittype。",
  2457. "name": "audittype",
  2458. "in": "query"
  2459. },
  2460. {
  2461. "type": "integer",
  2462. "description": "统计条件:事件类型。关联系统字典log_eventtype。",
  2463. "name": "eventtype",
  2464. "in": "query"
  2465. },
  2466. {
  2467. "type": "integer",
  2468. "description": "统计条件:事件等级。关联系统字典log_eventlevel。",
  2469. "name": "eventlevel",
  2470. "in": "query"
  2471. },
  2472. {
  2473. "type": "integer",
  2474. "description": "统计周期。值列表为:year,month,day,hour,week,默认为hour。",
  2475. "name": "cycletype",
  2476. "in": "query"
  2477. }
  2478. ],
  2479. "responses": {
  2480. "200": {
  2481. "description": "OK",
  2482. "schema": {
  2483. "$ref": "#/definitions/controllers.ResultOK"
  2484. }
  2485. },
  2486. "500": {
  2487. "description": "Internal Server Error",
  2488. "schema": {
  2489. "$ref": "#/definitions/controllers.ResultError"
  2490. }
  2491. }
  2492. }
  2493. }
  2494. },
  2495. "/log/datastat": {
  2496. "get": {
  2497. "description": "操作日志分类(数据列表)统计",
  2498. "consumes": [
  2499. "application/x-www-form-urlencoded"
  2500. ],
  2501. "produces": [
  2502. "application/json"
  2503. ],
  2504. "tags": [
  2505. "基础服务接口"
  2506. ],
  2507. "summary": "操作日志分类(数据列表)统计",
  2508. "parameters": [
  2509. {
  2510. "type": "integer",
  2511. "description": "统计条件:结束日期",
  2512. "name": "enddate",
  2513. "in": "query"
  2514. },
  2515. {
  2516. "type": "integer",
  2517. "description": "统计条件:开始日期",
  2518. "name": "startdate",
  2519. "in": "query"
  2520. },
  2521. {
  2522. "type": "integer",
  2523. "description": "统计条件:日志内容。模糊匹配",
  2524. "name": "description",
  2525. "in": "query"
  2526. },
  2527. {
  2528. "type": "string",
  2529. "description": "统计条件:操作人姓名。模糊匹配",
  2530. "name": "staff",
  2531. "in": "query"
  2532. },
  2533. {
  2534. "type": "string",
  2535. "description": "统计条件:操作IP地址。模糊匹配",
  2536. "name": "ip",
  2537. "in": "query"
  2538. },
  2539. {
  2540. "type": "integer",
  2541. "description": "统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功",
  2542. "name": "success",
  2543. "in": "query"
  2544. },
  2545. {
  2546. "type": "integer",
  2547. "description": "统计条件:操作类型。关联系统字典log_opttype。",
  2548. "name": "opttype",
  2549. "in": "query"
  2550. },
  2551. {
  2552. "type": "integer",
  2553. "description": "统计条件:审计类型。关联系统字典log_audittype。",
  2554. "name": "audittype",
  2555. "in": "query"
  2556. },
  2557. {
  2558. "type": "integer",
  2559. "description": "统计条件:事件类型。关联系统字典log_eventtype。",
  2560. "name": "eventtype",
  2561. "in": "query"
  2562. },
  2563. {
  2564. "type": "integer",
  2565. "description": "统计条件:事件等级。关联系统字典log_eventlevel。",
  2566. "name": "eventlevel",
  2567. "in": "query"
  2568. },
  2569. {
  2570. "type": "integer",
  2571. "description": "统计类型。值为:logtype或者空。",
  2572. "name": "stattype",
  2573. "in": "query"
  2574. }
  2575. ],
  2576. "responses": {
  2577. "200": {
  2578. "description": "OK",
  2579. "schema": {
  2580. "$ref": "#/definitions/controllers.ResultOK"
  2581. }
  2582. },
  2583. "500": {
  2584. "description": "Internal Server Error",
  2585. "schema": {
  2586. "$ref": "#/definitions/controllers.ResultError"
  2587. }
  2588. }
  2589. }
  2590. }
  2591. },
  2592. "/log/runtime_log": {
  2593. "get": {
  2594. "description": "获取当前的服务器运行日志。每次获取10Kb的日志内容,第一次获取时默认为0,继续获取时需要将上次的最大位置传给offset参数。",
  2595. "consumes": [
  2596. "application/x-www-form-urlencoded"
  2597. ],
  2598. "produces": [
  2599. "application/json"
  2600. ],
  2601. "tags": [
  2602. "基础服务接口"
  2603. ],
  2604. "summary": "获取当前的服务器运行日志",
  2605. "parameters": [
  2606. {
  2607. "type": "integer",
  2608. "description": "获取的日志起始字节位置。",
  2609. "name": "offset",
  2610. "in": "query",
  2611. "required": true
  2612. }
  2613. ],
  2614. "responses": {
  2615. "200": {
  2616. "description": "OK",
  2617. "schema": {
  2618. "$ref": "#/definitions/controllers.ResultOK"
  2619. }
  2620. },
  2621. "500": {
  2622. "description": "Internal Server Error",
  2623. "schema": {
  2624. "$ref": "#/definitions/controllers.ResultError"
  2625. }
  2626. }
  2627. }
  2628. }
  2629. },
  2630. "/login": {
  2631. "post": {
  2632. "description": "登录系统。系统会返回当前用户的相关信息,如基本信息、token等",
  2633. "consumes": [
  2634. "application/x-www-form-urlencoded"
  2635. ],
  2636. "produces": [
  2637. "application/json"
  2638. ],
  2639. "tags": [
  2640. "基础服务接口"
  2641. ],
  2642. "summary": "登录",
  2643. "parameters": [
  2644. {
  2645. "type": "string",
  2646. "description": "用户帐号",
  2647. "name": "login_account",
  2648. "in": "query",
  2649. "required": true
  2650. },
  2651. {
  2652. "type": "string",
  2653. "description": "用户密码",
  2654. "name": "pwd",
  2655. "in": "query",
  2656. "required": true
  2657. }
  2658. ],
  2659. "responses": {
  2660. "200": {
  2661. "description": "OK",
  2662. "schema": {
  2663. "$ref": "#/definitions/controllers.WarpOK"
  2664. }
  2665. },
  2666. "500": {
  2667. "description": "Internal Server Error",
  2668. "schema": {
  2669. "$ref": "#/definitions/controllers.WarpError"
  2670. }
  2671. }
  2672. }
  2673. }
  2674. },
  2675. "/logout": {
  2676. "post": {
  2677. "description": "登出系统。系统会自动清理当前用户的相关信息,如缓存、token等",
  2678. "consumes": [
  2679. "application/x-www-form-urlencoded"
  2680. ],
  2681. "produces": [
  2682. "application/json"
  2683. ],
  2684. "tags": [
  2685. "基础服务接口"
  2686. ],
  2687. "summary": "登出",
  2688. "parameters": [
  2689. {
  2690. "type": "string",
  2691. "description": "用户token码",
  2692. "name": "sessionid",
  2693. "in": "query",
  2694. "required": true
  2695. }
  2696. ],
  2697. "responses": {
  2698. "200": {
  2699. "description": "OK",
  2700. "schema": {
  2701. "$ref": "#/definitions/controllers.WarpOK"
  2702. }
  2703. },
  2704. "500": {
  2705. "description": "Internal Server Error",
  2706. "schema": {
  2707. "$ref": "#/definitions/controllers.WarpError"
  2708. }
  2709. }
  2710. }
  2711. }
  2712. },
  2713. "/net/video/play": {
  2714. "post": {
  2715. "summary": "视频播放",
  2716. "responses": {}
  2717. }
  2718. },
  2719. "/notice/info": {
  2720. "get": {
  2721. "description": "获取指定通知提醒详细信息",
  2722. "consumes": [
  2723. "application/x-www-form-urlencoded"
  2724. ],
  2725. "produces": [
  2726. "application/json"
  2727. ],
  2728. "tags": [
  2729. "通知提醒服务接口"
  2730. ],
  2731. "summary": "获取指定通知提醒详细信息",
  2732. "parameters": [
  2733. {
  2734. "type": "integer",
  2735. "description": "通知提醒记录ID",
  2736. "name": "id",
  2737. "in": "query",
  2738. "required": true
  2739. }
  2740. ],
  2741. "responses": {
  2742. "200": {
  2743. "description": "OK",
  2744. "schema": {
  2745. "$ref": "#/definitions/controllers.ResultOK"
  2746. }
  2747. },
  2748. "500": {
  2749. "description": "Internal Server Error",
  2750. "schema": {
  2751. "$ref": "#/definitions/controllers.ResultError"
  2752. }
  2753. }
  2754. }
  2755. }
  2756. },
  2757. "/notice/list": {
  2758. "get": {
  2759. "description": "获取指定站的通知提醒列表",
  2760. "consumes": [
  2761. "application/x-www-form-urlencoded"
  2762. ],
  2763. "produces": [
  2764. "application/json"
  2765. ],
  2766. "tags": [
  2767. "通知提醒服务接口"
  2768. ],
  2769. "summary": "获取指定站的通知提醒列表",
  2770. "parameters": [
  2771. {
  2772. "type": "string",
  2773. "description": "变电站ID",
  2774. "name": "station_id",
  2775. "in": "query",
  2776. "required": true
  2777. },
  2778. {
  2779. "type": "integer",
  2780. "description": "当前页码。默认为1",
  2781. "name": "pageno",
  2782. "in": "query"
  2783. },
  2784. {
  2785. "type": "integer",
  2786. "description": "每页显示记录数。默认为20",
  2787. "name": "pagesize",
  2788. "in": "query"
  2789. },
  2790. {
  2791. "type": "integer",
  2792. "description": "是否已读。0 未读或1 已读",
  2793. "name": "isread",
  2794. "in": "query"
  2795. }
  2796. ],
  2797. "responses": {
  2798. "200": {
  2799. "description": "OK",
  2800. "schema": {
  2801. "$ref": "#/definitions/controllers.ResultOK"
  2802. }
  2803. },
  2804. "500": {
  2805. "description": "Internal Server Error",
  2806. "schema": {
  2807. "$ref": "#/definitions/controllers.ResultError"
  2808. }
  2809. }
  2810. }
  2811. }
  2812. },
  2813. "/notice/read": {
  2814. "post": {
  2815. "description": "设置指定通知提醒为已读",
  2816. "consumes": [
  2817. "application/x-www-form-urlencoded"
  2818. ],
  2819. "produces": [
  2820. "application/json"
  2821. ],
  2822. "tags": [
  2823. "通知提醒服务接口"
  2824. ],
  2825. "summary": "设置指定通知提醒为已读",
  2826. "parameters": [
  2827. {
  2828. "type": "integer",
  2829. "description": "通知提醒记录ID",
  2830. "name": "id",
  2831. "in": "formData",
  2832. "required": true
  2833. }
  2834. ],
  2835. "responses": {
  2836. "200": {
  2837. "description": "OK",
  2838. "schema": {
  2839. "$ref": "#/definitions/controllers.ResultOK"
  2840. }
  2841. },
  2842. "500": {
  2843. "description": "Internal Server Error",
  2844. "schema": {
  2845. "$ref": "#/definitions/controllers.ResultError"
  2846. }
  2847. }
  2848. }
  2849. }
  2850. },
  2851. "/playWav": {
  2852. "post": {
  2853. "description": "语音播放",
  2854. "consumes": [
  2855. "application/x-www-form-urlencoded"
  2856. ],
  2857. "produces": [
  2858. "application/json"
  2859. ],
  2860. "tags": [
  2861. "基础服务接口"
  2862. ],
  2863. "summary": "语音播放",
  2864. "parameters": [
  2865. {
  2866. "type": "string",
  2867. "description": "文件名称",
  2868. "name": "filename",
  2869. "in": "query"
  2870. }
  2871. ],
  2872. "responses": {
  2873. "200": {
  2874. "description": "OK",
  2875. "schema": {
  2876. "type": "status"
  2877. }
  2878. },
  2879. "500": {
  2880. "description": "Internal Server Error",
  2881. "schema": {
  2882. "type": "status"
  2883. }
  2884. }
  2885. }
  2886. }
  2887. },
  2888. "/record/delete": {
  2889. "post": {
  2890. "description": "删除指定模型的某条数据记录",
  2891. "consumes": [
  2892. "application/x-www-form-urlencoded"
  2893. ],
  2894. "produces": [
  2895. "application/json"
  2896. ],
  2897. "tags": [
  2898. "基础服务接口"
  2899. ],
  2900. "summary": "删除指定模型的某条数据记录",
  2901. "parameters": [
  2902. {
  2903. "type": "string",
  2904. "description": "数据模型名称",
  2905. "name": "tablename",
  2906. "in": "query",
  2907. "required": true
  2908. },
  2909. {
  2910. "type": "string",
  2911. "description": "数据记录ID",
  2912. "name": "id",
  2913. "in": "query",
  2914. "required": true
  2915. },
  2916. {
  2917. "type": "string",
  2918. "description": "数据记录ID列名。默认为id",
  2919. "name": "primaryfield",
  2920. "in": "query"
  2921. }
  2922. ],
  2923. "responses": {
  2924. "200": {
  2925. "description": "OK",
  2926. "schema": {
  2927. "$ref": "#/definitions/controllers.WarpOK"
  2928. }
  2929. },
  2930. "500": {
  2931. "description": "Internal Server Error",
  2932. "schema": {
  2933. "$ref": "#/definitions/controllers.WarpError"
  2934. }
  2935. }
  2936. }
  2937. }
  2938. },
  2939. "/record/get": {
  2940. "get": {
  2941. "description": "获取指定模型的某条数据记录",
  2942. "consumes": [
  2943. "application/x-www-form-urlencoded"
  2944. ],
  2945. "produces": [
  2946. "application/json"
  2947. ],
  2948. "tags": [
  2949. "基础服务接口"
  2950. ],
  2951. "summary": "获取指定模型的某条数据记录",
  2952. "parameters": [
  2953. {
  2954. "type": "string",
  2955. "description": "数据模型名称",
  2956. "name": "tablename",
  2957. "in": "query",
  2958. "required": true
  2959. },
  2960. {
  2961. "type": "string",
  2962. "description": "数据记录ID",
  2963. "name": "id",
  2964. "in": "query",
  2965. "required": true
  2966. },
  2967. {
  2968. "type": "string",
  2969. "description": "数据记录ID列名。默认为id",
  2970. "name": "primaryfield",
  2971. "in": "query"
  2972. }
  2973. ],
  2974. "responses": {
  2975. "200": {
  2976. "description": "OK",
  2977. "schema": {
  2978. "$ref": "#/definitions/controllers.WarpOK"
  2979. }
  2980. },
  2981. "500": {
  2982. "description": "Internal Server Error",
  2983. "schema": {
  2984. "$ref": "#/definitions/controllers.WarpError"
  2985. }
  2986. }
  2987. }
  2988. }
  2989. },
  2990. "/resetUserPwd": {
  2991. "post": {
  2992. "description": "修改密码。只能修改自己的密码",
  2993. "consumes": [
  2994. "application/x-www-form-urlencoded"
  2995. ],
  2996. "produces": [
  2997. "application/json"
  2998. ],
  2999. "tags": [
  3000. "基础服务接口"
  3001. ],
  3002. "summary": "修改自己密码",
  3003. "parameters": [
  3004. {
  3005. "type": "integer",
  3006. "description": "原密码",
  3007. "name": "newpwd",
  3008. "in": "query",
  3009. "required": true
  3010. },
  3011. {
  3012. "type": "integer",
  3013. "description": "新密码",
  3014. "name": "oldpwd",
  3015. "in": "query",
  3016. "required": true
  3017. }
  3018. ],
  3019. "responses": {
  3020. "200": {
  3021. "description": "OK",
  3022. "schema": {
  3023. "$ref": "#/definitions/controllers.WarpOK"
  3024. }
  3025. },
  3026. "500": {
  3027. "description": "Internal Server Error",
  3028. "schema": {
  3029. "$ref": "#/definitions/controllers.WarpError"
  3030. }
  3031. }
  3032. }
  3033. }
  3034. },
  3035. "/saveGlobalcode": {
  3036. "post": {
  3037. "description": "保存系统字典",
  3038. "consumes": [
  3039. "application/x-www-form-urlencoded"
  3040. ],
  3041. "produces": [
  3042. "application/json"
  3043. ],
  3044. "tags": [
  3045. "基础服务接口"
  3046. ],
  3047. "summary": "保存系统字典",
  3048. "parameters": [
  3049. {
  3050. "type": "string",
  3051. "description": "系统字典名称",
  3052. "name": "name",
  3053. "in": "query",
  3054. "required": true
  3055. },
  3056. {
  3057. "type": "string",
  3058. "description": "上级系统字典编码",
  3059. "name": "parentcode",
  3060. "in": "query",
  3061. "required": true
  3062. },
  3063. {
  3064. "type": "string",
  3065. "description": "系统字典编码",
  3066. "name": "code",
  3067. "in": "query",
  3068. "required": true
  3069. },
  3070. {
  3071. "type": "string",
  3072. "description": "系统字典ID",
  3073. "name": "id",
  3074. "in": "query"
  3075. }
  3076. ],
  3077. "responses": {
  3078. "200": {
  3079. "description": "OK",
  3080. "schema": {
  3081. "$ref": "#/definitions/controllers.WarpOK"
  3082. }
  3083. },
  3084. "500": {
  3085. "description": "Internal Server Error",
  3086. "schema": {
  3087. "$ref": "#/definitions/controllers.WarpError"
  3088. }
  3089. }
  3090. }
  3091. }
  3092. },
  3093. "/saveRoleFunc": {
  3094. "post": {
  3095. "description": "保存指定角色的功能点列表",
  3096. "consumes": [
  3097. "application/x-www-form-urlencoded"
  3098. ],
  3099. "produces": [
  3100. "application/json"
  3101. ],
  3102. "tags": [
  3103. "基础服务接口"
  3104. ],
  3105. "summary": "保存指定角色的功能点列表",
  3106. "parameters": [
  3107. {
  3108. "type": "integer",
  3109. "description": "角色ID",
  3110. "name": "roleid",
  3111. "in": "query",
  3112. "required": true
  3113. },
  3114. {
  3115. "type": "string",
  3116. "description": "区域列表。JSON串,格式如:[{",
  3117. "name": "areaid",
  3118. "in": "query",
  3119. "required": true
  3120. }
  3121. ],
  3122. "responses": {
  3123. "200": {
  3124. "description": "OK",
  3125. "schema": {
  3126. "$ref": "#/definitions/controllers.WarpOK"
  3127. }
  3128. },
  3129. "500": {
  3130. "description": "Internal Server Error",
  3131. "schema": {
  3132. "$ref": "#/definitions/controllers.WarpError"
  3133. }
  3134. }
  3135. }
  3136. }
  3137. },
  3138. "/saveSysParam": {
  3139. "post": {
  3140. "description": "保存系统参数",
  3141. "consumes": [
  3142. "application/x-www-form-urlencoded"
  3143. ],
  3144. "produces": [
  3145. "application/json"
  3146. ],
  3147. "tags": [
  3148. "基础服务接口"
  3149. ],
  3150. "summary": "保存系统参数",
  3151. "parameters": [
  3152. {
  3153. "type": "string",
  3154. "description": "参数缟编码",
  3155. "name": "param_name",
  3156. "in": "query"
  3157. },
  3158. {
  3159. "type": "string",
  3160. "description": "参数值",
  3161. "name": "param_value",
  3162. "in": "query"
  3163. },
  3164. {
  3165. "type": "string",
  3166. "description": "参数描述",
  3167. "name": "param_memo",
  3168. "in": "query"
  3169. }
  3170. ],
  3171. "responses": {
  3172. "200": {
  3173. "description": "OK",
  3174. "schema": {
  3175. "$ref": "#/definitions/controllers.ResultError"
  3176. }
  3177. },
  3178. "500": {
  3179. "description": "Internal Server Error",
  3180. "schema": {
  3181. "type": "status"
  3182. }
  3183. }
  3184. }
  3185. }
  3186. },
  3187. "/saveUser": {
  3188. "post": {
  3189. "summary": "保存用户信息(已废弃)",
  3190. "responses": {}
  3191. }
  3192. },
  3193. "/saveUserAreaList": {
  3194. "post": {
  3195. "description": "保存指定用户所管理的区域列表",
  3196. "consumes": [
  3197. "application/x-www-form-urlencoded"
  3198. ],
  3199. "produces": [
  3200. "application/json"
  3201. ],
  3202. "tags": [
  3203. "基础服务接口"
  3204. ],
  3205. "summary": "保存指定用户所管理的区域列表",
  3206. "parameters": [
  3207. {
  3208. "type": "integer",
  3209. "description": "用户ID",
  3210. "name": "userid",
  3211. "in": "query",
  3212. "required": true
  3213. },
  3214. {
  3215. "type": "string",
  3216. "description": "区域列表。JSON串,格式如:[{",
  3217. "name": "areaid",
  3218. "in": "query",
  3219. "required": true
  3220. }
  3221. ],
  3222. "responses": {
  3223. "200": {
  3224. "description": "OK",
  3225. "schema": {
  3226. "$ref": "#/definitions/controllers.ResultOK"
  3227. }
  3228. },
  3229. "500": {
  3230. "description": "Internal Server Error",
  3231. "schema": {
  3232. "$ref": "#/definitions/controllers.ResultError"
  3233. }
  3234. }
  3235. }
  3236. }
  3237. },
  3238. "/saveUserPrivList": {
  3239. "post": {
  3240. "description": "保存指定用户的功能列表。非RBAC模式下有效",
  3241. "consumes": [
  3242. "application/x-www-form-urlencoded"
  3243. ],
  3244. "produces": [
  3245. "application/json"
  3246. ],
  3247. "tags": [
  3248. "基础服务接口"
  3249. ],
  3250. "summary": "保存指定用户的功能列表",
  3251. "parameters": [
  3252. {
  3253. "type": "integer",
  3254. "description": "用户ID",
  3255. "name": "id",
  3256. "in": "query",
  3257. "required": true
  3258. },
  3259. {
  3260. "type": "string",
  3261. "description": "功能ID列表,使用逗号分隔",
  3262. "name": "privids",
  3263. "in": "query",
  3264. "required": true
  3265. }
  3266. ],
  3267. "responses": {
  3268. "200": {
  3269. "description": "OK",
  3270. "schema": {
  3271. "$ref": "#/definitions/controllers.WarpOK"
  3272. }
  3273. },
  3274. "500": {
  3275. "description": "Internal Server Error",
  3276. "schema": {
  3277. "$ref": "#/definitions/controllers.WarpError"
  3278. }
  3279. }
  3280. }
  3281. }
  3282. },
  3283. "/scd/area/ied/list": {
  3284. "get": {
  3285. "description": "按校验错误等级统计校验结果",
  3286. "consumes": [
  3287. "application/x-www-form-urlencoded"
  3288. ],
  3289. "produces": [
  3290. "application/json"
  3291. ],
  3292. "tags": [
  3293. "SCD服务接口"
  3294. ],
  3295. "summary": "获取指定间隔下的IED信息",
  3296. "parameters": [
  3297. {
  3298. "type": "integer",
  3299. "description": "SCD文件ID",
  3300. "name": "scd_id",
  3301. "in": "query",
  3302. "required": true
  3303. },
  3304. {
  3305. "type": "integer",
  3306. "description": "电压等级ID",
  3307. "name": "voltage_level_id",
  3308. "in": "query"
  3309. },
  3310. {
  3311. "type": "integer",
  3312. "description": "间隔ID",
  3313. "name": "area_id",
  3314. "in": "query"
  3315. },
  3316. {
  3317. "type": "string",
  3318. "description": "装置类型ID。关联系统字典:device_type",
  3319. "name": "device_type_id",
  3320. "in": "query"
  3321. }
  3322. ],
  3323. "responses": {}
  3324. }
  3325. },
  3326. "/scd/area/list": {
  3327. "get": {
  3328. "description": "按校验错误等级统计校验结果",
  3329. "consumes": [
  3330. "application/x-www-form-urlencoded"
  3331. ],
  3332. "produces": [
  3333. "application/json"
  3334. ],
  3335. "tags": [
  3336. "SCD服务接口"
  3337. ],
  3338. "summary": "获取指定scd下的间隔信息",
  3339. "parameters": [
  3340. {
  3341. "type": "integer",
  3342. "description": "SCD文件ID",
  3343. "name": "scd_id",
  3344. "in": "query",
  3345. "required": true
  3346. },
  3347. {
  3348. "type": "integer",
  3349. "description": "电压等级ID",
  3350. "name": "voltage_level_id",
  3351. "in": "query"
  3352. }
  3353. ],
  3354. "responses": {}
  3355. }
  3356. },
  3357. "/scd/check/resultlist": {
  3358. "get": {
  3359. "description": "获取指定SCD的校验结果",
  3360. "consumes": [
  3361. "application/x-www-form-urlencoded"
  3362. ],
  3363. "produces": [
  3364. "application/json"
  3365. ],
  3366. "tags": [
  3367. "SCD服务接口"
  3368. ],
  3369. "summary": "获取指定SCD的校验结果",
  3370. "parameters": [
  3371. {
  3372. "type": "integer",
  3373. "description": "SCD文件ID",
  3374. "name": "scd_id",
  3375. "in": "query",
  3376. "required": true
  3377. },
  3378. {
  3379. "type": "integer",
  3380. "description": "当前页码。默认为1",
  3381. "name": "pageno",
  3382. "in": "query",
  3383. "required": true
  3384. },
  3385. {
  3386. "type": "integer",
  3387. "description": "每页数据记录条数。默认为20",
  3388. "name": "pagesize",
  3389. "in": "query",
  3390. "required": true
  3391. },
  3392. {
  3393. "type": "string",
  3394. "description": "SCD文件名称",
  3395. "name": "scd_name",
  3396. "in": "query"
  3397. },
  3398. {
  3399. "type": "string",
  3400. "description": "SCD文件名称",
  3401. "name": "scd_path",
  3402. "in": "query"
  3403. },
  3404. {
  3405. "type": "string",
  3406. "description": "校验错误级别",
  3407. "name": "level",
  3408. "in": "query"
  3409. },
  3410. {
  3411. "type": "string",
  3412. "description": "IED装置名称",
  3413. "name": "ied_name",
  3414. "in": "query"
  3415. },
  3416. {
  3417. "type": "string",
  3418. "description": "节点名称",
  3419. "name": "node_name",
  3420. "in": "query"
  3421. },
  3422. {
  3423. "type": "string",
  3424. "description": "节点ID",
  3425. "name": "node_id",
  3426. "in": "query"
  3427. }
  3428. ],
  3429. "responses": {}
  3430. }
  3431. },
  3432. "/scd/check/stat/level": {
  3433. "get": {
  3434. "description": "按校验错误等级统计校验结果",
  3435. "consumes": [
  3436. "application/x-www-form-urlencoded"
  3437. ],
  3438. "produces": [
  3439. "application/json"
  3440. ],
  3441. "tags": [
  3442. "SCD服务接口"
  3443. ],
  3444. "summary": "按校验错误等级统计校验结果",
  3445. "parameters": [
  3446. {
  3447. "type": "integer",
  3448. "description": "SCD文件ID",
  3449. "name": "scd_id",
  3450. "in": "query",
  3451. "required": true
  3452. },
  3453. {
  3454. "type": "string",
  3455. "description": "SCD文件名称",
  3456. "name": "scd_name",
  3457. "in": "query"
  3458. },
  3459. {
  3460. "type": "string",
  3461. "description": "SCD文件名称",
  3462. "name": "scd_path",
  3463. "in": "query"
  3464. },
  3465. {
  3466. "type": "string",
  3467. "description": "IED装置名称",
  3468. "name": "ied_name",
  3469. "in": "query"
  3470. },
  3471. {
  3472. "type": "string",
  3473. "description": "节点名称",
  3474. "name": "node_name",
  3475. "in": "query"
  3476. },
  3477. {
  3478. "type": "string",
  3479. "description": "节点ID",
  3480. "name": "node_id",
  3481. "in": "query"
  3482. }
  3483. ],
  3484. "responses": {}
  3485. }
  3486. },
  3487. "/scd/check/sum/result": {
  3488. "get": {
  3489. "description": "获取指定SCD的汇总统计结果",
  3490. "consumes": [
  3491. "application/x-www-form-urlencoded"
  3492. ],
  3493. "produces": [
  3494. "application/json"
  3495. ],
  3496. "tags": [
  3497. "SCD服务接口"
  3498. ],
  3499. "summary": "获取指定SCD的汇总统计结果",
  3500. "parameters": [
  3501. {
  3502. "type": "integer",
  3503. "description": "SCD文件ID",
  3504. "name": "scd_id",
  3505. "in": "query",
  3506. "required": true
  3507. }
  3508. ],
  3509. "responses": {}
  3510. }
  3511. },
  3512. "/scd/checkin/detail": {
  3513. "get": {
  3514. "description": "获取指定站的指定scd的签入详情",
  3515. "consumes": [
  3516. "application/x-www-form-urlencoded"
  3517. ],
  3518. "produces": [
  3519. "application/json"
  3520. ],
  3521. "tags": [
  3522. "签入签出流程服务接口"
  3523. ],
  3524. "summary": "获取指定站的指定scd的签入详情",
  3525. "parameters": [
  3526. {
  3527. "type": "string",
  3528. "description": "变电站ID",
  3529. "name": "station_id",
  3530. "in": "query",
  3531. "required": true
  3532. },
  3533. {
  3534. "type": "string",
  3535. "description": "SCD名称",
  3536. "name": "scd_name",
  3537. "in": "query"
  3538. },
  3539. {
  3540. "type": "string",
  3541. "description": "SCD文件路径",
  3542. "name": "scd_path",
  3543. "in": "query"
  3544. },
  3545. {
  3546. "type": "string",
  3547. "description": "SCD文件ID。为空时scd_name和scd_path必填",
  3548. "name": "scd_id",
  3549. "in": "query"
  3550. }
  3551. ],
  3552. "responses": {
  3553. "200": {
  3554. "description": "OK",
  3555. "schema": {
  3556. "$ref": "#/definitions/controllers.ResultOK"
  3557. }
  3558. },
  3559. "500": {
  3560. "description": "Internal Server Error",
  3561. "schema": {
  3562. "$ref": "#/definitions/controllers.ResultError"
  3563. }
  3564. }
  3565. }
  3566. }
  3567. },
  3568. "/scd/comp/iedstat/type": {
  3569. "get": {
  3570. "description": "指定装置差异对比结果分类统计",
  3571. "consumes": [
  3572. "application/x-www-form-urlencoded"
  3573. ],
  3574. "produces": [
  3575. "application/json"
  3576. ],
  3577. "tags": [
  3578. "一致性校验服务接口"
  3579. ],
  3580. "summary": "指定装置差异对比结果分类统计",
  3581. "parameters": [
  3582. {
  3583. "type": "integer",
  3584. "description": "差异比对记录ID",
  3585. "name": "comp_id",
  3586. "in": "query",
  3587. "required": true
  3588. },
  3589. {
  3590. "type": "string",
  3591. "description": "装置名称",
  3592. "name": "ied_name",
  3593. "in": "query"
  3594. },
  3595. {
  3596. "type": "string",
  3597. "description": "差异类别。值为:i|d|u之一",
  3598. "name": "comptype",
  3599. "in": "query"
  3600. }
  3601. ],
  3602. "responses": {
  3603. "200": {
  3604. "description": "OK",
  3605. "schema": {
  3606. "$ref": "#/definitions/controllers.ResultOK"
  3607. }
  3608. },
  3609. "500": {
  3610. "description": "Internal Server Error",
  3611. "schema": {
  3612. "type": "status"
  3613. }
  3614. }
  3615. }
  3616. }
  3617. },
  3618. "/scd/comp/list": {
  3619. "get": {
  3620. "description": "获取指定变电站的差异对比记录列表",
  3621. "consumes": [
  3622. "application/x-www-form-urlencoded"
  3623. ],
  3624. "produces": [
  3625. "application/json"
  3626. ],
  3627. "tags": [
  3628. "一致性校验服务接口"
  3629. ],
  3630. "summary": "获取指定变电站的差异对比记录列表",
  3631. "parameters": [
  3632. {
  3633. "type": "integer",
  3634. "description": "变电站ID",
  3635. "name": "station_id",
  3636. "in": "query",
  3637. "required": true
  3638. }
  3639. ],
  3640. "responses": {
  3641. "200": {
  3642. "description": "OK",
  3643. "schema": {
  3644. "$ref": "#/definitions/controllers.ResultOK"
  3645. }
  3646. },
  3647. "500": {
  3648. "description": "Internal Server Error",
  3649. "schema": {
  3650. "type": "status"
  3651. }
  3652. }
  3653. }
  3654. }
  3655. },
  3656. "/scd/comp/result": {
  3657. "get": {
  3658. "description": "获取指定差异对比的详细结果列表",
  3659. "consumes": [
  3660. "application/x-www-form-urlencoded"
  3661. ],
  3662. "produces": [
  3663. "application/json"
  3664. ],
  3665. "tags": [
  3666. "一致性校验服务接口"
  3667. ],
  3668. "summary": "获取指定差异对比的详细结果列表",
  3669. "parameters": [
  3670. {
  3671. "type": "integer",
  3672. "description": "差异比对记录ID",
  3673. "name": "comp_id",
  3674. "in": "query",
  3675. "required": true
  3676. },
  3677. {
  3678. "type": "string",
  3679. "description": "装置名称",
  3680. "name": "ied_name",
  3681. "in": "query"
  3682. },
  3683. {
  3684. "type": "string",
  3685. "description": "差异对象类型代码",
  3686. "name": "itemcode",
  3687. "in": "query"
  3688. }
  3689. ],
  3690. "responses": {
  3691. "200": {
  3692. "description": "OK",
  3693. "schema": {
  3694. "$ref": "#/definitions/controllers.ResultOK"
  3695. }
  3696. },
  3697. "500": {
  3698. "description": "Internal Server Error",
  3699. "schema": {
  3700. "type": "status"
  3701. }
  3702. }
  3703. }
  3704. }
  3705. },
  3706. "/scd/comp/start": {
  3707. "post": {
  3708. "description": "开始scd差异对比",
  3709. "consumes": [
  3710. "application/x-www-form-urlencoded"
  3711. ],
  3712. "produces": [
  3713. "application/json"
  3714. ],
  3715. "tags": [
  3716. "一致性校验服务接口"
  3717. ],
  3718. "summary": "开始scd差异对比",
  3719. "parameters": [
  3720. {
  3721. "type": "string",
  3722. "description": "对比的文件类型。值为scd\\ccd\\cid\\ccd_cid_scd\\icd_scd之一。",
  3723. "name": "type",
  3724. "in": "query",
  3725. "required": true
  3726. },
  3727. {
  3728. "type": "integer",
  3729. "description": "差异比对记录ID。不为空或0时表示重新比对差异",
  3730. "name": "comp_id",
  3731. "in": "query"
  3732. },
  3733. {
  3734. "type": "integer",
  3735. "description": "变电站ID",
  3736. "name": "station_id",
  3737. "in": "query",
  3738. "required": true
  3739. },
  3740. {
  3741. "type": "integer",
  3742. "description": "对比的基准SCD文件ID。type为scd时必填。",
  3743. "name": "source_scd_id",
  3744. "in": "query"
  3745. },
  3746. {
  3747. "type": "integer",
  3748. "description": "对比的参照SCD文件ID。type为scd时必填。",
  3749. "name": "target_scd_id",
  3750. "in": "query"
  3751. },
  3752. {
  3753. "type": "string",
  3754. "description": "如果是2个非SCD对比文件时,需要对比的文件ID列表,使用逗号分隔。仅当type为ccd\\cid\\ccd_cid_scd\\icd_scd时有效",
  3755. "name": "ids",
  3756. "in": "query"
  3757. }
  3758. ],
  3759. "responses": {
  3760. "200": {
  3761. "description": "OK",
  3762. "schema": {
  3763. "$ref": "#/definitions/controllers.ResultOK"
  3764. }
  3765. },
  3766. "500": {
  3767. "description": "Internal Server Error",
  3768. "schema": {
  3769. "type": "status"
  3770. }
  3771. }
  3772. }
  3773. }
  3774. },
  3775. "/scd/comp/stat/result": {
  3776. "get": {
  3777. "description": "获取scd差异对比结果概览统计",
  3778. "consumes": [
  3779. "application/x-www-form-urlencoded"
  3780. ],
  3781. "produces": [
  3782. "application/json"
  3783. ],
  3784. "tags": [
  3785. "一致性校验服务接口"
  3786. ],
  3787. "summary": "获取scd差异对比结果概览统计",
  3788. "parameters": [
  3789. {
  3790. "type": "integer",
  3791. "description": "差异比对记录ID",
  3792. "name": "comp_id",
  3793. "in": "query",
  3794. "required": true
  3795. }
  3796. ],
  3797. "responses": {
  3798. "200": {
  3799. "description": "OK",
  3800. "schema": {
  3801. "$ref": "#/definitions/controllers.ResultOK"
  3802. }
  3803. },
  3804. "500": {
  3805. "description": "Internal Server Error",
  3806. "schema": {
  3807. "type": "status"
  3808. }
  3809. }
  3810. }
  3811. }
  3812. },
  3813. "/scd/comp/tree": {
  3814. "get": {
  3815. "description": "获取SCD校验对象树",
  3816. "consumes": [
  3817. "application/x-www-form-urlencoded"
  3818. ],
  3819. "produces": [
  3820. "application/json"
  3821. ],
  3822. "tags": [
  3823. "一致性校验服务接口"
  3824. ],
  3825. "summary": "获取SCD校验对象树",
  3826. "parameters": [
  3827. {
  3828. "type": "integer",
  3829. "description": "SCD文件ID",
  3830. "name": "scd_id",
  3831. "in": "query",
  3832. "required": true
  3833. },
  3834. {
  3835. "type": "integer",
  3836. "description": "对象ID",
  3837. "name": "id",
  3838. "in": "query"
  3839. },
  3840. {
  3841. "type": "integer",
  3842. "description": "上级对象ID",
  3843. "name": "pid",
  3844. "in": "query"
  3845. }
  3846. ],
  3847. "responses": {
  3848. "200": {
  3849. "description": "OK",
  3850. "schema": {
  3851. "$ref": "#/definitions/controllers.ResultOK"
  3852. }
  3853. },
  3854. "500": {
  3855. "description": "Internal Server Error",
  3856. "schema": {
  3857. "type": "status"
  3858. }
  3859. }
  3860. }
  3861. }
  3862. },
  3863. "/scd/ied/typelist": {
  3864. "get": {
  3865. "description": "获取指定SCD下的IED类型信息",
  3866. "consumes": [
  3867. "application/x-www-form-urlencoded"
  3868. ],
  3869. "produces": [
  3870. "application/json"
  3871. ],
  3872. "tags": [
  3873. "SCD服务接口"
  3874. ],
  3875. "summary": "获取指定SCD下的IED类型信息",
  3876. "parameters": [
  3877. {
  3878. "type": "integer",
  3879. "description": "SCD文件ID",
  3880. "name": "scd_id",
  3881. "in": "query",
  3882. "required": true
  3883. }
  3884. ],
  3885. "responses": {}
  3886. }
  3887. },
  3888. "/scd/rule/list": {
  3889. "get": {
  3890. "description": "获取校验规则列表",
  3891. "consumes": [
  3892. "application/x-www-form-urlencoded"
  3893. ],
  3894. "produces": [
  3895. "application/json"
  3896. ],
  3897. "tags": [
  3898. "校验规则管理服务接口"
  3899. ],
  3900. "summary": "获取校验规则列表",
  3901. "parameters": [
  3902. {
  3903. "type": "integer",
  3904. "description": "当前页码。默认为1 ",
  3905. "name": "pageindex",
  3906. "in": "query"
  3907. },
  3908. {
  3909. "type": "integer",
  3910. "description": "每页显示记录数。默认为20",
  3911. "name": "pagesize",
  3912. "in": "query"
  3913. },
  3914. {
  3915. "type": "integer",
  3916. "description": "规则ID",
  3917. "name": "id",
  3918. "in": "query"
  3919. },
  3920. {
  3921. "type": "integer",
  3922. "description": "是否启用。默认为全部",
  3923. "name": "enable",
  3924. "in": "query"
  3925. },
  3926. {
  3927. "type": "string",
  3928. "description": "规则的对象名称",
  3929. "name": "object_name",
  3930. "in": "query"
  3931. },
  3932. {
  3933. "type": "integer",
  3934. "description": "规则的对象分类",
  3935. "name": "object_type",
  3936. "in": "query"
  3937. },
  3938. {
  3939. "type": "string",
  3940. "description": "规则的告警级别。值为error\\alert\\hint之一。",
  3941. "name": "alert_level",
  3942. "in": "query"
  3943. },
  3944. {
  3945. "type": "string",
  3946. "description": "规则标准",
  3947. "name": "apply_standard",
  3948. "in": "query"
  3949. }
  3950. ],
  3951. "responses": {
  3952. "200": {
  3953. "description": "OK",
  3954. "schema": {
  3955. "$ref": "#/definitions/controllers.ResultOK"
  3956. }
  3957. },
  3958. "500": {
  3959. "description": "Internal Server Error",
  3960. "schema": {
  3961. "type": "status"
  3962. }
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "/scd/rule/remove": {
  3968. "post": {
  3969. "description": "删除校验规则",
  3970. "consumes": [
  3971. "application/x-www-form-urlencoded"
  3972. ],
  3973. "produces": [
  3974. "application/json"
  3975. ],
  3976. "tags": [
  3977. "校验规则管理服务接口"
  3978. ],
  3979. "summary": "删除校验规则",
  3980. "parameters": [
  3981. {
  3982. "type": "integer",
  3983. "description": "规则ID",
  3984. "name": "id",
  3985. "in": "formData",
  3986. "required": true
  3987. }
  3988. ],
  3989. "responses": {
  3990. "200": {
  3991. "description": "OK",
  3992. "schema": {
  3993. "$ref": "#/definitions/controllers.ResultOK"
  3994. }
  3995. },
  3996. "500": {
  3997. "description": "Internal Server Error",
  3998. "schema": {
  3999. "type": "status"
  4000. }
  4001. }
  4002. }
  4003. }
  4004. },
  4005. "/scd/rule/reset": {
  4006. "post": {
  4007. "description": "重新校验指定scd",
  4008. "consumes": [
  4009. "application/x-www-form-urlencoded"
  4010. ],
  4011. "produces": [
  4012. "application/json"
  4013. ],
  4014. "tags": [
  4015. "校验规则管理服务接口"
  4016. ],
  4017. "summary": "重新校验指定scd",
  4018. "parameters": [
  4019. {
  4020. "type": "integer",
  4021. "description": "SCD文件ID",
  4022. "name": "scd_id",
  4023. "in": "formData",
  4024. "required": true
  4025. }
  4026. ],
  4027. "responses": {
  4028. "200": {
  4029. "description": "OK",
  4030. "schema": {
  4031. "$ref": "#/definitions/controllers.ResultOK"
  4032. }
  4033. },
  4034. "500": {
  4035. "description": "Internal Server Error",
  4036. "schema": {
  4037. "type": "status"
  4038. }
  4039. }
  4040. }
  4041. }
  4042. },
  4043. "/scd/rule/save": {
  4044. "post": {
  4045. "description": "保存校验规则",
  4046. "consumes": [
  4047. "application/x-www-form-urlencoded"
  4048. ],
  4049. "produces": [
  4050. "application/json"
  4051. ],
  4052. "tags": [
  4053. "校验规则管理服务接口"
  4054. ],
  4055. "summary": "保存校验规则",
  4056. "parameters": [
  4057. {
  4058. "type": "integer",
  4059. "description": "规则ID。不为0时表示编辑",
  4060. "name": "id",
  4061. "in": "formData"
  4062. },
  4063. {
  4064. "type": "integer",
  4065. "description": "是否启用。默认为全部",
  4066. "name": "enable",
  4067. "in": "formData"
  4068. },
  4069. {
  4070. "type": "string",
  4071. "description": "规则的对象名称",
  4072. "name": "object_name",
  4073. "in": "formData"
  4074. },
  4075. {
  4076. "type": "integer",
  4077. "description": "规则的对象分类",
  4078. "name": "object_type",
  4079. "in": "formData"
  4080. },
  4081. {
  4082. "type": "string",
  4083. "description": "规则的告警级别。值为error\\alert\\hint之一。",
  4084. "name": "alert_level",
  4085. "in": "formData"
  4086. },
  4087. {
  4088. "type": "string",
  4089. "description": "规则标准",
  4090. "name": "apply_standard",
  4091. "in": "formData"
  4092. }
  4093. ],
  4094. "responses": {
  4095. "200": {
  4096. "description": "OK",
  4097. "schema": {
  4098. "$ref": "#/definitions/controllers.ResultOK"
  4099. }
  4100. },
  4101. "500": {
  4102. "description": "Internal Server Error",
  4103. "schema": {
  4104. "type": "status"
  4105. }
  4106. }
  4107. }
  4108. }
  4109. },
  4110. "/scd/stat/right": {
  4111. "get": {
  4112. "description": "scd正确性分析",
  4113. "consumes": [
  4114. "application/x-www-form-urlencoded"
  4115. ],
  4116. "produces": [
  4117. "application/json"
  4118. ],
  4119. "tags": [
  4120. "统计分析服务接口"
  4121. ],
  4122. "summary": "scd正确性分析",
  4123. "parameters": [
  4124. {
  4125. "type": "integer",
  4126. "description": "变电站ID",
  4127. "name": "station_id",
  4128. "in": "query",
  4129. "required": true
  4130. }
  4131. ],
  4132. "responses": {
  4133. "200": {
  4134. "description": "OK",
  4135. "schema": {
  4136. "$ref": "#/definitions/controllers.ResultError"
  4137. }
  4138. },
  4139. "500": {
  4140. "description": "Internal Server Error",
  4141. "schema": {
  4142. "type": "status"
  4143. }
  4144. }
  4145. }
  4146. }
  4147. },
  4148. "/screen/scd/agin_parse": {
  4149. "post": {
  4150. "description": "重新解析指定scd",
  4151. "consumes": [
  4152. "application/x-www-form-urlencoded"
  4153. ],
  4154. "produces": [
  4155. "application/json"
  4156. ],
  4157. "tags": [
  4158. "SCD服务接口"
  4159. ],
  4160. "summary": "重新解析指定scd",
  4161. "parameters": [
  4162. {
  4163. "type": "integer",
  4164. "description": "变电站ID",
  4165. "name": "scd_id",
  4166. "in": "formData",
  4167. "required": true
  4168. }
  4169. ],
  4170. "responses": {
  4171. "200": {
  4172. "description": "OK",
  4173. "schema": {
  4174. "$ref": "#/definitions/controllers.ResultOK"
  4175. }
  4176. },
  4177. "500": {
  4178. "description": "Internal Server Error",
  4179. "schema": {
  4180. "$ref": "#/definitions/controllers.ResultError"
  4181. }
  4182. }
  4183. }
  4184. }
  4185. },
  4186. "/screen/scd/checktools/tree": {
  4187. "get": {
  4188. "description": "获取指定scd校验类型树",
  4189. "consumes": [
  4190. "application/x-www-form-urlencoded"
  4191. ],
  4192. "produces": [
  4193. "application/json"
  4194. ],
  4195. "tags": [
  4196. "SCD服务接口"
  4197. ],
  4198. "summary": "获取指定scd校验类型树",
  4199. "parameters": [
  4200. {
  4201. "type": "integer",
  4202. "description": "SCD文件ID",
  4203. "name": "scd_id",
  4204. "in": "query",
  4205. "required": true
  4206. },
  4207. {
  4208. "type": "integer",
  4209. "description": "节点ID",
  4210. "name": "id",
  4211. "in": "query",
  4212. "required": true
  4213. },
  4214. {
  4215. "type": "integer",
  4216. "description": "父节点ID",
  4217. "name": "pid",
  4218. "in": "query",
  4219. "required": true
  4220. },
  4221. {
  4222. "type": "string",
  4223. "description": "节点类型",
  4224. "name": "datatype",
  4225. "in": "query",
  4226. "required": true
  4227. }
  4228. ],
  4229. "responses": {
  4230. "200": {
  4231. "description": "OK",
  4232. "schema": {
  4233. "$ref": "#/definitions/controllers.ResultOK"
  4234. }
  4235. },
  4236. "500": {
  4237. "description": "Internal Server Error",
  4238. "schema": {
  4239. "$ref": "#/definitions/controllers.ResultError"
  4240. }
  4241. }
  4242. }
  4243. }
  4244. },
  4245. "/screen/scd/crc": {
  4246. "get": {
  4247. "description": "获取指定scd的crc校验结果",
  4248. "consumes": [
  4249. "application/x-www-form-urlencoded"
  4250. ],
  4251. "produces": [
  4252. "application/json"
  4253. ],
  4254. "tags": [
  4255. "SCD服务接口"
  4256. ],
  4257. "summary": "获取指定scd的crc校验结果",
  4258. "parameters": [
  4259. {
  4260. "type": "integer",
  4261. "description": "SCD文件ID",
  4262. "name": "scd_id",
  4263. "in": "query",
  4264. "required": true
  4265. }
  4266. ],
  4267. "responses": {}
  4268. }
  4269. },
  4270. "/screen/scd/delete": {
  4271. "post": {
  4272. "description": "删除指定scd数据",
  4273. "consumes": [
  4274. "application/x-www-form-urlencoded"
  4275. ],
  4276. "produces": [
  4277. "application/json"
  4278. ],
  4279. "tags": [
  4280. "SCD服务接口"
  4281. ],
  4282. "summary": "删除指定scd数据",
  4283. "parameters": [
  4284. {
  4285. "type": "integer",
  4286. "description": "SCD文件ID",
  4287. "name": "id",
  4288. "in": "formData",
  4289. "required": true
  4290. }
  4291. ],
  4292. "responses": {
  4293. "200": {
  4294. "description": "OK",
  4295. "schema": {
  4296. "$ref": "#/definitions/controllers.ResultOK"
  4297. }
  4298. },
  4299. "500": {
  4300. "description": "Internal Server Error",
  4301. "schema": {
  4302. "$ref": "#/definitions/controllers.ResultError"
  4303. }
  4304. }
  4305. }
  4306. }
  4307. },
  4308. "/screen/scd/ied/ctrlblock": {
  4309. "get": {
  4310. "description": "获取指定IED的控制块信息",
  4311. "consumes": [
  4312. "application/x-www-form-urlencoded"
  4313. ],
  4314. "produces": [
  4315. "application/json"
  4316. ],
  4317. "tags": [
  4318. "SCD服务接口"
  4319. ],
  4320. "summary": "获取指定IED的控制块信息",
  4321. "parameters": [
  4322. {
  4323. "type": "integer",
  4324. "description": "SCD文件ID",
  4325. "name": "scd_id",
  4326. "in": "query",
  4327. "required": true
  4328. },
  4329. {
  4330. "type": "string",
  4331. "description": "装置名称",
  4332. "name": "ied_name",
  4333. "in": "query",
  4334. "required": true
  4335. }
  4336. ],
  4337. "responses": {}
  4338. }
  4339. },
  4340. "/screen/scd/ied/dingzhi": {
  4341. "get": {
  4342. "description": "获取指定IED的定值条目",
  4343. "consumes": [
  4344. "application/x-www-form-urlencoded"
  4345. ],
  4346. "produces": [
  4347. "application/json"
  4348. ],
  4349. "tags": [
  4350. "SCD服务接口"
  4351. ],
  4352. "summary": "获取指定IED的定值条目",
  4353. "parameters": [
  4354. {
  4355. "type": "integer",
  4356. "description": "SCD文件ID",
  4357. "name": "scd_id",
  4358. "in": "query",
  4359. "required": true
  4360. },
  4361. {
  4362. "type": "string",
  4363. "description": "IED装置名称",
  4364. "name": "ied_name",
  4365. "in": "query",
  4366. "required": true
  4367. }
  4368. ],
  4369. "responses": {}
  4370. }
  4371. },
  4372. "/screen/scd/ied/goose_ctrlblock/receive": {
  4373. "get": {
  4374. "description": "获取指定IED的接收GOOSE控制块端子列表",
  4375. "consumes": [
  4376. "application/x-www-form-urlencoded"
  4377. ],
  4378. "produces": [
  4379. "application/json"
  4380. ],
  4381. "tags": [
  4382. "SCD服务接口"
  4383. ],
  4384. "summary": "获取指定IED的接收GOOSE控制块端子列表",
  4385. "parameters": [
  4386. {
  4387. "type": "integer",
  4388. "description": "SCD文件ID",
  4389. "name": "scd_id",
  4390. "in": "query",
  4391. "required": true
  4392. },
  4393. {
  4394. "type": "string",
  4395. "description": "装置名称",
  4396. "name": "ied_name",
  4397. "in": "query",
  4398. "required": true
  4399. }
  4400. ],
  4401. "responses": {}
  4402. }
  4403. },
  4404. "/screen/scd/ied/goose_ctrlblock/sendfcdalist": {
  4405. "get": {
  4406. "description": "获取指定IED的指定GOOSE控制块端子列表",
  4407. "consumes": [
  4408. "application/x-www-form-urlencoded"
  4409. ],
  4410. "produces": [
  4411. "application/json"
  4412. ],
  4413. "tags": [
  4414. "SCD服务接口"
  4415. ],
  4416. "summary": "获取指定IED的指定GOOSE控制块端子列表",
  4417. "parameters": [
  4418. {
  4419. "type": "integer",
  4420. "description": "SCD文件ID",
  4421. "name": "scd_id",
  4422. "in": "query",
  4423. "required": true
  4424. },
  4425. {
  4426. "type": "string",
  4427. "description": "装置名称",
  4428. "name": "ied_name",
  4429. "in": "query",
  4430. "required": true
  4431. },
  4432. {
  4433. "type": "integer",
  4434. "description": "GOOSE控制块ID",
  4435. "name": "ctrlid",
  4436. "in": "query",
  4437. "required": true
  4438. }
  4439. ],
  4440. "responses": {}
  4441. }
  4442. },
  4443. "/screen/scd/ied/inputs": {
  4444. "get": {
  4445. "description": "获取IED的虚端子关系",
  4446. "consumes": [
  4447. "application/x-www-form-urlencoded"
  4448. ],
  4449. "produces": [
  4450. "application/json"
  4451. ],
  4452. "tags": [
  4453. "SCD服务接口"
  4454. ],
  4455. "summary": "获取IED的虚端子关系",
  4456. "parameters": [
  4457. {
  4458. "type": "integer",
  4459. "description": "SCD文件ID",
  4460. "name": "scd_id",
  4461. "in": "query",
  4462. "required": true
  4463. },
  4464. {
  4465. "type": "string",
  4466. "description": "主装置名称",
  4467. "name": "ied_name",
  4468. "in": "query",
  4469. "required": true
  4470. },
  4471. {
  4472. "type": "string",
  4473. "description": "输出IED装置名称",
  4474. "name": "m_ied_name",
  4475. "in": "query",
  4476. "required": true
  4477. },
  4478. {
  4479. "type": "string",
  4480. "description": "输入IED装置名称",
  4481. "name": "s_ied_name",
  4482. "in": "query",
  4483. "required": true
  4484. },
  4485. {
  4486. "type": "string",
  4487. "description": "输出控制块ID",
  4488. "name": "m_ctrlid",
  4489. "in": "query",
  4490. "required": true
  4491. },
  4492. {
  4493. "type": "string",
  4494. "description": "输入控制块ID",
  4495. "name": "s_ctrlid",
  4496. "in": "query",
  4497. "required": true
  4498. }
  4499. ],
  4500. "responses": {}
  4501. }
  4502. },
  4503. "/screen/scd/ied/netaddr": {
  4504. "get": {
  4505. "description": "获取SCD中配置的所有设备网络地址",
  4506. "consumes": [
  4507. "application/x-www-form-urlencoded"
  4508. ],
  4509. "produces": [
  4510. "application/json"
  4511. ],
  4512. "tags": [
  4513. "SCD服务接口"
  4514. ],
  4515. "summary": "获取SCD中配置的所有设备网络地址",
  4516. "parameters": [
  4517. {
  4518. "type": "integer",
  4519. "description": "SCD文件ID",
  4520. "name": "scd_id",
  4521. "in": "query",
  4522. "required": true
  4523. }
  4524. ],
  4525. "responses": {}
  4526. }
  4527. },
  4528. "/screen/scd/ied/network/info": {
  4529. "get": {
  4530. "description": "获取IED网络配置信息",
  4531. "consumes": [
  4532. "application/x-www-form-urlencoded"
  4533. ],
  4534. "produces": [
  4535. "application/json"
  4536. ],
  4537. "tags": [
  4538. "SCD服务接口"
  4539. ],
  4540. "summary": "获取IED网络配置信息",
  4541. "parameters": [
  4542. {
  4543. "type": "integer",
  4544. "description": "SCD文件ID",
  4545. "name": "scd_id",
  4546. "in": "query",
  4547. "required": true
  4548. },
  4549. {
  4550. "type": "string",
  4551. "description": "装置名称",
  4552. "name": "ied_name",
  4553. "in": "query",
  4554. "required": true
  4555. }
  4556. ],
  4557. "responses": {}
  4558. }
  4559. },
  4560. "/screen/scd/ied/pointtable": {
  4561. "get": {
  4562. "description": "获取指定IED的定值条目",
  4563. "consumes": [
  4564. "application/x-www-form-urlencoded"
  4565. ],
  4566. "produces": [
  4567. "application/json"
  4568. ],
  4569. "tags": [
  4570. "SCD服务接口"
  4571. ],
  4572. "summary": "获取指定IED的信息点表",
  4573. "parameters": [
  4574. {
  4575. "type": "integer",
  4576. "description": "SCD文件ID",
  4577. "name": "scd_id",
  4578. "in": "query",
  4579. "required": true
  4580. },
  4581. {
  4582. "type": "string",
  4583. "description": "IED装置名称",
  4584. "name": "ied_name",
  4585. "in": "query",
  4586. "required": true
  4587. }
  4588. ],
  4589. "responses": {}
  4590. }
  4591. },
  4592. "/screen/scd/ied/ref/ctrlblock": {
  4593. "get": {
  4594. "description": "获取指定IED的关联IED控制块信息",
  4595. "consumes": [
  4596. "application/x-www-form-urlencoded"
  4597. ],
  4598. "produces": [
  4599. "application/json"
  4600. ],
  4601. "tags": [
  4602. "SCD服务接口"
  4603. ],
  4604. "summary": "获取指定IED的关联IED控制块信息",
  4605. "parameters": [
  4606. {
  4607. "type": "integer",
  4608. "description": "SCD文件ID",
  4609. "name": "scd_id",
  4610. "in": "query",
  4611. "required": true
  4612. },
  4613. {
  4614. "type": "string",
  4615. "description": "装置名称",
  4616. "name": "ied_name",
  4617. "in": "query",
  4618. "required": true
  4619. }
  4620. ],
  4621. "responses": {}
  4622. }
  4623. },
  4624. "/screen/scd/ied/relation": {
  4625. "get": {
  4626. "description": "获取IED关联关系",
  4627. "consumes": [
  4628. "application/x-www-form-urlencoded"
  4629. ],
  4630. "produces": [
  4631. "application/json"
  4632. ],
  4633. "tags": [
  4634. "SCD服务接口"
  4635. ],
  4636. "summary": "获取IED关联关系",
  4637. "parameters": [
  4638. {
  4639. "type": "integer",
  4640. "description": "SCD文件ID",
  4641. "name": "scd_id",
  4642. "in": "query",
  4643. "required": true
  4644. },
  4645. {
  4646. "type": "string",
  4647. "description": "装置名称",
  4648. "name": "ied_name",
  4649. "in": "query",
  4650. "required": true
  4651. }
  4652. ],
  4653. "responses": {}
  4654. }
  4655. },
  4656. "/screen/scd/ied/smv_ctrlblock/receive": {
  4657. "get": {
  4658. "description": "获取指定IED的接收SMV控制块端子列表",
  4659. "consumes": [
  4660. "application/x-www-form-urlencoded"
  4661. ],
  4662. "produces": [
  4663. "application/json"
  4664. ],
  4665. "tags": [
  4666. "SCD服务接口"
  4667. ],
  4668. "summary": "获取指定IED的接收SMV控制块端子列表",
  4669. "parameters": [
  4670. {
  4671. "type": "integer",
  4672. "description": "SCD文件ID",
  4673. "name": "scd_id",
  4674. "in": "query",
  4675. "required": true
  4676. },
  4677. {
  4678. "type": "string",
  4679. "description": "装置名称",
  4680. "name": "ied_name",
  4681. "in": "query",
  4682. "required": true
  4683. }
  4684. ],
  4685. "responses": {}
  4686. }
  4687. },
  4688. "/screen/scd/ied/smv_ctrlblock/sendfcdalist": {
  4689. "get": {
  4690. "description": "获取指定IED的指定SMV控制块端子列表",
  4691. "consumes": [
  4692. "application/x-www-form-urlencoded"
  4693. ],
  4694. "produces": [
  4695. "application/json"
  4696. ],
  4697. "tags": [
  4698. "SCD服务接口"
  4699. ],
  4700. "summary": "获取指定IED的指定SMV控制块端子列表",
  4701. "parameters": [
  4702. {
  4703. "type": "integer",
  4704. "description": "SCD文件ID",
  4705. "name": "scd_id",
  4706. "in": "query",
  4707. "required": true
  4708. },
  4709. {
  4710. "type": "string",
  4711. "description": "装置名称",
  4712. "name": "ied_name",
  4713. "in": "query",
  4714. "required": true
  4715. },
  4716. {
  4717. "type": "integer",
  4718. "description": "SMV控制块ID",
  4719. "name": "ctrlid",
  4720. "in": "query",
  4721. "required": true
  4722. }
  4723. ],
  4724. "responses": {}
  4725. }
  4726. },
  4727. "/screen/scd/ied/sourcexml": {
  4728. "get": {
  4729. "description": "获取指定IED的源XML",
  4730. "consumes": [
  4731. "application/x-www-form-urlencoded"
  4732. ],
  4733. "produces": [
  4734. "application/json"
  4735. ],
  4736. "tags": [
  4737. "SCD服务接口"
  4738. ],
  4739. "summary": "获取指定IED的源XML",
  4740. "parameters": [
  4741. {
  4742. "type": "integer",
  4743. "description": "SCD文件ID",
  4744. "name": "scd_id",
  4745. "in": "query",
  4746. "required": true
  4747. },
  4748. {
  4749. "type": "string",
  4750. "description": "IED装置名称",
  4751. "name": "ied_name",
  4752. "in": "query",
  4753. "required": true
  4754. }
  4755. ],
  4756. "responses": {}
  4757. }
  4758. },
  4759. "/screen/scd/info": {
  4760. "get": {
  4761. "description": "获取scd详细信息",
  4762. "consumes": [
  4763. "application/x-www-form-urlencoded"
  4764. ],
  4765. "produces": [
  4766. "application/json"
  4767. ],
  4768. "tags": [
  4769. "SCD服务接口"
  4770. ],
  4771. "summary": "获取scd详细信息",
  4772. "parameters": [
  4773. {
  4774. "type": "integer",
  4775. "description": "SCD文件ID",
  4776. "name": "scd_id",
  4777. "in": "query",
  4778. "required": true
  4779. },
  4780. {
  4781. "type": "string",
  4782. "description": "SCD名称",
  4783. "name": "scdname",
  4784. "in": "query"
  4785. },
  4786. {
  4787. "type": "string",
  4788. "description": "SCD路径",
  4789. "name": "scdpath",
  4790. "in": "query"
  4791. }
  4792. ],
  4793. "responses": {
  4794. "200": {
  4795. "description": "OK",
  4796. "schema": {
  4797. "$ref": "#/definitions/controllers.ResultOK"
  4798. }
  4799. },
  4800. "500": {
  4801. "description": "Internal Server Error",
  4802. "schema": {
  4803. "$ref": "#/definitions/controllers.ResultError"
  4804. }
  4805. }
  4806. }
  4807. }
  4808. },
  4809. "/screen/scd/ldevice/list": {
  4810. "get": {
  4811. "description": "获取指定accessPoint下的Ldevice节点列表",
  4812. "consumes": [
  4813. "application/x-www-form-urlencoded"
  4814. ],
  4815. "produces": [
  4816. "application/json"
  4817. ],
  4818. "tags": [
  4819. "SCD服务接口"
  4820. ],
  4821. "summary": "获取指定accessPoint下的Ldevice节点列表",
  4822. "parameters": [
  4823. {
  4824. "type": "integer",
  4825. "description": "SCD文件ID",
  4826. "name": "scd_id",
  4827. "in": "query",
  4828. "required": true
  4829. },
  4830. {
  4831. "type": "integer",
  4832. "description": "访问点ID",
  4833. "name": "accessPointId",
  4834. "in": "query",
  4835. "required": true
  4836. }
  4837. ],
  4838. "responses": {}
  4839. }
  4840. },
  4841. "/screen/scd/line/sourcexml": {
  4842. "get": {
  4843. "description": "获取指定行号的源XML,每次获取指定行的前后各100行源数据",
  4844. "consumes": [
  4845. "application/x-www-form-urlencoded"
  4846. ],
  4847. "produces": [
  4848. "application/json"
  4849. ],
  4850. "tags": [
  4851. "SCD服务接口"
  4852. ],
  4853. "summary": "获取指定行号的源XML",
  4854. "parameters": [
  4855. {
  4856. "type": "integer",
  4857. "description": "SCD文件ID",
  4858. "name": "scd_id",
  4859. "in": "query",
  4860. "required": true
  4861. },
  4862. {
  4863. "type": "integer",
  4864. "description": "行号",
  4865. "name": "lineno",
  4866. "in": "query",
  4867. "required": true
  4868. }
  4869. ],
  4870. "responses": {}
  4871. }
  4872. },
  4873. "/screen/scd/list": {
  4874. "get": {
  4875. "description": "获取scd列表",
  4876. "consumes": [
  4877. "application/x-www-form-urlencoded"
  4878. ],
  4879. "produces": [
  4880. "application/json"
  4881. ],
  4882. "tags": [
  4883. "SCD服务接口"
  4884. ],
  4885. "summary": "获取scd列表",
  4886. "parameters": [
  4887. {
  4888. "type": "integer",
  4889. "description": "变电站ID",
  4890. "name": "stationid",
  4891. "in": "query",
  4892. "required": true
  4893. },
  4894. {
  4895. "type": "integer",
  4896. "description": "当前页码。默认为1",
  4897. "name": "pageno",
  4898. "in": "query",
  4899. "required": true
  4900. },
  4901. {
  4902. "type": "integer",
  4903. "description": "每页显示数据数。默认为50",
  4904. "name": "pagesize",
  4905. "in": "query",
  4906. "required": true
  4907. },
  4908. {
  4909. "type": "string",
  4910. "description": "SCD名称",
  4911. "name": "name",
  4912. "in": "query"
  4913. },
  4914. {
  4915. "type": "integer",
  4916. "description": "是否在运版SCD",
  4917. "name": "enable",
  4918. "in": "query"
  4919. },
  4920. {
  4921. "type": "integer",
  4922. "description": "是否管控scd",
  4923. "name": "ischeckinscd",
  4924. "in": "query"
  4925. }
  4926. ],
  4927. "responses": {
  4928. "200": {
  4929. "description": "OK",
  4930. "schema": {
  4931. "$ref": "#/definitions/controllers.ResultOK"
  4932. }
  4933. },
  4934. "500": {
  4935. "description": "Internal Server Error",
  4936. "schema": {
  4937. "$ref": "#/definitions/controllers.ResultError"
  4938. }
  4939. }
  4940. }
  4941. }
  4942. },
  4943. "/screen/scd/node/attrs": {
  4944. "get": {
  4945. "description": "获取scd节点属性",
  4946. "consumes": [
  4947. "application/x-www-form-urlencoded"
  4948. ],
  4949. "produces": [
  4950. "application/json"
  4951. ],
  4952. "tags": [
  4953. "SCD服务接口"
  4954. ],
  4955. "summary": "获取scd节点属性",
  4956. "parameters": [
  4957. {
  4958. "type": "integer",
  4959. "description": "SCD文件ID",
  4960. "name": "scd_id",
  4961. "in": "query",
  4962. "required": true
  4963. },
  4964. {
  4965. "type": "integer",
  4966. "description": "SCD节点ID",
  4967. "name": "node_id",
  4968. "in": "query",
  4969. "required": true
  4970. },
  4971. {
  4972. "type": "string",
  4973. "description": "SCD装置名称",
  4974. "name": "ied_name",
  4975. "in": "query"
  4976. }
  4977. ],
  4978. "responses": {}
  4979. }
  4980. },
  4981. "/screen/scd/node/children/stat": {
  4982. "get": {
  4983. "description": "统计指定节点的下级节点类型及数量",
  4984. "consumes": [
  4985. "application/x-www-form-urlencoded"
  4986. ],
  4987. "produces": [
  4988. "application/json"
  4989. ],
  4990. "tags": [
  4991. "SCD服务接口"
  4992. ],
  4993. "summary": "统计指定节点的下级节点类型及数量",
  4994. "parameters": [
  4995. {
  4996. "type": "integer",
  4997. "description": "SCD文件ID",
  4998. "name": "scd_id",
  4999. "in": "query",
  5000. "required": true
  5001. },
  5002. {
  5003. "type": "integer",
  5004. "description": "SCD节点ID",
  5005. "name": "node_id",
  5006. "in": "query",
  5007. "required": true
  5008. }
  5009. ],
  5010. "responses": {}
  5011. }
  5012. },
  5013. "/screen/scd/node/list": {
  5014. "get": {
  5015. "description": "获取scd节点列表",
  5016. "consumes": [
  5017. "application/x-www-form-urlencoded"
  5018. ],
  5019. "produces": [
  5020. "application/json"
  5021. ],
  5022. "tags": [
  5023. "SCD服务接口"
  5024. ],
  5025. "summary": "获取scd节点列表",
  5026. "parameters": [
  5027. {
  5028. "type": "integer",
  5029. "description": "SCD文件ID",
  5030. "name": "scd_id",
  5031. "in": "query",
  5032. "required": true
  5033. },
  5034. {
  5035. "type": "integer",
  5036. "description": "当前页码。默认为1",
  5037. "name": "pageno",
  5038. "in": "query",
  5039. "required": true
  5040. },
  5041. {
  5042. "type": "integer",
  5043. "description": "每页的数据条数。默认为20",
  5044. "name": "pagesize",
  5045. "in": "query",
  5046. "required": true
  5047. },
  5048. {
  5049. "type": "integer",
  5050. "description": "父节点ID",
  5051. "name": "parent_node_id",
  5052. "in": "query"
  5053. },
  5054. {
  5055. "type": "string",
  5056. "description": "节点Name",
  5057. "name": "name",
  5058. "in": "query"
  5059. },
  5060. {
  5061. "type": "string",
  5062. "description": "装置Name",
  5063. "name": "ied_name",
  5064. "in": "query"
  5065. }
  5066. ],
  5067. "responses": {}
  5068. }
  5069. },
  5070. "/screen/scd/tmp_parse": {
  5071. "post": {
  5072. "description": "临时scd解析",
  5073. "consumes": [
  5074. "application/x-www-form-urlencoded"
  5075. ],
  5076. "produces": [
  5077. "application/json"
  5078. ],
  5079. "tags": [
  5080. "SCD服务接口"
  5081. ],
  5082. "summary": "临时scd解析",
  5083. "parameters": [
  5084. {
  5085. "type": "integer",
  5086. "description": "变电站ID",
  5087. "name": "station_id",
  5088. "in": "formData",
  5089. "required": true
  5090. },
  5091. {
  5092. "type": "string",
  5093. "description": "SCD名称",
  5094. "name": "scdname",
  5095. "in": "formData"
  5096. },
  5097. {
  5098. "type": "string",
  5099. "description": "SCD路径",
  5100. "name": "scdpath",
  5101. "in": "formData"
  5102. }
  5103. ],
  5104. "responses": {
  5105. "200": {
  5106. "description": "OK",
  5107. "schema": {
  5108. "$ref": "#/definitions/controllers.ResultOK"
  5109. }
  5110. },
  5111. "500": {
  5112. "description": "Internal Server Error",
  5113. "schema": {
  5114. "$ref": "#/definitions/controllers.ResultError"
  5115. }
  5116. }
  5117. }
  5118. }
  5119. },
  5120. "/screen/scd/unlock": {
  5121. "post": {
  5122. "description": "强制解除scd文件锁定状态",
  5123. "consumes": [
  5124. "application/x-www-form-urlencoded"
  5125. ],
  5126. "produces": [
  5127. "application/json"
  5128. ],
  5129. "tags": [
  5130. "SCD服务接口"
  5131. ],
  5132. "summary": "强制解除scd文件锁定状态",
  5133. "parameters": [
  5134. {
  5135. "type": "integer",
  5136. "description": "SCD文件ID",
  5137. "name": "scd_id",
  5138. "in": "formData",
  5139. "required": true
  5140. },
  5141. {
  5142. "type": "integer",
  5143. "description": "签入流程ID",
  5144. "name": "flow_run_id",
  5145. "in": "formData",
  5146. "required": true
  5147. }
  5148. ],
  5149. "responses": {
  5150. "200": {
  5151. "description": "OK",
  5152. "schema": {
  5153. "$ref": "#/definitions/controllers.ResultOK"
  5154. }
  5155. },
  5156. "500": {
  5157. "description": "Internal Server Error",
  5158. "schema": {
  5159. "$ref": "#/definitions/controllers.ResultError"
  5160. }
  5161. }
  5162. }
  5163. }
  5164. },
  5165. "/searchUserInfo": {
  5166. "get": {
  5167. "description": "查询用户",
  5168. "consumes": [
  5169. "application/x-www-form-urlencoded"
  5170. ],
  5171. "produces": [
  5172. "application/json"
  5173. ],
  5174. "tags": [
  5175. "基础服务接口"
  5176. ],
  5177. "summary": "搜索查询用户",
  5178. "parameters": [
  5179. {
  5180. "type": "integer",
  5181. "description": "姓名",
  5182. "name": "name",
  5183. "in": "query"
  5184. },
  5185. {
  5186. "type": "integer",
  5187. "description": "分页页码,默认为1",
  5188. "name": "pageindex",
  5189. "in": "query"
  5190. },
  5191. {
  5192. "type": "integer",
  5193. "description": "每页最大记录数,默认为20",
  5194. "name": "pagesize",
  5195. "in": "query"
  5196. },
  5197. {
  5198. "type": "integer",
  5199. "description": "区域ID",
  5200. "name": "area_id",
  5201. "in": "query"
  5202. },
  5203. {
  5204. "type": "integer",
  5205. "description": "角色ID",
  5206. "name": "role_id",
  5207. "in": "query"
  5208. }
  5209. ],
  5210. "responses": {
  5211. "200": {
  5212. "description": "OK",
  5213. "schema": {
  5214. "$ref": "#/definitions/controllers.WarpOK"
  5215. }
  5216. },
  5217. "500": {
  5218. "description": "Internal Server Error",
  5219. "schema": {
  5220. "$ref": "#/definitions/controllers.WarpError"
  5221. }
  5222. }
  5223. }
  5224. }
  5225. },
  5226. "/sys/alarm/list": {
  5227. "get": {
  5228. "description": "获取系统告警列表",
  5229. "consumes": [
  5230. "application/x-www-form-urlencoded"
  5231. ],
  5232. "produces": [
  5233. "application/json"
  5234. ],
  5235. "tags": [
  5236. "基础服务接口"
  5237. ],
  5238. "summary": "获取系统告警列表",
  5239. "parameters": [
  5240. {
  5241. "type": "integer",
  5242. "description": "当前查询的分页页码,默认为1",
  5243. "name": "pageindex",
  5244. "in": "query"
  5245. },
  5246. {
  5247. "type": "integer",
  5248. "description": "每页显示的数据条数,默认为20",
  5249. "name": "pagesize",
  5250. "in": "query"
  5251. },
  5252. {
  5253. "type": "string",
  5254. "description": "查询条件:结束日期",
  5255. "name": "enddate",
  5256. "in": "query"
  5257. },
  5258. {
  5259. "type": "string",
  5260. "description": "查询条件:开始日期",
  5261. "name": "startdate",
  5262. "in": "query"
  5263. },
  5264. {
  5265. "type": "integer",
  5266. "description": "查询条件:事件类型。关联系统字典代码log_eventtype。",
  5267. "name": "eventtype",
  5268. "in": "query"
  5269. },
  5270. {
  5271. "type": "string",
  5272. "description": "查询条件:告警类型。值为disk|cpu|mem之一。",
  5273. "name": "alarmtype",
  5274. "in": "query"
  5275. },
  5276. {
  5277. "type": "string",
  5278. "description": "查询条件:告警内容。模糊查询",
  5279. "name": "description",
  5280. "in": "query"
  5281. }
  5282. ],
  5283. "responses": {
  5284. "200": {
  5285. "description": "OK",
  5286. "schema": {
  5287. "$ref": "#/definitions/controllers.ResultOK"
  5288. }
  5289. },
  5290. "500": {
  5291. "description": "Internal Server Error",
  5292. "schema": {
  5293. "$ref": "#/definitions/controllers.ResultError"
  5294. }
  5295. }
  5296. }
  5297. }
  5298. },
  5299. "/sys/init": {
  5300. "post": {
  5301. "summary": "初始化系统数据",
  5302. "responses": {}
  5303. }
  5304. },
  5305. "/test": {
  5306. "get": {
  5307. "description": "这是一个测试接口",
  5308. "consumes": [
  5309. "application/x-www-form-urlencoded"
  5310. ],
  5311. "produces": [
  5312. "application/json"
  5313. ],
  5314. "tags": [
  5315. "测试"
  5316. ],
  5317. "summary": "这是一个测试接口",
  5318. "responses": {}
  5319. }
  5320. },
  5321. "/uploadfile": {
  5322. "post": {
  5323. "description": "上传文件",
  5324. "consumes": [
  5325. "application/x-www-form-urlencoded"
  5326. ],
  5327. "produces": [
  5328. "application/json"
  5329. ],
  5330. "tags": [
  5331. "文件/附件服务接口"
  5332. ],
  5333. "summary": "上传文件",
  5334. "parameters": [
  5335. {
  5336. "type": "file",
  5337. "description": "文件流",
  5338. "name": "file",
  5339. "in": "formData",
  5340. "required": true
  5341. },
  5342. {
  5343. "type": "integer",
  5344. "description": "变电站ID",
  5345. "name": "station_id",
  5346. "in": "formData",
  5347. "required": true
  5348. },
  5349. {
  5350. "type": "integer",
  5351. "description": "是否是管控文档",
  5352. "name": "is_checkin",
  5353. "in": "formData"
  5354. },
  5355. {
  5356. "type": "string",
  5357. "description": "业务类型。值为:a_scd|ccd|icd|cid|空。",
  5358. "name": "data_type",
  5359. "in": "formData"
  5360. },
  5361. {
  5362. "type": "string",
  5363. "description": "文件类别。值关联系统字典file_types或者为空。",
  5364. "name": "attachment_type",
  5365. "in": "formData"
  5366. }
  5367. ],
  5368. "responses": {
  5369. "200": {
  5370. "description": "OK",
  5371. "schema": {
  5372. "$ref": "#/definitions/controllers.ResultOK"
  5373. }
  5374. },
  5375. "500": {
  5376. "description": "Internal Server Error",
  5377. "schema": {
  5378. "$ref": "#/definitions/controllers.ResultError"
  5379. }
  5380. }
  5381. }
  5382. }
  5383. },
  5384. "/version/check_client": {
  5385. "get": {
  5386. "summary": "获取最新客户端版本下载地址",
  5387. "responses": {}
  5388. }
  5389. },
  5390. "/version/isnew": {
  5391. "get": {
  5392. "summary": "检查是否有新的客户端版本",
  5393. "responses": {}
  5394. }
  5395. },
  5396. "/ws/getconnect": {
  5397. "get": {
  5398. "description": "获取ws长连接地址",
  5399. "consumes": [
  5400. "application/x-www-form-urlencoded"
  5401. ],
  5402. "produces": [
  5403. "application/json"
  5404. ],
  5405. "tags": [
  5406. "基础服务接口"
  5407. ],
  5408. "summary": "获取ws长连接地址",
  5409. "parameters": [
  5410. {
  5411. "type": "string",
  5412. "description": "WS连接地址获取接口地址",
  5413. "name": "ws_url",
  5414. "in": "query",
  5415. "required": true
  5416. },
  5417. {
  5418. "type": "string",
  5419. "description": "token获取接口地址",
  5420. "name": "token_url",
  5421. "in": "query",
  5422. "required": true
  5423. }
  5424. ],
  5425. "responses": {
  5426. "200": {
  5427. "description": "OK",
  5428. "schema": {
  5429. "$ref": "#/definitions/controllers.ResultOK"
  5430. }
  5431. },
  5432. "500": {
  5433. "description": "Internal Server Error",
  5434. "schema": {
  5435. "$ref": "#/definitions/controllers.ResultError"
  5436. }
  5437. }
  5438. }
  5439. }
  5440. }
  5441. },
  5442. "definitions": {
  5443. "controllers.ResultError": {
  5444. "type": "object",
  5445. "properties": {
  5446. "code": {
  5447. "type": "integer"
  5448. },
  5449. "count": {
  5450. "type": "integer"
  5451. },
  5452. "data": {},
  5453. "msg": {
  5454. "type": "string"
  5455. }
  5456. }
  5457. },
  5458. "controllers.ResultOK": {
  5459. "type": "object",
  5460. "properties": {
  5461. "code": {
  5462. "type": "integer"
  5463. },
  5464. "count": {
  5465. "type": "integer"
  5466. },
  5467. "data": {},
  5468. "msg": {
  5469. "type": "string"
  5470. }
  5471. }
  5472. },
  5473. "controllers.WarpError": {
  5474. "type": "object",
  5475. "properties": {
  5476. "data": {},
  5477. "msg": {
  5478. "type": "string"
  5479. },
  5480. "returncode": {
  5481. "type": "integer"
  5482. }
  5483. }
  5484. },
  5485. "controllers.WarpOK": {
  5486. "type": "object",
  5487. "properties": {
  5488. "data": {},
  5489. "msg": {
  5490. "type": "string"
  5491. },
  5492. "returncode": {
  5493. "type": "integer"
  5494. }
  5495. }
  5496. }
  5497. }
  5498. }