docs.go 74 KB

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