swagger.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a gateway server. On the page, you can go to do testing for every API.",
  5. "title": "Project xingjia-official-gateway's APIs",
  6. "contact": {},
  7. "license": {},
  8. "version": "1.1"
  9. },
  10. "paths": {
  11. "/api/v1/file": {
  12. "get": {
  13. "description": "获取文件",
  14. "consumes": [
  15. "application/json"
  16. ],
  17. "produces": [
  18. "application/json"
  19. ],
  20. "tags": [
  21. "download"
  22. ],
  23. "summary": "获取文件",
  24. "parameters": [
  25. {
  26. "type": "string",
  27. "description": "jwt token",
  28. "name": "token",
  29. "in": "header",
  30. "required": true
  31. },
  32. {
  33. "type": "string",
  34. "description": " ",
  35. "name": "obj",
  36. "in": "query",
  37. "required": true
  38. }
  39. ],
  40. "responses": {
  41. "200": {
  42. "description": "OK",
  43. "schema": {
  44. "$ref": "#/definitions/v1.UploadResponse"
  45. }
  46. },
  47. "500": {
  48. "description": "Internal Server Error",
  49. "schema": {
  50. "$ref": "#/definitions/base.HTTPError"
  51. }
  52. }
  53. }
  54. }
  55. },
  56. "/api/v1/jt/announcement": {
  57. "get": {
  58. "description": "公示公告列表",
  59. "consumes": [
  60. "application/json"
  61. ],
  62. "produces": [
  63. "application/json"
  64. ],
  65. "tags": [
  66. "公示公告"
  67. ],
  68. "summary": "公示公告列表",
  69. "parameters": [
  70. {
  71. "type": "integer",
  72. "description": " ",
  73. "name": "page",
  74. "in": "query"
  75. },
  76. {
  77. "type": "integer",
  78. "description": " ",
  79. "name": "page_size",
  80. "in": "query"
  81. }
  82. ],
  83. "responses": {
  84. "200": {
  85. "description": "OK",
  86. "schema": {
  87. "$ref": "#/definitions/v1.JtContentListResponse"
  88. }
  89. },
  90. "500": {
  91. "description": "Internal Server Error",
  92. "schema": {
  93. "$ref": "#/definitions/base.HTTPError"
  94. }
  95. }
  96. }
  97. }
  98. },
  99. "/api/v1/jt/contact": {
  100. "get": {
  101. "description": "联系我们信息",
  102. "consumes": [
  103. "application/json"
  104. ],
  105. "produces": [
  106. "application/json"
  107. ],
  108. "tags": [
  109. "联系我们"
  110. ],
  111. "summary": "联系我们信息",
  112. "responses": {
  113. "200": {
  114. "description": "OK",
  115. "schema": {
  116. "$ref": "#/definitions/v1.ContactInfoResponse"
  117. }
  118. },
  119. "500": {
  120. "description": "Internal Server Error",
  121. "schema": {
  122. "$ref": "#/definitions/base.HTTPError"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "/api/v1/jt/desc": {
  129. "get": {
  130. "description": "集团简介信息",
  131. "consumes": [
  132. "application/json"
  133. ],
  134. "produces": [
  135. "application/json"
  136. ],
  137. "tags": [
  138. "集团简介"
  139. ],
  140. "summary": "集团简介信息",
  141. "responses": {
  142. "200": {
  143. "description": "OK",
  144. "schema": {
  145. "$ref": "#/definitions/v1.JtContentInfoResponse"
  146. }
  147. },
  148. "500": {
  149. "description": "Internal Server Error",
  150. "schema": {
  151. "$ref": "#/definitions/base.HTTPError"
  152. }
  153. }
  154. }
  155. }
  156. },
  157. "/api/v1/jt/df": {
  158. "get": {
  159. "description": "党风廉洁列表",
  160. "consumes": [
  161. "application/json"
  162. ],
  163. "produces": [
  164. "application/json"
  165. ],
  166. "tags": [
  167. "党风廉洁"
  168. ],
  169. "summary": "党风廉洁列表",
  170. "parameters": [
  171. {
  172. "type": "integer",
  173. "description": " ",
  174. "name": "page",
  175. "in": "query"
  176. },
  177. {
  178. "type": "integer",
  179. "description": " ",
  180. "name": "page_size",
  181. "in": "query"
  182. }
  183. ],
  184. "responses": {
  185. "200": {
  186. "description": "OK",
  187. "schema": {
  188. "$ref": "#/definitions/v1.JtContentListResponse"
  189. }
  190. },
  191. "500": {
  192. "description": "Internal Server Error",
  193. "schema": {
  194. "$ref": "#/definitions/base.HTTPError"
  195. }
  196. }
  197. }
  198. }
  199. },
  200. "/api/v1/jt/hw": {
  201. "get": {
  202. "description": "会务动态列表",
  203. "consumes": [
  204. "application/json"
  205. ],
  206. "produces": [
  207. "application/json"
  208. ],
  209. "tags": [
  210. "会务动态"
  211. ],
  212. "summary": "会务动态列表",
  213. "parameters": [
  214. {
  215. "type": "integer",
  216. "description": " ",
  217. "name": "page",
  218. "in": "query"
  219. },
  220. {
  221. "type": "integer",
  222. "description": " ",
  223. "name": "page_size",
  224. "in": "query"
  225. }
  226. ],
  227. "responses": {
  228. "200": {
  229. "description": "OK",
  230. "schema": {
  231. "$ref": "#/definitions/v1.JtContentListResponse"
  232. }
  233. },
  234. "500": {
  235. "description": "Internal Server Error",
  236. "schema": {
  237. "$ref": "#/definitions/base.HTTPError"
  238. }
  239. }
  240. }
  241. }
  242. },
  243. "/api/v1/jt/lx": {
  244. "get": {
  245. "description": "两学一做列表",
  246. "consumes": [
  247. "application/json"
  248. ],
  249. "produces": [
  250. "application/json"
  251. ],
  252. "tags": [
  253. "两学一做"
  254. ],
  255. "summary": "两学一做列表",
  256. "parameters": [
  257. {
  258. "type": "integer",
  259. "description": " ",
  260. "name": "page",
  261. "in": "query"
  262. },
  263. {
  264. "type": "integer",
  265. "description": " ",
  266. "name": "page_size",
  267. "in": "query"
  268. }
  269. ],
  270. "responses": {
  271. "200": {
  272. "description": "OK",
  273. "schema": {
  274. "$ref": "#/definitions/v1.JtContentListResponse"
  275. }
  276. },
  277. "500": {
  278. "description": "Internal Server Error",
  279. "schema": {
  280. "$ref": "#/definitions/base.HTTPError"
  281. }
  282. }
  283. }
  284. }
  285. },
  286. "/api/v1/jt/news": {
  287. "get": {
  288. "description": "兴嘉要闻列表",
  289. "consumes": [
  290. "application/json"
  291. ],
  292. "produces": [
  293. "application/json"
  294. ],
  295. "tags": [
  296. "兴嘉要闻"
  297. ],
  298. "summary": "兴嘉要闻列表",
  299. "parameters": [
  300. {
  301. "type": "integer",
  302. "description": " ",
  303. "name": "page",
  304. "in": "query"
  305. },
  306. {
  307. "type": "integer",
  308. "description": " ",
  309. "name": "page_size",
  310. "in": "query"
  311. }
  312. ],
  313. "responses": {
  314. "200": {
  315. "description": "OK",
  316. "schema": {
  317. "$ref": "#/definitions/v1.JtContentListResponse"
  318. }
  319. },
  320. "500": {
  321. "description": "Internal Server Error",
  322. "schema": {
  323. "$ref": "#/definitions/base.HTTPError"
  324. }
  325. }
  326. }
  327. }
  328. },
  329. "/api/v1/jt/page_pic": {
  330. "get": {
  331. "description": "首页顶层图片列表",
  332. "consumes": [
  333. "application/json"
  334. ],
  335. "produces": [
  336. "application/json"
  337. ],
  338. "tags": [
  339. "首页顶层图片"
  340. ],
  341. "summary": "首页顶层图片列表",
  342. "parameters": [
  343. {
  344. "type": "integer",
  345. "description": " ",
  346. "name": "page",
  347. "in": "query"
  348. },
  349. {
  350. "type": "integer",
  351. "description": " ",
  352. "name": "page_size",
  353. "in": "query"
  354. }
  355. ],
  356. "responses": {
  357. "200": {
  358. "description": "OK",
  359. "schema": {
  360. "$ref": "#/definitions/v1.PagePicListResponse"
  361. }
  362. },
  363. "500": {
  364. "description": "Internal Server Error",
  365. "schema": {
  366. "$ref": "#/definitions/base.HTTPError"
  367. }
  368. }
  369. }
  370. }
  371. },
  372. "/api/v1/jt/program": {
  373. "get": {
  374. "description": "项目展示列表",
  375. "consumes": [
  376. "application/json"
  377. ],
  378. "produces": [
  379. "application/json"
  380. ],
  381. "tags": [
  382. "项目展示"
  383. ],
  384. "summary": "项目展示列表",
  385. "parameters": [
  386. {
  387. "type": "integer",
  388. "description": " ",
  389. "name": "page",
  390. "in": "query"
  391. },
  392. {
  393. "type": "integer",
  394. "description": " ",
  395. "name": "page_size",
  396. "in": "query"
  397. }
  398. ],
  399. "responses": {
  400. "200": {
  401. "description": "OK",
  402. "schema": {
  403. "$ref": "#/definitions/v1.JtContentListResponse"
  404. }
  405. },
  406. "500": {
  407. "description": "Internal Server Error",
  408. "schema": {
  409. "$ref": "#/definitions/base.HTTPError"
  410. }
  411. }
  412. }
  413. }
  414. },
  415. "/api/v1/jt/vision": {
  416. "get": {
  417. "description": "发展愿景信息",
  418. "consumes": [
  419. "application/json"
  420. ],
  421. "produces": [
  422. "application/json"
  423. ],
  424. "tags": [
  425. "发展愿景"
  426. ],
  427. "summary": "发展愿景信息",
  428. "responses": {
  429. "200": {
  430. "description": "OK",
  431. "schema": {
  432. "$ref": "#/definitions/v1.JtContentInfoResponse"
  433. }
  434. },
  435. "500": {
  436. "description": "Internal Server Error",
  437. "schema": {
  438. "$ref": "#/definitions/base.HTTPError"
  439. }
  440. }
  441. }
  442. }
  443. }
  444. },
  445. "definitions": {
  446. "apis.ContactInfoReply": {
  447. "type": "object",
  448. "properties": {
  449. "addr": {
  450. "type": "string"
  451. },
  452. "email": {
  453. "type": "string"
  454. },
  455. "id": {
  456. "type": "integer"
  457. },
  458. "phone": {
  459. "type": "string"
  460. }
  461. }
  462. },
  463. "apis.JtContentItem": {
  464. "type": "object",
  465. "properties": {
  466. "content": {
  467. "type": "string"
  468. },
  469. "created_at": {
  470. "type": "integer"
  471. },
  472. "first_pics": {
  473. "type": "array",
  474. "items": {
  475. "type": "string"
  476. }
  477. },
  478. "id": {
  479. "type": "integer"
  480. },
  481. "publish_status": {
  482. "type": "integer"
  483. },
  484. "title": {
  485. "type": "string"
  486. }
  487. }
  488. },
  489. "apis.JtContentListReply": {
  490. "type": "object",
  491. "properties": {
  492. "list": {
  493. "type": "array",
  494. "items": {
  495. "$ref": "#/definitions/apis.JtContentItem"
  496. }
  497. },
  498. "page": {
  499. "type": "integer"
  500. },
  501. "total": {
  502. "type": "integer"
  503. }
  504. }
  505. },
  506. "apis.PagePicItem": {
  507. "type": "object",
  508. "properties": {
  509. "created_at": {
  510. "type": "integer"
  511. },
  512. "id": {
  513. "type": "integer"
  514. },
  515. "pic": {
  516. "type": "string"
  517. }
  518. }
  519. },
  520. "apis.PagePicListReply": {
  521. "type": "object",
  522. "properties": {
  523. "list": {
  524. "type": "array",
  525. "items": {
  526. "$ref": "#/definitions/apis.PagePicItem"
  527. }
  528. },
  529. "page": {
  530. "type": "integer"
  531. },
  532. "total": {
  533. "type": "integer"
  534. }
  535. }
  536. },
  537. "base.HTTPError": {
  538. "type": "object",
  539. "properties": {
  540. "code": {
  541. "type": "integer",
  542. "format": "int",
  543. "example": 500
  544. },
  545. "message": {
  546. "type": "string",
  547. "example": "status bad request"
  548. }
  549. }
  550. },
  551. "v1.ContactInfoResponse": {
  552. "type": "object",
  553. "properties": {
  554. "code": {
  555. "description": "返回码",
  556. "type": "integer",
  557. "format": "int",
  558. "default": 0
  559. },
  560. "data": {
  561. "type": "object",
  562. "$ref": "#/definitions/apis.ContactInfoReply"
  563. },
  564. "message": {
  565. "description": "消息",
  566. "type": "string",
  567. "default": "success"
  568. }
  569. }
  570. },
  571. "v1.JtContentInfoData": {
  572. "type": "object",
  573. "properties": {
  574. "content": {
  575. "type": "string"
  576. },
  577. "created_at": {
  578. "type": "integer"
  579. },
  580. "first_pics": {
  581. "type": "array",
  582. "items": {
  583. "type": "string"
  584. }
  585. },
  586. "id": {
  587. "type": "integer"
  588. },
  589. "publish_status": {
  590. "description": "1 发布 2 暂不发布",
  591. "type": "integer"
  592. },
  593. "title": {
  594. "type": "string"
  595. }
  596. }
  597. },
  598. "v1.JtContentInfoResponse": {
  599. "type": "object",
  600. "properties": {
  601. "code": {
  602. "description": "返回码",
  603. "type": "integer",
  604. "format": "int",
  605. "default": 0
  606. },
  607. "data": {
  608. "type": "object",
  609. "$ref": "#/definitions/v1.JtContentInfoData"
  610. },
  611. "message": {
  612. "description": "消息",
  613. "type": "string",
  614. "default": "success"
  615. }
  616. }
  617. },
  618. "v1.JtContentListResponse": {
  619. "type": "object",
  620. "properties": {
  621. "code": {
  622. "description": "返回码",
  623. "type": "integer",
  624. "format": "int",
  625. "default": 0
  626. },
  627. "data": {
  628. "type": "object",
  629. "$ref": "#/definitions/apis.JtContentListReply"
  630. },
  631. "message": {
  632. "description": "消息",
  633. "type": "string",
  634. "default": "success"
  635. }
  636. }
  637. },
  638. "v1.PagePicListResponse": {
  639. "type": "object",
  640. "properties": {
  641. "code": {
  642. "description": "返回码",
  643. "type": "integer",
  644. "format": "int",
  645. "default": 0
  646. },
  647. "data": {
  648. "type": "object",
  649. "$ref": "#/definitions/apis.PagePicListReply"
  650. },
  651. "message": {
  652. "description": "消息",
  653. "type": "string",
  654. "default": "success"
  655. }
  656. }
  657. },
  658. "v1.UploadResponse": {
  659. "type": "object",
  660. "properties": {
  661. "code": {
  662. "description": "返回码",
  663. "type": "integer",
  664. "format": "int",
  665. "default": 0
  666. },
  667. "data": {
  668. "type": "string"
  669. },
  670. "message": {
  671. "description": "消息",
  672. "type": "string",
  673. "default": "success"
  674. }
  675. }
  676. }
  677. }
  678. }