swagger.yml 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220
  1. swagger: "2.0"
  2. info:
  3. title: beego Test API
  4. description: |
  5. beego has a very cool tools to autogenerate documents for your API
  6. version: 1.0.0
  7. termsOfService: http://beego.me/
  8. contact:
  9. email: astaxie@gmail.com
  10. license:
  11. name: Apache 2.0
  12. url: http://www.apache.org/licenses/LICENSE-2.0.html
  13. basePath: /edbapi
  14. paths:
  15. /baiinfo/add:
  16. post:
  17. tags:
  18. - baiinfo
  19. description: |-
  20. 新增Baiinfo指标接口
  21. <br>
  22. operationId: BaiinfoController.新增Baiinfo指标接口
  23. responses:
  24. "200":
  25. description: ""
  26. schema:
  27. $ref: '#/definitions/models.AddEdbInfoReq'
  28. /baiinfo/refresh:
  29. post:
  30. tags:
  31. - baiinfo
  32. description: |-
  33. 刷新baiinfo指标接口
  34. <br>
  35. operationId: BaiinfoController.刷新baiinfo指标接口
  36. responses:
  37. "200":
  38. description: ""
  39. schema:
  40. $ref: '#/definitions/models.RefreshEdbInfoReq'
  41. /calculate/add:
  42. post:
  43. tags:
  44. - calculate
  45. description: |-
  46. 新增计算指标接口
  47. <br>
  48. operationId: CalculateController.新增计算指标接口
  49. responses:
  50. "200":
  51. description: ""
  52. schema:
  53. $ref: '#/definitions/models.EdbInfoCalculateSaveReq'
  54. /calculate/adjust/save:
  55. post:
  56. tags:
  57. - calculate
  58. description: |-
  59. 保存数据调整指标接口
  60. <br>
  61. operationId: CalculateController.保存数据调整指标接口
  62. responses:
  63. "200":
  64. description: ""
  65. schema:
  66. $ref: '#/definitions/models.SaveAdjustEdbReq'
  67. /calculate/batch/edit:
  68. post:
  69. tags:
  70. - calculate
  71. description: |-
  72. 累计值转月-同比值-同差等计算新增接口
  73. <br>
  74. operationId: CalculateController.累计值转月-同比值-同差等计算新增
  75. parameters:
  76. - in: body
  77. name: request
  78. description: type json string
  79. required: true
  80. schema:
  81. $ref: '#/definitions/models.EdbInfoCalculateBatchSaveReq'
  82. responses:
  83. Ret=200:
  84. description: 返回指标id
  85. /calculate/batch/save:
  86. post:
  87. tags:
  88. - calculate
  89. description: |-
  90. 累计值转月-同比值-同差等计算新增接口
  91. <br>
  92. operationId: CalculateController.累计值转月-同比值-同差等计算新增
  93. parameters:
  94. - in: body
  95. name: request
  96. description: type json string
  97. required: true
  98. schema:
  99. $ref: '#/definitions/models.EdbInfoCalculateBatchSaveReq'
  100. responses:
  101. Ret=200:
  102. description: 返回指标id
  103. /calculate/edit:
  104. post:
  105. tags:
  106. - calculate
  107. description: |-
  108. 编辑计算指标接口
  109. <br>
  110. operationId: CalculateController.编辑计算指标接口
  111. responses:
  112. "200":
  113. description: ""
  114. schema:
  115. $ref: '#/definitions/models.EdbInfoCalculateSaveReq'
  116. /calculate/refresh:
  117. post:
  118. tags:
  119. - calculate
  120. description: |-
  121. 刷新计算指标接口
  122. <br>
  123. operationId: CalculateController.刷新计算指标接口
  124. responses:
  125. "200":
  126. description: ""
  127. schema:
  128. $ref: '#/definitions/models.RefreshEdbInfoReq'
  129. /cffex/add:
  130. post:
  131. tags:
  132. - cffex
  133. description: |-
  134. 新增中金所指标接口
  135. <br>
  136. operationId: CffexController.新增中金所指标接口
  137. responses:
  138. "200":
  139. description: ""
  140. schema:
  141. $ref: '#/definitions/models.AddEdbInfoReq'
  142. /cffex/refresh:
  143. post:
  144. tags:
  145. - cffex
  146. description: |-
  147. 刷新中金所指标接口
  148. <br>
  149. operationId: CffexController.刷新中金所指标接口
  150. responses:
  151. "200":
  152. description: ""
  153. schema:
  154. $ref: '#/definitions/models.RefreshEdbInfoReq'
  155. /coal/add:
  156. post:
  157. tags:
  158. - coal
  159. description: |-
  160. 新增煤炭网指标接口
  161. <br>
  162. operationId: CoalController.新增煤炭网指标接口
  163. responses:
  164. "200":
  165. description: ""
  166. schema:
  167. $ref: '#/definitions/models.AddEdbInfoReq'
  168. /coal/refresh:
  169. post:
  170. tags:
  171. - coal
  172. description: |-
  173. 刷新中国煤炭网指标接口
  174. <br>
  175. operationId: CoalController.刷新中国煤炭网指标接口
  176. responses:
  177. "200":
  178. description: ""
  179. schema:
  180. $ref: '#/definitions/models.RefreshEdbInfoReq'
  181. /com_trade/add:
  182. post:
  183. tags:
  184. - com_trade
  185. description: |-
  186. 新增Eia Steo指标接口
  187. <br>
  188. operationId: ComTradeController.新增Eia Steo指标接口
  189. responses:
  190. "200":
  191. description: ""
  192. schema:
  193. $ref: '#/definitions/models.AddEdbInfoReq'
  194. /com_trade/refresh:
  195. post:
  196. tags:
  197. - com_trade
  198. description: |-
  199. 刷新Eia Steo指标接口
  200. <br>
  201. operationId: ComTradeController.刷新Eia Steo指标接口
  202. responses:
  203. "200":
  204. description: ""
  205. schema:
  206. $ref: '#/definitions/models.RefreshEdbInfoReq'
  207. /dl/add:
  208. post:
  209. tags:
  210. - dl
  211. description: |-
  212. 新增大商所指标接口
  213. <br>
  214. operationId: DlController.新增大商所指标接口
  215. responses:
  216. "200":
  217. description: ""
  218. schema:
  219. $ref: '#/definitions/models.AddEdbInfoReq'
  220. /dl/refresh:
  221. post:
  222. tags:
  223. - dl
  224. description: |-
  225. 刷新大商所指标接口
  226. <br>
  227. operationId: DlController.刷新大商所指标接口
  228. responses:
  229. "200":
  230. description: ""
  231. schema:
  232. $ref: '#/definitions/models.RefreshEdbInfoReq'
  233. /eia_steo/add:
  234. post:
  235. tags:
  236. - eia_steo
  237. description: |-
  238. 新增Eia Steo指标接口
  239. <br>
  240. operationId: EiaSteoController.新增Eia Steo指标接口
  241. responses:
  242. "200":
  243. description: ""
  244. schema:
  245. $ref: '#/definitions/models.AddEdbInfoReq'
  246. /eia_steo/refresh:
  247. post:
  248. tags:
  249. - eia_steo
  250. description: |-
  251. 刷新Eia Steo指标接口
  252. <br>
  253. operationId: EiaSteoController.刷新Eia Steo指标接口
  254. responses:
  255. "200":
  256. description: ""
  257. schema:
  258. $ref: '#/definitions/models.RefreshEdbInfoReq'
  259. /fubao/add:
  260. post:
  261. tags:
  262. - fubao
  263. description: |-
  264. 新增富宝指标接口
  265. <br>
  266. operationId: FuBaoController.新增富宝指标接口
  267. responses:
  268. "200":
  269. description: ""
  270. schema:
  271. $ref: '#/definitions/models.AddEdbInfoReq'
  272. /fubao/refresh:
  273. post:
  274. tags:
  275. - fubao
  276. description: |-
  277. 刷新路透社指标接口
  278. <br>
  279. operationId: FuBaoController.刷新富宝指标接口
  280. responses:
  281. "200":
  282. description: ""
  283. schema:
  284. $ref: '#/definitions/models.RefreshEdbInfoReq'
  285. /future_good/add:
  286. post:
  287. tags:
  288. - future_good
  289. description: |-
  290. 新增wind指标接口
  291. <br>
  292. operationId: FutureGoodEdbInfoController.新增wind商品指标接口
  293. responses:
  294. "200":
  295. description: ""
  296. schema:
  297. $ref: '#/definitions/models.AddEdbInfoReq'
  298. /future_good/refresh:
  299. post:
  300. tags:
  301. - future_good
  302. description: |-
  303. 刷新wind指标接口
  304. <br>
  305. operationId: FutureGoodEdbInfoController.刷新wind期货数据指标接口
  306. responses:
  307. "200":
  308. description: ""
  309. schema:
  310. $ref: '#/definitions/models.RefreshEdbInfoReq'
  311. /future_good/relation/refresh:
  312. post:
  313. tags:
  314. - future_good
  315. description: |-
  316. 刷新商品期货指标相关的接口
  317. <br>
  318. operationId: FutureGoodEdbInfoController.刷新商品期货指标相关的接口
  319. responses:
  320. "200":
  321. description: ""
  322. schema:
  323. $ref: '#/definitions/models.RefreshEdbInfoReq'
  324. /gie/add:
  325. post:
  326. tags:
  327. - gie
  328. description: |-
  329. 新增欧洲天然气指标接口
  330. <br>
  331. operationId: GieController.新增欧洲天然气指标接口
  332. responses:
  333. "200":
  334. description: ""
  335. schema:
  336. $ref: '#/definitions/models.AddEdbInfoReq'
  337. /gie/refresh:
  338. post:
  339. tags:
  340. - gie
  341. description: |-
  342. 刷新欧洲天然气指标接口
  343. <br>
  344. operationId: GieController.刷新欧洲天然气指标接口
  345. responses:
  346. "200":
  347. description: ""
  348. schema:
  349. $ref: '#/definitions/models.RefreshEdbInfoReq'
  350. /google_travel/add:
  351. post:
  352. tags:
  353. - google_travel
  354. description: |-
  355. 新增谷歌出行数据接口
  356. <br>
  357. operationId: GoogleTravelController.新增谷歌出行数据接口
  358. responses:
  359. "200":
  360. description: ""
  361. schema:
  362. $ref: '#/definitions/models.AddEdbInfoReq'
  363. /google_travel/refresh:
  364. post:
  365. tags:
  366. - google_travel
  367. description: |-
  368. 刷新谷歌出行指标接口
  369. <br>
  370. operationId: GoogleTravelController.刷新谷歌出行指标接口
  371. responses:
  372. "200":
  373. description: ""
  374. schema:
  375. $ref: '#/definitions/models.RefreshEdbInfoReq'
  376. /lt/add:
  377. post:
  378. tags:
  379. - lt
  380. description: |-
  381. 新增路透指标接口
  382. <br>
  383. operationId: LtController.新增路透指标接口
  384. responses:
  385. "200":
  386. description: ""
  387. schema:
  388. $ref: '#/definitions/models.AddEdbInfoReq'
  389. /lt/refresh:
  390. post:
  391. tags:
  392. - lt
  393. description: |-
  394. 刷新路透社指标接口
  395. <br>
  396. operationId: LtController.刷新路透社指标接口
  397. responses:
  398. "200":
  399. description: ""
  400. schema:
  401. $ref: '#/definitions/models.RefreshEdbInfoReq'
  402. /lz/add:
  403. post:
  404. tags:
  405. - lz
  406. description: |-
  407. 新增隆众指标接口
  408. <br>
  409. operationId: LzController.新增隆众指标接口
  410. responses:
  411. "200":
  412. description: ""
  413. schema:
  414. $ref: '#/definitions/models.AddEdbInfoReq'
  415. /lz/refresh:
  416. post:
  417. tags:
  418. - lz
  419. description: |-
  420. 刷新隆众指标接口
  421. <br>
  422. operationId: LzController.刷新隆众指标接口
  423. responses:
  424. "200":
  425. description: ""
  426. schema:
  427. $ref: '#/definitions/models.RefreshEdbInfoReq'
  428. /manual/add:
  429. post:
  430. tags:
  431. - manual
  432. description: |-
  433. 新增手工指标接口
  434. <br>
  435. operationId: ManualController.新增手工指标接口
  436. responses:
  437. "200":
  438. description: ""
  439. schema:
  440. $ref: '#/definitions/models.AddEdbInfoReq'
  441. /manual/refresh:
  442. post:
  443. tags:
  444. - manual
  445. description: |-
  446. 刷新手工指标接口
  447. <br>
  448. operationId: ManualController.刷新手工指标接口
  449. responses:
  450. "200":
  451. description: ""
  452. schema:
  453. $ref: '#/definitions/models.RefreshEdbInfoReq'
  454. /mysteel/add:
  455. post:
  456. tags:
  457. - mysteel
  458. description: |-
  459. 新增钢联指标接口
  460. <br>
  461. operationId: MySteelController.新增钢联指标接口
  462. responses:
  463. "200":
  464. description: ""
  465. schema:
  466. $ref: '#/definitions/models.AddEdbInfoReq'
  467. /mysteel/query/refresh:
  468. get:
  469. tags:
  470. - mysteel
  471. description: |-
  472. 查询刷新指标的接口
  473. <br>
  474. operationId: MySteelController.查询刷新指标的接口
  475. responses:
  476. "200":
  477. description: ""
  478. schema:
  479. $ref: '#/definitions/models.CheckDeleteClassifyResp'
  480. /mysteel/refresh:
  481. post:
  482. tags:
  483. - mysteel
  484. description: |-
  485. 刷新钢联指标接口
  486. <br>
  487. operationId: MySteelController.刷新钢联指标接口
  488. responses:
  489. "200":
  490. description: ""
  491. schema:
  492. $ref: '#/definitions/models.RefreshEdbInfoReq'
  493. /mysteel_chemical/add:
  494. post:
  495. tags:
  496. - mysteel_chemical
  497. description: |-
  498. 新增钢联化工指标接口
  499. <br>
  500. operationId: MySteelChemicalController.新增钢联化工指标接口
  501. responses:
  502. "200":
  503. description: ""
  504. schema:
  505. $ref: '#/definitions/models.AddEdbInfoReq'
  506. /mysteel_chemical/refresh:
  507. post:
  508. tags:
  509. - mysteel_chemical
  510. description: |-
  511. 刷新钢联化工指标接口
  512. <br>
  513. operationId: MySteelChemicalController.刷新钢联化工指标接口
  514. responses:
  515. "200":
  516. description: ""
  517. schema:
  518. $ref: '#/definitions/models.RefreshEdbInfoReq'
  519. /national_statistics/add:
  520. post:
  521. tags:
  522. - national_statistics
  523. description: |-
  524. 新增指标
  525. <br>
  526. operationId: NationalStatisticsController.新增指标
  527. responses:
  528. "200":
  529. description: ""
  530. schema:
  531. $ref: '#/definitions/models.AddEdbInfoReq'
  532. /national_statistics/refresh:
  533. post:
  534. tags:
  535. - national_statistics
  536. description: |-
  537. 刷新指标
  538. <br>
  539. operationId: NationalStatisticsController.刷新指标
  540. responses:
  541. "200":
  542. description: ""
  543. schema:
  544. $ref: '#/definitions/models.RefreshEdbInfoReq'
  545. /pb/add:
  546. post:
  547. tags:
  548. - pb
  549. description: |-
  550. 新增彭博指标接口
  551. <br>
  552. operationId: PbController.新增彭博指标接口
  553. responses:
  554. "200":
  555. description: ""
  556. schema:
  557. $ref: '#/definitions/models.AddEdbInfoReq'
  558. /pb/refresh:
  559. post:
  560. tags:
  561. - pb
  562. description: |-
  563. 刷新彭博指标接口
  564. <br>
  565. operationId: PbController.刷新彭博指标接口
  566. responses:
  567. "200":
  568. description: ""
  569. schema:
  570. $ref: '#/definitions/models.RefreshEdbInfoReq'
  571. /pb_finance/add:
  572. post:
  573. tags:
  574. - pb_finance
  575. description: |-
  576. 新增彭博指标接口
  577. <br>
  578. operationId: PbFinanceController.新增彭博指标接口
  579. responses:
  580. "200":
  581. description: ""
  582. schema:
  583. $ref: '#/definitions/models.AddEdbInfoReq'
  584. /pb_finance/refresh:
  585. post:
  586. tags:
  587. - pb_finance
  588. description: |-
  589. 刷新彭博指标接口
  590. <br>
  591. operationId: PbFinanceController.刷新彭博指标接口
  592. responses:
  593. "200":
  594. description: ""
  595. schema:
  596. $ref: '#/definitions/models.RefreshEdbInfoReq'
  597. /predict/refresh:
  598. post:
  599. tags:
  600. - predict
  601. description: |-
  602. 刷新预测指标接口(有些预测指标里面含有动态数据)
  603. <br>
  604. operationId: PredictController.刷新预测指标接口(有些预测指标里面含有动态数据)
  605. responses:
  606. "200":
  607. description: ""
  608. schema:
  609. $ref: '#/definitions/models.RefreshEdbInfoReq'
  610. /predict/save:
  611. post:
  612. tags:
  613. - predict
  614. description: |-
  615. 新增预测指标运算接口
  616. <br>
  617. operationId: PredictController.新增/编辑预测指标运算接口
  618. responses:
  619. "200":
  620. description: ""
  621. schema:
  622. $ref: '#/definitions/models.EdbInfoCalculateSaveReq'
  623. /predict_calculate/batch/save:
  624. post:
  625. tags:
  626. - predict_calculate
  627. description: |-
  628. 累计值转月-同比值-同差等计算新增接口
  629. <br>
  630. operationId: PredictCalculateController.累计值转月-同比值-同差等计算新增
  631. parameters:
  632. - in: body
  633. name: request
  634. description: type json string
  635. required: true
  636. schema:
  637. $ref: '#/definitions/models.EdbInfoCalculateBatchSaveReq'
  638. responses:
  639. Ret=200:
  640. description: 返回指标id
  641. /predict_calculate/refresh:
  642. post:
  643. tags:
  644. - predict_calculate
  645. description: |-
  646. 刷新计算指标接口
  647. <br>
  648. operationId: PredictCalculateController.刷新计算指标接口
  649. responses:
  650. "200":
  651. description: ""
  652. schema:
  653. $ref: '#/definitions/models.RefreshEdbInfoReq'
  654. /predict_calculate/save:
  655. post:
  656. tags:
  657. - predict_calculate
  658. description: |-
  659. 新增预测指标运算接口
  660. <br>
  661. operationId: PredictCalculateController.新增/编辑预测指标运算接口
  662. responses:
  663. "200":
  664. description: ""
  665. schema:
  666. $ref: '#/definitions/models.EdbInfoCalculateSaveReq'
  667. /python/add:
  668. post:
  669. tags:
  670. - python
  671. description: |-
  672. 编辑指标接口
  673. <br>
  674. operationId: PythonController.编辑指标接口
  675. responses:
  676. "200":
  677. description: ""
  678. schema:
  679. $ref: '#/definitions/models.EditEdbInfoReq'
  680. /python/edit:
  681. post:
  682. tags:
  683. - python
  684. description: |-
  685. 编辑指标接口
  686. <br>
  687. operationId: PythonController.编辑指标接口
  688. responses:
  689. "200":
  690. description: ""
  691. schema:
  692. $ref: '#/definitions/models.EditEdbInfoReq'
  693. /python/exec:
  694. post:
  695. tags:
  696. - python
  697. description: |-
  698. 执行python代码接口
  699. <br>
  700. operationId: PythonController.执行python代码接口
  701. responses:
  702. "200":
  703. description: ""
  704. schema:
  705. $ref: '#/definitions/models.ExecPythonEdbReq'
  706. /sci/add:
  707. post:
  708. tags:
  709. - sci
  710. description: |-
  711. 新增Sci指标接口
  712. <br>
  713. operationId: SciController.新增Sci指标接口
  714. responses:
  715. "200":
  716. description: ""
  717. schema:
  718. $ref: '#/definitions/models.AddEdbInfoReq'
  719. /sci/refresh:
  720. post:
  721. tags:
  722. - sci
  723. description: |-
  724. 刷新sci指标接口
  725. <br>
  726. operationId: SciController.刷新sci指标接口
  727. responses:
  728. "200":
  729. description: ""
  730. schema:
  731. $ref: '#/definitions/models.RefreshEdbInfoReq'
  732. /sh/add:
  733. post:
  734. tags:
  735. - sh
  736. description: |-
  737. 新增上期所指标接口
  738. <br>
  739. operationId: ShController.新增上期所指标接口
  740. responses:
  741. "200":
  742. description: ""
  743. schema:
  744. $ref: '#/definitions/models.AddEdbInfoReq'
  745. /sh/refresh:
  746. post:
  747. tags:
  748. - sh
  749. description: |-
  750. 刷新上期所指标接口
  751. <br>
  752. operationId: ShController.刷新上期所指标接口
  753. responses:
  754. "200":
  755. description: ""
  756. schema:
  757. $ref: '#/definitions/models.RefreshEdbInfoReq'
  758. /shfe/add:
  759. post:
  760. tags:
  761. - shfe
  762. description: |-
  763. 新增上期能源指标接口
  764. <br>
  765. operationId: ShfeController.新增上期能源指标接口
  766. responses:
  767. "200":
  768. description: ""
  769. schema:
  770. $ref: '#/definitions/models.AddEdbInfoReq'
  771. /shfe/refresh:
  772. post:
  773. tags:
  774. - shfe
  775. description: |-
  776. 刷新上期能源指标接口
  777. <br>
  778. operationId: ShfeController.刷新上期能源指标接口
  779. responses:
  780. "200":
  781. description: ""
  782. schema:
  783. $ref: '#/definitions/models.RefreshEdbInfoReq'
  784. /smm/add:
  785. post:
  786. tags:
  787. - smm
  788. description: |-
  789. 新增有色指标接口
  790. <br>
  791. operationId: SmmController.新增有色指标接口
  792. responses:
  793. "200":
  794. description: ""
  795. schema:
  796. $ref: '#/definitions/models.AddEdbInfoReq'
  797. /smm/refresh:
  798. post:
  799. tags:
  800. - smm
  801. description: |-
  802. 刷新有色指标接口
  803. <br>
  804. operationId: SmmController.刷新有色指标接口
  805. responses:
  806. "200":
  807. description: ""
  808. schema:
  809. $ref: '#/definitions/models.RefreshEdbInfoReq'
  810. /stock_plant/calculate:
  811. post:
  812. tags:
  813. - stock_plant
  814. description: |-
  815. 计算减产数
  816. <br>
  817. operationId: StockPlantController.计算减产数
  818. responses:
  819. "200":
  820. description: ""
  821. schema:
  822. $ref: '#/definitions/supply_analysis.CalculateVarietyReq'
  823. /stock_plant/refresh:
  824. post:
  825. tags:
  826. - stock_plant
  827. description: |-
  828. 刷新手工指标接口
  829. <br>
  830. operationId: StockPlantController.刷新手工指标接口
  831. responses:
  832. "200":
  833. description: ""
  834. schema:
  835. $ref: '#/definitions/models.RefreshEdbInfoReq'
  836. /ths/add:
  837. post:
  838. tags:
  839. - ths
  840. description: |-
  841. 新增同花顺指标接口
  842. <br>
  843. operationId: ThsController.新增同花顺指标接口
  844. responses:
  845. "200":
  846. description: ""
  847. schema:
  848. $ref: '#/definitions/models.AddEdbInfoReq'
  849. /ths/refresh:
  850. post:
  851. tags:
  852. - ths
  853. description: |-
  854. 刷新同花顺指标接口
  855. <br>
  856. operationId: ThsController.刷新同花顺指标接口
  857. responses:
  858. "200":
  859. description: ""
  860. schema:
  861. $ref: '#/definitions/models.RefreshEdbInfoReq'
  862. /wind/add:
  863. post:
  864. tags:
  865. - wind
  866. description: |-
  867. 新增wind指标接口
  868. <br>
  869. operationId: WindController.新增wind指标接口
  870. responses:
  871. "200":
  872. description: ""
  873. schema:
  874. $ref: '#/definitions/models.AddEdbInfoReq'
  875. /wind/refresh:
  876. post:
  877. tags:
  878. - wind
  879. description: |-
  880. 刷新wind指标接口
  881. <br>
  882. operationId: WindController.刷新wind指标接口
  883. responses:
  884. "200":
  885. description: ""
  886. schema:
  887. $ref: '#/definitions/models.RefreshEdbInfoReq'
  888. /zz/add:
  889. post:
  890. tags:
  891. - zz
  892. description: |-
  893. 新增郑商所指标接口
  894. <br>
  895. operationId: ZzController.新增郑商所指标接口
  896. responses:
  897. "200":
  898. description: ""
  899. schema:
  900. $ref: '#/definitions/models.AddEdbInfoReq'
  901. /zz/refresh:
  902. post:
  903. tags:
  904. - zz
  905. description: |-
  906. 刷新郑商所指标接口
  907. <br>
  908. operationId: ZzController.刷新郑商所指标接口
  909. responses:
  910. "200":
  911. description: ""
  912. schema:
  913. $ref: '#/definitions/models.RefreshEdbInfoReq'
  914. definitions:
  915. models.AddEdbInfoReq:
  916. title: AddEdbInfoReq
  917. type: object
  918. properties:
  919. EdbCode:
  920. description: 指标编码
  921. type: string
  922. models.CheckDeleteClassifyResp:
  923. title: CheckDeleteClassifyResp
  924. type: object
  925. models.EdbInfoCalculateBatchSaveReq:
  926. title: EdbInfoCalculateBatchSaveReq
  927. type: object
  928. properties:
  929. AdminId:
  930. description: 添加人id
  931. type: integer
  932. format: int64
  933. AdminName:
  934. description: 添加人名称
  935. type: string
  936. CalculateFormula:
  937. description: 计算公式
  938. type: string
  939. Calendar:
  940. description: 公历/农历
  941. type: string
  942. ClassifyId:
  943. description: 分类id
  944. type: integer
  945. format: int64
  946. EdbInfoId:
  947. description: 指标id
  948. type: integer
  949. format: int64
  950. EdbInfoIdArr:
  951. description: 关联指标列表
  952. type: array
  953. items:
  954. $ref: '#/definitions/models.EdbInfoCalculateEdbInfoIdReq'
  955. EdbName:
  956. description: 指标名称
  957. type: string
  958. Formula:
  959. description: N值/移动天数
  960. type: string
  961. Frequency:
  962. description: 频度
  963. type: string
  964. FromEdbInfoId:
  965. description: 计算来源指标id
  966. type: integer
  967. format: int64
  968. MoveFrequency:
  969. description: 移动频度:天/周/月/季/年
  970. type: string
  971. MoveType:
  972. description: 移动方式:1:领先(默认),2:滞后
  973. type: integer
  974. format: int64
  975. Source:
  976. description: 来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:升频
  977. type: integer
  978. format: int64
  979. Unit:
  980. description: 单位
  981. type: string
  982. models.EdbInfoCalculateEdbInfoIdReq:
  983. title: EdbInfoCalculateEdbInfoIdReq
  984. type: object
  985. properties:
  986. EdbInfoId:
  987. description: 指标id
  988. type: integer
  989. format: int64
  990. FromTag:
  991. description: 指标对应标签
  992. type: string
  993. MoveValue:
  994. description: 移动的值
  995. type: integer
  996. format: int64
  997. models.EdbInfoCalculateSaveReq:
  998. title: EdbInfoCalculateSaveReq
  999. type: object
  1000. properties:
  1001. AdminId:
  1002. description: 添加人id
  1003. type: integer
  1004. format: int64
  1005. AdminName:
  1006. description: 添加人名称
  1007. type: string
  1008. CalculateFormula:
  1009. description: 计算公式
  1010. type: string
  1011. ClassifyId:
  1012. description: 分类id
  1013. type: integer
  1014. format: int64
  1015. EdbInfoId:
  1016. description: 指标id
  1017. type: integer
  1018. format: int64
  1019. EdbInfoIdArr:
  1020. type: array
  1021. items:
  1022. $ref: '#/definitions/models.EdbInfoFromTag'
  1023. EdbName:
  1024. description: 指标名称
  1025. type: string
  1026. Frequency:
  1027. description: 频率
  1028. type: string
  1029. Unit:
  1030. description: 单位
  1031. type: string
  1032. models.EdbInfoFromTag:
  1033. title: EdbInfoFromTag
  1034. type: object
  1035. properties:
  1036. EdbInfoId:
  1037. description: 指标id
  1038. type: integer
  1039. format: int64
  1040. FromTag:
  1041. description: 指标对应标签
  1042. type: string
  1043. models.EditEdbInfoReq:
  1044. title: EditEdbInfoReq
  1045. type: object
  1046. models.ExecPythonEdbReq:
  1047. title: ExecPythonEdbReq
  1048. type: object
  1049. properties:
  1050. PythonCode:
  1051. description: python代码
  1052. type: string
  1053. models.RefreshEdbInfoReq:
  1054. title: RefreshEdbInfoReq
  1055. type: object
  1056. properties:
  1057. EdbCode:
  1058. description: 指标编码
  1059. type: string
  1060. EdbInfoId:
  1061. description: 指标ID
  1062. type: integer
  1063. format: int64
  1064. StartDate:
  1065. description: 开始日期
  1066. type: string
  1067. models.SaveAdjustEdbDataReq:
  1068. title: SaveAdjustEdbDataReq
  1069. type: object
  1070. properties:
  1071. Date:
  1072. description: 数据日期
  1073. type: string
  1074. Value:
  1075. description: 数据值
  1076. type: number
  1077. format: double
  1078. models.SaveAdjustEdbReq:
  1079. title: SaveAdjustEdbReq
  1080. type: object
  1081. properties:
  1082. AdminId:
  1083. description: 添加人id
  1084. type: integer
  1085. format: int64
  1086. AdminName:
  1087. description: 添加人名称
  1088. type: string
  1089. ClassifyId:
  1090. description: 分类id
  1091. type: integer
  1092. format: int64
  1093. DataList:
  1094. description: 指标对应的数据值
  1095. type: array
  1096. items:
  1097. $ref: '#/definitions/models.SaveAdjustEdbDataReq'
  1098. EdbInfoId:
  1099. description: 指标id
  1100. type: integer
  1101. format: int64
  1102. EdbName:
  1103. description: 指标名称
  1104. type: string
  1105. Frequency:
  1106. description: 频度
  1107. type: string
  1108. FromEdbInfoId:
  1109. description: 来源指标id
  1110. type: integer
  1111. format: int64
  1112. Unit:
  1113. description: 单位
  1114. type: string
  1115. supply_analysis.CalculateVarietyReq:
  1116. title: CalculateVarietyReq
  1117. type: object
  1118. properties:
  1119. AdminId:
  1120. description: 操作人id
  1121. type: integer
  1122. format: int64
  1123. AdminName:
  1124. description: 操作人名称
  1125. type: string
  1126. VarietyId:
  1127. description: 品种id
  1128. type: integer
  1129. format: int64
  1130. tags:
  1131. - name: ths
  1132. description: |
  1133. 同花顺
  1134. - name: pb
  1135. description: |
  1136. 彭博
  1137. - name: pb_finance
  1138. description: |
  1139. PbFinanceController 彭博财务
  1140. - name: wind
  1141. description: |
  1142. wind
  1143. - name: lz
  1144. description: |
  1145. 隆众
  1146. - name: lt
  1147. description: |
  1148. 路透社
  1149. - name: smm
  1150. description: |
  1151. 有色
  1152. - name: mysteel
  1153. description: |
  1154. 钢联
  1155. - name: manual
  1156. description: |
  1157. 手工指标
  1158. - name: calculate
  1159. description: |
  1160. CalculateController 计算指标
  1161. - name: zz
  1162. description: |
  1163. 郑商所
  1164. - name: dl
  1165. description: |
  1166. 大商所
  1167. - name: sh
  1168. description: |
  1169. 上期所
  1170. - name: cffex
  1171. description: |
  1172. 中金所
  1173. - name: shfe
  1174. description: |
  1175. 上期能源
  1176. - name: gie
  1177. description: |
  1178. 欧洲天然气
  1179. - name: coal
  1180. description: |
  1181. 中国煤炭网
  1182. - name: python
  1183. description: |
  1184. PythonController 计算指标
  1185. - name: google_travel
  1186. description: |
  1187. 谷歌出行数据
  1188. - name: mysteel_chemical
  1189. description: |
  1190. MySteelChemicalController 钢联化工
  1191. - name: predict_calculate
  1192. description: |
  1193. PredictCalculateController 预测计算指标
  1194. - name: eia_steo
  1195. description: |
  1196. EiaSteoController Eia Steo报告
  1197. - name: predict
  1198. description: |
  1199. PredictController 预测指标
  1200. - name: future_good
  1201. description: |
  1202. FutureGoodEdbInfoController 期货数据
  1203. - name: sci
  1204. description: |
  1205. 有色
  1206. - name: com_trade
  1207. description: |
  1208. ComTradeController Eia Steo报告
  1209. - name: baiinfo
  1210. description: |
  1211. 百川盈孚
  1212. - name: stock_plant
  1213. description: |
  1214. StockPlantController 存量装置
  1215. - name: national_statistics
  1216. description: |
  1217. NationalStatisticsController 国家统计局
  1218. - name: fubao
  1219. description: |
  1220. 富宝-数据对接