| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508 |
- /**
- * @api {get} /v1/home/permissions 01.查询当前登录用户的权限
- * @apiName 查询当前登录用户的权限
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { String[] } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[""], "message":"", "code":1}
- */
- /**
- * @api {put} /v1/home/update/password 02.更新用户密码
- * @apiName 更新用户密码
- * @apiGroup 主页
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiBody { String } password 密码(md5加密)
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/patrol/task/rate 03.当月巡检任务完成率
- * @apiName 当月巡检任务完成率
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.completed 已完成
- * @apiSuccess { Long } data.total 总计
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"completed":1, "total":1}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/upkeep/task/rate 04.查询当月保养任务完成率
- * @apiName 查询当月保养任务完成率
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.completed 已完成
- * @apiSuccess { Long } data.total 总计
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"completed":1, "total":1}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/patrol/task/times 05.查询巡检次数
- * @apiName 查询巡检次数
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Date } data.time 日期
- * @apiSuccess { Integer } data.missed 漏检次数,完成次数=总计-漏检
- * @apiSuccess { Integer } data.total 总计
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"time":1650761871414, "missed":1, "total":1}], "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/visitor 06.查询当前机房访客人员
- * @apiName 查询当前机房访客人员
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { String } data.list.openid 用户openid
- * @apiSuccess { Integer } data.list.number 编号,年+4位编号
- * @apiSuccess { String } data.list.username 访客姓名
- * @apiSuccess { String } data.list.userPhone 访客手机号
- * @apiSuccess { String } data.list.company 访客公司
- * @apiSuccess { Boolean } data.list.contact 是否密接
- * @apiSuccess { Boolean } data.list.highRisk 是否高风险
- * @apiSuccess { Boolean } data.list.confirm 是否确诊
- * @apiSuccess { Date } data.list.entryTime 进入时间
- * @apiSuccess { String } data.list.reason 事由
- * @apiSuccess { Date } data.list.leaveTime 离开时间
- * @apiSuccess { String } data.list.remark 出场备注
- * @apiSuccess { String } data.list.images 图片
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761871414, "reason":"", "leaveTime":1650761871414, "remark":"", "images":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/attendance/statistical 07.查询月评分排行
- * @apiName 查询月评分排行
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.userId 用户id
- * @apiSuccess { String } data.list.username 用户姓名
- * @apiSuccess { String } data.list.telephone 手机号
- * @apiSuccess { Integer } data.list.score 本月评分
- * @apiSuccess { String } data.list.month 考勤年月
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"userId":1, "username":"", "telephone":"", "score":1, "month":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/electricity/statistical 08.查询最近一年电量统计数据
- * @apiName 查询最近一年电量统计数据
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { String } data.year 年
- * @apiSuccess { String } data.month 月
- * @apiSuccess { Float } data.electricityIt it用电量
- * @apiSuccess { Float } data.electricityTotal 总用电量
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"year":"", "month":"", "electricityIt":1.0, "electricityTotal":1.0}], "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/cabinet/usage 09.查询机柜使用率
- * @apiName 查询机柜使用率
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Integer } data.used 已使用
- * @apiSuccess { Integer } data.total 总计
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"used":1, "total":1}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/home/room/usage 10.查询数据机房占用率
- * @apiName 查询数据机房占用率
- * @apiGroup 主页
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { String } data.buildingName 楼栋名称
- * @apiSuccess { String } data.floorName 楼层名称
- * @apiSuccess { String } data.roomName 房间名称
- * @apiSuccess { Integer } data.used 已使用
- * @apiSuccess { Integer } data.total 总计
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"buildingName":"", "floorName":"", "roomName":"", "used":1, "total":1}], "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/item/type/add 01.添加项目类别
- * @apiName 添加项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } [ id ] id 主键
- * @apiBody { String } [ typeName ] 类别名称
- * @apiBody { String } [ seq ] 类别排序
- * @apiBody { String } [ remark ] 备注
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.typeName 类别名称
- * @apiSuccess { String } data.seq 类别排序
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/item/type/update 02.更新项目类别
- * @apiName 更新项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } [ id ] id 主键
- * @apiBody { String } [ typeName ] 类别名称
- * @apiBody { String } [ seq ] 类别排序
- * @apiBody { String } [ remark ] 备注
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.typeName 类别名称
- * @apiSuccess { String } data.seq 类别排序
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/type/query/:id 03.查询项目类别
- * @apiName 查询项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 项目类别id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.typeName 类别名称
- * @apiSuccess { String } data.seq 类别排序
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/type/list 04.分页查询项目类别
- * @apiName 分页查询项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ typeName ] 类别名称
- * @apiQuery { String } [ seq ] 类别排序
- * @apiQuery { String } [ remark ] 备注
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.typeName 类别名称
- * @apiSuccess { String } data.list.seq 类别排序
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "typeName":"", "seq":"", "remark":""}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/item/type/delete 05.删除多条项目类别
- * @apiName 删除多条项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 项目类别id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/item/type/delete/:id 06.删除项目类别
- * @apiName 删除项目类别
- * @apiGroup 检查项目-项目分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/type/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 项目类别id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/item/delete/:id 01.删除检查项
- * @apiName 删除检查项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查项id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/item/delete 02.删除多条检查项
- * @apiName 删除多条检查项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 检查项id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/list 03.分页查询检查项
- * @apiName 分页查询检查项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ itemNo ] 检查项编号
- * @apiQuery { String } [ itemName ] 检查项名称
- * @apiQuery { Integer } [ itemType ] 检查项类别 1选择、2数字、3文本、4拍照
- * @apiQuery { Boolean } [ isRequired ] 是否必填
- * @apiQuery { String } [ defaultValue ] 默认值
- * @apiQuery { Boolean } [ isScore ] 是否参与评分
- * @apiQuery { Long } [ patrolTypeId ] 检查类别id
- * @apiQuery { String } [ patrolTypeName ] 检查类别名称 冗余字段
- * @apiQuery { Long } [ userId ] 所属人员id
- * @apiQuery { String } [ username ] 所属人员名称
- * @apiQuery { String } [ remark ] 备注说明
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.itemNo 检查项编号
- * @apiSuccess { String } data.list.itemName 检查项名称
- * @apiSuccess { Integer } data.list.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { Boolean } data.list.isRequired 是否必填
- * @apiSuccess { String } data.list.defaultValue 默认值
- * @apiSuccess { Boolean } data.list.isScore 是否参与评分
- * @apiSuccess { Long } data.list.patrolTypeId 检查类别id
- * @apiSuccess { String } data.list.patrolTypeName 检查类别名称 冗余字段
- * @apiSuccess { Long } data.list.userId 所属人员id
- * @apiSuccess { String } data.list.username 所属人员名称
- * @apiSuccess { String } data.list.remark 备注说明
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/query/select/:id 04.获取选择项详情
- * @apiName 获取选择项详情
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/query/select/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查项id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Object } data.checkItem 检查主项
- * @apiSuccess { Long } data.checkItem.id id 主键
- * @apiSuccess { String } data.checkItem.itemNo 检查项编号
- * @apiSuccess { String } data.checkItem.itemName 检查项名称
- * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填
- * @apiSuccess { String } data.checkItem.defaultValue 默认值
- * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分
- * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id
- * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段
- * @apiSuccess { Long } data.checkItem.userId 所属人员id
- * @apiSuccess { String } data.checkItem.username 所属人员名称
- * @apiSuccess { String } data.checkItem.remark 备注说明
- * @apiSuccess { Boolean } data.allowMultiple 是否允许多选
- * @apiSuccess { Object[] } data.options 选项列表
- * @apiSuccess { Long } data.options.id id 主键
- * @apiSuccess { Long } data.options.checkItemId 检查项id
- * @apiSuccess { String } data.options.optionName 选项名称
- * @apiSuccess { Boolean } data.options.qualifiedIfSelect 选中是否合格
- * @apiSuccess { Boolean } data.options.qualifiedIfNoSelect 未选中是否合格
- * @apiSuccess { Boolean } data.options.defaultSelect 是否默认选中
- * @apiSuccess { Integer } data.options.score 合格评分
- * @apiSuccess { Integer } data.options.seq 排序
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "allowMultiple":true, "options":[{"id":1, "checkItemId":1, "optionName":"", "qualifiedIfSelect":true, "qualifiedIfNoSelect":true, "defaultSelect":true, "score":1, "seq":1}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/item/add/select 05.添加选择项
- * @apiName 添加选择项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/add/select#POST】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查主项
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Boolean } allowMultiple 是否允许多选
- * @apiBody { Object[] { 1..2147483647 } } options 选择项
- * @apiBody { String } options.optionName 选项名称
- * @apiBody { Boolean } options.qualifiedIfSelect 选中是否合格
- * @apiBody { Boolean } options.qualifiedIfNoSelect 未选中是否合格
- * @apiBody { Boolean } options.defaultSelect 是否默认选中
- * @apiBody { Integer } options.score 合格评分
- * @apiBody { Integer } options.seq 排序
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/item/update/select 06.更新选择项
- * @apiName 更新选择项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/update/select#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查主项
- * @apiBody { Long } checkItem.id id 主键
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Boolean } allowMultiple 是否允许多选
- * @apiBody { Object[] { 1..2147483647 } } options 选择项
- * @apiBody { String } options.optionName 选项名称
- * @apiBody { Boolean } options.qualifiedIfSelect 选中是否合格
- * @apiBody { Boolean } options.qualifiedIfNoSelect 未选中是否合格
- * @apiBody { Boolean } options.defaultSelect 是否默认选中
- * @apiBody { Integer } options.score 合格评分
- * @apiBody { Integer } options.seq 排序
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/query/num/:id 07.获取数字项详情
- * @apiName 获取数字项详情
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/query/num/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查项id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Object } data.checkItem 检查项
- * @apiSuccess { Long } data.checkItem.id id 主键
- * @apiSuccess { String } data.checkItem.itemNo 检查项编号
- * @apiSuccess { String } data.checkItem.itemName 检查项名称
- * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填
- * @apiSuccess { String } data.checkItem.defaultValue 默认值
- * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分
- * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id
- * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段
- * @apiSuccess { Long } data.checkItem.userId 所属人员id
- * @apiSuccess { String } data.checkItem.username 所属人员名称
- * @apiSuccess { String } data.checkItem.remark 备注说明
- * @apiSuccess { Object } data.extra 数字项额外信息
- * @apiSuccess { Long } data.extra.id id 主键
- * @apiSuccess { Long } data.extra.checkItemId 检查项id
- * @apiSuccess { String } data.extra.unit 单位
- * @apiSuccess { Integer } data.extra.decimalPlaces 小数点后位数
- * @apiSuccess { Integer } data.extra.qualifiedScore 合格评分
- * @apiSuccess { Integer } data.extra.noQualifiedScore 不合格评分
- * @apiSuccess { String } data.extra.validMaxValue 有效值上限
- * @apiSuccess { String } data.extra.validMinValue 有效值下限
- * @apiSuccess { String } data.extra.qualifiedMaxValue 合格值上限
- * @apiSuccess { String } data.extra.qualifiedMinValue 合格值下限
- * @apiSuccess { Boolean } data.extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限
- * @apiSuccess { Boolean } data.extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限
- * @apiSuccess { Boolean } data.extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格
- * @apiSuccess { Boolean } data.extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "extra":{"id":1, "checkItemId":1, "unit":"", "decimalPlaces":1, "qualifiedScore":1, "noQualifiedScore":1, "validMaxValue":"", "validMinValue":"", "qualifiedMaxValue":"", "qualifiedMinValue":"", "checkValidMaxValue":true, "checkValidMinValue":true, "checkQualifiedMaxValue":true, "checkQualifiedMinValue":true}}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/item/add/num 08.添加数字项
- * @apiName 添加数字项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/add/num#POST】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查项
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object } extra 数字项
- * @apiBody { String } [ extra.unit ] 单位
- * @apiBody { Integer } extra.decimalPlaces 小数点后位数
- * @apiBody { Integer } extra.qualifiedScore 合格评分
- * @apiBody { Integer } extra.noQualifiedScore 不合格评分
- * @apiBody { String } [ extra.validMaxValue ] 有效值上限
- * @apiBody { String } [ extra.validMinValue ] 有效值下限
- * @apiBody { String } [ extra.qualifiedMaxValue ] 合格值上限
- * @apiBody { String } [ extra.qualifiedMinValue ] 合格值下限
- * @apiBody { Boolean } extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限
- * @apiBody { Boolean } extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限
- * @apiBody { Boolean } extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格
- * @apiBody { Boolean } extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/item/update/num 09.更新数字项
- * @apiName 更新数字项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/update/num#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查项
- * @apiBody { Long } checkItem.id id 主键
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object } extra 数字项
- * @apiBody { Long } extra.id id 主键
- * @apiBody { String } [ extra.unit ] 单位
- * @apiBody { Integer } extra.decimalPlaces 小数点后位数
- * @apiBody { Integer } extra.qualifiedScore 合格评分
- * @apiBody { Integer } extra.noQualifiedScore 不合格评分
- * @apiBody { String } [ extra.validMaxValue ] 有效值上限
- * @apiBody { String } [ extra.validMinValue ] 有效值下限
- * @apiBody { String } [ extra.qualifiedMaxValue ] 合格值上限
- * @apiBody { String } [ extra.qualifiedMinValue ] 合格值下限
- * @apiBody { Boolean } extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限
- * @apiBody { Boolean } extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限
- * @apiBody { Boolean } extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格
- * @apiBody { Boolean } extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/query/txt/:id 10.获取文本项详情
- * @apiName 获取文本项详情
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/query/txt/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查项id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Object } data.checkItem 检查项
- * @apiSuccess { Long } data.checkItem.id id 主键
- * @apiSuccess { String } data.checkItem.itemNo 检查项编号
- * @apiSuccess { String } data.checkItem.itemName 检查项名称
- * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填
- * @apiSuccess { String } data.checkItem.defaultValue 默认值
- * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分
- * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id
- * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段
- * @apiSuccess { Long } data.checkItem.userId 所属人员id
- * @apiSuccess { String } data.checkItem.username 所属人员名称
- * @apiSuccess { String } data.checkItem.remark 备注说明
- * @apiSuccess { Object } data.extra 文本项额外信息
- * @apiSuccess { Long } data.extra.id id 主键
- * @apiSuccess { Long } data.extra.checkItemId 检查项id
- * @apiSuccess { Boolean } data.extra.allowMultiple 是否允许多行
- * @apiSuccess { Integer } data.extra.qualifiedScore 合格评分
- * @apiSuccess { Integer } data.extra.noQualifiedScore 不合格评分
- * @apiSuccess { Integer } data.extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "extra":{"id":1, "checkItemId":1, "allowMultiple":true, "qualifiedScore":1, "noQualifiedScore":1, "qualifiedJudge":1}}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/item/add/txt 11.添加文本项
- * @apiName 添加文本项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/add/txt#POST】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查主项
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object } extra 文本
- * @apiBody { Boolean } extra.allowMultiple 是否允许多行
- * @apiBody { Integer } extra.qualifiedScore 合格评分
- * @apiBody { Integer } extra.noQualifiedScore 不合格评分
- * @apiBody { Integer } extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/item/update/txt 12.更新文本项
- * @apiName 更新文本项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/update/txt#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查主项
- * @apiBody { Long } checkItem.id id 主键
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object } extra 文本项
- * @apiBody { Long } extra.id id 主键
- * @apiBody { Boolean } extra.allowMultiple 是否允许多行
- * @apiBody { Integer } extra.qualifiedScore 合格评分
- * @apiBody { Integer } extra.noQualifiedScore 不合格评分
- * @apiBody { Integer } extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/query/photo/:id 13.获取拍照项详情
- * @apiName 获取拍照项详情
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/query/photo/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查项id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Object } data.checkItem 检查项
- * @apiSuccess { Long } data.checkItem.id id 主键
- * @apiSuccess { String } data.checkItem.itemNo 检查项编号
- * @apiSuccess { String } data.checkItem.itemName 检查项名称
- * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填
- * @apiSuccess { String } data.checkItem.defaultValue 默认值
- * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分
- * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id
- * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段
- * @apiSuccess { Long } data.checkItem.userId 所属人员id
- * @apiSuccess { String } data.checkItem.username 所属人员名称
- * @apiSuccess { String } data.checkItem.remark 备注说明
- * @apiSuccess { Object[] } data.photoPoints 拍照点列表
- * @apiSuccess { Long } data.photoPoints.id id 主键
- * @apiSuccess { Long } data.photoPoints.checkItemId 检查项id
- * @apiSuccess { String } data.photoPoints.name 拍照点名称
- * @apiSuccess { Boolean } data.photoPoints.isRequired 是否必须拍照
- * @apiSuccess { Boolean } data.photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格
- * @apiSuccess { Integer } data.photoPoints.qualifiedScore 合格评分
- * @apiSuccess { Integer } data.photoPoints.noQualifiedScore 不合格评分
- * @apiSuccess { Integer } data.photoPoints.seq 排序
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "photoPoints":[{"id":1, "checkItemId":1, "name":"", "isRequired":true, "qualifiedJudge":true, "qualifiedScore":1, "noQualifiedScore":1, "seq":1}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/item/add/photo 14.添加拍照项
- * @apiName 添加拍照项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/add/photo#POST】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查项
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object[] { 1..2147483647 } } photoPoints 选择项
- * @apiBody { String } photoPoints.name 拍照点名称
- * @apiBody { Boolean } photoPoints.isRequired 是否必须拍照
- * @apiBody { Boolean } photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格
- * @apiBody { Integer } photoPoints.qualifiedScore 合格评分
- * @apiBody { Integer } photoPoints.noQualifiedScore 不合格评分
- * @apiBody { Integer } photoPoints.seq 排序
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/item/update/photo 15.更新拍照项
- * @apiName 更新拍照项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/item/update/photo#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Object } checkItem 检查项
- * @apiBody { Long } checkItem.id id 主键
- * @apiBody { String } checkItem.itemName 检查项名称
- * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiBody { Boolean } checkItem.isRequired 是否必填
- * @apiBody { String } [ checkItem.defaultValue ] 默认值
- * @apiBody { Boolean } checkItem.isScore 是否参与评分
- * @apiBody { Long } checkItem.patrolTypeId 巡检类别id
- * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段
- * @apiBody { String } [ checkItem.remark ] 备注说明
- * @apiBody { Object[] { 1..2147483647 } } photoPoints 拍照项
- * @apiBody { String } photoPoints.name 拍照点名称
- * @apiBody { Boolean } photoPoints.isRequired 是否必须拍照
- * @apiBody { Boolean } photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格
- * @apiBody { Integer } photoPoints.qualifiedScore 合格评分
- * @apiBody { Integer } photoPoints.noQualifiedScore 不合格评分
- * @apiBody { Integer } photoPoints.seq 排序
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/item/list/option 16.获取检查项选项
- * @apiName 获取检查项选项
- * @apiGroup 检查项目-项目
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { Integer } itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiQuery { Boolean } isScore 是否参与评分
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {post} /v1/check/route/add 01.添加检查路线
- * @apiName 添加检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 路线名称
- * @apiBody { String } [ responsibler ] 负责人名称
- * @apiBody { String } [ telephone ] 联系电话
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] } [ roomIds ] 巡检房间id列表
- * @apiBody { Long[] } [ deviceIds ] 巡检设备id列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.number 路线编号
- * @apiSuccess { String } data.name 路线名称
- * @apiSuccess { String } data.responsibler 负责人名称
- * @apiSuccess { String } data.telephone 联系电话
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/route/delete/:id 02.删除检查路线
- * @apiName 删除检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查路线id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/check/route/delete 03.删除多条检查路线
- * @apiName 删除多条检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 检查路线id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/check/route/update 04.更新检查路线
- * @apiName 更新检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { String } name 路线名称
- * @apiBody { String } [ responsibler ] 负责人名称
- * @apiBody { String } [ telephone ] 联系电话
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] } [ roomIds ] 巡检房间id列表
- * @apiBody { Long[] } [ deviceIds ] 巡检设备id列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.number 路线编号
- * @apiSuccess { String } data.name 路线名称
- * @apiSuccess { String } data.responsibler 负责人名称
- * @apiSuccess { String } data.telephone 联系电话
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/route/query/:id 05.查询检查路线
- * @apiName 查询检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 检查路线id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.number 路线编号
- * @apiSuccess { String } data.name 路线名称
- * @apiSuccess { String } data.responsibler 负责人名称
- * @apiSuccess { String } data.telephone 联系电话
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { Object[] } data.rooms 房间列表
- * @apiSuccess { Object[] } data.rooms.children 子选项
- * @apiSuccess { Object[] } data.rooms.children.children 子选项
- * @apiSuccess { Long } data.rooms.children.id 选项key
- * @apiSuccess { String } data.rooms.children.name 选项值
- * @apiSuccess { Long } data.rooms.id 选项key
- * @apiSuccess { String } data.rooms.name 选项值
- * @apiSuccess { Object[] } data.devices 设备列表
- * @apiSuccess { Object[] } data.devices.children 子选项
- * @apiSuccess { Object[] } data.devices.children.children 子选项
- * @apiSuccess { Long } data.devices.children.id 选项key
- * @apiSuccess { String } data.devices.children.name 选项值
- * @apiSuccess { Long } data.devices.id 选项key
- * @apiSuccess { String } data.devices.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420, "rooms":[{"children":[{"children":[], "id":1, "name":""}], "id":1, "name":""}], "devices":[{"children":[{"children":[], "id":1, "name":""}], "id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/route/list 06.分页查询检查路线
- * @apiName 分页查询检查路线
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/check/route/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ number ] 路线编号
- * @apiQuery { String } [ name ] 路线名称
- * @apiQuery { String } [ responsibler ] 负责人名称
- * @apiQuery { String } [ telephone ] 联系电话
- * @apiQuery { String } [ remark ] 备注
- * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.number 路线编号
- * @apiSuccess { String } data.list.name 路线名称
- * @apiSuccess { String } data.list.responsibler 负责人名称
- * @apiSuccess { String } data.list.telephone 联系电话
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { Date } data.list.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/check/route/list/option 07.获取检查路线选项
- * @apiName 获取检查路线选项
- * @apiGroup 检查路线-路线查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { String } name 路线名称
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {put} /v1/patrol/task/update 01.更新巡检任务
- * @apiName 更新巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.planId 计划id
- * @apiSuccess { Long } data.routeId 路线id
- * @apiSuccess { String } data.routeName 路线名称
- * @apiSuccess { String } data.routeResponsibler 负责人名称
- * @apiSuccess { String } data.routeTelephone 联系电话
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.username 创建人名称
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "planId":1, "routeId":1, "routeName":"", "routeResponsibler":"", "routeTelephone":"", "userId":1, "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871421, "endTime":1650761871421, "createTime":1650761871421}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/patrol/task/update/status 02.更新巡检任务禁用状态
- * @apiName 更新巡检任务禁用状态
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/task/query/:id 03.查询巡检任务
- * @apiName 查询巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 巡检任务id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Object } data.route 检查路线
- * @apiSuccess { Long } data.route.id 选项key
- * @apiSuccess { String } data.route.name 选项值
- * @apiSuccess { Object[] } data.executors 执行人列表
- * @apiSuccess { Long } data.executors.id 选项key
- * @apiSuccess { String } data.executors.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginTime":1650761871421, "endTime":1650761871421, "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/task/list 04.分页查询巡检任务
- * @apiName 分页查询巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 任务名称
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划
- * @apiQuery { Integer } [ status ] 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别
- * @apiQuery { String } [ username ] 创建人
- * @apiQuery { String } [ executor ]
- * @apiQuery { Date } [ beginTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ beginTimeEnd ] 创建时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = +id ] 排序规则(默认ID正序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.routeName 检查路线
- * @apiSuccess { String } data.list.username 创建人
- * @apiSuccess { String } data.list.number 编号
- * @apiSuccess { String } data.list.name 名称
- * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Boolean } data.list.disabled 是否禁用
- * @apiSuccess { Date } data.list.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.list.endTime 任务执行结束时间
- * @apiSuccess { String[] } data.list.executors 执行人列表
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871421, "endTime":1650761871421, "executors":[""]}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/task/generate/task 05.生成巡检任务
- * @apiName 生成巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/generate/task#GET】
- * @apiVersion 1.0.0
- * @apiSuccess { Date } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":1650761871421, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/patrol/task/delete 06.删除多条巡检任务
- * @apiName 删除多条巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 巡检任务id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/patrol/task/delete/:id 07.删除巡检任务
- * @apiName 删除巡检任务
- * @apiGroup 巡检计划-巡检任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/task/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 巡检任务id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/patrol/plan/add 01.添加巡检计划
- * @apiName 添加巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginDate 计划执行开始日期
- * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { String } [ weeks ] 周计划 [1-7]
- * @apiBody { String } [ months ] 月计划 [1-31]
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.routeId 路线id
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Object } data.beginTime 任务执行开始时间
- * @apiSuccess { Byte } data.beginTime.hour
- * @apiSuccess { Byte } data.beginTime.minute
- * @apiSuccess { Byte } data.beginTime.second
- * @apiSuccess { Integer } data.beginTime.nano
- * @apiSuccess { Object } data.endTime 任务执行结束时间
- * @apiSuccess { Byte } data.endTime.hour
- * @apiSuccess { Byte } data.endTime.minute
- * @apiSuccess { Byte } data.endTime.second
- * @apiSuccess { Integer } data.endTime.nano
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871421, "endDate":1650761871421, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/patrol/plan/update 02.更新巡检计划
- * @apiName 更新巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginDate 计划执行开始日期
- * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { String } [ weeks ] 周计划 [1-7]
- * @apiBody { String } [ months ] 月计划 [1-31]
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.routeId 路线id
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Object } data.beginTime 任务执行开始时间
- * @apiSuccess { Byte } data.beginTime.hour
- * @apiSuccess { Byte } data.beginTime.minute
- * @apiSuccess { Byte } data.beginTime.second
- * @apiSuccess { Integer } data.beginTime.nano
- * @apiSuccess { Object } data.endTime 任务执行结束时间
- * @apiSuccess { Byte } data.endTime.hour
- * @apiSuccess { Byte } data.endTime.minute
- * @apiSuccess { Byte } data.endTime.second
- * @apiSuccess { Integer } data.endTime.nano
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/patrol/plan/update/status 03.更新巡检计划禁用状态
- * @apiName 更新巡检计划禁用状态
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/plan/query/:id 04.查询巡检计划
- * @apiName 查询巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 巡检计划id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Object } data.route 检查路线
- * @apiSuccess { Long } data.route.id 选项key
- * @apiSuccess { String } data.route.name 选项值
- * @apiSuccess { Object[] } data.executors 执行人列表
- * @apiSuccess { Long } data.executors.id 选项key
- * @apiSuccess { String } data.executors.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":1650761871422, "endTime":1650761871422, "weeks":"", "months":"", "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/plan/list 05.分页查询巡检计划
- * @apiName 分页查询巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 计划名称
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划
- * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别
- * @apiQuery { String } [ username ] 创建人
- * @apiQuery { String } [ executor ] 执行人
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.routeName 检查路线
- * @apiSuccess { String } data.list.username 创建人
- * @apiSuccess { String } data.list.number 编号
- * @apiSuccess { String } data.list.name 名称
- * @apiSuccess { Boolean } data.list.disabled 是否禁用
- * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.list.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.list.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Date } data.list.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.list.endTime 任务执行结束时间
- * @apiSuccess { String } data.list.weeks 周计划 [1-7]
- * @apiSuccess { String } data.list.months 月计划 [1-31]
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { String[] } data.list.executors 执行人列表
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":1650761871422, "endTime":1650761871422, "weeks":"", "months":"", "remark":"", "executors":[""]}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/patrol/plan/delete 06.删除多条巡检计划
- * @apiName 删除多条巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 巡检计划id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/patrol/plan/delete/:id 07.删除巡检计划
- * @apiName 删除巡检计划
- * @apiGroup 巡检计划-巡检计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/patrol/plan/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 巡检计划id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/task/record/list/room 01.分页查询房间巡检记录
- * @apiName 分页查询房间巡检记录
- * @apiGroup 巡检任务-巡检任务记录
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { String } [ taskName ] 任务名称
- * @apiQuery { String } [ username ] 执行用户名
- * @apiQuery { String } [ buildingName ] 楼栋名称
- * @apiQuery { String } [ floorName ] 楼层名称
- * @apiQuery { String } [ roomName ] 房间名称
- * @apiQuery { String } [ roomNumber ] 房间编号
- * @apiQuery { Date } [ beginTimeStart ] 任务开始时间 开始时间
- * @apiQuery { Date } [ beginTimeEnd ] 任务开始时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ]
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 任务id
- * @apiSuccess { String } data.list.name 任务名称
- * @apiSuccess { String } data.list.buildingName 楼栋名称
- * @apiSuccess { String } data.list.floorName 楼层名称
- * @apiSuccess { Long } data.list.roomId 房间id
- * @apiSuccess { String } data.list.roomName 房间名称
- * @apiSuccess { String } data.list.roomNumber 房间编号
- * @apiSuccess { Long } data.list.userId 执行用户id
- * @apiSuccess { String } data.list.username 执行用户名
- * @apiSuccess { Date } data.list.beginTime 巡检时间
- * @apiSuccess { Boolean } data.list.qualified 是否合格
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "buildingName":"", "floorName":"", "roomId":1, "roomName":"", "roomNumber":"", "userId":1, "username":"", "beginTime":1650761871423, "qualified":true}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/patrol/task/record/query/room 02.查询房间巡检记录详情
- * @apiName 查询房间巡检记录详情
- * @apiGroup 巡检任务-巡检任务记录
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { Long } taskId 巡检任务id
- * @apiQuery { Long } roomId 房间id
- * @apiQuery { Long } userId 巡检人员id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { String } data.taskName 任务名称
- * @apiSuccess { String } data.routeName 所属路线
- * @apiSuccess { String } data.roomName 房间名称
- * @apiSuccess { String } data.roomNumber 房间编号
- * @apiSuccess { String } data.floorName 楼层名称
- * @apiSuccess { String } data.buildingName 楼栋名称
- * @apiSuccess { String } data.name 巡检任务名称
- * @apiSuccess { Date } data.beginTime 任务开始时间
- * @apiSuccess { Date } data.endTime 任务结束时间
- * @apiSuccess { Date } data.updateTime 巡检时间
- * @apiSuccess { String } data.username 巡检人员
- * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiSuccess { Boolean } data.qualified 是否合格
- * @apiSuccess { Integer } data.score 评分
- * @apiSuccess { Object[] } data.checkItems 检查项列表
- * @apiSuccess { Integer } data.checkItems.checkItemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { String } data.checkItems.checkItemName 检查项名称
- * @apiSuccess { String } data.checkItems.checkItem 检查项
- * @apiSuccess { Integer } data.checkItems.score 得分
- * @apiSuccess { Integer } data.checkItems.scoreTotal 合格总分数
- * @apiSuccess { String } data.checkItems.value 用户输入值
- * @apiSuccess { Object[] } data.devices 设备列表
- * @apiSuccess { String } data.devices.deviceName 设备名称
- * @apiSuccess { Object[] } data.devices.checkItems 检查项列表
- * @apiSuccess { Integer } data.devices.checkItems.checkItemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { String } data.devices.checkItems.checkItemName 检查项名称
- * @apiSuccess { String } data.devices.checkItems.checkItem 检查项
- * @apiSuccess { Integer } data.devices.checkItems.score 得分
- * @apiSuccess { Integer } data.devices.checkItems.scoreTotal 合格总分数
- * @apiSuccess { String } data.devices.checkItems.value 用户输入值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"taskName":"", "routeName":"", "roomName":"", "roomNumber":"", "floorName":"", "buildingName":"", "name":"", "beginTime":1650761871423, "endTime":1650761871423, "updateTime":1650761871423, "username":"", "status":1, "qualified":true, "score":1, "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "score":1, "scoreTotal":1, "value":""}], "devices":[{"deviceName":"", "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "score":1, "scoreTotal":1, "value":""}]}]}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/upkeep/task/update 01.更新保养任务
- * @apiName 更新保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.planId 计划id
- * @apiSuccess { Long } data.routeId 巡检路线id
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3已结束
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "planId":1, "routeId":1, "userId":1, "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871423, "endTime":1650761871423, "createTime":1650761871423}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/upkeep/task/update/status 02.更新保养任务禁用状态
- * @apiName 更新保养任务禁用状态
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/upkeep/task/query/:id 03.查询保养任务
- * @apiName 查询保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 保养任务id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Object } data.route 检查路线
- * @apiSuccess { Long } data.route.id 选项key
- * @apiSuccess { String } data.route.name 选项值
- * @apiSuccess { Object[] } data.executors 执行人列表
- * @apiSuccess { Long } data.executors.id 选项key
- * @apiSuccess { String } data.executors.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginTime":1650761871423, "endTime":1650761871423, "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/upkeep/task/list 04.分页查询保养任务
- * @apiName 分页查询保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 任务名称
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划
- * @apiQuery { Integer } [ status ] 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别
- * @apiQuery { String } [ username ] 创建人
- * @apiQuery { String } [ executor ]
- * @apiQuery { Date } [ beginTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ beginTimeEnd ] 创建时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.routeName 检查路线
- * @apiSuccess { String } data.list.username 创建人
- * @apiSuccess { String } data.list.number 编号
- * @apiSuccess { String } data.list.name 名称
- * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
- * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Boolean } data.list.disabled 是否禁用
- * @apiSuccess { Date } data.list.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.list.endTime 任务执行结束时间
- * @apiSuccess { String[] } data.list.executors 执行人列表
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871424, "endTime":1650761871424, "executors":[""]}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/upkeep/task/generate/task 05.生成保养任务
- * @apiName 生成保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/generate/task#GET】
- * @apiVersion 1.0.0
- * @apiSuccess { Date } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":1650761871424, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/upkeep/task/delete 06.删除多条保养任务
- * @apiName 删除多条保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 保养任务id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/upkeep/task/delete/:id 07.删除保养任务
- * @apiName 删除保养任务
- * @apiGroup 保养计划-保养任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/task/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 保养任务id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/upkeep/plan/add 01.添加保养计划
- * @apiName 添加保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginDate 计划执行开始日期
- * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { String } [ weeks ] 周计划 [1-7]
- * @apiBody { String } [ months ] 月计划 [1-31]
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.routeId 巡检路线id
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Object } data.beginTime 任务执行开始时间
- * @apiSuccess { Byte } data.beginTime.hour
- * @apiSuccess { Byte } data.beginTime.minute
- * @apiSuccess { Byte } data.beginTime.second
- * @apiSuccess { Integer } data.beginTime.nano
- * @apiSuccess { Object } data.endTime 任务执行结束时间
- * @apiSuccess { Byte } data.endTime.hour
- * @apiSuccess { Byte } data.endTime.minute
- * @apiSuccess { Byte } data.endTime.second
- * @apiSuccess { Integer } data.endTime.nano
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/upkeep/plan/update 02.更新保养计划
- * @apiName 更新保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { Long } routeId 检查路线id
- * @apiBody { String } name 名称
- * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划
- * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别
- * @apiBody { Date } beginDate 计划执行开始日期
- * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束
- * @apiBody { Date } beginTime 任务执行开始时间
- * @apiBody { Date } endTime 任务执行结束时间
- * @apiBody { String } [ weeks ] 周计划 [1-7]
- * @apiBody { String } [ months ] 月计划 [1-31]
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.routeId 巡检路线id
- * @apiSuccess { Long } data.userId 创建人id
- * @apiSuccess { String } data.number 编号
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Object } data.beginTime 任务执行开始时间
- * @apiSuccess { Byte } data.beginTime.hour
- * @apiSuccess { Byte } data.beginTime.minute
- * @apiSuccess { Byte } data.beginTime.second
- * @apiSuccess { Integer } data.beginTime.nano
- * @apiSuccess { Object } data.endTime 任务执行结束时间
- * @apiSuccess { Byte } data.endTime.hour
- * @apiSuccess { Byte } data.endTime.minute
- * @apiSuccess { Byte } data.endTime.second
- * @apiSuccess { Integer } data.endTime.nano
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/upkeep/plan/update/status 03.更新保养计划禁用状态
- * @apiName 更新保养计划禁用状态
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/upkeep/plan/query/:id 04.查询保养计划
- * @apiName 查询保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 保养计划id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Date } data.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.endTime 任务执行结束时间
- * @apiSuccess { String } data.weeks 周计划 [1-7]
- * @apiSuccess { String } data.months 月计划 [1-31]
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Object } data.route 检查路线
- * @apiSuccess { Long } data.route.id 选项key
- * @apiSuccess { String } data.route.name 选项值
- * @apiSuccess { Object[] } data.executors 执行人列表
- * @apiSuccess { Long } data.executors.id 选项key
- * @apiSuccess { String } data.executors.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":1650761871427, "endTime":1650761871427, "weeks":"", "months":"", "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/upkeep/plan/list 05.分页查询保养计划
- * @apiName 分页查询保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 计划名称
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划
- * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别
- * @apiQuery { String } [ username ] 创建人
- * @apiQuery { String } [ executor ] 执行人
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.routeName 检查路线
- * @apiSuccess { String } data.list.username 创建人
- * @apiSuccess { String } data.list.number 编号
- * @apiSuccess { String } data.list.name 名称
- * @apiSuccess { Boolean } data.list.disabled 是否禁用
- * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划
- * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别
- * @apiSuccess { Date } data.list.beginDate 计划执行开始日期
- * @apiSuccess { Date } data.list.endDate 计划执行结束日期,空代表永不结束
- * @apiSuccess { Date } data.list.beginTime 任务执行开始时间
- * @apiSuccess { Date } data.list.endTime 任务执行结束时间
- * @apiSuccess { String } data.list.weeks 周计划 [1-7]
- * @apiSuccess { String } data.list.months 月计划 [1-31]
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { String[] } data.list.executors 执行人列表
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":1650761871427, "endTime":1650761871427, "weeks":"", "months":"", "remark":"", "executors":[""]}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/upkeep/plan/delete 06.删除多条保养计划
- * @apiName 删除多条保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 保养计划id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/upkeep/plan/delete/:id 07.删除保养计划
- * @apiName 删除保养计划
- * @apiGroup 保养计划-保养计划查询
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/upkeep/plan/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 保养计划id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/temporary/task/add 01.添加临时任务
- * @apiName 添加临时任务
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String { 0..255 } } title 任务标题
- * @apiBody { Integer } type 任务类型 1:一般任务 2: 较急任务 3:紧急任务
- * @apiBody { String { 0..255 } } content 任务内容
- * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表
- * @apiBody { Date } finishTime 完成时间
- * @apiBody { String } [ images ] 任务图片
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 任务id
- * @apiSuccess { String } data.title 任务标题
- * @apiSuccess { Integer } data.type 任务类型 1:般任务 2:较急任务 3:紧急任务
- * @apiSuccess { String } data.content 任务内容
- * @apiSuccess { Long } data.userId 任务创建用户id
- * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务
- * @apiSuccess { Integer } data.feedbackTotal 任务反馈数量
- * @apiSuccess { Date } data.publishTime 任务发布时间
- * @apiSuccess { Date } data.finishTime 任务完成时间
- * @apiSuccess { String } data.images 任务图片
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "title":"", "type":1, "content":"", "userId":1, "status":1, "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/temporary/task/update 02.更新临时任务
- * @apiName 更新临时任务
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { Integer } status 任务状态 2:完成 3:取消
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 任务id
- * @apiSuccess { String } data.title 任务标题
- * @apiSuccess { Integer } data.type 任务类型 1:般任务 2:较急任务 3:紧急任务
- * @apiSuccess { String } data.content 任务内容
- * @apiSuccess { Long } data.userId 任务创建用户id
- * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务
- * @apiSuccess { Integer } data.feedbackTotal 任务反馈数量
- * @apiSuccess { Date } data.publishTime 任务发布时间
- * @apiSuccess { Date } data.finishTime 任务完成时间
- * @apiSuccess { String } data.images 任务图片
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "title":"", "type":1, "content":"", "userId":1, "status":1, "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/temporary/task/list 03.分页查询临时任务
- * @apiName 分页查询临时任务
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ title ] 任务标题
- * @apiQuery { Integer } [ type ] 任务类型 1:一般任务 2: 较急任务 3:紧急任务
- * @apiQuery { Integer } [ status ] 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务
- * @apiQuery { String } [ content ] 任务内容
- * @apiQuery { String } [ username ] 发起人名称
- * @apiQuery { String } [ executor ] 执行人名称
- * @apiQuery { Date } [ startTime ] 开始日期
- * @apiQuery { Date } [ endTime ] 结束日期
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 任务id
- * @apiSuccess { String } data.list.title 任务标题
- * @apiSuccess { Integer } data.list.type 任务类型 1:一般任务 2: 较急任务 3:紧急任务
- * @apiSuccess { String } data.list.username 发起人姓名
- * @apiSuccess { Integer } data.list.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务
- * @apiSuccess { String } data.list.content 任务内容
- * @apiSuccess { Integer } data.list.feedbackTotal 执行反馈次数
- * @apiSuccess { Date } data.list.publishTime 发布时间
- * @apiSuccess { Date } data.list.finishTime 完成时间
- * @apiSuccess { String } data.list.images 任务图片
- * @apiSuccess { String[] } data.list.executors 执行人
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "title":"", "type":1, "username":"", "status":1, "content":"", "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":"", "executors":[""]}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/temporary/task/list/statistical 04.临时任务统计
- * @apiName 临时任务统计
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/list/statistical#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Integer } type 统计口径 1:执行人 2:任务类型 3:任务日期 4:任务月份
- * @apiQuery { Date } [ startTime ] 开始日期
- * @apiQuery { Date } [ endTime ] 结束日期
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = +name ] 排序规则(默认name正序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { String } data.list.name 项目名称
- * @apiSuccess { Object[] } data.list.statusList 状态列表
- * @apiSuccess { Integer } data.list.statusList.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务
- * @apiSuccess { Integer } data.list.statusList.count 任务总数
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"name":"", "statusList":[{"status":1, "count":1}]}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/temporary/task/delete 05.删除多条临时任务
- * @apiName 删除多条临时任务
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 临时任务id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/temporary/task/delete/:id 06.删除临时任务
- * @apiName 删除临时任务
- * @apiGroup 临时任务-全部临时任务
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 临时任务id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/temporary/task/feedback/list 01.分页查询临时任务反馈
- * @apiName 分页查询临时任务反馈
- * @apiGroup 临时任务-临时任务反馈
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/temporary/task/feedback/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } taskId 任务id
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { String } data.list.username 反馈人
- * @apiSuccess { String } data.list.content 反馈内容
- * @apiSuccess { Date } data.list.createTime 反馈时间
- * @apiSuccess { String } data.list.images 图片地址
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "username":"", "content":"", "createTime":1650761871429, "images":""}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/building/add 01.添加楼栋
- * @apiName 添加楼栋
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/building/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 楼栋名称
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 楼栋id
- * @apiSuccess { String } data.name 楼栋名称
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { Date } data.updateTime 最后更新时间
- * @apiSuccess { Long } data.updateUserId 最后更新用户id
- * @apiSuccess { String } data.updateUsername 最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "createTime":1650761871429, "updateTime":1650761871429, "updateUserId":1, "updateUsername":""}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/building/delete 02.删除多条楼栋
- * @apiName 删除多条楼栋
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/building/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 楼栋id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/building/delete/:id 03.删除楼栋
- * @apiName 删除楼栋
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/building/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 楼栋id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/building/update 04.更新楼栋
- * @apiName 更新楼栋
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/building/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 楼栋ID
- * @apiBody { String } name 楼栋名称
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/building/list 05.分页查询楼栋
- * @apiName 分页查询楼栋
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/building/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 楼栋名称
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 楼栋id
- * @apiSuccess { String } data.list.name 楼栋名称
- * @apiSuccess { Integer } data.list.floorTotal 总层高
- * @apiSuccess { Integer } data.list.roomTotal 总房间数
- * @apiSuccess { Date } data.list.updateTime 最后更新时间
- * @apiSuccess { String } data.list.updateUsername 最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "floorTotal":1, "roomTotal":1, "updateTime":1650761871429, "updateUsername":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/building/list/option 06.获取所有楼栋选项列表
- * @apiName 获取所有楼栋选项列表
- * @apiGroup 资产管理-楼栋管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/floor/add 01.添加楼层
- * @apiName 添加楼层
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/floor/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 楼层名称
- * @apiBody { Long } buildingId 楼栋id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 楼层id
- * @apiSuccess { String } data.name 楼层名称
- * @apiSuccess { Long } data.buildingId 楼栋id
- * @apiSuccess { Date } data.createTime 楼层创建时间
- * @apiSuccess { Date } data.updateTime 楼层更新时间
- * @apiSuccess { Long } data.updateUserId 最后更新用户id
- * @apiSuccess { String } data.updateUsername 最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "buildingId":1, "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/floor/delete 02.删除多条楼层
- * @apiName 删除多条楼层
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/floor/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 楼层id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/floor/delete/:id 03.删除楼层
- * @apiName 删除楼层
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/floor/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 楼层id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/floor/update 04.更新楼层
- * @apiName 更新楼层
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/floor/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 楼层id
- * @apiBody { String } name 楼层名称
- * @apiBody { Long } buildingId 楼栋id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 楼层id
- * @apiSuccess { String } data.name 楼层名称
- * @apiSuccess { Long } data.buildingId 楼栋id
- * @apiSuccess { Date } data.createTime 楼层创建时间
- * @apiSuccess { Date } data.updateTime 楼层更新时间
- * @apiSuccess { Long } data.updateUserId 最后更新用户id
- * @apiSuccess { String } data.updateUsername 最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "buildingId":1, "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/floor/list 05.分页查询楼层
- * @apiName 分页查询楼层
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/floor/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ buildingId ] 楼栋id
- * @apiQuery { String } [ buildingName ] 楼栋名称
- * @apiQuery { String } [ name ] 楼层名称
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 楼层id
- * @apiSuccess { String } data.list.name 楼层名称
- * @apiSuccess { String } data.list.buildingId 所属楼栋
- * @apiSuccess { String } data.list.buildingName 所属楼栋
- * @apiSuccess { Integer } data.list.roomTotal 总房间数
- * @apiSuccess { Date } data.list.updateTime 楼层更新时间
- * @apiSuccess { String } data.list.updateUsername 最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "buildingId":"", "buildingName":"", "roomTotal":1, "updateTime":1650761871430, "updateUsername":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/floor/list/option/:buildingId 06.获取楼栋中的所有楼层选项
- * @apiName 获取楼栋中的所有楼层选项
- * @apiGroup 资产管理-楼层管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiParam { Long } buildingId 楼栋id
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/room/add 01.添加房间
- * @apiName 添加房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 房间名称
- * @apiBody { String } number 房间编号
- * @apiBody { Long } floorId 房间位置(楼层id)
- * @apiBody { Long[] } [ checkItems = [] ] 检查项
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 房间id
- * @apiSuccess { String } data.name 房间名称
- * @apiSuccess { Long } data.floorId 楼层id
- * @apiSuccess { String } data.number 房间编号
- * @apiSuccess { Date } data.createTime 房间创建时间
- * @apiSuccess { Date } data.updateTime 房间最后更新时间
- * @apiSuccess { Long } data.updateUserId 房间最后更新用户id
- * @apiSuccess { String } data.updateUsername 房间最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "floorId":1, "number":"", "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/room/delete/:id 02.删除房间
- * @apiName 删除房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 房间id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/room/delete 03.删除多条房间
- * @apiName 删除多条房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 房间id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/room/update 04.更新房间
- * @apiName 更新房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 房间id
- * @apiBody { String } name 房间名称
- * @apiBody { String } number 房间编号
- * @apiBody { Long } floorId 房间位置(楼层id)
- * @apiBody { Long[] } [ checkItems = [] ] 检查项
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 房间id
- * @apiSuccess { String } data.name 房间名称
- * @apiSuccess { Long } data.floorId 楼层id
- * @apiSuccess { String } data.number 房间编号
- * @apiSuccess { Date } data.createTime 房间创建时间
- * @apiSuccess { Date } data.updateTime 房间最后更新时间
- * @apiSuccess { Long } data.updateUserId 房间最后更新用户id
- * @apiSuccess { String } data.updateUsername 房间最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "floorId":1, "number":"", "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/room/query/:id 05.查询房间
- * @apiName 查询房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 房间id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 房间id
- * @apiSuccess { String } data.name 房间名称
- * @apiSuccess { String } data.number 房间编号
- * @apiSuccess { Long } data.buildingId 楼栋id
- * @apiSuccess { Long } data.floorId 楼层id
- * @apiSuccess { Object[] } data.checkItems 检查项列表
- * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { String } data.checkItems.isScore 是否参与评分 1是、2否
- * @apiSuccess { Long } data.checkItems.id 选项key
- * @apiSuccess { String } data.checkItems.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "number":"", "buildingId":1, "floorId":1, "checkItems":[{"itemType":1, "isScore":"", "id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/room/list 06.分页查询房间
- * @apiName 分页查询房间
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/room/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ buildingId ] 楼栋id
- * @apiQuery { String } [ buildingName ] 楼栋名称
- * @apiQuery { Long } [ floorId ] 楼层id
- * @apiQuery { String } [ floorName ] 楼层名称
- * @apiQuery { String } [ name ] 房间名称
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 房间id
- * @apiSuccess { String } data.list.name 房间名称
- * @apiSuccess { String } data.list.number 房间编号
- * @apiSuccess { Long } data.list.buildingId 楼栋id
- * @apiSuccess { String } data.list.buildingName 楼栋名称
- * @apiSuccess { Long } data.list.floorId 楼层id
- * @apiSuccess { String } data.list.floorName 楼层名称
- * @apiSuccess { Integer } data.list.deviceTotal 设备数量
- * @apiSuccess { Integer } data.list.itemTotal 项目数量
- * @apiSuccess { Date } data.list.updateTime 房间最后更新时间
- * @apiSuccess { String } data.list.updateUsername 房间最后更新用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "number":"", "buildingId":1, "buildingName":"", "floorId":1, "floorName":"", "deviceTotal":1, "itemTotal":1, "updateTime":1650761871431, "updateUsername":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/room/list/option/:floorId 07.获取楼层中的所有房间选项
- * @apiName 获取楼层中的所有房间选项
- * @apiGroup 资产管理-房间管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiParam { Long } floorId 楼层id
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/delete 01.删除多条设备
- * @apiName 删除多条设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 设备id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/delete/:id 02.删除设备
- * @apiName 删除设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 设备id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/add 03.添加设备
- * @apiName 添加设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 设备名称
- * @apiBody { Long } roomId 房间id
- * @apiBody { String } [ vendor ] 设备厂家
- * @apiBody { String } [ model ] 设备型号
- * @apiBody { Integer } type 设备类型 1:机柜设备 99:其他设备
- * @apiBody { Integer } [ layerTotal ] 设备层数 机柜设备有效
- * @apiBody { String } [ params ] 设备参数 json格式
- * @apiBody { Long[] } [ checkItems ] 检查项
- * @apiBody { String } [ images ] 设备照片 json格式
- * @apiBody { String } [ files ] 设备附件 json格式
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Long } data.roomId 房间id
- * @apiSuccess { String } data.number 设备编号
- * @apiSuccess { String } data.vendor 设备厂家
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备
- * @apiSuccess { Date } data.createTime 设备创建时间
- * @apiSuccess { Date } data.updateTime 设备更新时间
- * @apiSuccess { Long } data.updateUserId 设备更新用户id
- * @apiSuccess { String } data.updateUsername 设备更新用户名
- * @apiSuccess { String } data.params 设备参数 json格式
- * @apiSuccess { String } data.images 设备照片 json格式
- * @apiSuccess { String } data.files 设备附件 json格式
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":""}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/update 04.更新设备
- * @apiName 更新设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 设备id
- * @apiBody { String } name 设备名称
- * @apiBody { Long } roomId 房间id
- * @apiBody { String } number 设备编号
- * @apiBody { String } [ vendor ] 设备厂家
- * @apiBody { String } [ model ] 设备型号
- * @apiBody { String } [ params ] 设备参数 json格式
- * @apiBody { Long[] } [ checkItems = [] ] 检查项
- * @apiBody { String } [ images ] 设备照片 json格式
- * @apiBody { String } [ files ] 设备附件 json格式
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Long } data.roomId 房间id
- * @apiSuccess { String } data.number 设备编号
- * @apiSuccess { String } data.vendor 设备厂家
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备
- * @apiSuccess { Date } data.createTime 设备创建时间
- * @apiSuccess { Date } data.updateTime 设备更新时间
- * @apiSuccess { Long } data.updateUserId 设备更新用户id
- * @apiSuccess { String } data.updateUsername 设备更新用户名
- * @apiSuccess { String } data.params 设备参数 json格式
- * @apiSuccess { String } data.images 设备照片 json格式
- * @apiSuccess { String } data.files 设备附件 json格式
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/query/:id 05.查询设备
- * @apiName 查询设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 设备id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Long } data.buildingId 楼栋id
- * @apiSuccess { Long } data.floorId 楼层id
- * @apiSuccess { Long } data.roomId 房间id
- * @apiSuccess { String } data.number 设备编号
- * @apiSuccess { String } data.vendor 设备厂家
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备
- * @apiSuccess { Date } data.createTime 设备创建时间
- * @apiSuccess { Date } data.updateTime 设备更新时间
- * @apiSuccess { Long } data.updateUserId 设备更新用户id
- * @apiSuccess { String } data.updateUsername 设备更新用户名
- * @apiSuccess { String } data.params 设备参数 json格式
- * @apiSuccess { String } data.images 设备照片 json格式
- * @apiSuccess { String } data.files 设备附件 json格式
- * @apiSuccess { Object } data.cabinet 机柜 机柜设备有效
- * @apiSuccess { Long } data.cabinet.id 机柜id
- * @apiSuccess { Long } data.cabinet.deviceId 设备id
- * @apiSuccess { Integer } data.cabinet.layerTotal 机柜层数
- * @apiSuccess { Integer } data.cabinet.layerUsed 机柜已使用层数
- * @apiSuccess { Object[] } data.checkItems 检查项列表
- * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照
- * @apiSuccess { String } data.checkItems.isScore 是否参与评分 1是、2否
- * @apiSuccess { Long } data.checkItems.id 选项key
- * @apiSuccess { String } data.checkItems.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "buildingId":1, "floorId":1, "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":"", "cabinet":{"id":1, "deviceId":1, "layerTotal":1, "layerUsed":1}, "checkItems":[{"itemType":1, "isScore":"", "id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/list 06.分页查询设备
- * @apiName 分页查询设备
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ buildingId ] 楼栋id
- * @apiQuery { String } [ buildingName ] 楼栋名称
- * @apiQuery { Long } [ floorId ] 楼层id
- * @apiQuery { String } [ floorName ] 楼层名称
- * @apiQuery { Long } [ roomId ] 房间id
- * @apiQuery { String } [ roomName ] 房间名称
- * @apiQuery { String } [ name ] 设备名称
- * @apiQuery { Integer } [ type ] 设备类型 1:机柜设备 99:其他设备
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 设备id
- * @apiSuccess { String } data.list.name 设备名称
- * @apiSuccess { String } data.list.number 设备编号
- * @apiSuccess { String } data.list.buildingName 楼栋名称
- * @apiSuccess { String } data.list.floorName 楼层名称
- * @apiSuccess { String } data.list.roomName 房间名称
- * @apiSuccess { Integer } data.list.checkItemTotal 关联检查项数
- * @apiSuccess { Integer } data.list.type 设备类型 1:机柜设备 99:其他设备
- * @apiSuccess { Date } data.list.createTime 设备创建时间
- * @apiSuccess { Object } data.list.cabinet 机柜 机柜设备有效
- * @apiSuccess { Long } data.list.cabinet.id 机柜id
- * @apiSuccess { Long } data.list.cabinet.deviceId 设备id
- * @apiSuccess { Integer } data.list.cabinet.layerTotal 机柜层数
- * @apiSuccess { Integer } data.list.cabinet.layerUsed 机柜已使用层数
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "number":"", "buildingName":"", "floorName":"", "roomName":"", "checkItemTotal":1, "type":1, "createTime":1650761871431, "cabinet":{"id":1, "deviceId":1, "layerTotal":1, "layerUsed":1}}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/list/option/:roomId 07.获取房间中的所有设备选项
- * @apiName 获取房间中的所有设备选项
- * @apiGroup 资产管理-设备管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiParam { Long } roomId 房间id
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/cabinet/child/device/update 01.更新机柜内设备
- * @apiName 更新机柜内设备
- * @apiGroup 资产管理-设备管理-机柜-设备
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/cabinet/child/device/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } [ id ] 机柜内设备id
- * @apiBody { Long } [ cabinetId ] 机柜id
- * @apiBody { String } [ name ] 设备名称
- * @apiBody { String } [ vendor ] 设备厂商
- * @apiBody { String } [ model ] 设备型号
- * @apiBody { Integer } [ layerCount ] 设备占用层数
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Integer } [ top ] 设备顶部距机柜顶端距离
- * @apiBody { Integer } [ bottom ] 设备底部距机柜顶端距离
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 机柜内设备id
- * @apiSuccess { Long } data.cabinetId 机柜id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { String } data.vendor 设备厂商
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { Integer } data.layerCount 设备占用层数
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Integer } data.top 设备顶部距机柜顶端距离
- * @apiSuccess { Integer } data.bottom 设备底部距机柜顶端距离
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/cabinet/child/device/list 02.分页查询机柜内设备
- * @apiName 分页查询机柜内设备
- * @apiGroup 资产管理-设备管理-机柜-设备
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/cabinet/child/device/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ cabinetId ] 机柜id
- * @apiQuery { String } [ name ] 设备名称
- * @apiQuery { String } [ vendor ] 设备厂商
- * @apiQuery { String } [ model ] 设备型号
- * @apiQuery { Integer } [ layerCount ] 设备占用层数
- * @apiQuery { String } [ remark ] 备注
- * @apiQuery { Integer } [ top ] 设备顶部距机柜顶端距离
- * @apiQuery { Integer } [ bottom ] 设备底部距机柜顶端距离
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 机柜内设备id
- * @apiSuccess { Long } data.list.cabinetId 机柜id
- * @apiSuccess { String } data.list.name 设备名称
- * @apiSuccess { String } data.list.vendor 设备厂商
- * @apiSuccess { String } data.list.model 设备型号
- * @apiSuccess { Integer } data.list.layerCount 设备占用层数
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { Integer } data.list.top 设备顶部距机柜顶端距离
- * @apiSuccess { Integer } data.list.bottom 设备底部距机柜顶端距离
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/cabinet/child/device/add 03.添加机柜内设备
- * @apiName 添加机柜内设备
- * @apiGroup 资产管理-设备管理-机柜-设备
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/cabinet/child/device/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } cabinetId 机柜id
- * @apiBody { String } name 设备名称
- * @apiBody { String } [ vendor ] 设备厂商
- * @apiBody { String } [ model ] 设备型号
- * @apiBody { Integer } layerCount 设备占用层数
- * @apiBody { String } [ remark ] 备注
- * @apiBody { Integer } top 设备顶部距机柜顶端距离
- * @apiBody { Integer } bottom 设备底部距机柜顶端距离
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 机柜内设备id
- * @apiSuccess { Long } data.cabinetId 机柜id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { String } data.vendor 设备厂商
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { Integer } data.layerCount 设备占用层数
- * @apiSuccess { String } data.remark 备注
- * @apiSuccess { Integer } data.top 设备顶部距机柜顶端距离
- * @apiSuccess { Integer } data.bottom 设备底部距机柜顶端距离
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/cabinet/child/device/delete/:id 04.删除机柜内设备
- * @apiName 删除机柜内设备
- * @apiGroup 资产管理-设备管理-机柜-设备
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/cabinet/child/device/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 机柜内设备id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/device/template/add 01.添加机柜内设备模板
- * @apiName 添加机柜内设备模板
- * @apiGroup 资产管理-设备管理-机柜-设备模板
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/template/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } [ id ] 设备id
- * @apiBody { String } [ name ] 设备名称
- * @apiBody { Integer } [ layerCount ] 占用层数
- * @apiBody { String } [ vendor ] 设备厂商
- * @apiBody { String } [ model ] 设备型号
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Integer } data.layerCount 占用层数
- * @apiSuccess { String } data.vendor 设备厂商
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/device/template/delete/:id 02.删除机柜内设备模板
- * @apiName 删除机柜内设备模板
- * @apiGroup 资产管理-设备管理-机柜-设备模板
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/template/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 机柜内设备模板id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/device/template/update 03.更新机柜内设备模板
- * @apiName 更新机柜内设备模板
- * @apiGroup 资产管理-设备管理-机柜-设备模板
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/template/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } [ id ] 设备id
- * @apiBody { String } [ name ] 设备名称
- * @apiBody { Integer } [ layerCount ] 占用层数
- * @apiBody { String } [ vendor ] 设备厂商
- * @apiBody { String } [ model ] 设备型号
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Integer } data.layerCount 占用层数
- * @apiSuccess { String } data.vendor 设备厂商
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/template/query/:id 04.查询机柜内设备模板
- * @apiName 查询机柜内设备模板
- * @apiGroup 资产管理-设备管理-机柜-设备模板
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/template/query/{id}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 机柜内设备模板id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 设备id
- * @apiSuccess { String } data.name 设备名称
- * @apiSuccess { Integer } data.layerCount 占用层数
- * @apiSuccess { String } data.vendor 设备厂商
- * @apiSuccess { String } data.model 设备型号
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/template/list 05.分页查询机柜内设备模板
- * @apiName 分页查询机柜内设备模板
- * @apiGroup 资产管理-设备管理-机柜-设备模板
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/template/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 设备名称
- * @apiQuery { Integer } [ layerCount ] 占用层数
- * @apiQuery { String } [ vendor ] 设备厂商
- * @apiQuery { String } [ model ] 设备型号
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 设备id
- * @apiSuccess { String } data.list.name 设备名称
- * @apiSuccess { Integer } data.list.layerCount 占用层数
- * @apiSuccess { String } data.list.vendor 设备厂商
- * @apiSuccess { String } data.list.model 设备型号
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/device/cabinet/log/list 01.分页查询机柜操作日志
- * @apiName 分页查询机柜操作日志
- * @apiGroup 资产管理-设备管理-机柜-操作日志
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/device/cabinet/log/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ cabinetId ] 机柜id
- * @apiQuery { String } [ content ] 操作内容
- * @apiQuery { Date } [ createTimeStart ] 操作时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 操作时间 结束时间
- * @apiQuery { Long } [ operateUserId ] 操作用户id
- * @apiQuery { String } [ operateUsername ] 操作用户名
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 机柜操作日志id
- * @apiSuccess { Long } data.list.cabinetId 机柜id
- * @apiSuccess { String } data.list.content 操作内容
- * @apiSuccess { Date } data.list.createTime 操作时间
- * @apiSuccess { Long } data.list.operateUserId 操作用户id
- * @apiSuccess { String } data.list.operateUsername 操作用户名
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "cabinetId":1, "content":"", "createTime":1650761871433, "operateUserId":1, "operateUsername":""}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/stock/classify/add 01.添加资产分类
- * @apiName 添加资产分类
- * @apiGroup 出入库管理-物品分类
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/classify/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 分类名称
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键
- * @apiSuccess { String } data.name 分类名称
- * @apiSuccess { Date } data.createTime 添加时间
- * @apiSuccess { Date } data.updateTime 更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/stock/classify/update 02.更新资产分类
- * @apiName 更新资产分类
- * @apiGroup 出入库管理-物品分类
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/classify/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id id 主键
- * @apiBody { String } name 分类名称
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键
- * @apiSuccess { String } data.name 分类名称
- * @apiSuccess { Date } data.createTime 添加时间
- * @apiSuccess { Date } data.updateTime 更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/stock/classify/delete/:id 03.删除物品类别
- * @apiName 删除物品类别
- * @apiGroup 出入库管理-物品分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/classify/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 物品类别id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/stock/classify/delete 04.删除多条物品类别
- * @apiName 删除多条物品类别
- * @apiGroup 出入库管理-物品分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/classify/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 物品类别id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/stock/classify/list 05.分页查询物品类别
- * @apiName 分页查询物品类别
- * @apiGroup 出入库管理-物品分类
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/classify/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 分类名称
- * @apiQuery { Date } [ createTimeStart ] 添加时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 添加时间 结束时间
- * @apiQuery { Date } [ updateTimeStart ] 更新时间 开始时间
- * @apiQuery { Date } [ updateTimeEnd ] 更新时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { String } data.list.name 分类名称
- * @apiSuccess { Date } data.list.createTime 添加时间
- * @apiSuccess { Date } data.list.updateTime 更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/stock/goods/add 01.添加物品
- * @apiName 添加物品
- * @apiGroup 出入库管理-物品库存
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/goods/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } classifyId 物品分类id
- * @apiBody { String } name 物品名称
- * @apiBody { Integer { 1- } } count 物品数量
- * @apiBody { String } description 物品介绍
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键(物品编号)
- * @apiSuccess { Long } data.classifyId 物品分类id
- * @apiSuccess { String } data.name 物品名称
- * @apiSuccess { Integer } data.count 物品数量
- * @apiSuccess { String } data.description 物品介绍
- * @apiSuccess { Date } data.createTime 物品添加时间
- * @apiSuccess { Date } data.updateTime 物品更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/stock/goods/take 02.出库
- * @apiName 出库
- * @apiGroup 出入库管理-物品库存
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/goods/take#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 物品id
- * @apiBody { Integer { 1- } } count 物品出库数量
- * @apiBody { Long } userId 领取人id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键(物品编号)
- * @apiSuccess { Long } data.classifyId 物品分类id
- * @apiSuccess { String } data.name 物品名称
- * @apiSuccess { Integer } data.count 物品数量
- * @apiSuccess { String } data.description 物品介绍
- * @apiSuccess { Date } data.createTime 物品添加时间
- * @apiSuccess { Date } data.updateTime 物品更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/stock/goods/list 03.分页查询物品
- * @apiName 分页查询物品
- * @apiGroup 出入库管理-物品库存
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/goods/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ classifyId ] 物品分类id
- * @apiQuery { String } [ name ] 物品名称
- * @apiQuery { Integer } [ count ] 物品数量
- * @apiQuery { String } [ description ] 物品介绍
- * @apiQuery { Date } [ createTimeStart ] 物品添加时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 物品添加时间 结束时间
- * @apiQuery { Date } [ updateTimeStart ] 物品更新时间 开始时间
- * @apiQuery { Date } [ updateTimeEnd ] 物品更新时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键(物品编号)
- * @apiSuccess { Long } data.list.classifyId 物品分类id
- * @apiSuccess { String } data.list.name 物品名称
- * @apiSuccess { Integer } data.list.count 物品数量
- * @apiSuccess { String } data.list.description 物品介绍
- * @apiSuccess { Date } data.list.createTime 物品添加时间
- * @apiSuccess { Date } data.list.updateTime 物品更新时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/stock/change/record/list 01.分页查询出入库记录
- * @apiName 分页查询出入库记录
- * @apiGroup 出入库管理-出入库记录
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/stock/change/record/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ classifyId ] 物品分类id
- * @apiQuery { String } [ name ] 物品名称
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { Long } data.list.goodsId 物品id
- * @apiSuccess { Integer } data.list.count 变化数量,入库时大于0,出库时小于0
- * @apiSuccess { Date } data.list.createTime 操作时间
- * @apiSuccess { Long } data.list.userId 领取人id
- * @apiSuccess { Long } data.list.operatorId 操作人id
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "goodsId":1, "count":1, "createTime":1650761871434, "userId":1, "operatorId":1}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/visitor/list 01.分页查询访客
- * @apiName 分页查询访客
- * @apiGroup 访客管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/visitor/list#GET】
- * @apiVersion 1.0.0
- * @apiDeprecated 接口已弃用 使用(#访客管理-访客审批:分页查询访客审批)
- * @apiQuery { String } [ openid ] 用户openid
- * @apiQuery { Integer } [ number ] 编号,年+4位编号
- * @apiQuery { String } [ username ] 访客姓名
- * @apiQuery { String } [ userPhone ] 访客手机号
- * @apiQuery { String } [ company ] 访客公司
- * @apiQuery { Boolean } [ contact ] 是否密接
- * @apiQuery { Boolean } [ highRisk ] 是否高风险
- * @apiQuery { Boolean } [ confirm ] 是否确诊
- * @apiQuery { Date } [ entryTimeStart ] 进入时间 开始时间
- * @apiQuery { Date } [ entryTimeEnd ] 进入时间 结束时间
- * @apiQuery { String } [ reason ] 事由
- * @apiQuery { Date } [ leaveTimeStart ] 离开时间 开始时间
- * @apiQuery { Date } [ leaveTimeEnd ] 离开时间 结束时间
- * @apiQuery { String } [ remark ] 出场备注
- * @apiQuery { String } [ images ] 图片
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { String } data.list.openid 用户openid
- * @apiSuccess { Integer } data.list.number 编号,年+4位编号
- * @apiSuccess { String } data.list.username 访客姓名
- * @apiSuccess { String } data.list.userPhone 访客手机号
- * @apiSuccess { String } data.list.company 访客公司
- * @apiSuccess { Boolean } data.list.contact 是否密接
- * @apiSuccess { Boolean } data.list.highRisk 是否高风险
- * @apiSuccess { Boolean } data.list.confirm 是否确诊
- * @apiSuccess { Date } data.list.entryTime 进入时间
- * @apiSuccess { String } data.list.reason 事由
- * @apiSuccess { Date } data.list.leaveTime 离开时间
- * @apiSuccess { String } data.list.remark 出场备注
- * @apiSuccess { String } data.list.images 图片
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761871435, "reason":"", "leaveTime":1650761871435, "remark":"", "images":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/permissions/list/tree 01.获取所有权限-树形
- * @apiName 获取所有权限-树形
- * @apiGroup 系统设置-权限管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.parentId 父级权限ID
- * @apiSuccess { String } data.uri 请求路径
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Object[] } data.children 子级权限
- * @apiSuccess { Long } data.children.parentId 父级权限ID
- * @apiSuccess { String } data.children.uri 请求路径
- * @apiSuccess { Boolean } data.children.disabled 是否禁用
- * @apiSuccess { Object[] } data.children.children 子级权限
- * @apiSuccess { Long } data.children.id 选项key
- * @apiSuccess { String } data.children.name 选项值
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"parentId":1, "uri":"", "disabled":true, "children":[{"parentId":1, "uri":"", "disabled":true, "children":[], "id":1, "name":""}], "id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/permissions/update/enable 02.启用权限
- * @apiName 启用权限
- * @apiGroup 系统设置-权限管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/permissions/update/enable#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long[] } ids 权限ID列表
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/role/add 01.添加角色-角色名称验证
- * @apiName 添加角色-角色名称验证
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String { 0..15 } } name 角色
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/role/delete 02.删除角色
- * @apiName 删除角色
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 角色id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/role/list 03.查询角色列表
- * @apiName 查询角色列表
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 名称
- * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { String { ^[-+][\w]+ } } [ order = +id ] 排序规则(默认按ID正序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 角色ID
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":"", "createTime":1650761871435, "disabled":true}], "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/role/update/status 04.更新角色禁用状态
- * @apiName 更新角色禁用状态
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/role/update 05.更新角色名称和权限
- * @apiName 更新角色名称和权限
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long { 2- } } id 角色ID
- * @apiBody { Long[] } [ permissions ] 权限id集合
- * @apiBody { String { 0..15 } } name 角色
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/role/list/:roleId/permissions 06.查询角色权限列表
- * @apiName 查询角色权限列表
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/role/list/{roleId}/permissions#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long } roleId 角色ID
- * @apiSuccess { Long[] } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[1], "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/role/list/option 07.查询所有角色选项
- * @apiName 查询所有角色选项
- * @apiGroup 系统设置-角色管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/dept/add 01.添加部门
- * @apiName 添加部门
- * @apiGroup 系统设置-部门管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/dept/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } name 名称
- * @apiBody { Long } parentId 上级部门id
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键
- * @apiSuccess { String } data.name 名称
- * @apiSuccess { Long } data.parentId 上级部门id
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "name":"", "parentId":1}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/dept/delete/:id 02.删除部门
- * @apiName 删除部门
- * @apiGroup 系统设置-部门管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/dept/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 部门id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/dept/update 03.更新部门
- * @apiName 更新部门
- * @apiGroup 系统设置-部门管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/dept/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 部门id
- * @apiBody { String } name 名称
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/dept/list/tree 04.查询部门树
- * @apiName 查询部门树
- * @apiGroup 系统设置-部门管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.parentId 父级部门ID
- * @apiSuccess { Object[] } data.children 子级部门
- * @apiSuccess { Long } data.children.parentId 父级部门ID
- * @apiSuccess { Object[] } data.children.children 子级部门
- * @apiSuccess { Long } data.children.id 选项key
- * @apiSuccess { String } data.children.name 选项值
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"parentId":1, "children":[{"parentId":1, "children":[], "id":1, "name":""}], "id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/user/check/authorize 01.用户授权验证
- * @apiName 用户授权验证
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- */
- /**
- * @api {post} /v1/system/user/register 02.注册
- * @apiName 注册
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiBody { String { 6..20 } } username 用户名
- * @apiBody { String { 32..2147483647 } } password 用户密码(md5加密)
- * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号
- * @apiBody { Long[] { 1-2147483647 } } roles 用户角色
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/user/add 03.添加用户
- * @apiName 添加用户
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiBody { String { 2..20 } } username 用户名
- * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号
- * @apiBody { String { 32..2147483647 } } password 用户密码(md5加密)
- * @apiBody { Long } [ deptId ] 用户部门
- * @apiBody { Long[] { 1-2147483647 } } roles 用户角色
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/user/login 04.登录
- * @apiName 登录
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiBody { String } [ username ] 用户名
- * @apiBody { String } [ telephone ] 手机号码
- * @apiBody { String } password 用户密码(md5加密)
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 用户id
- * @apiSuccess { String } data.username 用户名称
- * @apiSuccess { String } data.telephone 手机号
- * @apiSuccess { String } data.token 授权信息
- * @apiSuccess { String[] } data.permissions 权限列表
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "username":"", "telephone":"", "token":"", "permissions":[""]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/user/query/:userId 05.查询用户信息
- * @apiName 查询用户信息
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/query/{userId}#GET】
- * @apiVersion 1.0.0
- * @apiParam { Long { 2- } } userId 用户ID
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id 用户ID
- * @apiSuccess { String } data.username 用户名
- * @apiSuccess { String } data.telephone 手机号
- * @apiSuccess { Long } data.deptId 部门id
- * @apiSuccess { String } data.deptName 部门名称
- * @apiSuccess { Boolean } data.disabled 是否禁用
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { Object[] } data.roles 角色列表
- * @apiSuccess { Long } data.roles.id 选项key
- * @apiSuccess { String } data.roles.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "username":"", "telephone":"", "deptId":1, "deptName":"", "disabled":true, "createTime":1650761871436, "roles":[{"id":1, "name":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/user/list 06.分页查询用户列表
- * @apiName 分页查询用户列表
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ roleId ] 角色
- * @apiQuery { Long } [ deptId ] 部门
- * @apiQuery { String } [ username ] 用户名
- * @apiQuery { String } [ telephone ] 手机号
- * @apiQuery { Boolean } [ disabled ] 是否禁用
- * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 用户ID
- * @apiSuccess { String } data.list.username 用户名
- * @apiSuccess { String } data.list.telephone 手机号
- * @apiSuccess { Long } data.list.deptId 部门id
- * @apiSuccess { String } data.list.deptName 部门名称
- * @apiSuccess { Boolean } data.list.disabled 是否禁用
- * @apiSuccess { Date } data.list.createTime 创建时间
- * @apiSuccess { Object[] } data.list.roles 角色列表
- * @apiSuccess { Long } data.list.roles.id 选项key
- * @apiSuccess { String } data.list.roles.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "username":"", "telephone":"", "deptId":1, "deptName":"", "disabled":true, "createTime":1650761871436, "roles":[{"id":1, "name":""}]}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/user/delete 07.删除多个用户
- * @apiName 删除多个用户
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 用户id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/user/delete/:id 08.删除用户
- * @apiName 删除用户
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long { 2- } } id 用户id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/user/update/status 09.更新用户禁用状态
- * @apiName 更新用户禁用状态
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/update/status#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 数据ID
- * @apiBody { Boolean } disabled 是否禁用
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/user/update 10.更新用户信息
- * @apiName 更新用户信息
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Long } id 用户id
- * @apiBody { String { 2..20 } } username 用户名
- * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号
- * @apiBody { Long } [ deptId ] 用户部门
- * @apiBody { Long[] { 1-2147483647 } } roles 用户角色
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/user/list/option 11.通过用户名或手机号查询用户选项
- * @apiName 通过用户名或手机号查询用户选项
- * @apiGroup 系统设置-用户管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiVersion 1.0.0
- * @apiQuery { String } keyword 用户名或手机号
- * @apiSuccess { Object[] } data 数据
- * @apiSuccess { Long } data.id 选项key
- * @apiSuccess { String } data.name 选项值
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[{"id":1, "name":""}], "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/user/comment/delete/:id 01.删除用户评价
- * @apiName 删除用户评价
- * @apiGroup 系统设置-用户评价
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/comment/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 用户评价id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/user/comment/delete 02.删除多条用户评价
- * @apiName 删除多条用户评价
- * @apiGroup 系统设置-用户评价
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/comment/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 用户评价id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/user/comment/list 03.分页查询用户评价
- * @apiName 分页查询用户评价
- * @apiGroup 系统设置-用户评价
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/user/comment/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ userId ] 评价人id
- * @apiQuery { String } [ username ] 评价人姓名
- * @apiQuery { Long } [ respondentUserId ] 被评价人id
- * @apiQuery { String } [ respondentUsername ] 被评价人姓名
- * @apiQuery { String } [ content ] 评论内容
- * @apiQuery { Integer } [ score ] 评论分数
- * @apiQuery { Date } [ createTimeStart ] 评论时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 评论时间 结束时间
- * @apiQuery { String } [ images ] 评论图片地址数组
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { Long } data.list.userId 评价人id
- * @apiSuccess { String } data.list.username 评价人姓名
- * @apiSuccess { Long } data.list.respondentUserId 被评价人id
- * @apiSuccess { String } data.list.respondentUsername 被评价人姓名
- * @apiSuccess { String } data.list.content 评论内容
- * @apiSuccess { Integer } data.list.score 评论分数
- * @apiSuccess { Date } data.list.createTime 评论时间
- * @apiSuccess { String } data.list.images 评论图片地址数组
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "userId":1, "username":"", "respondentUserId":1, "respondentUsername":"", "content":"", "score":1, "createTime":1650761871437, "images":""}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/login/log/delete/:id 01.删除登录日志
- * @apiName 删除登录日志
- * @apiGroup 系统设置-登录日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/login/log/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 登录日志id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/login/log/delete 02.删除多条登录日志
- * @apiName 删除多条登录日志
- * @apiGroup 系统设置-登录日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/login/log/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 登录日志id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/login/log/list 03.分页查询登录日志
- * @apiName 分页查询登录日志
- * @apiGroup 系统设置-登录日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/login/log/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ userId ] 用户ID
- * @apiQuery { Integer } [ platform ] 平台类型 1:管理端 2:小程序端
- * @apiQuery { Date } [ loginTimeStart ] 登录时间 开始时间
- * @apiQuery { Date } [ loginTimeEnd ] 登录时间 结束时间
- * @apiQuery { String } [ ip ] 用户IP
- * @apiQuery { String } [ address ] 地址
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 登录日志ID
- * @apiSuccess { Long } data.list.userId 用户ID
- * @apiSuccess { Integer } data.list.platform 平台类型 1:管理端 2:小程序端
- * @apiSuccess { Date } data.list.loginTime 登录时间
- * @apiSuccess { String } data.list.ip 用户IP
- * @apiSuccess { String } data.list.address 地址
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "userId":1, "platform":1, "loginTime":1650761871437, "ip":"", "address":""}]}, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/log/delete/:id 01.删除操作日志
- * @apiName 删除操作日志
- * @apiGroup 系统设置-操作日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/log/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 操作日志id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/log/delete 02.删除多条操作日志
- * @apiName 删除多条操作日志
- * @apiGroup 系统设置-操作日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/log/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 操作日志id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/log/list 03.分页查询操作日志
- * @apiName 分页查询操作日志
- * @apiGroup 系统设置-操作日志管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/log/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Long } [ userId ] 用户ID
- * @apiQuery { String } [ userIp ] 用户IP
- * @apiQuery { String } [ method ] 请求类型
- * @apiQuery { Integer } [ platform ] 平台类型 1:管理端 2:小程序端
- * @apiQuery { String } [ uri ] 请求接口名
- * @apiQuery { Boolean } [ success ] 是否请求成功
- * @apiQuery { Long } [ time ] 请求耗时
- * @apiQuery { String } [ fileName ] 异常文件
- * @apiQuery { Integer } [ lineNumber ] 异常行号
- * @apiQuery { Date } [ createTimeStart ] 请求时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 请求时间 结束时间
- * @apiQuery { String } [ request ] 请求参数
- * @apiQuery { String } [ response ] 响应结果
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id 日志ID
- * @apiSuccess { Long } data.list.userId 用户ID
- * @apiSuccess { String } data.list.userIp 用户IP
- * @apiSuccess { String } data.list.method 请求类型
- * @apiSuccess { Integer } data.list.platform 平台类型 1:管理端 2:小程序端
- * @apiSuccess { String } data.list.uri 请求接口名
- * @apiSuccess { Boolean } data.list.success 是否请求成功
- * @apiSuccess { Long } data.list.time 请求耗时
- * @apiSuccess { String } data.list.fileName 异常文件
- * @apiSuccess { Integer } data.list.lineNumber 异常行号
- * @apiSuccess { Date } data.list.createTime 请求时间
- * @apiSuccess { String } data.list.request 请求参数
- * @apiSuccess { String } data.list.response 响应结果
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "userId":1, "userIp":"", "method":"", "platform":1, "uri":"", "success":true, "time":1, "fileName":"", "lineNumber":1, "createTime":1650761871437, "request":"", "response":""}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/attendance/score 01.评分
- * @apiName 评分
- * @apiGroup 系统设置-考勤管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/attendance/score#POST】
- * @apiVersion 1.0.0
- * @apiBody { Long } userId 用户id
- * @apiBody { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } month 考勤月份 yyyy-MM
- * @apiBody { Integer } changeScore 变动分值
- * @apiBody { String } event 事件
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id 主键
- * @apiSuccess { Long } data.userId 用户id
- * @apiSuccess { Integer } data.lastScore 上次分值
- * @apiSuccess { Integer } data.changeScore 变动分值
- * @apiSuccess { Integer } data.currentScore 当前分值
- * @apiSuccess { String } data.month 考勤年月
- * @apiSuccess { Integer } data.type 考勤类型 1:任务 2:手动
- * @apiSuccess { String } data.event 事件
- * @apiSuccess { Date } data.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "userId":1, "lastScore":1, "changeScore":1, "currentScore":1, "month":"", "type":1, "event":"", "createTime":1650761871437}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/attendance/list/statistical 02.分页查询考勤统计
- * @apiName 分页查询考勤统计
- * @apiGroup 系统设置-考勤管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/attendance/list/statistical#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } [ month ] 考勤年月
- * @apiQuery { String } [ username ] 用户名
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -month ] 排序规则(默认month倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.userId 用户id
- * @apiSuccess { String } data.list.username 用户姓名
- * @apiSuccess { String } data.list.telephone 手机号
- * @apiSuccess { Integer } data.list.score 本月评分
- * @apiSuccess { String } data.list.month 考勤年月
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"userId":1, "username":"", "telephone":"", "score":1, "month":""}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/attendance/list 03.分页查询考勤
- * @apiName 分页查询考勤
- * @apiGroup 系统设置-考勤管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/attendance/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } month 考勤年月
- * @apiQuery { Long } userId 用户id
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id 主键
- * @apiSuccess { Long } data.list.userId 用户id
- * @apiSuccess { Integer } data.list.lastScore 上次分值
- * @apiSuccess { Integer } data.list.changeScore 变动分值
- * @apiSuccess { Integer } data.list.currentScore 当前分值
- * @apiSuccess { String } data.list.month 考勤年月
- * @apiSuccess { Integer } data.list.type 考勤类型 1:任务 2:手动
- * @apiSuccess { String } data.list.event 事件
- * @apiSuccess { Date } data.list.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "userId":1, "lastScore":1, "changeScore":1, "currentScore":1, "month":"", "type":1, "event":"", "createTime":1650761871439}]}, "message":"", "code":1}
- */
- /**
- * @api {put} /v1/system/pue/update 01.更新电量
- * @apiName 更新电量
- * @apiGroup 系统设置-PUE管理
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/pue/update#PUT】
- * @apiVersion 1.0.0
- * @apiBody { Date } month 年月
- * @apiBody { Float } electricityIt it用电量
- * @apiBody { Float } electricityTotal 总用电量
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.id id主键
- * @apiSuccess { Float } data.electricityIt it用电量
- * @apiSuccess { Float } data.electricityTotal 总用电量
- * @apiSuccess { Date } data.month 年月
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"id":1, "electricityIt":1.0, "electricityTotal":1.0, "month":1650761871439}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/pue/list/statistical 02.分页查询电量统计数据
- * @apiName 分页查询电量统计数据
- * @apiGroup 系统设置-PUE管理
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/pue/list/statistical#GET】
- * @apiVersion 1.0.0
- * @apiQuery { Date } [ time ] 年
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -month ] 排序规则(默认month倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { String } data.list.year 年
- * @apiSuccess { String } data.list.month 月
- * @apiSuccess { Float } data.list.electricityIt it用电量
- * @apiSuccess { Float } data.list.electricityTotal 总用电量
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"year":"", "month":"", "electricityIt":1.0, "electricityTotal":1.0}]}, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/status 01.系统状态
- * @apiName 系统状态
- * @apiGroup 系统设置-系统信息
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/status#GET】
- * @apiVersion 1.0.0
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Object } data.cpu CPU信息
- * @apiSuccess { String } data.cpu.name 名称
- * @apiSuccess { Integer } data.cpu.pack 物理CPU数
- * @apiSuccess { Integer } data.cpu.core 物理核心数
- * @apiSuccess { Integer } data.cpu.coreNumber 核心数
- * @apiSuccess { Integer } data.cpu.logic 逻辑CPU数
- * @apiSuccess { String } data.cpu.usageRate CPU用户使用率
- * @apiSuccess { String } data.cpu.idle CPU当前空闲率
- * @apiSuccess { Object } data.memory 內存信息
- * @apiSuccess { String } data.memory.total 内存总量
- * @apiSuccess { String } data.memory.available 剩余内存
- * @apiSuccess { String } data.memory.used 已用内存
- * @apiSuccess { String } data.memory.usageRate 使用率
- * @apiSuccess { Object } data.sys 服务器信息
- * @apiSuccess { String } data.sys.os 操作系统
- * @apiSuccess { String } data.sys.time 服务器运行时间
- * @apiSuccess { String } data.sys.ip 服务器Ip
- * @apiSuccess { String } data.sys.dir 项目路径
- * @apiSuccess { Object } data.swap 交换区信息
- * @apiSuccess { String } data.swap.total 内存总量
- * @apiSuccess { String } data.swap.available 剩余内存
- * @apiSuccess { String } data.swap.used 已用内存
- * @apiSuccess { String } data.swap.usageRate 使用率
- * @apiSuccess { Object } data.disk 磁盘信息
- * @apiSuccess { String } data.disk.total 磁盘总量
- * @apiSuccess { String } data.disk.available 剩余容量
- * @apiSuccess { String } data.disk.used 已用容量
- * @apiSuccess { String } data.disk.usageRate 使用率
- * @apiSuccess { Date } data.time 时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"cpu":{"name":"", "pack":1, "core":1, "coreNumber":1, "logic":1, "usageRate":"", "idle":""}, "memory":{"total":"", "available":"", "used":"", "usageRate":""}, "sys":{"os":"", "time":"", "ip":"", "dir":""}, "swap":{"total":"", "available":"", "used":"", "usageRate":""}, "disk":{"total":"", "available":"", "used":"", "usageRate":""}, "time":1650761871439}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/system/database/backup/add 01.添加数据备份
- * @apiName 添加数据备份
- * @apiGroup 系统设置-数据备份
- * @apiHeader {String = application/json} Content-Type = application/json
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/database/backup/add#POST】
- * @apiVersion 1.0.0
- * @apiBody { String } remark 备注
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/database/backup/delete/:id 02.删除数据备份
- * @apiName 删除数据备份
- * @apiGroup 系统设置-数据备份
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/database/backup/delete/{id}#DELETE】
- * @apiVersion 1.0.0
- * @apiParam { Long } id 数据备份id
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {delete} /v1/system/database/backup/delete 03.删除多条数据备份
- * @apiName 删除多条数据备份
- * @apiGroup 系统设置-数据备份
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/database/backup/delete#DELETE】
- * @apiVersion 1.0.0
- * @apiQuery { Long[] { 1-2147483647 } } ids 数据备份id数组
- * @apiSuccess { Boolean } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":true, "message":"", "code":1}
- */
- /**
- * @api {get} /v1/system/database/backup/list 04.分页查询数据备份
- * @apiName 分页查询数据备份
- * @apiGroup 系统设置-数据备份
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息
- * @apiPermission 【/v1/system/database/backup/list#GET】
- * @apiVersion 1.0.0
- * @apiQuery { String } [ name ] 文件名
- * @apiQuery { String } [ path ] 访问路径
- * @apiQuery { Integer } [ type ] 类型 1:自动备份 2:手动备份
- * @apiQuery { Integer } [ status ] 状态 1:正在备份 2:备份失败 3:备份完成
- * @apiQuery { Long } [ fileSize ] 文件大小
- * @apiQuery { String } [ remark ] 备注
- * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间
- * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间
- * @apiQuery { Integer } [ page = 1 ] 页码
- * @apiQuery { Integer } [ size = 10 ] 页大小
- * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
- * @apiSuccess { Object } data 数据
- * @apiSuccess { Long } data.total 数据总数
- * @apiSuccess { Object[] } data.list 数据列表
- * @apiSuccess { Long } data.list.id id主键
- * @apiSuccess { String } data.list.name 文件名
- * @apiSuccess { String } data.list.path 访问路径
- * @apiSuccess { Integer } data.list.type 类型 1:自动备份 2:手动备份
- * @apiSuccess { Integer } data.list.status 状态 1:正在备份 2:备份失败 3:备份完成
- * @apiSuccess { Long } data.list.fileSize 文件大小
- * @apiSuccess { String } data.list.remark 备注
- * @apiSuccess { Date } data.list.createTime 创建时间
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":{"total":1, "list":[{"id":1, "name":"", "path":"", "type":1, "status":1, "fileSize":1, "remark":"", "createTime":1650761871439}]}, "message":"", "code":1}
- */
- /**
- * @api {post} /v1/file/upload 01.文件上传
- * @apiName 文件上传
- * @apiGroup 文件服务-文件
- * @apiHeader {String = multipart/form-data} Content-Type = multipart/form-data
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiBody { File } file 文件
- * @apiSuccess { String } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":"", "message":"", "code":1}
- */
- /**
- * @api {post} /v1/file/uploads 02.多文件上传
- * @apiName 多文件上传
- * @apiGroup 文件服务-文件
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiSuccess { String[] } data 数据
- * @apiSuccess { String } message 信息
- * @apiSuccess { Integer } code 状态码
- * @apiSuccessExample Response
- *
- * {"data":[""], "message":"", "code":1}
- */
- /**
- * @api {get} /v1/file/query/:path 03.文件下载
- * @apiName 文件下载
- * @apiGroup 文件服务-文件
- * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
- * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
- * @apiVersion 1.0.0
- * @apiParam { String } path 文件存储路径
- */
|