docs.go 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938
  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/section/all": {
  147. "get": {
  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": "bidsectionId",
  169. "in": "path",
  170. "required": true
  171. }
  172. ],
  173. "responses": {
  174. "200": {
  175. "description": "{code:0成功,-1参数类错误,data:viewmodels.TreeSectionContract,msg:错误信息}",
  176. "schema": {
  177. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  178. }
  179. }
  180. }
  181. }
  182. },
  183. "/api/contract/section": {
  184. "delete": {
  185. "security": [
  186. {
  187. "ApiKeyAuth": []
  188. }
  189. ],
  190. "description": "删除 合同项目节",
  191. "consumes": [
  192. "application/json"
  193. ],
  194. "produces": [
  195. "application/json"
  196. ],
  197. "tags": [
  198. "合同管理"
  199. ],
  200. "summary": "删除 合同项目节",
  201. "parameters": [
  202. {
  203. "description": "项目节ID",
  204. "name": "id",
  205. "in": "body",
  206. "required": true,
  207. "schema": {
  208. "type": "string"
  209. }
  210. },
  211. {
  212. "description": "标段ID",
  213. "name": "bidsectionId",
  214. "in": "body",
  215. "required": true,
  216. "schema": {
  217. "type": "string"
  218. }
  219. }
  220. ],
  221. "responses": {
  222. "200": {
  223. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  224. "schema": {
  225. "type": "string"
  226. }
  227. }
  228. }
  229. }
  230. },
  231. "/api/contract/section/add": {
  232. "post": {
  233. "security": [
  234. {
  235. "ApiKeyAuth": []
  236. }
  237. ],
  238. "description": "新增 合同项目节",
  239. "consumes": [
  240. "application/json"
  241. ],
  242. "produces": [
  243. "application/json"
  244. ],
  245. "tags": [
  246. "合同管理"
  247. ],
  248. "summary": "新增 合同项目节",
  249. "parameters": [
  250. {
  251. "description": "项目节ID",
  252. "name": "id",
  253. "in": "body",
  254. "required": true,
  255. "schema": {
  256. "type": "string"
  257. }
  258. },
  259. {
  260. "description": "标段ID",
  261. "name": "bidsectionId",
  262. "in": "body",
  263. "required": true,
  264. "schema": {
  265. "type": "string"
  266. }
  267. },
  268. {
  269. "description": "项目节名称",
  270. "name": "name",
  271. "in": "body",
  272. "required": true,
  273. "schema": {
  274. "type": "string"
  275. }
  276. }
  277. ],
  278. "responses": {
  279. "200": {
  280. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  281. "schema": {
  282. "type": "string"
  283. }
  284. }
  285. }
  286. }
  287. },
  288. "/api/contract/section/depth": {
  289. "post": {
  290. "security": [
  291. {
  292. "ApiKeyAuth": []
  293. }
  294. ],
  295. "description": "operation{upDepth,downDepth}",
  296. "consumes": [
  297. "application/json"
  298. ],
  299. "produces": [
  300. "application/json"
  301. ],
  302. "tags": [
  303. "合同管理"
  304. ],
  305. "summary": "升级降级合同项目节",
  306. "parameters": [
  307. {
  308. "description": "项目节ID",
  309. "name": "id",
  310. "in": "body",
  311. "required": true,
  312. "schema": {
  313. "type": "string"
  314. }
  315. },
  316. {
  317. "description": "标段ID",
  318. "name": "bidsectionId",
  319. "in": "body",
  320. "required": true,
  321. "schema": {
  322. "type": "string"
  323. }
  324. },
  325. {
  326. "default": "upDepth",
  327. "description": "操作名称",
  328. "name": "operation",
  329. "in": "body",
  330. "required": true,
  331. "schema": {
  332. "type": "string"
  333. }
  334. }
  335. ],
  336. "responses": {
  337. "200": {
  338. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  339. "schema": {
  340. "type": "string"
  341. }
  342. }
  343. }
  344. }
  345. },
  346. "/api/contract/section/save": {
  347. "post": {
  348. "security": [
  349. {
  350. "ApiKeyAuth": []
  351. }
  352. ],
  353. "description": "修改合同项目节 名称",
  354. "consumes": [
  355. "application/json"
  356. ],
  357. "produces": [
  358. "application/json"
  359. ],
  360. "tags": [
  361. "合同管理"
  362. ],
  363. "summary": "修改合同项目节 名称",
  364. "parameters": [
  365. {
  366. "description": "项目节ID",
  367. "name": "id",
  368. "in": "body",
  369. "required": true,
  370. "schema": {
  371. "type": "string"
  372. }
  373. },
  374. {
  375. "description": "标段ID",
  376. "name": "bidsectionId",
  377. "in": "body",
  378. "required": true,
  379. "schema": {
  380. "type": "string"
  381. }
  382. },
  383. {
  384. "description": "项目节名称",
  385. "name": "name",
  386. "in": "body",
  387. "required": true,
  388. "schema": {
  389. "type": "string"
  390. }
  391. }
  392. ],
  393. "responses": {
  394. "200": {
  395. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  396. "schema": {
  397. "type": "string"
  398. }
  399. }
  400. }
  401. }
  402. },
  403. "/api/contract/section/serial": {
  404. "post": {
  405. "security": [
  406. {
  407. "ApiKeyAuth": []
  408. }
  409. ],
  410. "description": "operation{upSerial,downSerial}",
  411. "consumes": [
  412. "application/json"
  413. ],
  414. "produces": [
  415. "application/json"
  416. ],
  417. "tags": [
  418. "合同管理"
  419. ],
  420. "summary": "上移下移合同项目节",
  421. "parameters": [
  422. {
  423. "description": "项目节ID",
  424. "name": "id",
  425. "in": "body",
  426. "required": true,
  427. "schema": {
  428. "type": "string"
  429. }
  430. },
  431. {
  432. "description": "标段ID",
  433. "name": "bidsectionId",
  434. "in": "body",
  435. "required": true,
  436. "schema": {
  437. "type": "string"
  438. }
  439. },
  440. {
  441. "default": "upSerial",
  442. "description": "操作名称",
  443. "name": "operation",
  444. "in": "body",
  445. "required": true,
  446. "schema": {
  447. "type": "string"
  448. }
  449. }
  450. ],
  451. "responses": {
  452. "200": {
  453. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  454. "schema": {
  455. "type": "string"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "/api/contract/section/serial/update": {
  462. "post": {
  463. "security": [
  464. {
  465. "ApiKeyAuth": []
  466. }
  467. ],
  468. "consumes": [
  469. "application/json"
  470. ],
  471. "produces": [
  472. "application/json"
  473. ],
  474. "tags": [
  475. "合同管理"
  476. ],
  477. "summary": "更新合同节序号",
  478. "parameters": [
  479. {
  480. "description": "项目节ID",
  481. "name": "id",
  482. "in": "body",
  483. "required": true,
  484. "schema": {
  485. "type": "string"
  486. }
  487. },
  488. {
  489. "description": "标段ID",
  490. "name": "bidsectionId",
  491. "in": "body",
  492. "required": true,
  493. "schema": {
  494. "type": "string"
  495. }
  496. },
  497. {
  498. "description": "操作名称",
  499. "name": "serial",
  500. "in": "body",
  501. "required": true,
  502. "schema": {
  503. "type": "integer"
  504. }
  505. }
  506. ],
  507. "responses": {
  508. "200": {
  509. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  510. "schema": {
  511. "type": "string"
  512. }
  513. }
  514. }
  515. }
  516. },
  517. "/api/contract/section/template": {
  518. "post": {
  519. "security": [
  520. {
  521. "ApiKeyAuth": []
  522. }
  523. ],
  524. "description": "设置合同项目节模板",
  525. "consumes": [
  526. "application/json"
  527. ],
  528. "produces": [
  529. "application/json"
  530. ],
  531. "tags": [
  532. "合同管理"
  533. ],
  534. "summary": "设置合同项目节模板",
  535. "parameters": [
  536. {
  537. "default": 1,
  538. "description": "模板号",
  539. "name": "templateNumber",
  540. "in": "body",
  541. "required": true,
  542. "schema": {
  543. "type": "integer"
  544. }
  545. },
  546. {
  547. "description": "标段ID",
  548. "name": "bidsectionId",
  549. "in": "body",
  550. "required": true,
  551. "schema": {
  552. "type": "string"
  553. }
  554. }
  555. ],
  556. "responses": {
  557. "200": {
  558. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  559. "schema": {
  560. "type": "string"
  561. }
  562. }
  563. }
  564. }
  565. },
  566. "/api/login": {
  567. "post": {
  568. "description": "登录接口",
  569. "consumes": [
  570. "application/json"
  571. ],
  572. "produces": [
  573. "application/json"
  574. ],
  575. "tags": [
  576. "登录/登出"
  577. ],
  578. "summary": "登录",
  579. "parameters": [
  580. {
  581. "default": "234",
  582. "description": "项目编号",
  583. "name": "code",
  584. "in": "body",
  585. "required": true,
  586. "schema": {
  587. "type": "string"
  588. }
  589. },
  590. {
  591. "default": "caipin",
  592. "description": "项目账号",
  593. "name": "account",
  594. "in": "body",
  595. "required": true,
  596. "schema": {
  597. "type": "string"
  598. }
  599. },
  600. {
  601. "default": "123456",
  602. "description": "密码",
  603. "name": "password",
  604. "in": "body",
  605. "required": true,
  606. "schema": {
  607. "type": "string"
  608. }
  609. }
  610. ],
  611. "responses": {
  612. "200": {
  613. "description": "{code:0成功,data:viewmodels.ProjectAccount,msg:}",
  614. "schema": {
  615. "$ref": "#/definitions/viewmodels.ProjectAccount"
  616. }
  617. },
  618. "400": {
  619. "description": "{code:-1参数类错误,msg:错误信息}",
  620. "schema": {
  621. "type": "string"
  622. }
  623. }
  624. }
  625. }
  626. },
  627. "/api/login/out": {
  628. "post": {
  629. "consumes": [
  630. "application/json"
  631. ],
  632. "produces": [
  633. "application/json"
  634. ],
  635. "tags": [
  636. "登录/登出"
  637. ],
  638. "summary": "登出",
  639. "responses": {
  640. "200": {
  641. "description": "{code:0,msg:string}",
  642. "schema": {
  643. "type": "string"
  644. }
  645. },
  646. "400": {
  647. "description": "{code:-1,msg:string}",
  648. "schema": {
  649. "type": "string"
  650. }
  651. }
  652. }
  653. }
  654. },
  655. "/api/login/project/name": {
  656. "get": {
  657. "consumes": [
  658. "application/json"
  659. ],
  660. "produces": [
  661. "application/json"
  662. ],
  663. "tags": [
  664. "登录/登出"
  665. ],
  666. "summary": "获得项目名称",
  667. "parameters": [
  668. {
  669. "type": "string",
  670. "default": "{code:2}",
  671. "description": "项目编号",
  672. "name": "code",
  673. "in": "query",
  674. "required": true
  675. }
  676. ],
  677. "responses": {
  678. "200": {
  679. "description": "{code:0成功,data:viewmodels.Project,msg:}",
  680. "schema": {
  681. "$ref": "#/definitions/viewmodels.Project"
  682. }
  683. },
  684. "400": {
  685. "description": "{code:-1,msg:string}",
  686. "schema": {
  687. "type": "string"
  688. }
  689. }
  690. }
  691. }
  692. },
  693. "/api/project": {
  694. "get": {
  695. "security": [
  696. {
  697. "ApiKeyAuth": []
  698. }
  699. ],
  700. "description": "获得登陆项目信息",
  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成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  714. "schema": {
  715. "$ref": "#/definitions/viewmodels.Project"
  716. }
  717. }
  718. }
  719. }
  720. },
  721. "/api/projectAccount": {
  722. "get": {
  723. "security": [
  724. {
  725. "ApiKeyAuth": []
  726. }
  727. ],
  728. "description": "获得登陆账号相关信息",
  729. "tags": [
  730. "项目账号相关"
  731. ],
  732. "summary": "获得登陆账号信息相关",
  733. "responses": {
  734. "200": {
  735. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  736. "schema": {
  737. "type": "string"
  738. }
  739. }
  740. }
  741. }
  742. },
  743. "/api/projectAccount/list": {
  744. "get": {
  745. "security": [
  746. {
  747. "ApiKeyAuth": []
  748. }
  749. ],
  750. "description": "获得项目账号列表",
  751. "tags": [
  752. "项目账号相关"
  753. ],
  754. "summary": "获得项目账号列表",
  755. "responses": {
  756. "200": {
  757. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  758. "schema": {
  759. "type": "string"
  760. }
  761. }
  762. }
  763. }
  764. },
  765. "/api/projectSetting/account": {
  766. "get": {
  767. "security": [
  768. {
  769. "ApiKeyAuth": []
  770. }
  771. ],
  772. "description": "id获得单条信息\u003cbr/\u003e",
  773. "consumes": [
  774. "application/json"
  775. ],
  776. "produces": [
  777. "application/json"
  778. ],
  779. "tags": [
  780. "项目设置-管理员"
  781. ],
  782. "summary": "获得项目账号列表",
  783. "parameters": [
  784. {
  785. "description": "账号ID",
  786. "name": "id",
  787. "in": "body",
  788. "schema": {
  789. "type": "string"
  790. }
  791. }
  792. ],
  793. "responses": {
  794. "200": {
  795. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  796. "schema": {
  797. "$ref": "#/definitions/viewmodels.ProjectAccount"
  798. }
  799. }
  800. }
  801. }
  802. },
  803. "/api/projectSetting/account/change": {
  804. "post": {
  805. "security": [
  806. {
  807. "ApiKeyAuth": []
  808. }
  809. ],
  810. "description": "设置账号密码",
  811. "consumes": [
  812. "application/json"
  813. ],
  814. "produces": [
  815. "application/json"
  816. ],
  817. "tags": [
  818. "项目设置-管理员"
  819. ],
  820. "summary": "设置账号密码",
  821. "parameters": [
  822. {
  823. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  824. "description": "账号ID",
  825. "name": "id",
  826. "in": "body",
  827. "required": true,
  828. "schema": {
  829. "type": "string"
  830. }
  831. },
  832. {
  833. "default": "textoopd",
  834. "description": "账号",
  835. "name": "account",
  836. "in": "body",
  837. "required": true,
  838. "schema": {
  839. "type": "string"
  840. }
  841. },
  842. {
  843. "default": "ww123456",
  844. "description": "密码",
  845. "name": "password",
  846. "in": "body",
  847. "required": true,
  848. "schema": {
  849. "type": "string"
  850. }
  851. },
  852. {
  853. "type": "string",
  854. "description": "csrf",
  855. "name": "X-CSRF-Token",
  856. "in": "header",
  857. "required": true
  858. }
  859. ],
  860. "responses": {
  861. "200": {
  862. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  863. "schema": {
  864. "type": "string"
  865. }
  866. }
  867. }
  868. }
  869. },
  870. "/api/projectSetting/account/create": {
  871. "post": {
  872. "security": [
  873. {
  874. "ApiKeyAuth": []
  875. }
  876. ],
  877. "description": "新增账号",
  878. "consumes": [
  879. "application/json"
  880. ],
  881. "produces": [
  882. "application/json"
  883. ],
  884. "tags": [
  885. "项目设置-管理员"
  886. ],
  887. "summary": "创建账号",
  888. "parameters": [
  889. {
  890. "description": "账号",
  891. "name": "account",
  892. "in": "body",
  893. "required": true,
  894. "schema": {
  895. "type": "string"
  896. }
  897. },
  898. {
  899. "description": "密码",
  900. "name": "password",
  901. "in": "body",
  902. "required": true,
  903. "schema": {
  904. "type": "string"
  905. }
  906. },
  907. {
  908. "description": "姓名",
  909. "name": "name",
  910. "in": "body",
  911. "required": true,
  912. "schema": {
  913. "type": "string"
  914. }
  915. },
  916. {
  917. "description": "公司",
  918. "name": "company",
  919. "in": "body",
  920. "required": true,
  921. "schema": {
  922. "type": "string"
  923. }
  924. },
  925. {
  926. "description": "职位",
  927. "name": "position",
  928. "in": "body",
  929. "required": true,
  930. "schema": {
  931. "type": "string"
  932. }
  933. },
  934. {
  935. "description": "手机",
  936. "name": "mobile",
  937. "in": "body",
  938. "required": true,
  939. "schema": {
  940. "type": "string"
  941. }
  942. },
  943. {
  944. "description": "座机",
  945. "name": "telephone",
  946. "in": "body",
  947. "required": true,
  948. "schema": {
  949. "type": "string"
  950. }
  951. },
  952. {
  953. "description": "账号组",
  954. "name": "accountGroup",
  955. "in": "body",
  956. "required": true,
  957. "schema": {
  958. "type": "integer"
  959. }
  960. },
  961. {
  962. "type": "string",
  963. "description": "csrf",
  964. "name": "X-CSRF-Token",
  965. "in": "header",
  966. "required": true
  967. }
  968. ],
  969. "responses": {
  970. "200": {
  971. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  972. "schema": {
  973. "type": "string"
  974. }
  975. }
  976. }
  977. }
  978. },
  979. "/api/projectSetting/account/delete": {
  980. "post": {
  981. "security": [
  982. {
  983. "ApiKeyAuth": []
  984. }
  985. ],
  986. "description": "删除账号",
  987. "consumes": [
  988. "application/json"
  989. ],
  990. "produces": [
  991. "application/json"
  992. ],
  993. "tags": [
  994. "项目设置-管理员"
  995. ],
  996. "summary": "删除账号",
  997. "parameters": [
  998. {
  999. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1000. "description": "账号ID",
  1001. "name": "id",
  1002. "in": "body",
  1003. "required": true,
  1004. "schema": {
  1005. "type": "string"
  1006. }
  1007. },
  1008. {
  1009. "type": "string",
  1010. "description": "csrf",
  1011. "name": "X-CSRF-Token",
  1012. "in": "header",
  1013. "required": true
  1014. }
  1015. ],
  1016. "responses": {
  1017. "200": {
  1018. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1019. "schema": {
  1020. "type": "string"
  1021. }
  1022. }
  1023. }
  1024. }
  1025. },
  1026. "/api/projectSetting/account/enable": {
  1027. "post": {
  1028. "security": [
  1029. {
  1030. "ApiKeyAuth": []
  1031. }
  1032. ],
  1033. "description": "账号启用/禁用",
  1034. "consumes": [
  1035. "application/json"
  1036. ],
  1037. "produces": [
  1038. "application/json"
  1039. ],
  1040. "tags": [
  1041. "项目设置-管理员"
  1042. ],
  1043. "summary": "账号启用/禁用",
  1044. "parameters": [
  1045. {
  1046. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1047. "description": "账号ID",
  1048. "name": "id",
  1049. "in": "body",
  1050. "required": true,
  1051. "schema": {
  1052. "type": "string"
  1053. }
  1054. },
  1055. {
  1056. "description": "启用/禁用",
  1057. "name": "enable",
  1058. "in": "body",
  1059. "required": true,
  1060. "schema": {
  1061. "type": "integer"
  1062. }
  1063. },
  1064. {
  1065. "type": "string",
  1066. "description": "csrf",
  1067. "name": "X-CSRF-Token",
  1068. "in": "header",
  1069. "required": true
  1070. }
  1071. ],
  1072. "responses": {
  1073. "200": {
  1074. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1075. "schema": {
  1076. "type": "string"
  1077. }
  1078. }
  1079. }
  1080. }
  1081. },
  1082. "/api/projectSetting/account/save": {
  1083. "post": {
  1084. "security": [
  1085. {
  1086. "ApiKeyAuth": []
  1087. }
  1088. ],
  1089. "description": "编辑账号",
  1090. "consumes": [
  1091. "application/json"
  1092. ],
  1093. "produces": [
  1094. "application/json"
  1095. ],
  1096. "tags": [
  1097. "项目设置-管理员"
  1098. ],
  1099. "summary": "编辑账号",
  1100. "parameters": [
  1101. {
  1102. "default": "PcqqGsn1O0jBSmLqkuOTwQ",
  1103. "description": "账号ID",
  1104. "name": "id",
  1105. "in": "body",
  1106. "required": true,
  1107. "schema": {
  1108. "type": "string"
  1109. }
  1110. },
  1111. {
  1112. "description": "姓名",
  1113. "name": "name",
  1114. "in": "body",
  1115. "required": true,
  1116. "schema": {
  1117. "type": "string"
  1118. }
  1119. },
  1120. {
  1121. "description": "公司",
  1122. "name": "company",
  1123. "in": "body",
  1124. "required": true,
  1125. "schema": {
  1126. "type": "string"
  1127. }
  1128. },
  1129. {
  1130. "description": "职位",
  1131. "name": "position",
  1132. "in": "body",
  1133. "required": true,
  1134. "schema": {
  1135. "type": "string"
  1136. }
  1137. },
  1138. {
  1139. "description": "座机",
  1140. "name": "telephone",
  1141. "in": "body",
  1142. "required": true,
  1143. "schema": {
  1144. "type": "string"
  1145. }
  1146. },
  1147. {
  1148. "description": "账号组",
  1149. "name": "accountGroup",
  1150. "in": "body",
  1151. "required": true,
  1152. "schema": {
  1153. "type": "integer"
  1154. }
  1155. },
  1156. {
  1157. "type": "string",
  1158. "description": "csrf",
  1159. "name": "X-CSRF-Token",
  1160. "in": "header",
  1161. "required": true
  1162. }
  1163. ],
  1164. "responses": {
  1165. "200": {
  1166. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1167. "schema": {
  1168. "type": "string"
  1169. }
  1170. }
  1171. }
  1172. }
  1173. },
  1174. "/api/projectSetting/account/search": {
  1175. "get": {
  1176. "security": [
  1177. {
  1178. "ApiKeyAuth": []
  1179. }
  1180. ],
  1181. "description": "检索字段:账号 姓名 单位 手机 前匹配",
  1182. "consumes": [
  1183. "application/json"
  1184. ],
  1185. "produces": [
  1186. "application/json"
  1187. ],
  1188. "tags": [
  1189. "项目设置-管理员"
  1190. ],
  1191. "summary": "检索账号信息",
  1192. "parameters": [
  1193. {
  1194. "description": "检索内容",
  1195. "name": "name",
  1196. "in": "body",
  1197. "required": true,
  1198. "schema": {
  1199. "type": "string"
  1200. }
  1201. }
  1202. ],
  1203. "responses": {
  1204. "200": {
  1205. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1206. "schema": {
  1207. "$ref": "#/definitions/viewmodels.ProjectAccount"
  1208. }
  1209. }
  1210. }
  1211. }
  1212. },
  1213. "/api/projectSetting/bid/account": {
  1214. "get": {
  1215. "security": [
  1216. {
  1217. "ApiKeyAuth": []
  1218. }
  1219. ],
  1220. "description": "获得标段账号",
  1221. "consumes": [
  1222. "application/json"
  1223. ],
  1224. "produces": [
  1225. "application/json"
  1226. ],
  1227. "tags": [
  1228. "项目设置-标段成员权限-管理员"
  1229. ],
  1230. "summary": "获得标段账号",
  1231. "parameters": [
  1232. {
  1233. "type": "string",
  1234. "description": "标段ID",
  1235. "name": "bidsectionId",
  1236. "in": "path"
  1237. }
  1238. ],
  1239. "responses": {
  1240. "200": {
  1241. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1242. "schema": {
  1243. "$ref": "#/definitions/viewmodels.ProjectAccount"
  1244. }
  1245. }
  1246. }
  1247. },
  1248. "delete": {
  1249. "security": [
  1250. {
  1251. "ApiKeyAuth": []
  1252. }
  1253. ],
  1254. "description": "移除标段成员-账号",
  1255. "consumes": [
  1256. "application/json"
  1257. ],
  1258. "produces": [
  1259. "application/json"
  1260. ],
  1261. "tags": [
  1262. "项目设置-标段成员权限-管理员"
  1263. ],
  1264. "summary": "移除标段成员-账号",
  1265. "parameters": [
  1266. {
  1267. "description": "标段ID",
  1268. "name": "bidsectionId",
  1269. "in": "body",
  1270. "schema": {
  1271. "type": "string"
  1272. }
  1273. },
  1274. {
  1275. "description": "账号ID",
  1276. "name": "accountId",
  1277. "in": "body",
  1278. "schema": {
  1279. "type": "string"
  1280. }
  1281. }
  1282. ],
  1283. "responses": {
  1284. "200": {
  1285. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1286. "schema": {
  1287. "type": "string"
  1288. }
  1289. }
  1290. }
  1291. }
  1292. },
  1293. "/api/projectSetting/bid/account/create": {
  1294. "post": {
  1295. "security": [
  1296. {
  1297. "ApiKeyAuth": []
  1298. }
  1299. ],
  1300. "description": "标段中添加成员-账号",
  1301. "consumes": [
  1302. "application/json"
  1303. ],
  1304. "produces": [
  1305. "application/json"
  1306. ],
  1307. "tags": [
  1308. "项目设置-标段成员权限-管理员"
  1309. ],
  1310. "summary": "标段中添加成员-账号",
  1311. "parameters": [
  1312. {
  1313. "description": "标段ID",
  1314. "name": "bidsectionId",
  1315. "in": "body",
  1316. "schema": {
  1317. "type": "string"
  1318. }
  1319. },
  1320. {
  1321. "description": "账号ID",
  1322. "name": "accountId",
  1323. "in": "body",
  1324. "schema": {
  1325. "type": "string"
  1326. }
  1327. }
  1328. ],
  1329. "responses": {
  1330. "200": {
  1331. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1332. "schema": {
  1333. "type": "string"
  1334. }
  1335. }
  1336. }
  1337. }
  1338. },
  1339. "/api/projectSetting/project/save": {
  1340. "post": {
  1341. "security": [
  1342. {
  1343. "ApiKeyAuth": []
  1344. }
  1345. ],
  1346. "description": "保存项目信息",
  1347. "consumes": [
  1348. "application/json"
  1349. ],
  1350. "produces": [
  1351. "application/json"
  1352. ],
  1353. "tags": [
  1354. "项目设置-管理员"
  1355. ],
  1356. "summary": "保存项目信息",
  1357. "parameters": [
  1358. {
  1359. "default": "红旗大桥",
  1360. "description": "账号ID",
  1361. "name": "name",
  1362. "in": "body",
  1363. "required": true,
  1364. "schema": {
  1365. "type": "string"
  1366. }
  1367. },
  1368. {
  1369. "type": "string",
  1370. "description": "csrf",
  1371. "name": "X-CSRF-Token",
  1372. "in": "header",
  1373. "required": true
  1374. }
  1375. ],
  1376. "responses": {
  1377. "200": {
  1378. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1379. "schema": {
  1380. "type": "string"
  1381. }
  1382. }
  1383. }
  1384. }
  1385. },
  1386. "/api/tree": {
  1387. "get": {
  1388. "security": [
  1389. {
  1390. "ApiKeyAuth": []
  1391. }
  1392. ],
  1393. "description": "获得目录和数据",
  1394. "consumes": [
  1395. "application/json"
  1396. ],
  1397. "produces": [
  1398. "application/json"
  1399. ],
  1400. "tags": [
  1401. "目录相关-管理员"
  1402. ],
  1403. "summary": "获得目录和数据",
  1404. "responses": {
  1405. "200": {
  1406. "description": "{code:0成功,data:viewmodels.Tree,msg:}",
  1407. "schema": {
  1408. "$ref": "#/definitions/viewmodels.Tree"
  1409. }
  1410. },
  1411. "400": {
  1412. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1413. "schema": {
  1414. "type": "string"
  1415. }
  1416. }
  1417. }
  1418. },
  1419. "delete": {
  1420. "security": [
  1421. {
  1422. "ApiKeyAuth": []
  1423. }
  1424. ],
  1425. "description": "删除目录下的目录以及其他内容",
  1426. "consumes": [
  1427. "application/json"
  1428. ],
  1429. "produces": [
  1430. "application/json"
  1431. ],
  1432. "tags": [
  1433. "目录相关-管理员"
  1434. ],
  1435. "summary": "删除目录",
  1436. "parameters": [
  1437. {
  1438. "description": "目录ID",
  1439. "name": "id",
  1440. "in": "body",
  1441. "required": true,
  1442. "schema": {
  1443. "type": "string"
  1444. }
  1445. }
  1446. ],
  1447. "responses": {
  1448. "200": {
  1449. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1450. "schema": {
  1451. "type": "string"
  1452. }
  1453. }
  1454. }
  1455. }
  1456. },
  1457. "/api/tree/create": {
  1458. "post": {
  1459. "security": [
  1460. {
  1461. "ApiKeyAuth": []
  1462. }
  1463. ],
  1464. "description": "新增目录",
  1465. "consumes": [
  1466. "application/json"
  1467. ],
  1468. "produces": [
  1469. "application/json"
  1470. ],
  1471. "tags": [
  1472. "目录相关-管理员"
  1473. ],
  1474. "summary": "新增目录",
  1475. "parameters": [
  1476. {
  1477. "description": "目录ID",
  1478. "name": "id",
  1479. "in": "body",
  1480. "required": true,
  1481. "schema": {
  1482. "type": "string"
  1483. }
  1484. },
  1485. {
  1486. "description": "目录深度 顶级目录(-1)其他级目录(0)",
  1487. "name": "depth",
  1488. "in": "body",
  1489. "required": true,
  1490. "schema": {
  1491. "type": "integer"
  1492. }
  1493. },
  1494. {
  1495. "description": "目录名称",
  1496. "name": "name",
  1497. "in": "body",
  1498. "required": true,
  1499. "schema": {
  1500. "type": "string"
  1501. }
  1502. }
  1503. ],
  1504. "responses": {
  1505. "200": {
  1506. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1507. "schema": {
  1508. "type": "string"
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/api/tree/move": {
  1515. "post": {
  1516. "security": [
  1517. {
  1518. "ApiKeyAuth": []
  1519. }
  1520. ],
  1521. "description": "移动文件夹",
  1522. "consumes": [
  1523. "application/json"
  1524. ],
  1525. "produces": [
  1526. "application/json"
  1527. ],
  1528. "tags": [
  1529. "目录相关-管理员"
  1530. ],
  1531. "summary": "移动文件夹",
  1532. "parameters": [
  1533. {
  1534. "description": "目录ID",
  1535. "name": "id",
  1536. "in": "body",
  1537. "required": true,
  1538. "schema": {
  1539. "type": "string"
  1540. }
  1541. },
  1542. {
  1543. "description": "被放置的目录ID",
  1544. "name": "moveId",
  1545. "in": "body",
  1546. "required": true,
  1547. "schema": {
  1548. "type": "string"
  1549. }
  1550. }
  1551. ],
  1552. "responses": {
  1553. "200": {
  1554. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1555. "schema": {
  1556. "type": "string"
  1557. }
  1558. }
  1559. }
  1560. }
  1561. },
  1562. "/api/tree/rename": {
  1563. "post": {
  1564. "security": [
  1565. {
  1566. "ApiKeyAuth": []
  1567. }
  1568. ],
  1569. "description": "重命名-文件夹或者标段",
  1570. "consumes": [
  1571. "application/json"
  1572. ],
  1573. "produces": [
  1574. "application/json"
  1575. ],
  1576. "tags": [
  1577. "目录相关-管理员"
  1578. ],
  1579. "summary": "重命名",
  1580. "parameters": [
  1581. {
  1582. "description": "treeId",
  1583. "name": "id",
  1584. "in": "body",
  1585. "required": true,
  1586. "schema": {
  1587. "type": "string"
  1588. }
  1589. },
  1590. {
  1591. "description": "重命名的名称",
  1592. "name": "name",
  1593. "in": "body",
  1594. "required": true,
  1595. "schema": {
  1596. "type": "string"
  1597. }
  1598. }
  1599. ],
  1600. "responses": {
  1601. "200": {
  1602. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1603. "schema": {
  1604. "type": "string"
  1605. }
  1606. }
  1607. }
  1608. }
  1609. }
  1610. },
  1611. "definitions": {
  1612. "viewmodels.FolderContract": {
  1613. "type": "object",
  1614. "properties": {
  1615. "bidsectionId": {
  1616. "type": "string"
  1617. },
  1618. "children": {
  1619. "type": "array",
  1620. "items": {
  1621. "$ref": "#/definitions/viewmodels.FolderContract"
  1622. }
  1623. },
  1624. "childsTotal": {
  1625. "type": "integer"
  1626. },
  1627. "contracts": {
  1628. "type": "integer"
  1629. },
  1630. "contractsIncome": {
  1631. "type": "string"
  1632. },
  1633. "contractsIncomeProgress": {
  1634. "type": "string"
  1635. },
  1636. "contractsPaid": {
  1637. "type": "string"
  1638. },
  1639. "contractsPay": {
  1640. "type": "string"
  1641. },
  1642. "contractsPayProgress": {
  1643. "type": "string"
  1644. },
  1645. "contractsReturned": {
  1646. "type": "string"
  1647. },
  1648. "csrf": {
  1649. "type": "string"
  1650. },
  1651. "hasFolder": {
  1652. "description": "Leaf bool ` + "`" + `json:\"leaf\" ` + "`" + `",
  1653. "type": "boolean"
  1654. },
  1655. "id": {
  1656. "type": "string"
  1657. },
  1658. "isBid": {
  1659. "type": "boolean"
  1660. },
  1661. "isEnd": {
  1662. "type": "boolean"
  1663. },
  1664. "isfolder": {
  1665. "type": "integer"
  1666. },
  1667. "name": {
  1668. "type": "string"
  1669. },
  1670. "parentId": {
  1671. "type": "string"
  1672. },
  1673. "projectId": {
  1674. "type": "string"
  1675. }
  1676. }
  1677. },
  1678. "viewmodels.Project": {
  1679. "type": "object",
  1680. "properties": {
  1681. "code": {
  1682. "type": "string"
  1683. },
  1684. "id": {
  1685. "type": "string"
  1686. },
  1687. "name": {
  1688. "type": "string"
  1689. }
  1690. }
  1691. },
  1692. "viewmodels.ProjectAccount": {
  1693. "type": "object",
  1694. "properties": {
  1695. "account": {
  1696. "type": "string"
  1697. },
  1698. "accountGroup": {
  1699. "type": "integer"
  1700. },
  1701. "company": {
  1702. "type": "string"
  1703. },
  1704. "csrf": {
  1705. "type": "string"
  1706. },
  1707. "enable": {
  1708. "type": "integer"
  1709. },
  1710. "id": {
  1711. "type": "string"
  1712. },
  1713. "isAdmin": {
  1714. "type": "integer"
  1715. },
  1716. "mobile": {
  1717. "type": "string"
  1718. },
  1719. "name": {
  1720. "type": "string"
  1721. },
  1722. "password": {
  1723. "type": "string"
  1724. },
  1725. "position": {
  1726. "type": "string"
  1727. },
  1728. "projectId": {
  1729. "type": "string"
  1730. },
  1731. "role": {
  1732. "type": "string"
  1733. },
  1734. "telephone": {
  1735. "type": "string"
  1736. }
  1737. }
  1738. },
  1739. "viewmodels.Tree": {
  1740. "type": "object",
  1741. "properties": {
  1742. "ancounts": {
  1743. "type": "integer"
  1744. },
  1745. "attribution": {
  1746. "type": "string"
  1747. },
  1748. "bidsectionId": {
  1749. "type": "string"
  1750. },
  1751. "children": {
  1752. "type": "array",
  1753. "items": {
  1754. "$ref": "#/definitions/viewmodels.Tree"
  1755. }
  1756. },
  1757. "childsTotal": {
  1758. "type": "integer"
  1759. },
  1760. "createTime": {
  1761. "type": "string"
  1762. },
  1763. "csrf": {
  1764. "type": "string"
  1765. },
  1766. "depth": {
  1767. "type": "integer"
  1768. },
  1769. "hasFolder": {
  1770. "description": "Leaf bool ` + "`" + `json:\"leaf\" ` + "`" + `",
  1771. "type": "boolean"
  1772. },
  1773. "id": {
  1774. "type": "string"
  1775. },
  1776. "isBid": {
  1777. "type": "boolean"
  1778. },
  1779. "isEnd": {
  1780. "type": "boolean"
  1781. },
  1782. "isfolder": {
  1783. "type": "integer"
  1784. },
  1785. "name": {
  1786. "type": "string"
  1787. },
  1788. "parentId": {
  1789. "type": "string"
  1790. },
  1791. "projectId": {
  1792. "type": "string"
  1793. },
  1794. "serial": {
  1795. "type": "string"
  1796. },
  1797. "targetFolderId": {
  1798. "type": "string"
  1799. },
  1800. "updateTime": {
  1801. "type": "string"
  1802. }
  1803. }
  1804. },
  1805. "viewmodels.TreeSectionContract": {
  1806. "type": "object",
  1807. "properties": {
  1808. "attribution": {
  1809. "type": "string"
  1810. },
  1811. "bidsectionId": {
  1812. "type": "string"
  1813. },
  1814. "children": {
  1815. "type": "array",
  1816. "items": {
  1817. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  1818. }
  1819. },
  1820. "code": {
  1821. "type": "string"
  1822. },
  1823. "contractCode": {
  1824. "type": "string"
  1825. },
  1826. "contractId": {
  1827. "type": "string"
  1828. },
  1829. "contractName": {
  1830. "type": "string"
  1831. },
  1832. "contractPrice": {
  1833. "type": "string"
  1834. },
  1835. "contractReturned": {
  1836. "type": "string"
  1837. },
  1838. "contractStatus": {
  1839. "type": "integer"
  1840. },
  1841. "contractsPaid": {
  1842. "type": "string"
  1843. },
  1844. "createTime": {
  1845. "type": "string"
  1846. },
  1847. "depth": {
  1848. "type": "integer"
  1849. },
  1850. "elderBrother": {
  1851. "type": "boolean"
  1852. },
  1853. "id": {
  1854. "type": "string"
  1855. },
  1856. "isEnd": {
  1857. "type": "boolean"
  1858. },
  1859. "name": {
  1860. "type": "string"
  1861. },
  1862. "operation": {
  1863. "type": "string"
  1864. },
  1865. "parentId": {
  1866. "type": "string"
  1867. },
  1868. "projectId": {
  1869. "type": "string"
  1870. },
  1871. "serial": {
  1872. "type": "integer"
  1873. },
  1874. "templateNumber": {
  1875. "type": "integer"
  1876. }
  1877. }
  1878. }
  1879. },
  1880. "securityDefinitions": {
  1881. "ApiKeyAuth": {
  1882. "type": "apiKey",
  1883. "name": "X-CSRF-Token",
  1884. "in": "header"
  1885. }
  1886. }
  1887. }`
  1888. type swaggerInfo struct {
  1889. Version string
  1890. Host string
  1891. BasePath string
  1892. Schemes []string
  1893. Title string
  1894. Description string
  1895. }
  1896. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1897. var SwaggerInfo = swaggerInfo{
  1898. Version: "1.0",
  1899. Host: "",
  1900. BasePath: "",
  1901. Schemes: []string{},
  1902. Title: "工程项目管理系统 API",
  1903. Description: "工程项目管理系统-接口",
  1904. }
  1905. type s struct{}
  1906. func (s *s) ReadDoc() string {
  1907. sInfo := SwaggerInfo
  1908. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  1909. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  1910. "marshal": func(v interface{}) string {
  1911. a, _ := json.Marshal(v)
  1912. return string(a)
  1913. },
  1914. }).Parse(doc)
  1915. if err != nil {
  1916. return doc
  1917. }
  1918. var tpl bytes.Buffer
  1919. if err := t.Execute(&tpl, sInfo); err != nil {
  1920. return doc
  1921. }
  1922. return tpl.String()
  1923. }
  1924. func init() {
  1925. swag.Register(swag.Name, &s{})
  1926. }