swagger.json 81 KB

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