docs.go 82 KB

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