swagger.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "beego Test API",
  5. "description": "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. },
  11. "license": {
  12. "name": "Apache 2.0",
  13. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  14. }
  15. },
  16. "basePath": "/edbapi",
  17. "paths": {
  18. "/calculate/add": {
  19. "post": {
  20. "tags": [
  21. "calculate"
  22. ],
  23. "description": "编辑指标接口",
  24. "operationId": "CalculateController.编辑指标接口",
  25. "responses": {
  26. "200": {
  27. "description": "",
  28. "schema": {
  29. "$ref": "#/definitions/models.EditEdbInfoReq"
  30. }
  31. }
  32. }
  33. }
  34. },
  35. "/calculate/batch/save": {
  36. "post": {
  37. "tags": [
  38. "calculate"
  39. ],
  40. "description": "累计值转月-同比值-同差等计算新增接口",
  41. "operationId": "CalculateController.累计值转月-同比值-同差等计算新增",
  42. "parameters": [
  43. {
  44. "in": "body",
  45. "name": "request",
  46. "description": "type json string",
  47. "required": true,
  48. "schema": {
  49. "$ref": "#/definitions/models.EdbInfoCalculateBatchSaveReq"
  50. }
  51. }
  52. ],
  53. "responses": {
  54. "Ret=200": {
  55. "description": "返回指标id"
  56. }
  57. }
  58. }
  59. },
  60. "/calculate/refresh": {
  61. "post": {
  62. "tags": [
  63. "calculate"
  64. ],
  65. "description": "刷新计算指标接口",
  66. "operationId": "CalculateController.刷新计算指标接口",
  67. "responses": {
  68. "200": {
  69. "description": "",
  70. "schema": {
  71. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  72. }
  73. }
  74. }
  75. }
  76. },
  77. "/cffex/add": {
  78. "post": {
  79. "tags": [
  80. "cffex"
  81. ],
  82. "description": "新增中金所指标接口",
  83. "operationId": "CffexController.新增中金所指标接口",
  84. "responses": {
  85. "200": {
  86. "description": "",
  87. "schema": {
  88. "$ref": "#/definitions/models.AddEdbInfoReq"
  89. }
  90. }
  91. }
  92. }
  93. },
  94. "/cffex/refresh": {
  95. "post": {
  96. "tags": [
  97. "cffex"
  98. ],
  99. "description": "刷新中金所指标接口",
  100. "operationId": "CffexController.刷新中金所指标接口",
  101. "responses": {
  102. "200": {
  103. "description": "",
  104. "schema": {
  105. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/dl/add": {
  112. "post": {
  113. "tags": [
  114. "dl"
  115. ],
  116. "description": "新增大商所指标接口",
  117. "operationId": "DlController.新增大商所指标接口",
  118. "responses": {
  119. "200": {
  120. "description": "",
  121. "schema": {
  122. "$ref": "#/definitions/models.AddEdbInfoReq"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "/dl/refresh": {
  129. "post": {
  130. "tags": [
  131. "dl"
  132. ],
  133. "description": "刷新大商所指标接口",
  134. "operationId": "DlController.刷新大商所指标接口",
  135. "responses": {
  136. "200": {
  137. "description": "",
  138. "schema": {
  139. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  140. }
  141. }
  142. }
  143. }
  144. },
  145. "/gie/add": {
  146. "post": {
  147. "tags": [
  148. "gie"
  149. ],
  150. "description": "新增欧洲天然气指标接口",
  151. "operationId": "GieController.新增欧洲天然气指标接口",
  152. "responses": {
  153. "200": {
  154. "description": "",
  155. "schema": {
  156. "$ref": "#/definitions/models.AddEdbInfoReq"
  157. }
  158. }
  159. }
  160. }
  161. },
  162. "/gie/refresh": {
  163. "post": {
  164. "tags": [
  165. "gie"
  166. ],
  167. "description": "刷新欧洲天然气指标接口",
  168. "operationId": "GieController.刷新欧洲天然气指标接口",
  169. "responses": {
  170. "200": {
  171. "description": "",
  172. "schema": {
  173. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  174. }
  175. }
  176. }
  177. }
  178. },
  179. "/lt/add": {
  180. "post": {
  181. "tags": [
  182. "lt"
  183. ],
  184. "description": "新增路透指标接口",
  185. "operationId": "LtController.新增路透指标接口",
  186. "responses": {
  187. "200": {
  188. "description": "",
  189. "schema": {
  190. "$ref": "#/definitions/models.AddEdbInfoReq"
  191. }
  192. }
  193. }
  194. }
  195. },
  196. "/lt/refresh": {
  197. "post": {
  198. "tags": [
  199. "lt"
  200. ],
  201. "description": "刷新路透社指标接口",
  202. "operationId": "LtController.刷新路透社指标接口",
  203. "responses": {
  204. "200": {
  205. "description": "",
  206. "schema": {
  207. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  208. }
  209. }
  210. }
  211. }
  212. },
  213. "/lz/add": {
  214. "post": {
  215. "tags": [
  216. "lz"
  217. ],
  218. "description": "新增隆众指标接口",
  219. "operationId": "LzController.新增隆众指标接口",
  220. "responses": {
  221. "200": {
  222. "description": "",
  223. "schema": {
  224. "$ref": "#/definitions/models.AddEdbInfoReq"
  225. }
  226. }
  227. }
  228. }
  229. },
  230. "/lz/refresh": {
  231. "post": {
  232. "tags": [
  233. "lz"
  234. ],
  235. "description": "刷新隆众指标接口",
  236. "operationId": "LzController.刷新隆众指标接口",
  237. "responses": {
  238. "200": {
  239. "description": "",
  240. "schema": {
  241. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "/manual/add": {
  248. "post": {
  249. "tags": [
  250. "manual"
  251. ],
  252. "description": "新增手工指标接口",
  253. "operationId": "ManualController.新增手工指标接口",
  254. "responses": {
  255. "200": {
  256. "description": "",
  257. "schema": {
  258. "$ref": "#/definitions/models.AddEdbInfoReq"
  259. }
  260. }
  261. }
  262. }
  263. },
  264. "/manual/refresh": {
  265. "post": {
  266. "tags": [
  267. "manual"
  268. ],
  269. "description": "刷新手工指标接口",
  270. "operationId": "ManualController.刷新手工指标接口",
  271. "responses": {
  272. "200": {
  273. "description": "",
  274. "schema": {
  275. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  276. }
  277. }
  278. }
  279. }
  280. },
  281. "/mysteel/add": {
  282. "post": {
  283. "tags": [
  284. "mysteel"
  285. ],
  286. "description": "新增钢联指标接口",
  287. "operationId": "MySteelController.新增钢联指标接口",
  288. "responses": {
  289. "200": {
  290. "description": "",
  291. "schema": {
  292. "$ref": "#/definitions/models.AddEdbInfoReq"
  293. }
  294. }
  295. }
  296. }
  297. },
  298. "/mysteel/refresh": {
  299. "post": {
  300. "tags": [
  301. "mysteel"
  302. ],
  303. "description": "刷新钢联指标接口",
  304. "operationId": "MySteelController.刷新钢联指标接口",
  305. "responses": {
  306. "200": {
  307. "description": "",
  308. "schema": {
  309. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  310. }
  311. }
  312. }
  313. }
  314. },
  315. "/pb/add": {
  316. "post": {
  317. "tags": [
  318. "pb"
  319. ],
  320. "description": "新增彭博指标接口",
  321. "operationId": "PbController.新增彭博指标接口",
  322. "responses": {
  323. "200": {
  324. "description": "",
  325. "schema": {
  326. "$ref": "#/definitions/models.AddEdbInfoReq"
  327. }
  328. }
  329. }
  330. }
  331. },
  332. "/pb/refresh": {
  333. "post": {
  334. "tags": [
  335. "pb"
  336. ],
  337. "description": "刷新彭博指标接口",
  338. "operationId": "PbController.刷新彭博指标接口",
  339. "responses": {
  340. "200": {
  341. "description": "",
  342. "schema": {
  343. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  344. }
  345. }
  346. }
  347. }
  348. },
  349. "/sh/add": {
  350. "post": {
  351. "tags": [
  352. "sh"
  353. ],
  354. "description": "新增上期所指标接口",
  355. "operationId": "ShController.新增上期所指标接口",
  356. "responses": {
  357. "200": {
  358. "description": "",
  359. "schema": {
  360. "$ref": "#/definitions/models.AddEdbInfoReq"
  361. }
  362. }
  363. }
  364. }
  365. },
  366. "/sh/refresh": {
  367. "post": {
  368. "tags": [
  369. "sh"
  370. ],
  371. "description": "刷新上期所指标接口",
  372. "operationId": "ShController.刷新上期所指标接口",
  373. "responses": {
  374. "200": {
  375. "description": "",
  376. "schema": {
  377. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  378. }
  379. }
  380. }
  381. }
  382. },
  383. "/shfe/add": {
  384. "post": {
  385. "tags": [
  386. "shfe"
  387. ],
  388. "description": "新增上期能源指标接口",
  389. "operationId": "ShfeController.新增上期能源指标接口",
  390. "responses": {
  391. "200": {
  392. "description": "",
  393. "schema": {
  394. "$ref": "#/definitions/models.AddEdbInfoReq"
  395. }
  396. }
  397. }
  398. }
  399. },
  400. "/shfe/refresh": {
  401. "post": {
  402. "tags": [
  403. "shfe"
  404. ],
  405. "description": "刷新上期能源指标接口",
  406. "operationId": "ShfeController.刷新上期能源指标接口",
  407. "responses": {
  408. "200": {
  409. "description": "",
  410. "schema": {
  411. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  412. }
  413. }
  414. }
  415. }
  416. },
  417. "/smm/add": {
  418. "post": {
  419. "tags": [
  420. "smm"
  421. ],
  422. "description": "新增有色指标接口",
  423. "operationId": "SmmController.新增有色指标接口",
  424. "responses": {
  425. "200": {
  426. "description": "",
  427. "schema": {
  428. "$ref": "#/definitions/models.AddEdbInfoReq"
  429. }
  430. }
  431. }
  432. }
  433. },
  434. "/smm/refresh": {
  435. "post": {
  436. "tags": [
  437. "smm"
  438. ],
  439. "description": "刷新有色指标接口",
  440. "operationId": "SmmController.刷新有色指标接口",
  441. "responses": {
  442. "200": {
  443. "description": "",
  444. "schema": {
  445. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  446. }
  447. }
  448. }
  449. }
  450. },
  451. "/ths/add": {
  452. "post": {
  453. "tags": [
  454. "ths"
  455. ],
  456. "description": "新增同花顺指标接口",
  457. "operationId": "ThsController.新增同花顺指标接口",
  458. "responses": {
  459. "200": {
  460. "description": "",
  461. "schema": {
  462. "$ref": "#/definitions/models.AddEdbInfoReq"
  463. }
  464. }
  465. }
  466. }
  467. },
  468. "/ths/refresh": {
  469. "post": {
  470. "tags": [
  471. "ths"
  472. ],
  473. "description": "刷新同花顺指标接口",
  474. "operationId": "ThsController.刷新同花顺指标接口",
  475. "responses": {
  476. "200": {
  477. "description": "",
  478. "schema": {
  479. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  480. }
  481. }
  482. }
  483. }
  484. },
  485. "/wind/add": {
  486. "post": {
  487. "tags": [
  488. "wind"
  489. ],
  490. "description": "新增wind指标接口",
  491. "operationId": "WindController.新增wind指标接口",
  492. "responses": {
  493. "200": {
  494. "description": "",
  495. "schema": {
  496. "$ref": "#/definitions/models.AddEdbInfoReq"
  497. }
  498. }
  499. }
  500. }
  501. },
  502. "/wind/refresh": {
  503. "post": {
  504. "tags": [
  505. "wind"
  506. ],
  507. "description": "刷新wind指标接口",
  508. "operationId": "WindController.刷新wind指标接口",
  509. "responses": {
  510. "200": {
  511. "description": "",
  512. "schema": {
  513. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  514. }
  515. }
  516. }
  517. }
  518. },
  519. "/zz/add": {
  520. "post": {
  521. "tags": [
  522. "zz"
  523. ],
  524. "description": "新增郑商所指标接口",
  525. "operationId": "ZzController.新增郑商所指标接口",
  526. "responses": {
  527. "200": {
  528. "description": "",
  529. "schema": {
  530. "$ref": "#/definitions/models.AddEdbInfoReq"
  531. }
  532. }
  533. }
  534. }
  535. },
  536. "/zz/refresh": {
  537. "post": {
  538. "tags": [
  539. "zz"
  540. ],
  541. "description": "刷新郑商所指标接口",
  542. "operationId": "ZzController.刷新郑商所指标接口",
  543. "responses": {
  544. "200": {
  545. "description": "",
  546. "schema": {
  547. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  548. }
  549. }
  550. }
  551. }
  552. }
  553. },
  554. "definitions": {
  555. "10659.0xc00059e9f0.false": {
  556. "title": "false",
  557. "type": "object"
  558. },
  559. "models.AddEdbInfoReq": {
  560. "title": "AddEdbInfoReq",
  561. "type": "object",
  562. "properties": {
  563. "EdbCode": {
  564. "description": "指标编码",
  565. "type": "string"
  566. }
  567. }
  568. },
  569. "models.EdbInfoCalculateBatchSaveReq": {
  570. "title": "EdbInfoCalculateBatchSaveReq",
  571. "type": "object",
  572. "properties": {
  573. "AdminId": {
  574. "description": "添加人id",
  575. "type": "integer",
  576. "format": "int64"
  577. },
  578. "AdminName": {
  579. "description": "添加人名称",
  580. "type": "string"
  581. },
  582. "CalculateFormula": {
  583. "description": "计算公式",
  584. "type": "string"
  585. },
  586. "ClassifyId": {
  587. "description": "分类id",
  588. "type": "integer",
  589. "format": "int64"
  590. },
  591. "EdbInfoId": {
  592. "description": "指标id",
  593. "type": "integer",
  594. "format": "int64"
  595. },
  596. "EdbInfoIdArr": {
  597. "type": "array",
  598. "items": {
  599. "$ref": "#/definitions/10659.0xc00059e9f0.false"
  600. }
  601. },
  602. "EdbName": {
  603. "description": "指标名称",
  604. "type": "string"
  605. },
  606. "Formula": {
  607. "description": "N值/移动天数",
  608. "type": "string"
  609. },
  610. "Frequency": {
  611. "description": "频度",
  612. "type": "string"
  613. },
  614. "FromEdbInfoId": {
  615. "description": "计算来源指标id",
  616. "type": "integer",
  617. "format": "int64"
  618. },
  619. "MoveFrequency": {
  620. "description": "移动频度:天/周/月/季/年",
  621. "type": "string"
  622. },
  623. "MoveType": {
  624. "description": "移动方式:1:领先(默认),2:滞后",
  625. "type": "integer",
  626. "format": "int64"
  627. },
  628. "Source": {
  629. "description": "来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频",
  630. "type": "integer",
  631. "format": "int64"
  632. },
  633. "Unit": {
  634. "description": "单位",
  635. "type": "string"
  636. }
  637. }
  638. },
  639. "models.EditEdbInfoReq": {
  640. "title": "EditEdbInfoReq",
  641. "type": "object"
  642. },
  643. "models.RefreshEdbInfoReq": {
  644. "title": "RefreshEdbInfoReq",
  645. "type": "object",
  646. "properties": {
  647. "EdbCode": {
  648. "description": "指标编码",
  649. "type": "string"
  650. },
  651. "EdbInfoId": {
  652. "description": "指标ID",
  653. "type": "integer",
  654. "format": "int64"
  655. },
  656. "StartDate": {
  657. "description": "开始日期",
  658. "type": "string"
  659. }
  660. }
  661. }
  662. },
  663. "tags": [
  664. {
  665. "name": "ths",
  666. "description": "同花顺\n"
  667. },
  668. {
  669. "name": "pb",
  670. "description": "彭博\n"
  671. },
  672. {
  673. "name": "wind",
  674. "description": "wind\n"
  675. },
  676. {
  677. "name": "lz",
  678. "description": "隆众\n"
  679. },
  680. {
  681. "name": "lt",
  682. "description": "路透社\n"
  683. },
  684. {
  685. "name": "smm",
  686. "description": "有色\n"
  687. },
  688. {
  689. "name": "mysteel",
  690. "description": "钢联\n"
  691. },
  692. {
  693. "name": "manual",
  694. "description": "手工指标\n"
  695. },
  696. {
  697. "name": "calculate",
  698. "description": "CalculateController 计算指标\n"
  699. },
  700. {
  701. "name": "zz",
  702. "description": "郑商所\n"
  703. },
  704. {
  705. "name": "dl",
  706. "description": "大商所\n"
  707. },
  708. {
  709. "name": "sh",
  710. "description": "上期所\n"
  711. },
  712. {
  713. "name": "cffex",
  714. "description": "中金所\n"
  715. },
  716. {
  717. "name": "shfe",
  718. "description": "上期能源\n"
  719. },
  720. {
  721. "name": "gie",
  722. "description": "欧洲天然气\n"
  723. }
  724. ]
  725. }