docs.go 82 KB

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