swagger.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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/data_manage.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/data_manage.EdbInfoCalculateBatchSaveReq"
  50. }
  51. }
  52. ],
  53. "responses": {
  54. "Ret=200": {
  55. "description": "返回指标id"
  56. }
  57. }
  58. }
  59. },
  60. "/lt/add": {
  61. "post": {
  62. "tags": [
  63. "lt"
  64. ],
  65. "description": "新增路透指标接口",
  66. "operationId": "LtController.新增路透指标接口",
  67. "responses": {
  68. "200": {
  69. "description": "",
  70. "schema": {
  71. "$ref": "#/definitions/models.AddEdbInfoReq"
  72. }
  73. }
  74. }
  75. }
  76. },
  77. "/lt/refresh": {
  78. "post": {
  79. "tags": [
  80. "lt"
  81. ],
  82. "description": "刷新路透社指标接口",
  83. "operationId": "LtController.刷新路透社指标接口",
  84. "responses": {
  85. "200": {
  86. "description": "",
  87. "schema": {
  88. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  89. }
  90. }
  91. }
  92. }
  93. },
  94. "/lz/add": {
  95. "post": {
  96. "tags": [
  97. "lz"
  98. ],
  99. "description": "新增隆众指标接口",
  100. "operationId": "LzController.新增隆众指标接口",
  101. "responses": {
  102. "200": {
  103. "description": "",
  104. "schema": {
  105. "$ref": "#/definitions/models.AddEdbInfoReq"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/lz/refresh": {
  112. "post": {
  113. "tags": [
  114. "lz"
  115. ],
  116. "description": "刷新隆众指标接口",
  117. "operationId": "LzController.刷新隆众指标接口",
  118. "responses": {
  119. "200": {
  120. "description": "",
  121. "schema": {
  122. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "/manual/add": {
  129. "post": {
  130. "tags": [
  131. "manual"
  132. ],
  133. "description": "新增手工指标接口",
  134. "operationId": "ManualController.新增手工指标接口",
  135. "responses": {
  136. "200": {
  137. "description": "",
  138. "schema": {
  139. "$ref": "#/definitions/models.AddEdbInfoReq"
  140. }
  141. }
  142. }
  143. }
  144. },
  145. "/manual/refresh": {
  146. "post": {
  147. "tags": [
  148. "manual"
  149. ],
  150. "description": "刷新手工指标接口",
  151. "operationId": "ManualController.刷新手工指标接口",
  152. "responses": {
  153. "200": {
  154. "description": "",
  155. "schema": {
  156. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  157. }
  158. }
  159. }
  160. }
  161. },
  162. "/mysteel/add": {
  163. "post": {
  164. "tags": [
  165. "mysteel"
  166. ],
  167. "description": "新增钢联指标接口",
  168. "operationId": "MySteelController.新增钢联指标接口",
  169. "responses": {
  170. "200": {
  171. "description": "",
  172. "schema": {
  173. "$ref": "#/definitions/models.AddEdbInfoReq"
  174. }
  175. }
  176. }
  177. }
  178. },
  179. "/mysteel/refresh": {
  180. "post": {
  181. "tags": [
  182. "mysteel"
  183. ],
  184. "description": "刷新钢联指标接口",
  185. "operationId": "MySteelController.刷新钢联指标接口",
  186. "responses": {
  187. "200": {
  188. "description": "",
  189. "schema": {
  190. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  191. }
  192. }
  193. }
  194. }
  195. },
  196. "/pb/add": {
  197. "post": {
  198. "tags": [
  199. "pb"
  200. ],
  201. "description": "新增彭博指标接口",
  202. "operationId": "PbController.新增彭博指标接口",
  203. "responses": {
  204. "200": {
  205. "description": "",
  206. "schema": {
  207. "$ref": "#/definitions/models.AddEdbInfoReq"
  208. }
  209. }
  210. }
  211. }
  212. },
  213. "/pb/refresh": {
  214. "post": {
  215. "tags": [
  216. "pb"
  217. ],
  218. "description": "刷新彭博指标接口",
  219. "operationId": "PbController.刷新彭博指标接口",
  220. "responses": {
  221. "200": {
  222. "description": "",
  223. "schema": {
  224. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  225. }
  226. }
  227. }
  228. }
  229. },
  230. "/smm/add": {
  231. "post": {
  232. "tags": [
  233. "smm"
  234. ],
  235. "description": "新增有色指标接口",
  236. "operationId": "SmmController.新增有色指标接口",
  237. "responses": {
  238. "200": {
  239. "description": "",
  240. "schema": {
  241. "$ref": "#/definitions/models.AddEdbInfoReq"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "/smm/refresh": {
  248. "post": {
  249. "tags": [
  250. "smm"
  251. ],
  252. "description": "刷新有色指标接口",
  253. "operationId": "SmmController.刷新有色指标接口",
  254. "responses": {
  255. "200": {
  256. "description": "",
  257. "schema": {
  258. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  259. }
  260. }
  261. }
  262. }
  263. },
  264. "/ths/add": {
  265. "post": {
  266. "tags": [
  267. "ths"
  268. ],
  269. "description": "新增同花顺指标接口",
  270. "operationId": "ThsController.新增同花顺指标接口",
  271. "responses": {
  272. "200": {
  273. "description": "",
  274. "schema": {
  275. "$ref": "#/definitions/models.AddEdbInfoReq"
  276. }
  277. }
  278. }
  279. }
  280. },
  281. "/ths/refresh": {
  282. "post": {
  283. "tags": [
  284. "ths"
  285. ],
  286. "description": "刷新同花顺指标接口",
  287. "operationId": "ThsController.刷新同花顺指标接口",
  288. "responses": {
  289. "200": {
  290. "description": "",
  291. "schema": {
  292. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  293. }
  294. }
  295. }
  296. }
  297. },
  298. "/wind/add": {
  299. "post": {
  300. "tags": [
  301. "wind"
  302. ],
  303. "description": "新增wind指标接口",
  304. "operationId": "WindController.新增wind指标接口",
  305. "responses": {
  306. "200": {
  307. "description": "",
  308. "schema": {
  309. "$ref": "#/definitions/models.AddEdbInfoReq"
  310. }
  311. }
  312. }
  313. }
  314. },
  315. "/wind/refresh": {
  316. "post": {
  317. "tags": [
  318. "wind"
  319. ],
  320. "description": "刷新wind指标接口",
  321. "operationId": "WindController.刷新wind指标接口",
  322. "responses": {
  323. "200": {
  324. "description": "",
  325. "schema": {
  326. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  327. }
  328. }
  329. }
  330. }
  331. }
  332. },
  333. "definitions": {
  334. "data_manage.EdbInfoCalculateBatchSaveReq": {
  335. "title": "EdbInfoCalculateBatchSaveReq",
  336. "type": "object"
  337. },
  338. "data_manage.EditEdbInfoReq": {
  339. "title": "EditEdbInfoReq",
  340. "type": "object"
  341. },
  342. "models.AddEdbInfoReq": {
  343. "title": "AddEdbInfoReq",
  344. "type": "object",
  345. "properties": {
  346. "EdbCode": {
  347. "description": "指标编码",
  348. "type": "string"
  349. }
  350. }
  351. },
  352. "models.RefreshEdbInfoReq": {
  353. "title": "RefreshEdbInfoReq",
  354. "type": "object",
  355. "properties": {
  356. "EdbCode": {
  357. "description": "指标编码",
  358. "type": "string"
  359. },
  360. "EdbInfoId": {
  361. "description": "指标ID",
  362. "type": "integer",
  363. "format": "int64"
  364. },
  365. "StartDate": {
  366. "description": "开始日期",
  367. "type": "string"
  368. }
  369. }
  370. }
  371. },
  372. "tags": [
  373. {
  374. "name": "ths",
  375. "description": "同花顺\n"
  376. },
  377. {
  378. "name": "pb",
  379. "description": "彭博\n"
  380. },
  381. {
  382. "name": "wind",
  383. "description": "wind\n"
  384. },
  385. {
  386. "name": "lz",
  387. "description": "隆众\n"
  388. },
  389. {
  390. "name": "lt",
  391. "description": "路透社\n"
  392. },
  393. {
  394. "name": "smm",
  395. "description": "有色\n"
  396. },
  397. {
  398. "name": "mysteel",
  399. "description": "钢联\n"
  400. },
  401. {
  402. "name": "manual",
  403. "description": "手工指标\n"
  404. },
  405. {
  406. "name": "calculate",
  407. "description": "CalculateController 计算指标\n"
  408. }
  409. ]
  410. }