swagger.json 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "工程项目管理系统-接口",
  5. "title": "工程项目管理系统 API",
  6. "contact": {
  7. "name": "CP Support"
  8. },
  9. "license": {},
  10. "version": "1.0"
  11. },
  12. "paths": {
  13. "/api/bidsection/create": {
  14. "post": {
  15. "security": [
  16. {
  17. "ApiKeyAuth": []
  18. }
  19. ],
  20. "description": "新增标段",
  21. "consumes": [
  22. "application/json"
  23. ],
  24. "produces": [
  25. "application/json"
  26. ],
  27. "tags": [
  28. "目录相关-管理员"
  29. ],
  30. "summary": "新增标段",
  31. "parameters": [
  32. {
  33. "description": "目录ID",
  34. "name": "folderId",
  35. "in": "body",
  36. "required": true,
  37. "schema": {
  38. "type": "string"
  39. }
  40. },
  41. {
  42. "description": "名称",
  43. "name": "name",
  44. "in": "body",
  45. "required": true,
  46. "schema": {
  47. "type": "string"
  48. }
  49. }
  50. ],
  51. "responses": {
  52. "200": {
  53. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  54. "schema": {
  55. "type": "string"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "/api/contract": {
  62. "delete": {
  63. "security": [
  64. {
  65. "ApiKeyAuth": []
  66. }
  67. ],
  68. "description": "删除合同",
  69. "consumes": [
  70. "application/json"
  71. ],
  72. "produces": [
  73. "application/json"
  74. ],
  75. "tags": [
  76. "合同管理"
  77. ],
  78. "summary": "删除合同",
  79. "parameters": [
  80. {
  81. "type": "string",
  82. "description": "合同ID",
  83. "name": "id",
  84. "in": "path",
  85. "required": true
  86. },
  87. {
  88. "type": "string",
  89. "description": "项目节ID",
  90. "name": "treeId",
  91. "in": "path",
  92. "required": true
  93. },
  94. {
  95. "type": "string",
  96. "description": "标段ID",
  97. "name": "bidsectionId",
  98. "in": "path",
  99. "required": true
  100. }
  101. ],
  102. "responses": {
  103. "200": {
  104. "description": "{code:0成功,-1参数类错误,msg:错误信息}",
  105. "schema": {
  106. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  107. }
  108. }
  109. }
  110. }
  111. },
  112. "/api/contract/close": {
  113. "post": {
  114. "security": [
  115. {
  116. "ApiKeyAuth": []
  117. }
  118. ],
  119. "description": "关闭合同",
  120. "consumes": [
  121. "application/json"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "tags": [
  127. "合同管理"
  128. ],
  129. "summary": "关闭合同",
  130. "parameters": [
  131. {
  132. "type": "string",
  133. "description": "合同ID",
  134. "name": "id",
  135. "in": "path",
  136. "required": true
  137. },
  138. {
  139. "type": "string",
  140. "description": "项目节ID",
  141. "name": "treeId",
  142. "in": "path",
  143. "required": true
  144. },
  145. {
  146. "type": "string",
  147. "description": "标段ID",
  148. "name": "bidsectionId",
  149. "in": "path",
  150. "required": true
  151. }
  152. ],
  153. "responses": {
  154. "200": {
  155. "description": "{code:0成功,-1参数类错误,msg:错误信息}",
  156. "schema": {
  157. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  158. }
  159. }
  160. }
  161. }
  162. },
  163. "/api/contract/folder": {
  164. "get": {
  165. "security": [
  166. {
  167. "ApiKeyAuth": []
  168. }
  169. ],
  170. "description": "获得合同目录和标段",
  171. "consumes": [
  172. "application/json"
  173. ],
  174. "produces": [
  175. "application/json"
  176. ],
  177. "tags": [
  178. "合同管理"
  179. ],
  180. "summary": "获得合同目录和标段",
  181. "responses": {
  182. "200": {
  183. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  184. "schema": {
  185. "$ref": "#/definitions/viewmodels.FolderContract"
  186. }
  187. }
  188. }
  189. }
  190. },
  191. "/api/contract/income": {
  192. "get": {
  193. "security": [
  194. {
  195. "ApiKeyAuth": []
  196. }
  197. ],
  198. "description": "获得合同详情和项目节详情",
  199. "consumes": [
  200. "application/json"
  201. ],
  202. "produces": [
  203. "application/json"
  204. ],
  205. "tags": [
  206. "合同管理"
  207. ],
  208. "summary": "单个合同详情和项目节详情",
  209. "parameters": [
  210. {
  211. "type": "string",
  212. "description": "项目节ID",
  213. "name": "id",
  214. "in": "path",
  215. "required": true
  216. },
  217. {
  218. "type": "string",
  219. "description": "标段ID",
  220. "name": "bidsectionId",
  221. "in": "path",
  222. "required": true
  223. }
  224. ],
  225. "responses": {
  226. "200": {
  227. "description": "{code:0成功,-1参数类错误,isContract:是否有合同(包含孩子们),section:viewmodels.TreeSectionContract,msg:错误信息}",
  228. "schema": {
  229. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  230. }
  231. }
  232. }
  233. }
  234. },
  235. "/api/contract/income/create": {
  236. "post": {
  237. "security": [
  238. {
  239. "ApiKeyAuth": []
  240. }
  241. ],
  242. "description": "编辑合同",
  243. "consumes": [
  244. "application/json"
  245. ],
  246. "produces": [
  247. "application/json"
  248. ],
  249. "tags": [
  250. "合同管理"
  251. ],
  252. "summary": "编辑合同",
  253. "parameters": [
  254. {
  255. "type": "string",
  256. "description": "项目节ID",
  257. "name": "treeId",
  258. "in": "path",
  259. "required": true
  260. },
  261. {
  262. "type": "string",
  263. "description": "标段ID",
  264. "name": "bidsectionId",
  265. "in": "path",
  266. "required": true
  267. },
  268. {
  269. "type": "string",
  270. "description": "合同内容",
  271. "name": "content",
  272. "in": "path",
  273. "required": true
  274. },
  275. {
  276. "type": "string",
  277. "description": "合同名称",
  278. "name": "name",
  279. "in": "path",
  280. "required": true
  281. },
  282. {
  283. "type": "string",
  284. "description": "合同金额",
  285. "name": "price",
  286. "in": "path",
  287. "required": true
  288. },
  289. {
  290. "type": "string",
  291. "description": "甲方",
  292. "name": "partyA",
  293. "in": "path",
  294. "required": true
  295. },
  296. {
  297. "type": "string",
  298. "description": "甲方签约人",
  299. "name": "partyASigner",
  300. "in": "path",
  301. "required": true
  302. },
  303. {
  304. "type": "string",
  305. "description": "已方",
  306. "name": "partyB",
  307. "in": "path",
  308. "required": true
  309. },
  310. {
  311. "type": "string",
  312. "description": "已方签约人",
  313. "name": "partyBSigner",
  314. "in": "path",
  315. "required": true
  316. },
  317. {
  318. "type": "string",
  319. "description": "签约时间",
  320. "name": "signerTime",
  321. "in": "path",
  322. "required": true
  323. },
  324. {
  325. "type": "string",
  326. "description": "备注",
  327. "name": "remarks",
  328. "in": "path",
  329. "required": true
  330. }
  331. ],
  332. "responses": {
  333. "200": {
  334. "description": "{code:0成功,-1参数类错误,msg:错误信息}",
  335. "schema": {
  336. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  337. }
  338. }
  339. }
  340. }
  341. },
  342. "/api/contract/income/section/all": {
  343. "get": {
  344. "security": [
  345. {
  346. "ApiKeyAuth": []
  347. }
  348. ],
  349. "description": "未设置合同项目节 返回项目节模板信息",
  350. "consumes": [
  351. "application/json"
  352. ],
  353. "produces": [
  354. "application/json"
  355. ],
  356. "tags": [
  357. "合同管理"
  358. ],
  359. "summary": "获得标段收入-项目节信息",
  360. "parameters": [
  361. {
  362. "type": "string",
  363. "description": "标段ID",
  364. "name": "bidsectionId",
  365. "in": "path",
  366. "required": true
  367. }
  368. ],
  369. "responses": {
  370. "200": {
  371. "description": "{code:0成功,-1参数类错误,data:viewmodels.TreeSectionContract,msg:错误信息}",
  372. "schema": {
  373. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  374. }
  375. }
  376. }
  377. }
  378. },
  379. "/api/contract/section": {
  380. "delete": {
  381. "security": [
  382. {
  383. "ApiKeyAuth": []
  384. }
  385. ],
  386. "description": "删除 合同项目节",
  387. "consumes": [
  388. "application/json"
  389. ],
  390. "produces": [
  391. "application/json"
  392. ],
  393. "tags": [
  394. "合同管理"
  395. ],
  396. "summary": "删除 合同项目节",
  397. "parameters": [
  398. {
  399. "description": "项目节ID",
  400. "name": "id",
  401. "in": "body",
  402. "required": true,
  403. "schema": {
  404. "type": "string"
  405. }
  406. },
  407. {
  408. "description": "标段ID",
  409. "name": "bidsectionId",
  410. "in": "body",
  411. "required": true,
  412. "schema": {
  413. "type": "string"
  414. }
  415. }
  416. ],
  417. "responses": {
  418. "200": {
  419. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  420. "schema": {
  421. "type": "string"
  422. }
  423. }
  424. }
  425. }
  426. },
  427. "/api/contract/section/add": {
  428. "post": {
  429. "security": [
  430. {
  431. "ApiKeyAuth": []
  432. }
  433. ],
  434. "description": "新增 合同项目节",
  435. "consumes": [
  436. "application/json"
  437. ],
  438. "produces": [
  439. "application/json"
  440. ],
  441. "tags": [
  442. "合同管理"
  443. ],
  444. "summary": "新增 合同项目节",
  445. "parameters": [
  446. {
  447. "description": "项目节ID",
  448. "name": "id",
  449. "in": "body",
  450. "required": true,
  451. "schema": {
  452. "type": "string"
  453. }
  454. },
  455. {
  456. "description": "标段ID",
  457. "name": "bidsectionId",
  458. "in": "body",
  459. "required": true,
  460. "schema": {
  461. "type": "string"
  462. }
  463. },
  464. {
  465. "description": "项目节名称",
  466. "name": "name",
  467. "in": "body",
  468. "required": true,
  469. "schema": {
  470. "type": "string"
  471. }
  472. }
  473. ],
  474. "responses": {
  475. "200": {
  476. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  477. "schema": {
  478. "type": "string"
  479. }
  480. }
  481. }
  482. }
  483. },
  484. "/api/contract/section/depth": {
  485. "post": {
  486. "security": [
  487. {
  488. "ApiKeyAuth": []
  489. }
  490. ],
  491. "description": "operation{upDepth,downDepth}",
  492. "consumes": [
  493. "application/json"
  494. ],
  495. "produces": [
  496. "application/json"
  497. ],
  498. "tags": [
  499. "合同管理"
  500. ],
  501. "summary": "升级降级合同项目节",
  502. "parameters": [
  503. {
  504. "description": "项目节ID",
  505. "name": "id",
  506. "in": "body",
  507. "required": true,
  508. "schema": {
  509. "type": "string"
  510. }
  511. },
  512. {
  513. "description": "标段ID",
  514. "name": "bidsectionId",
  515. "in": "body",
  516. "required": true,
  517. "schema": {
  518. "type": "string"
  519. }
  520. },
  521. {
  522. "default": "upDepth",
  523. "description": "操作名称",
  524. "name": "operation",
  525. "in": "body",
  526. "required": true,
  527. "schema": {
  528. "type": "string"
  529. }
  530. }
  531. ],
  532. "responses": {
  533. "200": {
  534. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  535. "schema": {
  536. "type": "string"
  537. }
  538. }
  539. }
  540. }
  541. },
  542. "/api/contract/section/save": {
  543. "post": {
  544. "security": [
  545. {
  546. "ApiKeyAuth": []
  547. }
  548. ],
  549. "description": "修改合同项目节 名称",
  550. "consumes": [
  551. "application/json"
  552. ],
  553. "produces": [
  554. "application/json"
  555. ],
  556. "tags": [
  557. "合同管理"
  558. ],
  559. "summary": "修改合同项目节 名称",
  560. "parameters": [
  561. {
  562. "description": "项目节ID",
  563. "name": "id",
  564. "in": "body",
  565. "required": true,
  566. "schema": {
  567. "type": "string"
  568. }
  569. },
  570. {
  571. "description": "标段ID",
  572. "name": "bidsectionId",
  573. "in": "body",
  574. "required": true,
  575. "schema": {
  576. "type": "string"
  577. }
  578. },
  579. {
  580. "description": "项目节名称",
  581. "name": "name",
  582. "in": "body",
  583. "required": true,
  584. "schema": {
  585. "type": "string"
  586. }
  587. }
  588. ],
  589. "responses": {
  590. "200": {
  591. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  592. "schema": {
  593. "type": "string"
  594. }
  595. }
  596. }
  597. }
  598. },
  599. "/api/contract/section/serial": {
  600. "post": {
  601. "security": [
  602. {
  603. "ApiKeyAuth": []
  604. }
  605. ],
  606. "description": "operation{upSerial,downSerial}",
  607. "consumes": [
  608. "application/json"
  609. ],
  610. "produces": [
  611. "application/json"
  612. ],
  613. "tags": [
  614. "合同管理"
  615. ],
  616. "summary": "上移下移合同项目节",
  617. "parameters": [
  618. {
  619. "description": "项目节ID",
  620. "name": "id",
  621. "in": "body",
  622. "required": true,
  623. "schema": {
  624. "type": "string"
  625. }
  626. },
  627. {
  628. "description": "标段ID",
  629. "name": "bidsectionId",
  630. "in": "body",
  631. "required": true,
  632. "schema": {
  633. "type": "string"
  634. }
  635. },
  636. {
  637. "default": "upSerial",
  638. "description": "操作名称",
  639. "name": "operation",
  640. "in": "body",
  641. "required": true,
  642. "schema": {
  643. "type": "string"
  644. }
  645. }
  646. ],
  647. "responses": {
  648. "200": {
  649. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  650. "schema": {
  651. "type": "string"
  652. }
  653. }
  654. }
  655. }
  656. },
  657. "/api/contract/section/serial/update": {
  658. "post": {
  659. "security": [
  660. {
  661. "ApiKeyAuth": []
  662. }
  663. ],
  664. "consumes": [
  665. "application/json"
  666. ],
  667. "produces": [
  668. "application/json"
  669. ],
  670. "tags": [
  671. "合同管理"
  672. ],
  673. "summary": "更新合同节序号",
  674. "parameters": [
  675. {
  676. "description": "项目节ID",
  677. "name": "id",
  678. "in": "body",
  679. "required": true,
  680. "schema": {
  681. "type": "string"
  682. }
  683. },
  684. {
  685. "description": "标段ID",
  686. "name": "bidsectionId",
  687. "in": "body",
  688. "required": true,
  689. "schema": {
  690. "type": "string"
  691. }
  692. },
  693. {
  694. "description": "操作名称",
  695. "name": "serial",
  696. "in": "body",
  697. "required": true,
  698. "schema": {
  699. "type": "integer"
  700. }
  701. }
  702. ],
  703. "responses": {
  704. "200": {
  705. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  706. "schema": {
  707. "type": "string"
  708. }
  709. }
  710. }
  711. }
  712. },
  713. "/api/contract/section/template": {
  714. "post": {
  715. "security": [
  716. {
  717. "ApiKeyAuth": []
  718. }
  719. ],
  720. "description": "设置合同项目节模板",
  721. "consumes": [
  722. "application/json"
  723. ],
  724. "produces": [
  725. "application/json"
  726. ],
  727. "tags": [
  728. "合同管理"
  729. ],
  730. "summary": "设置合同项目节模板",
  731. "parameters": [
  732. {
  733. "default": 1,
  734. "description": "模板号",
  735. "name": "templateNumber",
  736. "in": "body",
  737. "required": true,
  738. "schema": {
  739. "type": "integer"
  740. }
  741. },
  742. {
  743. "description": "标段ID",
  744. "name": "bidsectionId",
  745. "in": "body",
  746. "required": true,
  747. "schema": {
  748. "type": "string"
  749. }
  750. }
  751. ],
  752. "responses": {
  753. "200": {
  754. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  755. "schema": {
  756. "type": "string"
  757. }
  758. }
  759. }
  760. }
  761. },
  762. "/api/login": {
  763. "post": {
  764. "description": "登录接口",
  765. "consumes": [
  766. "application/json"
  767. ],
  768. "produces": [
  769. "application/json"
  770. ],
  771. "tags": [
  772. "登录/登出"
  773. ],
  774. "summary": "登录",
  775. "parameters": [
  776. {
  777. "default": "234",
  778. "description": "项目编号",
  779. "name": "code",
  780. "in": "body",
  781. "required": true,
  782. "schema": {
  783. "type": "string"
  784. }
  785. },
  786. {
  787. "default": "caipin",
  788. "description": "项目账号",
  789. "name": "account",
  790. "in": "body",
  791. "required": true,
  792. "schema": {
  793. "type": "string"
  794. }
  795. },
  796. {
  797. "default": "123456",
  798. "description": "密码",
  799. "name": "password",
  800. "in": "body",
  801. "required": true,
  802. "schema": {
  803. "type": "string"
  804. }
  805. }
  806. ],
  807. "responses": {
  808. "200": {
  809. "description": "{code:0成功,data:viewmodels.ProjectAccount,msg:}",
  810. "schema": {
  811. "$ref": "#/definitions/viewmodels.ProjectAccount"
  812. }
  813. },
  814. "400": {
  815. "description": "{code:-1参数类错误,msg:错误信息}",
  816. "schema": {
  817. "type": "string"
  818. }
  819. }
  820. }
  821. }
  822. },
  823. "/api/login/out": {
  824. "post": {
  825. "consumes": [
  826. "application/json"
  827. ],
  828. "produces": [
  829. "application/json"
  830. ],
  831. "tags": [
  832. "登录/登出"
  833. ],
  834. "summary": "登出",
  835. "responses": {
  836. "200": {
  837. "description": "{code:0,msg:string}",
  838. "schema": {
  839. "type": "string"
  840. }
  841. },
  842. "400": {
  843. "description": "{code:-1,msg:string}",
  844. "schema": {
  845. "type": "string"
  846. }
  847. }
  848. }
  849. }
  850. },
  851. "/api/login/project/name": {
  852. "get": {
  853. "consumes": [
  854. "application/json"
  855. ],
  856. "produces": [
  857. "application/json"
  858. ],
  859. "tags": [
  860. "登录/登出"
  861. ],
  862. "summary": "获得项目名称",
  863. "parameters": [
  864. {
  865. "type": "string",
  866. "default": "{code:2}",
  867. "description": "项目编号",
  868. "name": "code",
  869. "in": "query",
  870. "required": true
  871. }
  872. ],
  873. "responses": {
  874. "200": {
  875. "description": "{code:0成功,data:viewmodels.Project,msg:}",
  876. "schema": {
  877. "$ref": "#/definitions/viewmodels.Project"
  878. }
  879. },
  880. "400": {
  881. "description": "{code:-1,msg:string}",
  882. "schema": {
  883. "type": "string"
  884. }
  885. }
  886. }
  887. }
  888. },
  889. "/api/project": {
  890. "get": {
  891. "security": [
  892. {
  893. "ApiKeyAuth": []
  894. }
  895. ],
  896. "description": "获得登陆项目信息",
  897. "consumes": [
  898. "application/json"
  899. ],
  900. "produces": [
  901. "application/json"
  902. ],
  903. "tags": [
  904. "项目相关"
  905. ],
  906. "summary": "获得登陆项目信息",
  907. "responses": {
  908. "200": {
  909. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  910. "schema": {
  911. "$ref": "#/definitions/viewmodels.Project"
  912. }
  913. }
  914. }
  915. }
  916. },
  917. "/api/projectAccount": {
  918. "get": {
  919. "security": [
  920. {
  921. "ApiKeyAuth": []
  922. }
  923. ],
  924. "description": "获得登陆账号相关信息",
  925. "tags": [
  926. "项目账号相关"
  927. ],
  928. "summary": "获得登陆账号信息相关",
  929. "responses": {
  930. "200": {
  931. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  932. "schema": {
  933. "type": "string"
  934. }
  935. }
  936. }
  937. }
  938. },
  939. "/api/projectAccount/list": {
  940. "get": {
  941. "security": [
  942. {
  943. "ApiKeyAuth": []
  944. }
  945. ],
  946. "description": "获得项目账号列表",
  947. "tags": [
  948. "项目账号相关"
  949. ],
  950. "summary": "获得项目账号列表",
  951. "responses": {
  952. "200": {
  953. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  954. "schema": {
  955. "type": "string"
  956. }
  957. }
  958. }
  959. }
  960. },
  961. "/api/projectSetting/account": {
  962. "get": {
  963. "security": [
  964. {
  965. "ApiKeyAuth": []
  966. }
  967. ],
  968. "description": "id获得单条信息\u003cbr/\u003e",
  969. "consumes": [
  970. "application/json"
  971. ],
  972. "produces": [
  973. "application/json"
  974. ],
  975. "tags": [
  976. "项目设置-管理员"
  977. ],
  978. "summary": "获得项目账号列表",
  979. "parameters": [
  980. {
  981. "description": "账号ID",
  982. "name": "id",
  983. "in": "body",
  984. "schema": {
  985. "type": "string"
  986. }
  987. }
  988. ],
  989. "responses": {
  990. "200": {
  991. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  992. "schema": {
  993. "$ref": "#/definitions/viewmodels.ProjectAccount"
  994. }
  995. }
  996. }
  997. }
  998. },
  999. "/api/projectSetting/account/change": {
  1000. "post": {
  1001. "security": [
  1002. {
  1003. "ApiKeyAuth": []
  1004. }
  1005. ],
  1006. "description": "设置账号密码",
  1007. "consumes": [
  1008. "application/json"
  1009. ],
  1010. "produces": [
  1011. "application/json"
  1012. ],
  1013. "tags": [
  1014. "项目设置-管理员"
  1015. ],
  1016. "summary": "设置账号密码",
  1017. "parameters": [
  1018. {
  1019. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1020. "description": "账号ID",
  1021. "name": "id",
  1022. "in": "body",
  1023. "required": true,
  1024. "schema": {
  1025. "type": "string"
  1026. }
  1027. },
  1028. {
  1029. "default": "textoopd",
  1030. "description": "账号",
  1031. "name": "account",
  1032. "in": "body",
  1033. "required": true,
  1034. "schema": {
  1035. "type": "string"
  1036. }
  1037. },
  1038. {
  1039. "default": "ww123456",
  1040. "description": "密码",
  1041. "name": "password",
  1042. "in": "body",
  1043. "required": true,
  1044. "schema": {
  1045. "type": "string"
  1046. }
  1047. },
  1048. {
  1049. "type": "string",
  1050. "description": "csrf",
  1051. "name": "X-CSRF-Token",
  1052. "in": "header",
  1053. "required": true
  1054. }
  1055. ],
  1056. "responses": {
  1057. "200": {
  1058. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1059. "schema": {
  1060. "type": "string"
  1061. }
  1062. }
  1063. }
  1064. }
  1065. },
  1066. "/api/projectSetting/account/create": {
  1067. "post": {
  1068. "security": [
  1069. {
  1070. "ApiKeyAuth": []
  1071. }
  1072. ],
  1073. "description": "新增账号",
  1074. "consumes": [
  1075. "application/json"
  1076. ],
  1077. "produces": [
  1078. "application/json"
  1079. ],
  1080. "tags": [
  1081. "项目设置-管理员"
  1082. ],
  1083. "summary": "创建账号",
  1084. "parameters": [
  1085. {
  1086. "description": "账号",
  1087. "name": "account",
  1088. "in": "body",
  1089. "required": true,
  1090. "schema": {
  1091. "type": "string"
  1092. }
  1093. },
  1094. {
  1095. "description": "密码",
  1096. "name": "password",
  1097. "in": "body",
  1098. "required": true,
  1099. "schema": {
  1100. "type": "string"
  1101. }
  1102. },
  1103. {
  1104. "description": "姓名",
  1105. "name": "name",
  1106. "in": "body",
  1107. "required": true,
  1108. "schema": {
  1109. "type": "string"
  1110. }
  1111. },
  1112. {
  1113. "description": "公司",
  1114. "name": "company",
  1115. "in": "body",
  1116. "required": true,
  1117. "schema": {
  1118. "type": "string"
  1119. }
  1120. },
  1121. {
  1122. "description": "职位",
  1123. "name": "position",
  1124. "in": "body",
  1125. "required": true,
  1126. "schema": {
  1127. "type": "string"
  1128. }
  1129. },
  1130. {
  1131. "description": "手机",
  1132. "name": "mobile",
  1133. "in": "body",
  1134. "required": true,
  1135. "schema": {
  1136. "type": "string"
  1137. }
  1138. },
  1139. {
  1140. "description": "座机",
  1141. "name": "telephone",
  1142. "in": "body",
  1143. "required": true,
  1144. "schema": {
  1145. "type": "string"
  1146. }
  1147. },
  1148. {
  1149. "description": "账号组",
  1150. "name": "accountGroup",
  1151. "in": "body",
  1152. "required": true,
  1153. "schema": {
  1154. "type": "integer"
  1155. }
  1156. },
  1157. {
  1158. "type": "string",
  1159. "description": "csrf",
  1160. "name": "X-CSRF-Token",
  1161. "in": "header",
  1162. "required": true
  1163. }
  1164. ],
  1165. "responses": {
  1166. "200": {
  1167. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1168. "schema": {
  1169. "type": "string"
  1170. }
  1171. }
  1172. }
  1173. }
  1174. },
  1175. "/api/projectSetting/account/delete": {
  1176. "post": {
  1177. "security": [
  1178. {
  1179. "ApiKeyAuth": []
  1180. }
  1181. ],
  1182. "description": "删除账号",
  1183. "consumes": [
  1184. "application/json"
  1185. ],
  1186. "produces": [
  1187. "application/json"
  1188. ],
  1189. "tags": [
  1190. "项目设置-管理员"
  1191. ],
  1192. "summary": "删除账号",
  1193. "parameters": [
  1194. {
  1195. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1196. "description": "账号ID",
  1197. "name": "id",
  1198. "in": "body",
  1199. "required": true,
  1200. "schema": {
  1201. "type": "string"
  1202. }
  1203. },
  1204. {
  1205. "type": "string",
  1206. "description": "csrf",
  1207. "name": "X-CSRF-Token",
  1208. "in": "header",
  1209. "required": true
  1210. }
  1211. ],
  1212. "responses": {
  1213. "200": {
  1214. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1215. "schema": {
  1216. "type": "string"
  1217. }
  1218. }
  1219. }
  1220. }
  1221. },
  1222. "/api/projectSetting/account/enable": {
  1223. "post": {
  1224. "security": [
  1225. {
  1226. "ApiKeyAuth": []
  1227. }
  1228. ],
  1229. "description": "账号启用/禁用",
  1230. "consumes": [
  1231. "application/json"
  1232. ],
  1233. "produces": [
  1234. "application/json"
  1235. ],
  1236. "tags": [
  1237. "项目设置-管理员"
  1238. ],
  1239. "summary": "账号启用/禁用",
  1240. "parameters": [
  1241. {
  1242. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1243. "description": "账号ID",
  1244. "name": "id",
  1245. "in": "body",
  1246. "required": true,
  1247. "schema": {
  1248. "type": "string"
  1249. }
  1250. },
  1251. {
  1252. "description": "启用/禁用",
  1253. "name": "enable",
  1254. "in": "body",
  1255. "required": true,
  1256. "schema": {
  1257. "type": "integer"
  1258. }
  1259. },
  1260. {
  1261. "type": "string",
  1262. "description": "csrf",
  1263. "name": "X-CSRF-Token",
  1264. "in": "header",
  1265. "required": true
  1266. }
  1267. ],
  1268. "responses": {
  1269. "200": {
  1270. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1271. "schema": {
  1272. "type": "string"
  1273. }
  1274. }
  1275. }
  1276. }
  1277. },
  1278. "/api/projectSetting/account/save": {
  1279. "post": {
  1280. "security": [
  1281. {
  1282. "ApiKeyAuth": []
  1283. }
  1284. ],
  1285. "description": "编辑账号",
  1286. "consumes": [
  1287. "application/json"
  1288. ],
  1289. "produces": [
  1290. "application/json"
  1291. ],
  1292. "tags": [
  1293. "项目设置-管理员"
  1294. ],
  1295. "summary": "编辑账号",
  1296. "parameters": [
  1297. {
  1298. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1299. "description": "账号ID",
  1300. "name": "id",
  1301. "in": "body",
  1302. "required": true,
  1303. "schema": {
  1304. "type": "string"
  1305. }
  1306. },
  1307. {
  1308. "description": "姓名",
  1309. "name": "name",
  1310. "in": "body",
  1311. "required": true,
  1312. "schema": {
  1313. "type": "string"
  1314. }
  1315. },
  1316. {
  1317. "description": "公司",
  1318. "name": "company",
  1319. "in": "body",
  1320. "required": true,
  1321. "schema": {
  1322. "type": "string"
  1323. }
  1324. },
  1325. {
  1326. "description": "职位",
  1327. "name": "position",
  1328. "in": "body",
  1329. "required": true,
  1330. "schema": {
  1331. "type": "string"
  1332. }
  1333. },
  1334. {
  1335. "description": "座机",
  1336. "name": "telephone",
  1337. "in": "body",
  1338. "required": true,
  1339. "schema": {
  1340. "type": "string"
  1341. }
  1342. },
  1343. {
  1344. "description": "账号组",
  1345. "name": "accountGroup",
  1346. "in": "body",
  1347. "required": true,
  1348. "schema": {
  1349. "type": "integer"
  1350. }
  1351. },
  1352. {
  1353. "type": "string",
  1354. "description": "csrf",
  1355. "name": "X-CSRF-Token",
  1356. "in": "header",
  1357. "required": true
  1358. }
  1359. ],
  1360. "responses": {
  1361. "200": {
  1362. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1363. "schema": {
  1364. "type": "string"
  1365. }
  1366. }
  1367. }
  1368. }
  1369. },
  1370. "/api/projectSetting/account/search": {
  1371. "get": {
  1372. "security": [
  1373. {
  1374. "ApiKeyAuth": []
  1375. }
  1376. ],
  1377. "description": "检索字段:账号 姓名 单位 手机 前匹配",
  1378. "consumes": [
  1379. "application/json"
  1380. ],
  1381. "produces": [
  1382. "application/json"
  1383. ],
  1384. "tags": [
  1385. "项目设置-管理员"
  1386. ],
  1387. "summary": "检索账号信息",
  1388. "parameters": [
  1389. {
  1390. "description": "检索内容",
  1391. "name": "name",
  1392. "in": "body",
  1393. "required": true,
  1394. "schema": {
  1395. "type": "string"
  1396. }
  1397. }
  1398. ],
  1399. "responses": {
  1400. "200": {
  1401. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1402. "schema": {
  1403. "$ref": "#/definitions/viewmodels.ProjectAccount"
  1404. }
  1405. }
  1406. }
  1407. }
  1408. },
  1409. "/api/projectSetting/bid/account": {
  1410. "get": {
  1411. "security": [
  1412. {
  1413. "ApiKeyAuth": []
  1414. }
  1415. ],
  1416. "description": "获得标段账号",
  1417. "consumes": [
  1418. "application/json"
  1419. ],
  1420. "produces": [
  1421. "application/json"
  1422. ],
  1423. "tags": [
  1424. "项目设置-标段成员权限-管理员"
  1425. ],
  1426. "summary": "获得标段账号",
  1427. "parameters": [
  1428. {
  1429. "type": "string",
  1430. "description": "标段ID",
  1431. "name": "bidsectionId",
  1432. "in": "path"
  1433. }
  1434. ],
  1435. "responses": {
  1436. "200": {
  1437. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1438. "schema": {
  1439. "$ref": "#/definitions/viewmodels.ProjectAccount"
  1440. }
  1441. }
  1442. }
  1443. },
  1444. "delete": {
  1445. "security": [
  1446. {
  1447. "ApiKeyAuth": []
  1448. }
  1449. ],
  1450. "description": "移除标段成员-账号",
  1451. "consumes": [
  1452. "application/json"
  1453. ],
  1454. "produces": [
  1455. "application/json"
  1456. ],
  1457. "tags": [
  1458. "项目设置-标段成员权限-管理员"
  1459. ],
  1460. "summary": "移除标段成员-账号",
  1461. "parameters": [
  1462. {
  1463. "description": "标段ID",
  1464. "name": "bidsectionId",
  1465. "in": "body",
  1466. "schema": {
  1467. "type": "string"
  1468. }
  1469. },
  1470. {
  1471. "description": "账号ID",
  1472. "name": "accountId",
  1473. "in": "body",
  1474. "schema": {
  1475. "type": "string"
  1476. }
  1477. }
  1478. ],
  1479. "responses": {
  1480. "200": {
  1481. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1482. "schema": {
  1483. "type": "string"
  1484. }
  1485. }
  1486. }
  1487. }
  1488. },
  1489. "/api/projectSetting/bid/account/create": {
  1490. "post": {
  1491. "security": [
  1492. {
  1493. "ApiKeyAuth": []
  1494. }
  1495. ],
  1496. "description": "标段中添加成员-账号",
  1497. "consumes": [
  1498. "application/json"
  1499. ],
  1500. "produces": [
  1501. "application/json"
  1502. ],
  1503. "tags": [
  1504. "项目设置-标段成员权限-管理员"
  1505. ],
  1506. "summary": "标段中添加成员-账号",
  1507. "parameters": [
  1508. {
  1509. "description": "标段ID",
  1510. "name": "bidsectionId",
  1511. "in": "body",
  1512. "schema": {
  1513. "type": "string"
  1514. }
  1515. },
  1516. {
  1517. "description": "账号ID",
  1518. "name": "accountId",
  1519. "in": "body",
  1520. "schema": {
  1521. "type": "string"
  1522. }
  1523. }
  1524. ],
  1525. "responses": {
  1526. "200": {
  1527. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1528. "schema": {
  1529. "type": "string"
  1530. }
  1531. }
  1532. }
  1533. }
  1534. },
  1535. "/api/projectSetting/project/save": {
  1536. "post": {
  1537. "security": [
  1538. {
  1539. "ApiKeyAuth": []
  1540. }
  1541. ],
  1542. "description": "保存项目信息",
  1543. "consumes": [
  1544. "application/json"
  1545. ],
  1546. "produces": [
  1547. "application/json"
  1548. ],
  1549. "tags": [
  1550. "项目设置-管理员"
  1551. ],
  1552. "summary": "保存项目信息",
  1553. "parameters": [
  1554. {
  1555. "default": "红旗大桥",
  1556. "description": "账号ID",
  1557. "name": "name",
  1558. "in": "body",
  1559. "required": true,
  1560. "schema": {
  1561. "type": "string"
  1562. }
  1563. },
  1564. {
  1565. "type": "string",
  1566. "description": "csrf",
  1567. "name": "X-CSRF-Token",
  1568. "in": "header",
  1569. "required": true
  1570. }
  1571. ],
  1572. "responses": {
  1573. "200": {
  1574. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1575. "schema": {
  1576. "type": "string"
  1577. }
  1578. }
  1579. }
  1580. }
  1581. },
  1582. "/api/rule": {
  1583. "get": {
  1584. "security": [
  1585. {
  1586. "ApiKeyAuth": []
  1587. }
  1588. ],
  1589. "description": "获得制定pid、bid的编号规则",
  1590. "consumes": [
  1591. "application/json"
  1592. ],
  1593. "produces": [
  1594. "application/json"
  1595. ],
  1596. "tags": [
  1597. "编号规则"
  1598. ],
  1599. "summary": "获取编号规则",
  1600. "parameters": [
  1601. {
  1602. "type": "string",
  1603. "description": "标段ID",
  1604. "name": "bidsectionId",
  1605. "in": "path",
  1606. "required": true
  1607. },
  1608. {
  1609. "type": "string",
  1610. "description": "项目ID",
  1611. "name": "projectId",
  1612. "in": "path",
  1613. "required": true
  1614. }
  1615. ],
  1616. "responses": {
  1617. "200": {
  1618. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1619. "schema": {
  1620. "$ref": "#/definitions/viewmodels.Safe"
  1621. }
  1622. },
  1623. "400": {
  1624. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1625. "schema": {
  1626. "type": "string"
  1627. }
  1628. }
  1629. }
  1630. },
  1631. "post": {
  1632. "security": [
  1633. {
  1634. "ApiKeyAuth": []
  1635. }
  1636. ],
  1637. "description": "提交规则",
  1638. "consumes": [
  1639. "application/json"
  1640. ],
  1641. "produces": [
  1642. "application/json"
  1643. ],
  1644. "tags": [
  1645. "编号规则"
  1646. ],
  1647. "summary": "提交规则",
  1648. "parameters": [
  1649. {
  1650. "description": "标段ID",
  1651. "name": "bidsectionId",
  1652. "in": "body",
  1653. "required": true,
  1654. "schema": {
  1655. "type": "string"
  1656. }
  1657. },
  1658. {
  1659. "description": "规则类型",
  1660. "name": "type",
  1661. "in": "body",
  1662. "required": true,
  1663. "schema": {
  1664. "type": "string"
  1665. }
  1666. },
  1667. {
  1668. "description": "编号规则",
  1669. "name": "value",
  1670. "in": "body",
  1671. "required": true,
  1672. "schema": {
  1673. "type": "string"
  1674. }
  1675. }
  1676. ],
  1677. "responses": {
  1678. "200": {
  1679. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1680. "schema": {
  1681. "$ref": "#/definitions/viewmodels.Safe"
  1682. }
  1683. },
  1684. "400": {
  1685. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1686. "schema": {
  1687. "type": "string"
  1688. }
  1689. }
  1690. }
  1691. }
  1692. },
  1693. "/api/safe": {
  1694. "get": {
  1695. "security": [
  1696. {
  1697. "ApiKeyAuth": []
  1698. }
  1699. ],
  1700. "description": "获得列表数据",
  1701. "consumes": [
  1702. "application/json"
  1703. ],
  1704. "produces": [
  1705. "application/json"
  1706. ],
  1707. "tags": [
  1708. "安全巡检"
  1709. ],
  1710. "summary": "安全巡检列表",
  1711. "parameters": [
  1712. {
  1713. "type": "string",
  1714. "description": "标段ID",
  1715. "name": "bidsectionId",
  1716. "in": "path",
  1717. "required": true
  1718. }
  1719. ],
  1720. "responses": {
  1721. "200": {
  1722. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1723. "schema": {
  1724. "$ref": "#/definitions/viewmodels.Safe"
  1725. }
  1726. },
  1727. "400": {
  1728. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1729. "schema": {
  1730. "type": "string"
  1731. }
  1732. }
  1733. }
  1734. },
  1735. "post": {
  1736. "security": [
  1737. {
  1738. "ApiKeyAuth": []
  1739. }
  1740. ],
  1741. "description": "创建新的安全巡检记录",
  1742. "consumes": [
  1743. "application/json"
  1744. ],
  1745. "produces": [
  1746. "application/json"
  1747. ],
  1748. "tags": [
  1749. "安全巡检"
  1750. ],
  1751. "summary": "安全巡检列表",
  1752. "parameters": [
  1753. {
  1754. "description": "标段ID",
  1755. "name": "bidsectionId",
  1756. "in": "body",
  1757. "required": true,
  1758. "schema": {
  1759. "type": "string"
  1760. }
  1761. },
  1762. {
  1763. "description": "编号",
  1764. "name": "code",
  1765. "in": "body",
  1766. "required": true,
  1767. "schema": {
  1768. "type": "string"
  1769. }
  1770. },
  1771. {
  1772. "description": "日期",
  1773. "name": "createTime",
  1774. "in": "body",
  1775. "required": true,
  1776. "schema": {
  1777. "type": "string"
  1778. }
  1779. },
  1780. {
  1781. "description": "检查部位",
  1782. "name": "inspection",
  1783. "in": "body",
  1784. "required": true,
  1785. "schema": {
  1786. "type": "string"
  1787. }
  1788. },
  1789. {
  1790. "description": "部位",
  1791. "name": "position",
  1792. "in": "body",
  1793. "required": true,
  1794. "schema": {
  1795. "type": "string"
  1796. }
  1797. }
  1798. ],
  1799. "responses": {
  1800. "200": {
  1801. "description": "{code:0成功,msg:}",
  1802. "schema": {
  1803. "$ref": "#/definitions/viewmodels.Safe"
  1804. }
  1805. },
  1806. "400": {
  1807. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1808. "schema": {
  1809. "type": "string"
  1810. }
  1811. }
  1812. }
  1813. },
  1814. "delete": {
  1815. "security": [
  1816. {
  1817. "ApiKeyAuth": []
  1818. }
  1819. ],
  1820. "description": "删除安全巡检记录",
  1821. "consumes": [
  1822. "application/json"
  1823. ],
  1824. "produces": [
  1825. "application/json"
  1826. ],
  1827. "tags": [
  1828. "安全巡检"
  1829. ],
  1830. "summary": "安全巡检列表",
  1831. "parameters": [
  1832. {
  1833. "description": "安全巡检ID",
  1834. "name": "id",
  1835. "in": "body",
  1836. "required": true,
  1837. "schema": {
  1838. "type": "string"
  1839. }
  1840. }
  1841. ],
  1842. "responses": {
  1843. "200": {
  1844. "description": "{code:0成功,msg:}",
  1845. "schema": {
  1846. "$ref": "#/definitions/viewmodels.Safe"
  1847. }
  1848. },
  1849. "400": {
  1850. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1851. "schema": {
  1852. "type": "string"
  1853. }
  1854. }
  1855. }
  1856. }
  1857. },
  1858. "/api/safe/detail": {
  1859. "get": {
  1860. "security": [
  1861. {
  1862. "ApiKeyAuth": []
  1863. }
  1864. ],
  1865. "description": "获得安全巡检详情页面数据",
  1866. "consumes": [
  1867. "application/json"
  1868. ],
  1869. "produces": [
  1870. "application/json"
  1871. ],
  1872. "tags": [
  1873. "安全巡检"
  1874. ],
  1875. "summary": "安全巡检列表",
  1876. "parameters": [
  1877. {
  1878. "type": "string",
  1879. "description": "巡检ID",
  1880. "name": "id",
  1881. "in": "path",
  1882. "required": true
  1883. }
  1884. ],
  1885. "responses": {
  1886. "200": {
  1887. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1888. "schema": {
  1889. "$ref": "#/definitions/viewmodels.Safe"
  1890. }
  1891. },
  1892. "400": {
  1893. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1894. "schema": {
  1895. "type": "string"
  1896. }
  1897. }
  1898. }
  1899. }
  1900. },
  1901. "/api/tree": {
  1902. "get": {
  1903. "security": [
  1904. {
  1905. "ApiKeyAuth": []
  1906. }
  1907. ],
  1908. "description": "获得目录和数据",
  1909. "consumes": [
  1910. "application/json"
  1911. ],
  1912. "produces": [
  1913. "application/json"
  1914. ],
  1915. "tags": [
  1916. "目录相关-管理员"
  1917. ],
  1918. "summary": "获得目录和数据",
  1919. "responses": {
  1920. "200": {
  1921. "description": "{code:0成功,data:viewmodels.Tree,msg:}",
  1922. "schema": {
  1923. "$ref": "#/definitions/viewmodels.Tree"
  1924. }
  1925. },
  1926. "400": {
  1927. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1928. "schema": {
  1929. "type": "string"
  1930. }
  1931. }
  1932. }
  1933. },
  1934. "delete": {
  1935. "security": [
  1936. {
  1937. "ApiKeyAuth": []
  1938. }
  1939. ],
  1940. "description": "删除目录下的目录以及其他内容",
  1941. "consumes": [
  1942. "application/json"
  1943. ],
  1944. "produces": [
  1945. "application/json"
  1946. ],
  1947. "tags": [
  1948. "目录相关-管理员"
  1949. ],
  1950. "summary": "删除目录",
  1951. "parameters": [
  1952. {
  1953. "description": "目录ID",
  1954. "name": "id",
  1955. "in": "body",
  1956. "required": true,
  1957. "schema": {
  1958. "type": "string"
  1959. }
  1960. }
  1961. ],
  1962. "responses": {
  1963. "200": {
  1964. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1965. "schema": {
  1966. "type": "string"
  1967. }
  1968. }
  1969. }
  1970. }
  1971. },
  1972. "/api/tree/create": {
  1973. "post": {
  1974. "security": [
  1975. {
  1976. "ApiKeyAuth": []
  1977. }
  1978. ],
  1979. "description": "新增目录",
  1980. "consumes": [
  1981. "application/json"
  1982. ],
  1983. "produces": [
  1984. "application/json"
  1985. ],
  1986. "tags": [
  1987. "目录相关-管理员"
  1988. ],
  1989. "summary": "新增目录",
  1990. "parameters": [
  1991. {
  1992. "description": "目录ID",
  1993. "name": "id",
  1994. "in": "body",
  1995. "required": true,
  1996. "schema": {
  1997. "type": "string"
  1998. }
  1999. },
  2000. {
  2001. "description": "目录深度 顶级目录(-1)其他级目录(0)",
  2002. "name": "depth",
  2003. "in": "body",
  2004. "required": true,
  2005. "schema": {
  2006. "type": "integer"
  2007. }
  2008. },
  2009. {
  2010. "description": "目录名称",
  2011. "name": "name",
  2012. "in": "body",
  2013. "required": true,
  2014. "schema": {
  2015. "type": "string"
  2016. }
  2017. }
  2018. ],
  2019. "responses": {
  2020. "200": {
  2021. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2022. "schema": {
  2023. "type": "string"
  2024. }
  2025. }
  2026. }
  2027. }
  2028. },
  2029. "/api/tree/move": {
  2030. "post": {
  2031. "security": [
  2032. {
  2033. "ApiKeyAuth": []
  2034. }
  2035. ],
  2036. "description": "移动文件夹",
  2037. "consumes": [
  2038. "application/json"
  2039. ],
  2040. "produces": [
  2041. "application/json"
  2042. ],
  2043. "tags": [
  2044. "目录相关-管理员"
  2045. ],
  2046. "summary": "移动文件夹",
  2047. "parameters": [
  2048. {
  2049. "description": "目录ID",
  2050. "name": "id",
  2051. "in": "body",
  2052. "required": true,
  2053. "schema": {
  2054. "type": "string"
  2055. }
  2056. },
  2057. {
  2058. "description": "被放置的目录ID",
  2059. "name": "moveId",
  2060. "in": "body",
  2061. "required": true,
  2062. "schema": {
  2063. "type": "string"
  2064. }
  2065. }
  2066. ],
  2067. "responses": {
  2068. "200": {
  2069. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2070. "schema": {
  2071. "type": "string"
  2072. }
  2073. }
  2074. }
  2075. }
  2076. },
  2077. "/api/tree/rename": {
  2078. "post": {
  2079. "security": [
  2080. {
  2081. "ApiKeyAuth": []
  2082. }
  2083. ],
  2084. "description": "重命名-文件夹或者标段",
  2085. "consumes": [
  2086. "application/json"
  2087. ],
  2088. "produces": [
  2089. "application/json"
  2090. ],
  2091. "tags": [
  2092. "目录相关-管理员"
  2093. ],
  2094. "summary": "重命名",
  2095. "parameters": [
  2096. {
  2097. "description": "treeId",
  2098. "name": "id",
  2099. "in": "body",
  2100. "required": true,
  2101. "schema": {
  2102. "type": "string"
  2103. }
  2104. },
  2105. {
  2106. "description": "重命名的名称",
  2107. "name": "name",
  2108. "in": "body",
  2109. "required": true,
  2110. "schema": {
  2111. "type": "string"
  2112. }
  2113. }
  2114. ],
  2115. "responses": {
  2116. "200": {
  2117. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2118. "schema": {
  2119. "type": "string"
  2120. }
  2121. }
  2122. }
  2123. }
  2124. }
  2125. },
  2126. "definitions": {
  2127. "viewmodels.FolderContract": {
  2128. "type": "object",
  2129. "properties": {
  2130. "bidsectionId": {
  2131. "type": "string"
  2132. },
  2133. "children": {
  2134. "type": "array",
  2135. "items": {
  2136. "$ref": "#/definitions/viewmodels.FolderContract"
  2137. }
  2138. },
  2139. "childsTotal": {
  2140. "type": "integer"
  2141. },
  2142. "contracts": {
  2143. "type": "integer"
  2144. },
  2145. "contractsIncome": {
  2146. "type": "string"
  2147. },
  2148. "contractsIncomeProgress": {
  2149. "type": "string"
  2150. },
  2151. "contractsPaid": {
  2152. "type": "string"
  2153. },
  2154. "contractsPay": {
  2155. "type": "string"
  2156. },
  2157. "contractsPayProgress": {
  2158. "type": "string"
  2159. },
  2160. "contractsReturned": {
  2161. "type": "string"
  2162. },
  2163. "csrf": {
  2164. "type": "string"
  2165. },
  2166. "hasFolder": {
  2167. "description": "Leaf bool `json:\"leaf\" `",
  2168. "type": "boolean"
  2169. },
  2170. "id": {
  2171. "type": "string"
  2172. },
  2173. "isBid": {
  2174. "type": "boolean"
  2175. },
  2176. "isEnd": {
  2177. "type": "boolean"
  2178. },
  2179. "isfolder": {
  2180. "type": "integer"
  2181. },
  2182. "name": {
  2183. "type": "string"
  2184. },
  2185. "parentId": {
  2186. "type": "string"
  2187. },
  2188. "projectId": {
  2189. "type": "string"
  2190. },
  2191. "safeRectification": {
  2192. "type": "integer"
  2193. },
  2194. "safeRectificationIn": {
  2195. "type": "integer"
  2196. },
  2197. "safeTotal": {
  2198. "description": "安全巡检字段-后期做接口后移动-TODO",
  2199. "type": "integer"
  2200. }
  2201. }
  2202. },
  2203. "viewmodels.Project": {
  2204. "type": "object",
  2205. "properties": {
  2206. "code": {
  2207. "type": "string"
  2208. },
  2209. "id": {
  2210. "type": "string"
  2211. },
  2212. "name": {
  2213. "type": "string"
  2214. }
  2215. }
  2216. },
  2217. "viewmodels.ProjectAccount": {
  2218. "type": "object",
  2219. "properties": {
  2220. "account": {
  2221. "type": "string"
  2222. },
  2223. "accountGroup": {
  2224. "type": "integer"
  2225. },
  2226. "company": {
  2227. "type": "string"
  2228. },
  2229. "csrf": {
  2230. "type": "string"
  2231. },
  2232. "enable": {
  2233. "type": "integer"
  2234. },
  2235. "id": {
  2236. "type": "string"
  2237. },
  2238. "isAdmin": {
  2239. "type": "integer"
  2240. },
  2241. "mobile": {
  2242. "type": "string"
  2243. },
  2244. "name": {
  2245. "type": "string"
  2246. },
  2247. "password": {
  2248. "type": "string"
  2249. },
  2250. "position": {
  2251. "type": "string"
  2252. },
  2253. "projectId": {
  2254. "type": "string"
  2255. },
  2256. "role": {
  2257. "type": "string"
  2258. },
  2259. "telephone": {
  2260. "type": "string"
  2261. }
  2262. }
  2263. },
  2264. "viewmodels.Safe": {
  2265. "type": "object",
  2266. "properties": {
  2267. "bidsectionId": {
  2268. "type": "string"
  2269. },
  2270. "code": {
  2271. "type": "string"
  2272. },
  2273. "createTime": {
  2274. "type": "string"
  2275. },
  2276. "demand": {
  2277. "type": "string"
  2278. },
  2279. "endTime": {
  2280. "type": "string"
  2281. },
  2282. "id": {
  2283. "type": "string"
  2284. },
  2285. "inspection": {
  2286. "type": "string"
  2287. },
  2288. "inspectionDetail": {
  2289. "type": "string"
  2290. },
  2291. "position": {
  2292. "type": "string"
  2293. },
  2294. "status": {
  2295. "type": "integer"
  2296. },
  2297. "uid": {
  2298. "type": "string"
  2299. }
  2300. }
  2301. },
  2302. "viewmodels.Tree": {
  2303. "type": "object",
  2304. "properties": {
  2305. "ancounts": {
  2306. "type": "integer"
  2307. },
  2308. "attribution": {
  2309. "type": "string"
  2310. },
  2311. "bidsectionId": {
  2312. "type": "string"
  2313. },
  2314. "children": {
  2315. "type": "array",
  2316. "items": {
  2317. "$ref": "#/definitions/viewmodels.Tree"
  2318. }
  2319. },
  2320. "childsTotal": {
  2321. "type": "integer"
  2322. },
  2323. "createTime": {
  2324. "type": "string"
  2325. },
  2326. "csrf": {
  2327. "type": "string"
  2328. },
  2329. "depth": {
  2330. "type": "integer"
  2331. },
  2332. "hasFolder": {
  2333. "description": "Leaf bool `json:\"leaf\" `",
  2334. "type": "boolean"
  2335. },
  2336. "id": {
  2337. "type": "string"
  2338. },
  2339. "isBid": {
  2340. "type": "boolean"
  2341. },
  2342. "isEnd": {
  2343. "type": "boolean"
  2344. },
  2345. "isfolder": {
  2346. "type": "integer"
  2347. },
  2348. "name": {
  2349. "type": "string"
  2350. },
  2351. "parentId": {
  2352. "type": "string"
  2353. },
  2354. "projectId": {
  2355. "type": "string"
  2356. },
  2357. "serial": {
  2358. "type": "string"
  2359. },
  2360. "targetFolderId": {
  2361. "type": "string"
  2362. },
  2363. "updateTime": {
  2364. "type": "string"
  2365. }
  2366. }
  2367. },
  2368. "viewmodels.TreeSectionContract": {
  2369. "type": "object",
  2370. "properties": {
  2371. "attribution": {
  2372. "type": "string"
  2373. },
  2374. "bidsectionId": {
  2375. "type": "string"
  2376. },
  2377. "children": {
  2378. "type": "array",
  2379. "items": {
  2380. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  2381. }
  2382. },
  2383. "code": {
  2384. "type": "string"
  2385. },
  2386. "contractCode": {
  2387. "type": "string"
  2388. },
  2389. "contractId": {
  2390. "type": "string"
  2391. },
  2392. "contractName": {
  2393. "type": "string"
  2394. },
  2395. "contractPrice": {
  2396. "type": "string"
  2397. },
  2398. "contractReturned": {
  2399. "type": "string"
  2400. },
  2401. "contractStatus": {
  2402. "type": "integer"
  2403. },
  2404. "contractsPaid": {
  2405. "type": "string"
  2406. },
  2407. "createTime": {
  2408. "type": "string"
  2409. },
  2410. "depth": {
  2411. "type": "integer"
  2412. },
  2413. "elderBrother": {
  2414. "type": "boolean"
  2415. },
  2416. "id": {
  2417. "type": "string"
  2418. },
  2419. "isEnd": {
  2420. "type": "boolean"
  2421. },
  2422. "name": {
  2423. "type": "string"
  2424. },
  2425. "operation": {
  2426. "type": "string"
  2427. },
  2428. "parentId": {
  2429. "type": "string"
  2430. },
  2431. "projectId": {
  2432. "type": "string"
  2433. },
  2434. "serial": {
  2435. "type": "integer"
  2436. },
  2437. "templateNumber": {
  2438. "type": "integer"
  2439. }
  2440. }
  2441. }
  2442. },
  2443. "securityDefinitions": {
  2444. "ApiKeyAuth": {
  2445. "type": "apiKey",
  2446. "name": "X-CSRF-Token",
  2447. "in": "header"
  2448. }
  2449. }
  2450. }