swagger.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. swagger: "2.0"
  2. info:
  3. title: beego Test API
  4. description: beego has a very cool tools to autogenerate documents for your API
  5. version: 1.0.0
  6. termsOfService: http://beego.me/
  7. contact:
  8. email: astaxie@gmail.com
  9. license:
  10. name: Apache 2.0
  11. url: http://www.apache.org/licenses/LICENSE-2.0.html
  12. basePath: /edbapi
  13. paths:
  14. /calculate/add:
  15. post:
  16. tags:
  17. - calculate
  18. description: 编辑指标接口
  19. operationId: CalculateController.编辑指标接口
  20. responses:
  21. "200":
  22. description: ""
  23. schema:
  24. $ref: '#/definitions/models.EditEdbInfoReq'
  25. /calculate/batch/save:
  26. post:
  27. tags:
  28. - calculate
  29. description: 累计值转月-同比值-同差等计算新增接口
  30. operationId: CalculateController.累计值转月-同比值-同差等计算新增
  31. parameters:
  32. - in: body
  33. name: request
  34. description: type json string
  35. required: true
  36. schema:
  37. $ref: '#/definitions/models.EdbInfoCalculateBatchSaveReq'
  38. responses:
  39. Ret=200:
  40. description: 返回指标id
  41. /calculate/refresh:
  42. post:
  43. tags:
  44. - calculate
  45. description: 刷新计算指标接口
  46. operationId: CalculateController.刷新计算指标接口
  47. responses:
  48. "200":
  49. description: ""
  50. schema:
  51. $ref: '#/definitions/models.RefreshEdbInfoReq'
  52. /cffex/add:
  53. post:
  54. tags:
  55. - cffex
  56. description: 新增中金所指标接口
  57. operationId: CffexController.新增中金所指标接口
  58. responses:
  59. "200":
  60. description: ""
  61. schema:
  62. $ref: '#/definitions/models.AddEdbInfoReq'
  63. /cffex/refresh:
  64. post:
  65. tags:
  66. - cffex
  67. description: 刷新中金所指标接口
  68. operationId: CffexController.刷新中金所指标接口
  69. responses:
  70. "200":
  71. description: ""
  72. schema:
  73. $ref: '#/definitions/models.RefreshEdbInfoReq'
  74. /dl/add:
  75. post:
  76. tags:
  77. - dl
  78. description: 新增大商所指标接口
  79. operationId: DlController.新增大商所指标接口
  80. responses:
  81. "200":
  82. description: ""
  83. schema:
  84. $ref: '#/definitions/models.AddEdbInfoReq'
  85. /dl/refresh:
  86. post:
  87. tags:
  88. - dl
  89. description: 刷新大商所指标接口
  90. operationId: DlController.刷新大商所指标接口
  91. responses:
  92. "200":
  93. description: ""
  94. schema:
  95. $ref: '#/definitions/models.RefreshEdbInfoReq'
  96. /gie/add:
  97. post:
  98. tags:
  99. - gie
  100. description: 新增欧洲天然气指标接口
  101. operationId: GieController.新增欧洲天然气指标接口
  102. responses:
  103. "200":
  104. description: ""
  105. schema:
  106. $ref: '#/definitions/models.AddEdbInfoReq'
  107. /gie/refresh:
  108. post:
  109. tags:
  110. - gie
  111. description: 刷新欧洲天然气指标接口
  112. operationId: GieController.刷新欧洲天然气指标接口
  113. responses:
  114. "200":
  115. description: ""
  116. schema:
  117. $ref: '#/definitions/models.RefreshEdbInfoReq'
  118. /lt/add:
  119. post:
  120. tags:
  121. - lt
  122. description: 新增路透指标接口
  123. operationId: LtController.新增路透指标接口
  124. responses:
  125. "200":
  126. description: ""
  127. schema:
  128. $ref: '#/definitions/models.AddEdbInfoReq'
  129. /lt/refresh:
  130. post:
  131. tags:
  132. - lt
  133. description: 刷新路透社指标接口
  134. operationId: LtController.刷新路透社指标接口
  135. responses:
  136. "200":
  137. description: ""
  138. schema:
  139. $ref: '#/definitions/models.RefreshEdbInfoReq'
  140. /lz/add:
  141. post:
  142. tags:
  143. - lz
  144. description: 新增隆众指标接口
  145. operationId: LzController.新增隆众指标接口
  146. responses:
  147. "200":
  148. description: ""
  149. schema:
  150. $ref: '#/definitions/models.AddEdbInfoReq'
  151. /lz/refresh:
  152. post:
  153. tags:
  154. - lz
  155. description: 刷新隆众指标接口
  156. operationId: LzController.刷新隆众指标接口
  157. responses:
  158. "200":
  159. description: ""
  160. schema:
  161. $ref: '#/definitions/models.RefreshEdbInfoReq'
  162. /manual/add:
  163. post:
  164. tags:
  165. - manual
  166. description: 新增手工指标接口
  167. operationId: ManualController.新增手工指标接口
  168. responses:
  169. "200":
  170. description: ""
  171. schema:
  172. $ref: '#/definitions/models.AddEdbInfoReq'
  173. /manual/refresh:
  174. post:
  175. tags:
  176. - manual
  177. description: 刷新手工指标接口
  178. operationId: ManualController.刷新手工指标接口
  179. responses:
  180. "200":
  181. description: ""
  182. schema:
  183. $ref: '#/definitions/models.RefreshEdbInfoReq'
  184. /mysteel/add:
  185. post:
  186. tags:
  187. - mysteel
  188. description: 新增钢联指标接口
  189. operationId: MySteelController.新增钢联指标接口
  190. responses:
  191. "200":
  192. description: ""
  193. schema:
  194. $ref: '#/definitions/models.AddEdbInfoReq'
  195. /mysteel/refresh:
  196. post:
  197. tags:
  198. - mysteel
  199. description: 刷新钢联指标接口
  200. operationId: MySteelController.刷新钢联指标接口
  201. responses:
  202. "200":
  203. description: ""
  204. schema:
  205. $ref: '#/definitions/models.RefreshEdbInfoReq'
  206. /pb/add:
  207. post:
  208. tags:
  209. - pb
  210. description: 新增彭博指标接口
  211. operationId: PbController.新增彭博指标接口
  212. responses:
  213. "200":
  214. description: ""
  215. schema:
  216. $ref: '#/definitions/models.AddEdbInfoReq'
  217. /pb/refresh:
  218. post:
  219. tags:
  220. - pb
  221. description: 刷新彭博指标接口
  222. operationId: PbController.刷新彭博指标接口
  223. responses:
  224. "200":
  225. description: ""
  226. schema:
  227. $ref: '#/definitions/models.RefreshEdbInfoReq'
  228. /sh/add:
  229. post:
  230. tags:
  231. - sh
  232. description: 新增上期所指标接口
  233. operationId: ShController.新增上期所指标接口
  234. responses:
  235. "200":
  236. description: ""
  237. schema:
  238. $ref: '#/definitions/models.AddEdbInfoReq'
  239. /sh/refresh:
  240. post:
  241. tags:
  242. - sh
  243. description: 刷新上期所指标接口
  244. operationId: ShController.刷新上期所指标接口
  245. responses:
  246. "200":
  247. description: ""
  248. schema:
  249. $ref: '#/definitions/models.RefreshEdbInfoReq'
  250. /shfe/add:
  251. post:
  252. tags:
  253. - shfe
  254. description: 新增上期能源指标接口
  255. operationId: ShfeController.新增上期能源指标接口
  256. responses:
  257. "200":
  258. description: ""
  259. schema:
  260. $ref: '#/definitions/models.AddEdbInfoReq'
  261. /shfe/refresh:
  262. post:
  263. tags:
  264. - shfe
  265. description: 刷新上期能源指标接口
  266. operationId: ShfeController.刷新上期能源指标接口
  267. responses:
  268. "200":
  269. description: ""
  270. schema:
  271. $ref: '#/definitions/models.RefreshEdbInfoReq'
  272. /smm/add:
  273. post:
  274. tags:
  275. - smm
  276. description: 新增有色指标接口
  277. operationId: SmmController.新增有色指标接口
  278. responses:
  279. "200":
  280. description: ""
  281. schema:
  282. $ref: '#/definitions/models.AddEdbInfoReq'
  283. /smm/refresh:
  284. post:
  285. tags:
  286. - smm
  287. description: 刷新有色指标接口
  288. operationId: SmmController.刷新有色指标接口
  289. responses:
  290. "200":
  291. description: ""
  292. schema:
  293. $ref: '#/definitions/models.RefreshEdbInfoReq'
  294. /ths/add:
  295. post:
  296. tags:
  297. - ths
  298. description: 新增同花顺指标接口
  299. operationId: ThsController.新增同花顺指标接口
  300. responses:
  301. "200":
  302. description: ""
  303. schema:
  304. $ref: '#/definitions/models.AddEdbInfoReq'
  305. /ths/refresh:
  306. post:
  307. tags:
  308. - ths
  309. description: 刷新同花顺指标接口
  310. operationId: ThsController.刷新同花顺指标接口
  311. responses:
  312. "200":
  313. description: ""
  314. schema:
  315. $ref: '#/definitions/models.RefreshEdbInfoReq'
  316. /wind/add:
  317. post:
  318. tags:
  319. - wind
  320. description: 新增wind指标接口
  321. operationId: WindController.新增wind指标接口
  322. responses:
  323. "200":
  324. description: ""
  325. schema:
  326. $ref: '#/definitions/models.AddEdbInfoReq'
  327. /wind/refresh:
  328. post:
  329. tags:
  330. - wind
  331. description: 刷新wind指标接口
  332. operationId: WindController.刷新wind指标接口
  333. responses:
  334. "200":
  335. description: ""
  336. schema:
  337. $ref: '#/definitions/models.RefreshEdbInfoReq'
  338. /zz/add:
  339. post:
  340. tags:
  341. - zz
  342. description: 新增郑商所指标接口
  343. operationId: ZzController.新增郑商所指标接口
  344. responses:
  345. "200":
  346. description: ""
  347. schema:
  348. $ref: '#/definitions/models.AddEdbInfoReq'
  349. /zz/refresh:
  350. post:
  351. tags:
  352. - zz
  353. description: 刷新郑商所指标接口
  354. operationId: ZzController.刷新郑商所指标接口
  355. responses:
  356. "200":
  357. description: ""
  358. schema:
  359. $ref: '#/definitions/models.RefreshEdbInfoReq'
  360. definitions:
  361. 10659.0xc00059e9f0.false:
  362. title: "false"
  363. type: object
  364. models.AddEdbInfoReq:
  365. title: AddEdbInfoReq
  366. type: object
  367. properties:
  368. EdbCode:
  369. description: 指标编码
  370. type: string
  371. models.EdbInfoCalculateBatchSaveReq:
  372. title: EdbInfoCalculateBatchSaveReq
  373. type: object
  374. properties:
  375. AdminId:
  376. description: 添加人id
  377. type: integer
  378. format: int64
  379. AdminName:
  380. description: 添加人名称
  381. type: string
  382. CalculateFormula:
  383. description: 计算公式
  384. type: string
  385. ClassifyId:
  386. description: 分类id
  387. type: integer
  388. format: int64
  389. EdbInfoId:
  390. description: 指标id
  391. type: integer
  392. format: int64
  393. EdbInfoIdArr:
  394. type: array
  395. items:
  396. $ref: '#/definitions/10659.0xc00059e9f0.false'
  397. EdbName:
  398. description: 指标名称
  399. type: string
  400. Formula:
  401. description: N值/移动天数
  402. type: string
  403. Frequency:
  404. description: 频度
  405. type: string
  406. FromEdbInfoId:
  407. description: 计算来源指标id
  408. type: integer
  409. format: int64
  410. MoveFrequency:
  411. description: 移动频度:天/周/月/季/年
  412. type: string
  413. MoveType:
  414. description: 移动方式:1:领先(默认),2:滞后
  415. type: integer
  416. format: int64
  417. Source:
  418. description: 来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频
  419. type: integer
  420. format: int64
  421. Unit:
  422. description: 单位
  423. type: string
  424. models.EditEdbInfoReq:
  425. title: EditEdbInfoReq
  426. type: object
  427. models.RefreshEdbInfoReq:
  428. title: RefreshEdbInfoReq
  429. type: object
  430. properties:
  431. EdbCode:
  432. description: 指标编码
  433. type: string
  434. EdbInfoId:
  435. description: 指标ID
  436. type: integer
  437. format: int64
  438. StartDate:
  439. description: 开始日期
  440. type: string
  441. tags:
  442. - name: ths
  443. description: |
  444. 同花顺
  445. - name: pb
  446. description: |
  447. 彭博
  448. - name: wind
  449. description: |
  450. wind
  451. - name: lz
  452. description: |
  453. 隆众
  454. - name: lt
  455. description: |
  456. 路透社
  457. - name: smm
  458. description: |
  459. 有色
  460. - name: mysteel
  461. description: |
  462. 钢联
  463. - name: manual
  464. description: |
  465. 手工指标
  466. - name: calculate
  467. description: |
  468. CalculateController 计算指标
  469. - name: zz
  470. description: |
  471. 郑商所
  472. - name: dl
  473. description: |
  474. 大商所
  475. - name: sh
  476. description: |
  477. 上期所
  478. - name: cffex
  479. description: |
  480. 中金所
  481. - name: shfe
  482. description: |
  483. 上期能源
  484. - name: gie
  485. description: |
  486. 欧洲天然气