docs.go 196 KB

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