swagger.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. definitions:
  2. apis.ContactInfoReply:
  3. properties:
  4. addr:
  5. type: string
  6. email:
  7. type: string
  8. id:
  9. type: integer
  10. phone:
  11. type: string
  12. type: object
  13. apis.JtContentItem:
  14. properties:
  15. content:
  16. type: string
  17. created_at:
  18. type: integer
  19. first_pics:
  20. items:
  21. type: string
  22. type: array
  23. id:
  24. type: integer
  25. publish_status:
  26. type: integer
  27. title:
  28. type: string
  29. type: object
  30. apis.JtContentListReply:
  31. properties:
  32. list:
  33. items:
  34. $ref: '#/definitions/apis.JtContentItem'
  35. type: array
  36. page:
  37. type: integer
  38. total:
  39. type: integer
  40. type: object
  41. apis.PagePicItem:
  42. properties:
  43. created_at:
  44. type: integer
  45. id:
  46. type: integer
  47. pic:
  48. type: string
  49. type: object
  50. apis.PagePicListReply:
  51. properties:
  52. list:
  53. items:
  54. $ref: '#/definitions/apis.PagePicItem'
  55. type: array
  56. page:
  57. type: integer
  58. total:
  59. type: integer
  60. type: object
  61. base.HTTPError:
  62. properties:
  63. code:
  64. example: 500
  65. format: int
  66. type: integer
  67. message:
  68. example: status bad request
  69. type: string
  70. type: object
  71. v1.ContactInfoResponse:
  72. properties:
  73. code:
  74. default: 0
  75. description: 返回码
  76. format: int
  77. type: integer
  78. data:
  79. $ref: '#/definitions/apis.ContactInfoReply'
  80. type: object
  81. message:
  82. default: success
  83. description: 消息
  84. type: string
  85. type: object
  86. v1.JtContentInfoData:
  87. properties:
  88. content:
  89. type: string
  90. created_at:
  91. type: integer
  92. first_pics:
  93. items:
  94. type: string
  95. type: array
  96. id:
  97. type: integer
  98. publish_status:
  99. description: 1 发布 2 暂不发布
  100. type: integer
  101. title:
  102. type: string
  103. type: object
  104. v1.JtContentInfoResponse:
  105. properties:
  106. code:
  107. default: 0
  108. description: 返回码
  109. format: int
  110. type: integer
  111. data:
  112. $ref: '#/definitions/v1.JtContentInfoData'
  113. type: object
  114. message:
  115. default: success
  116. description: 消息
  117. type: string
  118. type: object
  119. v1.JtContentListResponse:
  120. properties:
  121. code:
  122. default: 0
  123. description: 返回码
  124. format: int
  125. type: integer
  126. data:
  127. $ref: '#/definitions/apis.JtContentListReply'
  128. type: object
  129. message:
  130. default: success
  131. description: 消息
  132. type: string
  133. type: object
  134. v1.PagePicListResponse:
  135. properties:
  136. code:
  137. default: 0
  138. description: 返回码
  139. format: int
  140. type: integer
  141. data:
  142. $ref: '#/definitions/apis.PagePicListReply'
  143. type: object
  144. message:
  145. default: success
  146. description: 消息
  147. type: string
  148. type: object
  149. v1.UploadResponse:
  150. properties:
  151. code:
  152. default: 0
  153. description: 返回码
  154. format: int
  155. type: integer
  156. data:
  157. type: string
  158. message:
  159. default: success
  160. description: 消息
  161. type: string
  162. type: object
  163. info:
  164. contact: {}
  165. description: This is a gateway server. On the page, you can go to do testing for every API.
  166. license: {}
  167. title: Project xingjia-official-gateway's APIs
  168. version: "1.1"
  169. paths:
  170. /api/v1/file:
  171. get:
  172. consumes:
  173. - application/json
  174. description: 获取文件
  175. parameters:
  176. - description: jwt token
  177. in: header
  178. name: token
  179. required: true
  180. type: string
  181. - description: ' '
  182. in: query
  183. name: obj
  184. required: true
  185. type: string
  186. produces:
  187. - application/json
  188. responses:
  189. "200":
  190. description: OK
  191. schema:
  192. $ref: '#/definitions/v1.UploadResponse'
  193. "500":
  194. description: Internal Server Error
  195. schema:
  196. $ref: '#/definitions/base.HTTPError'
  197. summary: 获取文件
  198. tags:
  199. - download
  200. /api/v1/jt/announcement:
  201. get:
  202. consumes:
  203. - application/json
  204. description: 公示公告列表
  205. parameters:
  206. - description: ' '
  207. in: query
  208. name: page
  209. type: integer
  210. - description: ' '
  211. in: query
  212. name: page_size
  213. type: integer
  214. produces:
  215. - application/json
  216. responses:
  217. "200":
  218. description: OK
  219. schema:
  220. $ref: '#/definitions/v1.JtContentListResponse'
  221. "500":
  222. description: Internal Server Error
  223. schema:
  224. $ref: '#/definitions/base.HTTPError'
  225. summary: 公示公告列表
  226. tags:
  227. - 公示公告
  228. /api/v1/jt/contact:
  229. get:
  230. consumes:
  231. - application/json
  232. description: 联系我们信息
  233. produces:
  234. - application/json
  235. responses:
  236. "200":
  237. description: OK
  238. schema:
  239. $ref: '#/definitions/v1.ContactInfoResponse'
  240. "500":
  241. description: Internal Server Error
  242. schema:
  243. $ref: '#/definitions/base.HTTPError'
  244. summary: 联系我们信息
  245. tags:
  246. - 联系我们
  247. /api/v1/jt/desc:
  248. get:
  249. consumes:
  250. - application/json
  251. description: 集团简介信息
  252. produces:
  253. - application/json
  254. responses:
  255. "200":
  256. description: OK
  257. schema:
  258. $ref: '#/definitions/v1.JtContentInfoResponse'
  259. "500":
  260. description: Internal Server Error
  261. schema:
  262. $ref: '#/definitions/base.HTTPError'
  263. summary: 集团简介信息
  264. tags:
  265. - 集团简介
  266. /api/v1/jt/df:
  267. get:
  268. consumes:
  269. - application/json
  270. description: 党风廉洁列表
  271. parameters:
  272. - description: ' '
  273. in: query
  274. name: page
  275. type: integer
  276. - description: ' '
  277. in: query
  278. name: page_size
  279. type: integer
  280. produces:
  281. - application/json
  282. responses:
  283. "200":
  284. description: OK
  285. schema:
  286. $ref: '#/definitions/v1.JtContentListResponse'
  287. "500":
  288. description: Internal Server Error
  289. schema:
  290. $ref: '#/definitions/base.HTTPError'
  291. summary: 党风廉洁列表
  292. tags:
  293. - 党风廉洁
  294. /api/v1/jt/hw:
  295. get:
  296. consumes:
  297. - application/json
  298. description: 会务动态列表
  299. parameters:
  300. - description: ' '
  301. in: query
  302. name: page
  303. type: integer
  304. - description: ' '
  305. in: query
  306. name: page_size
  307. type: integer
  308. produces:
  309. - application/json
  310. responses:
  311. "200":
  312. description: OK
  313. schema:
  314. $ref: '#/definitions/v1.JtContentListResponse'
  315. "500":
  316. description: Internal Server Error
  317. schema:
  318. $ref: '#/definitions/base.HTTPError'
  319. summary: 会务动态列表
  320. tags:
  321. - 会务动态
  322. /api/v1/jt/lx:
  323. get:
  324. consumes:
  325. - application/json
  326. description: 两学一做列表
  327. parameters:
  328. - description: ' '
  329. in: query
  330. name: page
  331. type: integer
  332. - description: ' '
  333. in: query
  334. name: page_size
  335. type: integer
  336. produces:
  337. - application/json
  338. responses:
  339. "200":
  340. description: OK
  341. schema:
  342. $ref: '#/definitions/v1.JtContentListResponse'
  343. "500":
  344. description: Internal Server Error
  345. schema:
  346. $ref: '#/definitions/base.HTTPError'
  347. summary: 两学一做列表
  348. tags:
  349. - 两学一做
  350. /api/v1/jt/news:
  351. get:
  352. consumes:
  353. - application/json
  354. description: 兴嘉要闻列表
  355. parameters:
  356. - description: ' '
  357. in: query
  358. name: page
  359. type: integer
  360. - description: ' '
  361. in: query
  362. name: page_size
  363. type: integer
  364. produces:
  365. - application/json
  366. responses:
  367. "200":
  368. description: OK
  369. schema:
  370. $ref: '#/definitions/v1.JtContentListResponse'
  371. "500":
  372. description: Internal Server Error
  373. schema:
  374. $ref: '#/definitions/base.HTTPError'
  375. summary: 兴嘉要闻列表
  376. tags:
  377. - 兴嘉要闻
  378. /api/v1/jt/page_pic:
  379. get:
  380. consumes:
  381. - application/json
  382. description: 首页顶层图片列表
  383. parameters:
  384. - description: ' '
  385. in: query
  386. name: page
  387. type: integer
  388. - description: ' '
  389. in: query
  390. name: page_size
  391. type: integer
  392. produces:
  393. - application/json
  394. responses:
  395. "200":
  396. description: OK
  397. schema:
  398. $ref: '#/definitions/v1.PagePicListResponse'
  399. "500":
  400. description: Internal Server Error
  401. schema:
  402. $ref: '#/definitions/base.HTTPError'
  403. summary: 首页顶层图片列表
  404. tags:
  405. - 首页顶层图片
  406. /api/v1/jt/program:
  407. get:
  408. consumes:
  409. - application/json
  410. description: 项目展示列表
  411. parameters:
  412. - description: ' '
  413. in: query
  414. name: page
  415. type: integer
  416. - description: ' '
  417. in: query
  418. name: page_size
  419. type: integer
  420. produces:
  421. - application/json
  422. responses:
  423. "200":
  424. description: OK
  425. schema:
  426. $ref: '#/definitions/v1.JtContentListResponse'
  427. "500":
  428. description: Internal Server Error
  429. schema:
  430. $ref: '#/definitions/base.HTTPError'
  431. summary: 项目展示列表
  432. tags:
  433. - 项目展示
  434. /api/v1/jt/vision:
  435. get:
  436. consumes:
  437. - application/json
  438. description: 发展愿景信息
  439. produces:
  440. - application/json
  441. responses:
  442. "200":
  443. description: OK
  444. schema:
  445. $ref: '#/definitions/v1.JtContentInfoResponse'
  446. "500":
  447. description: Internal Server Error
  448. schema:
  449. $ref: '#/definitions/base.HTTPError'
  450. summary: 发展愿景信息
  451. tags:
  452. - 发展愿景
  453. swagger: "2.0"