docs.go 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610
  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": {
  1549. "get": {
  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. "responses": {
  1567. "200": {
  1568. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1569. "schema": {
  1570. "type": "string"
  1571. }
  1572. }
  1573. }
  1574. }
  1575. },
  1576. "/api/projectSetting/project/save": {
  1577. "post": {
  1578. "security": [
  1579. {
  1580. "ApiKeyAuth": []
  1581. }
  1582. ],
  1583. "description": "保存项目信息",
  1584. "consumes": [
  1585. "application/json"
  1586. ],
  1587. "produces": [
  1588. "application/json"
  1589. ],
  1590. "tags": [
  1591. "项目设置-管理员"
  1592. ],
  1593. "summary": "保存项目信息",
  1594. "parameters": [
  1595. {
  1596. "default": "红旗大桥",
  1597. "description": "账号ID",
  1598. "name": "name",
  1599. "in": "body",
  1600. "required": true,
  1601. "schema": {
  1602. "type": "string"
  1603. }
  1604. },
  1605. {
  1606. "type": "string",
  1607. "description": "csrf",
  1608. "name": "X-CSRF-Token",
  1609. "in": "header",
  1610. "required": true
  1611. }
  1612. ],
  1613. "responses": {
  1614. "200": {
  1615. "description": "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}",
  1616. "schema": {
  1617. "type": "string"
  1618. }
  1619. }
  1620. }
  1621. }
  1622. },
  1623. "/api/rule": {
  1624. "get": {
  1625. "security": [
  1626. {
  1627. "ApiKeyAuth": []
  1628. }
  1629. ],
  1630. "description": "获得制定pid、bid的编号规则",
  1631. "consumes": [
  1632. "application/json"
  1633. ],
  1634. "produces": [
  1635. "application/json"
  1636. ],
  1637. "tags": [
  1638. "编号规则"
  1639. ],
  1640. "summary": "获取编号规则",
  1641. "parameters": [
  1642. {
  1643. "type": "string",
  1644. "description": "标段ID",
  1645. "name": "bidsectionId",
  1646. "in": "path",
  1647. "required": true
  1648. },
  1649. {
  1650. "type": "string",
  1651. "description": "项目ID",
  1652. "name": "projectId",
  1653. "in": "path",
  1654. "required": true
  1655. }
  1656. ],
  1657. "responses": {
  1658. "200": {
  1659. "description": "{code:0成功,data:viewmodels.Safe,msg:请求成功}",
  1660. "schema": {
  1661. "$ref": "#/definitions/viewmodels.ViewRule"
  1662. }
  1663. },
  1664. "400": {
  1665. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1666. "schema": {
  1667. "type": "string"
  1668. }
  1669. }
  1670. }
  1671. },
  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. "description": "标段ID",
  1692. "name": "bidsectionId",
  1693. "in": "body",
  1694. "required": true,
  1695. "schema": {
  1696. "type": "string"
  1697. }
  1698. },
  1699. {
  1700. "description": "规则类型",
  1701. "name": "type",
  1702. "in": "body",
  1703. "required": true,
  1704. "schema": {
  1705. "type": "string"
  1706. }
  1707. },
  1708. {
  1709. "description": "编号规则",
  1710. "name": "value",
  1711. "in": "body",
  1712. "required": true,
  1713. "schema": {
  1714. "type": "string"
  1715. }
  1716. }
  1717. ],
  1718. "responses": {
  1719. "200": {
  1720. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1721. "schema": {
  1722. "type": "string"
  1723. }
  1724. },
  1725. "400": {
  1726. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1727. "schema": {
  1728. "type": "string"
  1729. }
  1730. }
  1731. }
  1732. }
  1733. },
  1734. "/api/rule/auto": {
  1735. "post": {
  1736. "security": [
  1737. {
  1738. "ApiKeyAuth": []
  1739. }
  1740. ],
  1741. "description": "提交规则",
  1742. "consumes": [
  1743. "application/json"
  1744. ],
  1745. "produces": [
  1746. "application/json"
  1747. ],
  1748. "tags": [
  1749. "编号规则"
  1750. ],
  1751. "summary": "生成编号",
  1752. "parameters": [
  1753. {
  1754. "description": "标段ID",
  1755. "name": "bidsectionId",
  1756. "in": "body",
  1757. "required": true,
  1758. "schema": {
  1759. "type": "string"
  1760. }
  1761. },
  1762. {
  1763. "description": "规则类型",
  1764. "name": "type",
  1765. "in": "body",
  1766. "required": true,
  1767. "schema": {
  1768. "type": "string"
  1769. }
  1770. }
  1771. ],
  1772. "responses": {
  1773. "200": {
  1774. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1775. "schema": {
  1776. "type": "string"
  1777. }
  1778. },
  1779. "400": {
  1780. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1781. "schema": {
  1782. "type": "string"
  1783. }
  1784. }
  1785. }
  1786. }
  1787. },
  1788. "/api/safe": {
  1789. "get": {
  1790. "security": [
  1791. {
  1792. "ApiKeyAuth": []
  1793. }
  1794. ],
  1795. "description": "获得列表数据",
  1796. "consumes": [
  1797. "application/json"
  1798. ],
  1799. "produces": [
  1800. "application/json"
  1801. ],
  1802. "tags": [
  1803. "安全巡检"
  1804. ],
  1805. "summary": "安全巡检列表",
  1806. "parameters": [
  1807. {
  1808. "type": "string",
  1809. "description": "标段ID",
  1810. "name": "bidsectionId",
  1811. "in": "path",
  1812. "required": true
  1813. }
  1814. ],
  1815. "responses": {
  1816. "200": {
  1817. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1818. "schema": {
  1819. "$ref": "#/definitions/viewmodels.Safe"
  1820. }
  1821. },
  1822. "400": {
  1823. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1824. "schema": {
  1825. "type": "string"
  1826. }
  1827. }
  1828. }
  1829. },
  1830. "post": {
  1831. "security": [
  1832. {
  1833. "ApiKeyAuth": []
  1834. }
  1835. ],
  1836. "description": "创建新的安全巡检记录",
  1837. "consumes": [
  1838. "application/json"
  1839. ],
  1840. "produces": [
  1841. "application/json"
  1842. ],
  1843. "tags": [
  1844. "安全巡检"
  1845. ],
  1846. "summary": "创建新的安全巡检记录",
  1847. "parameters": [
  1848. {
  1849. "description": "标段ID",
  1850. "name": "bidsectionId",
  1851. "in": "body",
  1852. "required": true,
  1853. "schema": {
  1854. "type": "string"
  1855. }
  1856. },
  1857. {
  1858. "description": "编号",
  1859. "name": "code",
  1860. "in": "body",
  1861. "required": true,
  1862. "schema": {
  1863. "type": "string"
  1864. }
  1865. },
  1866. {
  1867. "description": "日期",
  1868. "name": "createTime",
  1869. "in": "body",
  1870. "required": true,
  1871. "schema": {
  1872. "type": "string"
  1873. }
  1874. },
  1875. {
  1876. "description": "检查部位",
  1877. "name": "inspection",
  1878. "in": "body",
  1879. "required": true,
  1880. "schema": {
  1881. "type": "string"
  1882. }
  1883. },
  1884. {
  1885. "description": "部位",
  1886. "name": "position",
  1887. "in": "body",
  1888. "required": true,
  1889. "schema": {
  1890. "type": "string"
  1891. }
  1892. }
  1893. ],
  1894. "responses": {
  1895. "200": {
  1896. "description": "{code:0成功,msg:}",
  1897. "schema": {
  1898. "$ref": "#/definitions/viewmodels.Safe"
  1899. }
  1900. },
  1901. "400": {
  1902. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1903. "schema": {
  1904. "type": "string"
  1905. }
  1906. }
  1907. }
  1908. },
  1909. "delete": {
  1910. "security": [
  1911. {
  1912. "ApiKeyAuth": []
  1913. }
  1914. ],
  1915. "description": "删除安全巡检记录",
  1916. "consumes": [
  1917. "application/json"
  1918. ],
  1919. "produces": [
  1920. "application/json"
  1921. ],
  1922. "tags": [
  1923. "安全巡检"
  1924. ],
  1925. "summary": "删除记录",
  1926. "parameters": [
  1927. {
  1928. "description": "安全巡检ID",
  1929. "name": "id",
  1930. "in": "body",
  1931. "required": true,
  1932. "schema": {
  1933. "type": "string"
  1934. }
  1935. }
  1936. ],
  1937. "responses": {
  1938. "200": {
  1939. "description": "{code:0成功,msg:}",
  1940. "schema": {
  1941. "$ref": "#/definitions/viewmodels.Safe"
  1942. }
  1943. },
  1944. "400": {
  1945. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1946. "schema": {
  1947. "type": "string"
  1948. }
  1949. }
  1950. }
  1951. }
  1952. },
  1953. "/api/safe/detail": {
  1954. "get": {
  1955. "security": [
  1956. {
  1957. "ApiKeyAuth": []
  1958. }
  1959. ],
  1960. "description": "获得安全巡检详情页面数据",
  1961. "consumes": [
  1962. "application/json"
  1963. ],
  1964. "produces": [
  1965. "application/json"
  1966. ],
  1967. "tags": [
  1968. "安全巡检"
  1969. ],
  1970. "summary": "获取安全巡检详情",
  1971. "parameters": [
  1972. {
  1973. "type": "string",
  1974. "description": "巡检ID",
  1975. "name": "id",
  1976. "in": "path",
  1977. "required": true
  1978. }
  1979. ],
  1980. "responses": {
  1981. "200": {
  1982. "description": "{code:0成功,data:viewmodels.Safe,msg:}",
  1983. "schema": {
  1984. "$ref": "#/definitions/viewmodels.Safe"
  1985. }
  1986. },
  1987. "400": {
  1988. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  1989. "schema": {
  1990. "type": "string"
  1991. }
  1992. }
  1993. }
  1994. }
  1995. },
  1996. "/api/tree": {
  1997. "get": {
  1998. "security": [
  1999. {
  2000. "ApiKeyAuth": []
  2001. }
  2002. ],
  2003. "description": "获得目录和数据",
  2004. "consumes": [
  2005. "application/json"
  2006. ],
  2007. "produces": [
  2008. "application/json"
  2009. ],
  2010. "tags": [
  2011. "目录相关-管理员"
  2012. ],
  2013. "summary": "获得目录和数据",
  2014. "responses": {
  2015. "200": {
  2016. "description": "{code:0成功,data:viewmodels.Tree,msg:}",
  2017. "schema": {
  2018. "$ref": "#/definitions/viewmodels.Tree"
  2019. }
  2020. },
  2021. "400": {
  2022. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2023. "schema": {
  2024. "type": "string"
  2025. }
  2026. }
  2027. }
  2028. },
  2029. "delete": {
  2030. "security": [
  2031. {
  2032. "ApiKeyAuth": []
  2033. }
  2034. ],
  2035. "description": "删除目录下的目录以及其他内容",
  2036. "consumes": [
  2037. "application/json"
  2038. ],
  2039. "produces": [
  2040. "application/json"
  2041. ],
  2042. "tags": [
  2043. "目录相关-管理员"
  2044. ],
  2045. "summary": "删除目录",
  2046. "parameters": [
  2047. {
  2048. "description": "目录ID",
  2049. "name": "id",
  2050. "in": "body",
  2051. "required": true,
  2052. "schema": {
  2053. "type": "string"
  2054. }
  2055. }
  2056. ],
  2057. "responses": {
  2058. "200": {
  2059. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2060. "schema": {
  2061. "type": "string"
  2062. }
  2063. }
  2064. }
  2065. }
  2066. },
  2067. "/api/tree/create": {
  2068. "post": {
  2069. "security": [
  2070. {
  2071. "ApiKeyAuth": []
  2072. }
  2073. ],
  2074. "description": "新增目录",
  2075. "consumes": [
  2076. "application/json"
  2077. ],
  2078. "produces": [
  2079. "application/json"
  2080. ],
  2081. "tags": [
  2082. "目录相关-管理员"
  2083. ],
  2084. "summary": "新增目录",
  2085. "parameters": [
  2086. {
  2087. "description": "目录ID",
  2088. "name": "id",
  2089. "in": "body",
  2090. "required": true,
  2091. "schema": {
  2092. "type": "string"
  2093. }
  2094. },
  2095. {
  2096. "description": "目录深度 顶级目录(-1)其他级目录(0)",
  2097. "name": "depth",
  2098. "in": "body",
  2099. "required": true,
  2100. "schema": {
  2101. "type": "integer"
  2102. }
  2103. },
  2104. {
  2105. "description": "目录名称",
  2106. "name": "name",
  2107. "in": "body",
  2108. "required": true,
  2109. "schema": {
  2110. "type": "string"
  2111. }
  2112. }
  2113. ],
  2114. "responses": {
  2115. "200": {
  2116. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2117. "schema": {
  2118. "type": "string"
  2119. }
  2120. }
  2121. }
  2122. }
  2123. },
  2124. "/api/tree/move": {
  2125. "post": {
  2126. "security": [
  2127. {
  2128. "ApiKeyAuth": []
  2129. }
  2130. ],
  2131. "description": "移动文件夹",
  2132. "consumes": [
  2133. "application/json"
  2134. ],
  2135. "produces": [
  2136. "application/json"
  2137. ],
  2138. "tags": [
  2139. "目录相关-管理员"
  2140. ],
  2141. "summary": "移动文件夹",
  2142. "parameters": [
  2143. {
  2144. "description": "目录ID",
  2145. "name": "id",
  2146. "in": "body",
  2147. "required": true,
  2148. "schema": {
  2149. "type": "string"
  2150. }
  2151. },
  2152. {
  2153. "description": "被放置的目录ID",
  2154. "name": "moveId",
  2155. "in": "body",
  2156. "required": true,
  2157. "schema": {
  2158. "type": "string"
  2159. }
  2160. }
  2161. ],
  2162. "responses": {
  2163. "200": {
  2164. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2165. "schema": {
  2166. "type": "string"
  2167. }
  2168. }
  2169. }
  2170. }
  2171. },
  2172. "/api/tree/rename": {
  2173. "post": {
  2174. "security": [
  2175. {
  2176. "ApiKeyAuth": []
  2177. }
  2178. ],
  2179. "description": "重命名-文件夹或者标段",
  2180. "consumes": [
  2181. "application/json"
  2182. ],
  2183. "produces": [
  2184. "application/json"
  2185. ],
  2186. "tags": [
  2187. "目录相关-管理员"
  2188. ],
  2189. "summary": "重命名",
  2190. "parameters": [
  2191. {
  2192. "description": "treeId",
  2193. "name": "id",
  2194. "in": "body",
  2195. "required": true,
  2196. "schema": {
  2197. "type": "string"
  2198. }
  2199. },
  2200. {
  2201. "description": "重命名的名称",
  2202. "name": "name",
  2203. "in": "body",
  2204. "required": true,
  2205. "schema": {
  2206. "type": "string"
  2207. }
  2208. }
  2209. ],
  2210. "responses": {
  2211. "200": {
  2212. "description": "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}",
  2213. "schema": {
  2214. "type": "string"
  2215. }
  2216. }
  2217. }
  2218. }
  2219. }
  2220. },
  2221. "definitions": {
  2222. "viewmodels.FolderContract": {
  2223. "type": "object",
  2224. "properties": {
  2225. "bidsectionId": {
  2226. "type": "string"
  2227. },
  2228. "children": {
  2229. "type": "array",
  2230. "items": {
  2231. "$ref": "#/definitions/viewmodels.FolderContract"
  2232. }
  2233. },
  2234. "childsTotal": {
  2235. "type": "integer"
  2236. },
  2237. "contracts": {
  2238. "type": "integer"
  2239. },
  2240. "contractsIncome": {
  2241. "type": "string"
  2242. },
  2243. "contractsIncomeProgress": {
  2244. "type": "string"
  2245. },
  2246. "contractsPaid": {
  2247. "type": "string"
  2248. },
  2249. "contractsPay": {
  2250. "type": "string"
  2251. },
  2252. "contractsPayProgress": {
  2253. "type": "string"
  2254. },
  2255. "contractsReturned": {
  2256. "type": "string"
  2257. },
  2258. "csrf": {
  2259. "type": "string"
  2260. },
  2261. "hasFolder": {
  2262. "description": "Leaf bool ` + "`" + `json:\"leaf\" ` + "`" + `",
  2263. "type": "boolean"
  2264. },
  2265. "id": {
  2266. "type": "string"
  2267. },
  2268. "isBid": {
  2269. "type": "boolean"
  2270. },
  2271. "isEnd": {
  2272. "type": "boolean"
  2273. },
  2274. "isfolder": {
  2275. "type": "integer"
  2276. },
  2277. "name": {
  2278. "type": "string"
  2279. },
  2280. "parentId": {
  2281. "type": "string"
  2282. },
  2283. "projectId": {
  2284. "type": "string"
  2285. },
  2286. "safeRectification": {
  2287. "type": "integer"
  2288. },
  2289. "safeRectificationIn": {
  2290. "type": "integer"
  2291. },
  2292. "safeTotal": {
  2293. "description": "安全巡检字段-后期做接口后移动-TODO",
  2294. "type": "integer"
  2295. }
  2296. }
  2297. },
  2298. "viewmodels.Project": {
  2299. "type": "object",
  2300. "properties": {
  2301. "code": {
  2302. "type": "string"
  2303. },
  2304. "id": {
  2305. "type": "string"
  2306. },
  2307. "name": {
  2308. "type": "string"
  2309. }
  2310. }
  2311. },
  2312. "viewmodels.ProjectAccount": {
  2313. "type": "object",
  2314. "properties": {
  2315. "account": {
  2316. "type": "string"
  2317. },
  2318. "accountGroup": {
  2319. "type": "integer"
  2320. },
  2321. "company": {
  2322. "type": "string"
  2323. },
  2324. "csrf": {
  2325. "type": "string"
  2326. },
  2327. "enable": {
  2328. "type": "integer"
  2329. },
  2330. "id": {
  2331. "type": "string"
  2332. },
  2333. "isAdmin": {
  2334. "type": "integer"
  2335. },
  2336. "mobile": {
  2337. "type": "string"
  2338. },
  2339. "name": {
  2340. "type": "string"
  2341. },
  2342. "password": {
  2343. "type": "string"
  2344. },
  2345. "position": {
  2346. "type": "string"
  2347. },
  2348. "projectId": {
  2349. "type": "string"
  2350. },
  2351. "role": {
  2352. "type": "string"
  2353. },
  2354. "telephone": {
  2355. "type": "string"
  2356. }
  2357. }
  2358. },
  2359. "viewmodels.Safe": {
  2360. "type": "object",
  2361. "properties": {
  2362. "bidsectionId": {
  2363. "type": "string"
  2364. },
  2365. "code": {
  2366. "type": "string"
  2367. },
  2368. "createTime": {
  2369. "type": "string"
  2370. },
  2371. "demand": {
  2372. "type": "string"
  2373. },
  2374. "endTime": {
  2375. "type": "string"
  2376. },
  2377. "id": {
  2378. "type": "string"
  2379. },
  2380. "inspection": {
  2381. "type": "string"
  2382. },
  2383. "inspectionDetail": {
  2384. "type": "string"
  2385. },
  2386. "position": {
  2387. "type": "string"
  2388. },
  2389. "status": {
  2390. "type": "integer"
  2391. },
  2392. "uid": {
  2393. "type": "string"
  2394. }
  2395. }
  2396. },
  2397. "viewmodels.Tree": {
  2398. "type": "object",
  2399. "properties": {
  2400. "ancounts": {
  2401. "type": "integer"
  2402. },
  2403. "attribution": {
  2404. "type": "string"
  2405. },
  2406. "bidsectionId": {
  2407. "type": "string"
  2408. },
  2409. "children": {
  2410. "type": "array",
  2411. "items": {
  2412. "$ref": "#/definitions/viewmodels.Tree"
  2413. }
  2414. },
  2415. "childsTotal": {
  2416. "type": "integer"
  2417. },
  2418. "createTime": {
  2419. "type": "string"
  2420. },
  2421. "csrf": {
  2422. "type": "string"
  2423. },
  2424. "depth": {
  2425. "type": "integer"
  2426. },
  2427. "hasFolder": {
  2428. "description": "Leaf bool ` + "`" + `json:\"leaf\" ` + "`" + `",
  2429. "type": "boolean"
  2430. },
  2431. "id": {
  2432. "type": "string"
  2433. },
  2434. "isBid": {
  2435. "type": "boolean"
  2436. },
  2437. "isEnd": {
  2438. "type": "boolean"
  2439. },
  2440. "isfolder": {
  2441. "type": "integer"
  2442. },
  2443. "name": {
  2444. "type": "string"
  2445. },
  2446. "parentId": {
  2447. "type": "string"
  2448. },
  2449. "projectId": {
  2450. "type": "string"
  2451. },
  2452. "serial": {
  2453. "type": "string"
  2454. },
  2455. "targetFolderId": {
  2456. "type": "string"
  2457. },
  2458. "updateTime": {
  2459. "type": "string"
  2460. }
  2461. }
  2462. },
  2463. "viewmodels.TreeSectionContract": {
  2464. "type": "object",
  2465. "properties": {
  2466. "attribution": {
  2467. "type": "string"
  2468. },
  2469. "bidsectionId": {
  2470. "type": "string"
  2471. },
  2472. "children": {
  2473. "type": "array",
  2474. "items": {
  2475. "$ref": "#/definitions/viewmodels.TreeSectionContract"
  2476. }
  2477. },
  2478. "code": {
  2479. "type": "string"
  2480. },
  2481. "contractCode": {
  2482. "type": "string"
  2483. },
  2484. "contractId": {
  2485. "type": "string"
  2486. },
  2487. "contractName": {
  2488. "type": "string"
  2489. },
  2490. "contractPrice": {
  2491. "type": "string"
  2492. },
  2493. "contractReturned": {
  2494. "type": "string"
  2495. },
  2496. "contractStatus": {
  2497. "type": "integer"
  2498. },
  2499. "contractsPaid": {
  2500. "type": "string"
  2501. },
  2502. "createTime": {
  2503. "type": "string"
  2504. },
  2505. "depth": {
  2506. "type": "integer"
  2507. },
  2508. "elderBrother": {
  2509. "type": "boolean"
  2510. },
  2511. "id": {
  2512. "type": "string"
  2513. },
  2514. "isEnd": {
  2515. "type": "boolean"
  2516. },
  2517. "name": {
  2518. "type": "string"
  2519. },
  2520. "operation": {
  2521. "type": "string"
  2522. },
  2523. "parentId": {
  2524. "type": "string"
  2525. },
  2526. "projectId": {
  2527. "type": "string"
  2528. },
  2529. "serial": {
  2530. "type": "integer"
  2531. },
  2532. "templateNumber": {
  2533. "type": "integer"
  2534. }
  2535. }
  2536. },
  2537. "viewmodels.ViewRule": {
  2538. "type": "object",
  2539. "properties": {
  2540. "contractRule": {
  2541. "type": "string"
  2542. },
  2543. "qualityRule": {
  2544. "type": "string"
  2545. },
  2546. "safeRule": {
  2547. "type": "string"
  2548. }
  2549. }
  2550. }
  2551. },
  2552. "securityDefinitions": {
  2553. "ApiKeyAuth": {
  2554. "type": "apiKey",
  2555. "name": "X-CSRF-Token",
  2556. "in": "header"
  2557. }
  2558. }
  2559. }`
  2560. type swaggerInfo struct {
  2561. Version string
  2562. Host string
  2563. BasePath string
  2564. Schemes []string
  2565. Title string
  2566. Description string
  2567. }
  2568. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2569. var SwaggerInfo = swaggerInfo{
  2570. Version: "1.0",
  2571. Host: "",
  2572. BasePath: "",
  2573. Schemes: []string{},
  2574. Title: "工程项目管理系统 API",
  2575. Description: "工程项目管理系统-接口",
  2576. }
  2577. type s struct{}
  2578. func (s *s) ReadDoc() string {
  2579. sInfo := SwaggerInfo
  2580. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2581. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2582. "marshal": func(v interface{}) string {
  2583. a, _ := json.Marshal(v)
  2584. return string(a)
  2585. },
  2586. }).Parse(doc)
  2587. if err != nil {
  2588. return doc
  2589. }
  2590. var tpl bytes.Buffer
  2591. if err := t.Execute(&tpl, sInfo); err != nil {
  2592. return doc
  2593. }
  2594. return tpl.String()
  2595. }
  2596. func init() {
  2597. swag.Register(swag.Name, &s{})
  2598. }