swagger.yaml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194
  1. definitions:
  2. viewmodels.FolderContract:
  3. properties:
  4. bidsectionId:
  5. type: string
  6. children:
  7. items:
  8. $ref: '#/definitions/viewmodels.FolderContract'
  9. type: array
  10. childsTotal:
  11. type: integer
  12. contracts:
  13. type: integer
  14. contractsIncome:
  15. type: string
  16. contractsIncomeProgress:
  17. type: string
  18. contractsPaid:
  19. type: string
  20. contractsPay:
  21. type: string
  22. contractsPayProgress:
  23. type: string
  24. contractsReturned:
  25. type: string
  26. csrf:
  27. type: string
  28. hasFolder:
  29. description: Leaf bool `json:"leaf" `
  30. type: boolean
  31. id:
  32. type: string
  33. isBid:
  34. type: boolean
  35. isEnd:
  36. type: boolean
  37. isfolder:
  38. type: integer
  39. name:
  40. type: string
  41. parentId:
  42. type: string
  43. projectId:
  44. type: string
  45. type: object
  46. viewmodels.Project:
  47. properties:
  48. code:
  49. type: string
  50. id:
  51. type: string
  52. name:
  53. type: string
  54. type: object
  55. viewmodels.ProjectAccount:
  56. properties:
  57. account:
  58. type: string
  59. accountGroup:
  60. type: integer
  61. company:
  62. type: string
  63. csrf:
  64. type: string
  65. enable:
  66. type: integer
  67. id:
  68. type: string
  69. isAdmin:
  70. type: integer
  71. mobile:
  72. type: string
  73. name:
  74. type: string
  75. password:
  76. type: string
  77. position:
  78. type: string
  79. projectId:
  80. type: string
  81. role:
  82. type: string
  83. telephone:
  84. type: string
  85. type: object
  86. viewmodels.Tree:
  87. properties:
  88. ancounts:
  89. type: integer
  90. attribution:
  91. type: string
  92. bidsectionId:
  93. type: string
  94. children:
  95. items:
  96. $ref: '#/definitions/viewmodels.Tree'
  97. type: array
  98. childsTotal:
  99. type: integer
  100. createTime:
  101. type: string
  102. csrf:
  103. type: string
  104. depth:
  105. type: integer
  106. hasFolder:
  107. description: Leaf bool `json:"leaf" `
  108. type: boolean
  109. id:
  110. type: string
  111. isBid:
  112. type: boolean
  113. isEnd:
  114. type: boolean
  115. isfolder:
  116. type: integer
  117. name:
  118. type: string
  119. parentId:
  120. type: string
  121. projectId:
  122. type: string
  123. serial:
  124. type: string
  125. targetFolderId:
  126. type: string
  127. updateTime:
  128. type: string
  129. type: object
  130. viewmodels.TreeSectionContract:
  131. properties:
  132. attribution:
  133. type: string
  134. bidsectionId:
  135. type: string
  136. children:
  137. items:
  138. $ref: '#/definitions/viewmodels.TreeSectionContract'
  139. type: array
  140. code:
  141. type: string
  142. contractCode:
  143. type: string
  144. contractId:
  145. type: string
  146. contractName:
  147. type: string
  148. contractPrice:
  149. type: string
  150. contractReturned:
  151. type: string
  152. contractStatus:
  153. type: integer
  154. contractsPaid:
  155. type: string
  156. createTime:
  157. type: string
  158. depth:
  159. type: integer
  160. elderBrother:
  161. type: boolean
  162. id:
  163. type: string
  164. isEnd:
  165. type: boolean
  166. name:
  167. type: string
  168. operation:
  169. type: string
  170. parentId:
  171. type: string
  172. projectId:
  173. type: string
  174. serial:
  175. type: integer
  176. templateNumber:
  177. type: integer
  178. type: object
  179. info:
  180. contact:
  181. name: CP Support
  182. description: 工程项目管理系统-接口
  183. license: {}
  184. title: 工程项目管理系统 API
  185. version: "1.0"
  186. paths:
  187. /api/bidsection/create:
  188. post:
  189. consumes:
  190. - application/json
  191. description: 新增标段
  192. parameters:
  193. - description: 目录ID
  194. in: body
  195. name: folderId
  196. required: true
  197. schema:
  198. type: string
  199. - description: 名称
  200. in: body
  201. name: name
  202. required: true
  203. schema:
  204. type: string
  205. produces:
  206. - application/json
  207. responses:
  208. "200":
  209. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  210. schema:
  211. type: string
  212. security:
  213. - ApiKeyAuth: []
  214. summary: 新增标段
  215. tags:
  216. - 目录相关-管理员
  217. /api/contract/folder:
  218. get:
  219. consumes:
  220. - application/json
  221. description: 获得合同目录和标段
  222. produces:
  223. - application/json
  224. responses:
  225. "200":
  226. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  227. schema:
  228. $ref: '#/definitions/viewmodels.FolderContract'
  229. security:
  230. - ApiKeyAuth: []
  231. summary: 获得合同目录和标段
  232. tags:
  233. - 合同管理
  234. /api/contract/income:
  235. get:
  236. consumes:
  237. - application/json
  238. description: 获得合同详情和项目节详情
  239. parameters:
  240. - description: 项目节ID
  241. in: path
  242. name: id
  243. required: true
  244. type: string
  245. - description: 标段ID
  246. in: path
  247. name: bidsectionId
  248. required: true
  249. type: string
  250. produces:
  251. - application/json
  252. responses:
  253. "200":
  254. description: '{code:0成功,-1参数类错误,isContract:是否有合同(包含孩子们),section:viewmodels.TreeSectionContract,msg:错误信息}'
  255. schema:
  256. $ref: '#/definitions/viewmodels.TreeSectionContract'
  257. security:
  258. - ApiKeyAuth: []
  259. summary: 单个合同详情和项目节详情
  260. tags:
  261. - 合同管理
  262. /api/contract/income/section/all:
  263. get:
  264. consumes:
  265. - application/json
  266. description: 未设置合同项目节 返回项目节模板信息
  267. parameters:
  268. - description: 标段ID
  269. in: path
  270. name: bidsectionId
  271. required: true
  272. type: string
  273. produces:
  274. - application/json
  275. responses:
  276. "200":
  277. description: '{code:0成功,-1参数类错误,data:viewmodels.TreeSectionContract,msg:错误信息}'
  278. schema:
  279. $ref: '#/definitions/viewmodels.TreeSectionContract'
  280. security:
  281. - ApiKeyAuth: []
  282. summary: 获得标段收入-项目节信息
  283. tags:
  284. - 合同管理
  285. /api/contract/section:
  286. delete:
  287. consumes:
  288. - application/json
  289. description: 删除 合同项目节
  290. parameters:
  291. - description: 项目节ID
  292. in: body
  293. name: id
  294. required: true
  295. schema:
  296. type: string
  297. - description: 标段ID
  298. in: body
  299. name: bidsectionId
  300. required: true
  301. schema:
  302. type: string
  303. produces:
  304. - application/json
  305. responses:
  306. "200":
  307. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  308. schema:
  309. type: string
  310. security:
  311. - ApiKeyAuth: []
  312. summary: 删除 合同项目节
  313. tags:
  314. - 合同管理
  315. /api/contract/section/add:
  316. post:
  317. consumes:
  318. - application/json
  319. description: 新增 合同项目节
  320. parameters:
  321. - description: 项目节ID
  322. in: body
  323. name: id
  324. required: true
  325. schema:
  326. type: string
  327. - description: 标段ID
  328. in: body
  329. name: bidsectionId
  330. required: true
  331. schema:
  332. type: string
  333. - description: 项目节名称
  334. in: body
  335. name: name
  336. required: true
  337. schema:
  338. type: string
  339. produces:
  340. - application/json
  341. responses:
  342. "200":
  343. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  344. schema:
  345. type: string
  346. security:
  347. - ApiKeyAuth: []
  348. summary: 新增 合同项目节
  349. tags:
  350. - 合同管理
  351. /api/contract/section/depth:
  352. post:
  353. consumes:
  354. - application/json
  355. description: operation{upDepth,downDepth}
  356. parameters:
  357. - description: 项目节ID
  358. in: body
  359. name: id
  360. required: true
  361. schema:
  362. type: string
  363. - description: 标段ID
  364. in: body
  365. name: bidsectionId
  366. required: true
  367. schema:
  368. type: string
  369. - default: upDepth
  370. description: 操作名称
  371. in: body
  372. name: operation
  373. required: true
  374. schema:
  375. type: string
  376. produces:
  377. - application/json
  378. responses:
  379. "200":
  380. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  381. schema:
  382. type: string
  383. security:
  384. - ApiKeyAuth: []
  385. summary: 升级降级合同项目节
  386. tags:
  387. - 合同管理
  388. /api/contract/section/save:
  389. post:
  390. consumes:
  391. - application/json
  392. description: 修改合同项目节 名称
  393. parameters:
  394. - description: 项目节ID
  395. in: body
  396. name: id
  397. required: true
  398. schema:
  399. type: string
  400. - description: 标段ID
  401. in: body
  402. name: bidsectionId
  403. required: true
  404. schema:
  405. type: string
  406. - description: 项目节名称
  407. in: body
  408. name: name
  409. required: true
  410. schema:
  411. type: string
  412. produces:
  413. - application/json
  414. responses:
  415. "200":
  416. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  417. schema:
  418. type: string
  419. security:
  420. - ApiKeyAuth: []
  421. summary: 修改合同项目节 名称
  422. tags:
  423. - 合同管理
  424. /api/contract/section/serial:
  425. post:
  426. consumes:
  427. - application/json
  428. description: operation{upSerial,downSerial}
  429. parameters:
  430. - description: 项目节ID
  431. in: body
  432. name: id
  433. required: true
  434. schema:
  435. type: string
  436. - description: 标段ID
  437. in: body
  438. name: bidsectionId
  439. required: true
  440. schema:
  441. type: string
  442. - default: upSerial
  443. description: 操作名称
  444. in: body
  445. name: operation
  446. required: true
  447. schema:
  448. type: string
  449. produces:
  450. - application/json
  451. responses:
  452. "200":
  453. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  454. schema:
  455. type: string
  456. security:
  457. - ApiKeyAuth: []
  458. summary: 上移下移合同项目节
  459. tags:
  460. - 合同管理
  461. /api/contract/section/serial/update:
  462. post:
  463. consumes:
  464. - application/json
  465. parameters:
  466. - description: 项目节ID
  467. in: body
  468. name: id
  469. required: true
  470. schema:
  471. type: string
  472. - description: 标段ID
  473. in: body
  474. name: bidsectionId
  475. required: true
  476. schema:
  477. type: string
  478. - description: 操作名称
  479. in: body
  480. name: serial
  481. required: true
  482. schema:
  483. type: integer
  484. produces:
  485. - application/json
  486. responses:
  487. "200":
  488. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  489. schema:
  490. type: string
  491. security:
  492. - ApiKeyAuth: []
  493. summary: 更新合同节序号
  494. tags:
  495. - 合同管理
  496. /api/contract/section/template:
  497. post:
  498. consumes:
  499. - application/json
  500. description: 设置合同项目节模板
  501. parameters:
  502. - default: 1
  503. description: 模板号
  504. in: body
  505. name: templateNumber
  506. required: true
  507. schema:
  508. type: integer
  509. - description: 标段ID
  510. in: body
  511. name: bidsectionId
  512. required: true
  513. schema:
  514. type: string
  515. produces:
  516. - application/json
  517. responses:
  518. "200":
  519. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  520. schema:
  521. type: string
  522. security:
  523. - ApiKeyAuth: []
  524. summary: 设置合同项目节模板
  525. tags:
  526. - 合同管理
  527. /api/login:
  528. post:
  529. consumes:
  530. - application/json
  531. description: 登录接口
  532. parameters:
  533. - default: "234"
  534. description: 项目编号
  535. in: body
  536. name: code
  537. required: true
  538. schema:
  539. type: string
  540. - default: caipin
  541. description: 项目账号
  542. in: body
  543. name: account
  544. required: true
  545. schema:
  546. type: string
  547. - default: "123456"
  548. description: 密码
  549. in: body
  550. name: password
  551. required: true
  552. schema:
  553. type: string
  554. produces:
  555. - application/json
  556. responses:
  557. "200":
  558. description: '{code:0成功,data:viewmodels.ProjectAccount,msg:}'
  559. schema:
  560. $ref: '#/definitions/viewmodels.ProjectAccount'
  561. "400":
  562. description: '{code:-1参数类错误,msg:错误信息}'
  563. schema:
  564. type: string
  565. summary: 登录
  566. tags:
  567. - 登录/登出
  568. /api/login/out:
  569. post:
  570. consumes:
  571. - application/json
  572. produces:
  573. - application/json
  574. responses:
  575. "200":
  576. description: '{code:0,msg:string}'
  577. schema:
  578. type: string
  579. "400":
  580. description: '{code:-1,msg:string}'
  581. schema:
  582. type: string
  583. summary: 登出
  584. tags:
  585. - 登录/登出
  586. /api/login/project/name:
  587. get:
  588. consumes:
  589. - application/json
  590. parameters:
  591. - default: '{code:2}'
  592. description: 项目编号
  593. in: query
  594. name: code
  595. required: true
  596. type: string
  597. produces:
  598. - application/json
  599. responses:
  600. "200":
  601. description: '{code:0成功,data:viewmodels.Project,msg:}'
  602. schema:
  603. $ref: '#/definitions/viewmodels.Project'
  604. "400":
  605. description: '{code:-1,msg:string}'
  606. schema:
  607. type: string
  608. summary: 获得项目名称
  609. tags:
  610. - 登录/登出
  611. /api/project:
  612. get:
  613. consumes:
  614. - application/json
  615. description: 获得登陆项目信息
  616. produces:
  617. - application/json
  618. responses:
  619. "200":
  620. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  621. schema:
  622. $ref: '#/definitions/viewmodels.Project'
  623. security:
  624. - ApiKeyAuth: []
  625. summary: 获得登陆项目信息
  626. tags:
  627. - 项目相关
  628. /api/projectAccount:
  629. get:
  630. description: 获得登陆账号相关信息
  631. responses:
  632. "200":
  633. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  634. schema:
  635. type: string
  636. security:
  637. - ApiKeyAuth: []
  638. summary: 获得登陆账号信息相关
  639. tags:
  640. - 项目账号相关
  641. /api/projectAccount/list:
  642. get:
  643. description: 获得项目账号列表
  644. responses:
  645. "200":
  646. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  647. schema:
  648. type: string
  649. security:
  650. - ApiKeyAuth: []
  651. summary: 获得项目账号列表
  652. tags:
  653. - 项目账号相关
  654. /api/projectSetting/account:
  655. get:
  656. consumes:
  657. - application/json
  658. description: id获得单条信息<br/>
  659. parameters:
  660. - description: 账号ID
  661. in: body
  662. name: id
  663. schema:
  664. type: string
  665. produces:
  666. - application/json
  667. responses:
  668. "200":
  669. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  670. schema:
  671. $ref: '#/definitions/viewmodels.ProjectAccount'
  672. security:
  673. - ApiKeyAuth: []
  674. summary: 获得项目账号列表
  675. tags:
  676. - 项目设置-管理员
  677. /api/projectSetting/account/change:
  678. post:
  679. consumes:
  680. - application/json
  681. description: 设置账号密码
  682. parameters:
  683. - default: PcqqGsn1O0jBSmLqkuOTwQ
  684. description: 账号ID
  685. in: body
  686. name: id
  687. required: true
  688. schema:
  689. type: string
  690. - default: textoopd
  691. description: 账号
  692. in: body
  693. name: account
  694. required: true
  695. schema:
  696. type: string
  697. - default: ww123456
  698. description: 密码
  699. in: body
  700. name: password
  701. required: true
  702. schema:
  703. type: string
  704. - description: csrf
  705. in: header
  706. name: X-CSRF-Token
  707. required: true
  708. type: string
  709. produces:
  710. - application/json
  711. responses:
  712. "200":
  713. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  714. schema:
  715. type: string
  716. security:
  717. - ApiKeyAuth: []
  718. summary: 设置账号密码
  719. tags:
  720. - 项目设置-管理员
  721. /api/projectSetting/account/create:
  722. post:
  723. consumes:
  724. - application/json
  725. description: 新增账号
  726. parameters:
  727. - description: 账号
  728. in: body
  729. name: account
  730. required: true
  731. schema:
  732. type: string
  733. - description: 密码
  734. in: body
  735. name: password
  736. required: true
  737. schema:
  738. type: string
  739. - description: 姓名
  740. in: body
  741. name: name
  742. required: true
  743. schema:
  744. type: string
  745. - description: 公司
  746. in: body
  747. name: company
  748. required: true
  749. schema:
  750. type: string
  751. - description: 职位
  752. in: body
  753. name: position
  754. required: true
  755. schema:
  756. type: string
  757. - description: 手机
  758. in: body
  759. name: mobile
  760. required: true
  761. schema:
  762. type: string
  763. - description: 座机
  764. in: body
  765. name: telephone
  766. required: true
  767. schema:
  768. type: string
  769. - description: 账号组
  770. in: body
  771. name: accountGroup
  772. required: true
  773. schema:
  774. type: integer
  775. - description: csrf
  776. in: header
  777. name: X-CSRF-Token
  778. required: true
  779. type: string
  780. produces:
  781. - application/json
  782. responses:
  783. "200":
  784. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  785. schema:
  786. type: string
  787. security:
  788. - ApiKeyAuth: []
  789. summary: 创建账号
  790. tags:
  791. - 项目设置-管理员
  792. /api/projectSetting/account/delete:
  793. post:
  794. consumes:
  795. - application/json
  796. description: 删除账号
  797. parameters:
  798. - default: PcqqGsn1O0jBSmLqkuOTwQ
  799. description: 账号ID
  800. in: body
  801. name: id
  802. required: true
  803. schema:
  804. type: string
  805. - description: csrf
  806. in: header
  807. name: X-CSRF-Token
  808. required: true
  809. type: string
  810. produces:
  811. - application/json
  812. responses:
  813. "200":
  814. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  815. schema:
  816. type: string
  817. security:
  818. - ApiKeyAuth: []
  819. summary: 删除账号
  820. tags:
  821. - 项目设置-管理员
  822. /api/projectSetting/account/enable:
  823. post:
  824. consumes:
  825. - application/json
  826. description: 账号启用/禁用
  827. parameters:
  828. - default: PcqqGsn1O0jBSmLqkuOTwQ
  829. description: 账号ID
  830. in: body
  831. name: id
  832. required: true
  833. schema:
  834. type: string
  835. - description: 启用/禁用
  836. in: body
  837. name: enable
  838. required: true
  839. schema:
  840. type: integer
  841. - description: csrf
  842. in: header
  843. name: X-CSRF-Token
  844. required: true
  845. type: string
  846. produces:
  847. - application/json
  848. responses:
  849. "200":
  850. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  851. schema:
  852. type: string
  853. security:
  854. - ApiKeyAuth: []
  855. summary: 账号启用/禁用
  856. tags:
  857. - 项目设置-管理员
  858. /api/projectSetting/account/save:
  859. post:
  860. consumes:
  861. - application/json
  862. description: 编辑账号
  863. parameters:
  864. - default: PcqqGsn1O0jBSmLqkuOTwQ
  865. description: 账号ID
  866. in: body
  867. name: id
  868. required: true
  869. schema:
  870. type: string
  871. - description: 姓名
  872. in: body
  873. name: name
  874. required: true
  875. schema:
  876. type: string
  877. - description: 公司
  878. in: body
  879. name: company
  880. required: true
  881. schema:
  882. type: string
  883. - description: 职位
  884. in: body
  885. name: position
  886. required: true
  887. schema:
  888. type: string
  889. - description: 座机
  890. in: body
  891. name: telephone
  892. required: true
  893. schema:
  894. type: string
  895. - description: 账号组
  896. in: body
  897. name: accountGroup
  898. required: true
  899. schema:
  900. type: integer
  901. - description: csrf
  902. in: header
  903. name: X-CSRF-Token
  904. required: true
  905. type: string
  906. produces:
  907. - application/json
  908. responses:
  909. "200":
  910. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  911. schema:
  912. type: string
  913. security:
  914. - ApiKeyAuth: []
  915. summary: 编辑账号
  916. tags:
  917. - 项目设置-管理员
  918. /api/projectSetting/account/search:
  919. get:
  920. consumes:
  921. - application/json
  922. description: 检索字段:账号 姓名 单位 手机 前匹配
  923. parameters:
  924. - description: 检索内容
  925. in: body
  926. name: name
  927. required: true
  928. schema:
  929. type: string
  930. produces:
  931. - application/json
  932. responses:
  933. "200":
  934. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  935. schema:
  936. $ref: '#/definitions/viewmodels.ProjectAccount'
  937. security:
  938. - ApiKeyAuth: []
  939. summary: 检索账号信息
  940. tags:
  941. - 项目设置-管理员
  942. /api/projectSetting/bid/account:
  943. delete:
  944. consumes:
  945. - application/json
  946. description: 移除标段成员-账号
  947. parameters:
  948. - description: 标段ID
  949. in: body
  950. name: bidsectionId
  951. schema:
  952. type: string
  953. - description: 账号ID
  954. in: body
  955. name: accountId
  956. schema:
  957. type: string
  958. produces:
  959. - application/json
  960. responses:
  961. "200":
  962. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  963. schema:
  964. type: string
  965. security:
  966. - ApiKeyAuth: []
  967. summary: 移除标段成员-账号
  968. tags:
  969. - 项目设置-标段成员权限-管理员
  970. get:
  971. consumes:
  972. - application/json
  973. description: 获得标段账号
  974. parameters:
  975. - description: 标段ID
  976. in: path
  977. name: bidsectionId
  978. type: string
  979. produces:
  980. - application/json
  981. responses:
  982. "200":
  983. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  984. schema:
  985. $ref: '#/definitions/viewmodels.ProjectAccount'
  986. security:
  987. - ApiKeyAuth: []
  988. summary: 获得标段账号
  989. tags:
  990. - 项目设置-标段成员权限-管理员
  991. /api/projectSetting/bid/account/create:
  992. post:
  993. consumes:
  994. - application/json
  995. description: 标段中添加成员-账号
  996. parameters:
  997. - description: 标段ID
  998. in: body
  999. name: bidsectionId
  1000. schema:
  1001. type: string
  1002. - description: 账号ID
  1003. in: body
  1004. name: accountId
  1005. schema:
  1006. type: string
  1007. produces:
  1008. - application/json
  1009. responses:
  1010. "200":
  1011. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  1012. schema:
  1013. type: string
  1014. security:
  1015. - ApiKeyAuth: []
  1016. summary: 标段中添加成员-账号
  1017. tags:
  1018. - 项目设置-标段成员权限-管理员
  1019. /api/projectSetting/project/save:
  1020. post:
  1021. consumes:
  1022. - application/json
  1023. description: 保存项目信息
  1024. parameters:
  1025. - default: 红旗大桥
  1026. description: 账号ID
  1027. in: body
  1028. name: name
  1029. required: true
  1030. schema:
  1031. type: string
  1032. - description: csrf
  1033. in: header
  1034. name: X-CSRF-Token
  1035. required: true
  1036. type: string
  1037. produces:
  1038. - application/json
  1039. responses:
  1040. "200":
  1041. description: '{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}'
  1042. schema:
  1043. type: string
  1044. security:
  1045. - ApiKeyAuth: []
  1046. summary: 保存项目信息
  1047. tags:
  1048. - 项目设置-管理员
  1049. /api/tree:
  1050. delete:
  1051. consumes:
  1052. - application/json
  1053. description: 删除目录下的目录以及其他内容
  1054. parameters:
  1055. - description: 目录ID
  1056. in: body
  1057. name: id
  1058. required: true
  1059. schema:
  1060. type: string
  1061. produces:
  1062. - application/json
  1063. responses:
  1064. "200":
  1065. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  1066. schema:
  1067. type: string
  1068. security:
  1069. - ApiKeyAuth: []
  1070. summary: 删除目录
  1071. tags:
  1072. - 目录相关-管理员
  1073. get:
  1074. consumes:
  1075. - application/json
  1076. description: 获得目录和数据
  1077. produces:
  1078. - application/json
  1079. responses:
  1080. "200":
  1081. description: '{code:0成功,data:viewmodels.Tree,msg:}'
  1082. schema:
  1083. $ref: '#/definitions/viewmodels.Tree'
  1084. "400":
  1085. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  1086. schema:
  1087. type: string
  1088. security:
  1089. - ApiKeyAuth: []
  1090. summary: 获得目录和数据
  1091. tags:
  1092. - 目录相关-管理员
  1093. /api/tree/create:
  1094. post:
  1095. consumes:
  1096. - application/json
  1097. description: 新增目录
  1098. parameters:
  1099. - description: 目录ID
  1100. in: body
  1101. name: id
  1102. required: true
  1103. schema:
  1104. type: string
  1105. - description: 目录深度 顶级目录(-1)其他级目录(0)
  1106. in: body
  1107. name: depth
  1108. required: true
  1109. schema:
  1110. type: integer
  1111. - description: 目录名称
  1112. in: body
  1113. name: name
  1114. required: true
  1115. schema:
  1116. type: string
  1117. produces:
  1118. - application/json
  1119. responses:
  1120. "200":
  1121. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  1122. schema:
  1123. type: string
  1124. security:
  1125. - ApiKeyAuth: []
  1126. summary: 新增目录
  1127. tags:
  1128. - 目录相关-管理员
  1129. /api/tree/move:
  1130. post:
  1131. consumes:
  1132. - application/json
  1133. description: 移动文件夹
  1134. parameters:
  1135. - description: 目录ID
  1136. in: body
  1137. name: id
  1138. required: true
  1139. schema:
  1140. type: string
  1141. - description: 被放置的目录ID
  1142. in: body
  1143. name: moveId
  1144. required: true
  1145. schema:
  1146. type: string
  1147. produces:
  1148. - application/json
  1149. responses:
  1150. "200":
  1151. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  1152. schema:
  1153. type: string
  1154. security:
  1155. - ApiKeyAuth: []
  1156. summary: 移动文件夹
  1157. tags:
  1158. - 目录相关-管理员
  1159. /api/tree/rename:
  1160. post:
  1161. consumes:
  1162. - application/json
  1163. description: 重命名-文件夹或者标段
  1164. parameters:
  1165. - description: treeId
  1166. in: body
  1167. name: id
  1168. required: true
  1169. schema:
  1170. type: string
  1171. - description: 重命名的名称
  1172. in: body
  1173. name: name
  1174. required: true
  1175. schema:
  1176. type: string
  1177. produces:
  1178. - application/json
  1179. responses:
  1180. "200":
  1181. description: '{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}'
  1182. schema:
  1183. type: string
  1184. security:
  1185. - ApiKeyAuth: []
  1186. summary: 重命名
  1187. tags:
  1188. - 目录相关-管理员
  1189. securityDefinitions:
  1190. ApiKeyAuth:
  1191. in: header
  1192. name: X-CSRF-Token
  1193. type: apiKey
  1194. swagger: "2.0"