swagger.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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. "/lt/add": {
  78. "post": {
  79. "tags": [
  80. "lt"
  81. ],
  82. "description": "新增路透指标接口",
  83. "operationId": "LtController.新增路透指标接口",
  84. "responses": {
  85. "200": {
  86. "description": "",
  87. "schema": {
  88. "$ref": "#/definitions/models.AddEdbInfoReq"
  89. }
  90. }
  91. }
  92. }
  93. },
  94. "/lt/refresh": {
  95. "post": {
  96. "tags": [
  97. "lt"
  98. ],
  99. "description": "刷新路透社指标接口",
  100. "operationId": "LtController.刷新路透社指标接口",
  101. "responses": {
  102. "200": {
  103. "description": "",
  104. "schema": {
  105. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/lz/add": {
  112. "post": {
  113. "tags": [
  114. "lz"
  115. ],
  116. "description": "新增隆众指标接口",
  117. "operationId": "LzController.新增隆众指标接口",
  118. "responses": {
  119. "200": {
  120. "description": "",
  121. "schema": {
  122. "$ref": "#/definitions/models.AddEdbInfoReq"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "/lz/refresh": {
  129. "post": {
  130. "tags": [
  131. "lz"
  132. ],
  133. "description": "刷新隆众指标接口",
  134. "operationId": "LzController.刷新隆众指标接口",
  135. "responses": {
  136. "200": {
  137. "description": "",
  138. "schema": {
  139. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  140. }
  141. }
  142. }
  143. }
  144. },
  145. "/manual/add": {
  146. "post": {
  147. "tags": [
  148. "manual"
  149. ],
  150. "description": "新增手工指标接口",
  151. "operationId": "ManualController.新增手工指标接口",
  152. "responses": {
  153. "200": {
  154. "description": "",
  155. "schema": {
  156. "$ref": "#/definitions/models.AddEdbInfoReq"
  157. }
  158. }
  159. }
  160. }
  161. },
  162. "/manual/refresh": {
  163. "post": {
  164. "tags": [
  165. "manual"
  166. ],
  167. "description": "刷新手工指标接口",
  168. "operationId": "ManualController.刷新手工指标接口",
  169. "responses": {
  170. "200": {
  171. "description": "",
  172. "schema": {
  173. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  174. }
  175. }
  176. }
  177. }
  178. },
  179. "/mysteel/add": {
  180. "post": {
  181. "tags": [
  182. "mysteel"
  183. ],
  184. "description": "新增钢联指标接口",
  185. "operationId": "MySteelController.新增钢联指标接口",
  186. "responses": {
  187. "200": {
  188. "description": "",
  189. "schema": {
  190. "$ref": "#/definitions/models.AddEdbInfoReq"
  191. }
  192. }
  193. }
  194. }
  195. },
  196. "/mysteel/refresh": {
  197. "post": {
  198. "tags": [
  199. "mysteel"
  200. ],
  201. "description": "刷新钢联指标接口",
  202. "operationId": "MySteelController.刷新钢联指标接口",
  203. "responses": {
  204. "200": {
  205. "description": "",
  206. "schema": {
  207. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  208. }
  209. }
  210. }
  211. }
  212. },
  213. "/pb/add": {
  214. "post": {
  215. "tags": [
  216. "pb"
  217. ],
  218. "description": "新增彭博指标接口",
  219. "operationId": "PbController.新增彭博指标接口",
  220. "responses": {
  221. "200": {
  222. "description": "",
  223. "schema": {
  224. "$ref": "#/definitions/models.AddEdbInfoReq"
  225. }
  226. }
  227. }
  228. }
  229. },
  230. "/pb/refresh": {
  231. "post": {
  232. "tags": [
  233. "pb"
  234. ],
  235. "description": "刷新彭博指标接口",
  236. "operationId": "PbController.刷新彭博指标接口",
  237. "responses": {
  238. "200": {
  239. "description": "",
  240. "schema": {
  241. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "/smm/add": {
  248. "post": {
  249. "tags": [
  250. "smm"
  251. ],
  252. "description": "新增有色指标接口",
  253. "operationId": "SmmController.新增有色指标接口",
  254. "responses": {
  255. "200": {
  256. "description": "",
  257. "schema": {
  258. "$ref": "#/definitions/models.AddEdbInfoReq"
  259. }
  260. }
  261. }
  262. }
  263. },
  264. "/smm/refresh": {
  265. "post": {
  266. "tags": [
  267. "smm"
  268. ],
  269. "description": "刷新有色指标接口",
  270. "operationId": "SmmController.刷新有色指标接口",
  271. "responses": {
  272. "200": {
  273. "description": "",
  274. "schema": {
  275. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  276. }
  277. }
  278. }
  279. }
  280. },
  281. "/ths/add": {
  282. "post": {
  283. "tags": [
  284. "ths"
  285. ],
  286. "description": "新增同花顺指标接口",
  287. "operationId": "ThsController.新增同花顺指标接口",
  288. "responses": {
  289. "200": {
  290. "description": "",
  291. "schema": {
  292. "$ref": "#/definitions/models.AddEdbInfoReq"
  293. }
  294. }
  295. }
  296. }
  297. },
  298. "/ths/refresh": {
  299. "post": {
  300. "tags": [
  301. "ths"
  302. ],
  303. "description": "刷新同花顺指标接口",
  304. "operationId": "ThsController.刷新同花顺指标接口",
  305. "responses": {
  306. "200": {
  307. "description": "",
  308. "schema": {
  309. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  310. }
  311. }
  312. }
  313. }
  314. },
  315. "/wind/add": {
  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.AddEdbInfoReq"
  327. }
  328. }
  329. }
  330. }
  331. },
  332. "/wind/refresh": {
  333. "post": {
  334. "tags": [
  335. "wind"
  336. ],
  337. "description": "刷新wind指标接口",
  338. "operationId": "WindController.刷新wind指标接口",
  339. "responses": {
  340. "200": {
  341. "description": "",
  342. "schema": {
  343. "$ref": "#/definitions/models.RefreshEdbInfoReq"
  344. }
  345. }
  346. }
  347. }
  348. }
  349. },
  350. "definitions": {
  351. "10348.0xc0004c0090.false": {
  352. "title": "false",
  353. "type": "object"
  354. },
  355. "models.AddEdbInfoReq": {
  356. "title": "AddEdbInfoReq",
  357. "type": "object",
  358. "properties": {
  359. "EdbCode": {
  360. "description": "指标编码",
  361. "type": "string"
  362. }
  363. }
  364. },
  365. "models.EdbInfoCalculateBatchSaveReq": {
  366. "title": "EdbInfoCalculateBatchSaveReq",
  367. "type": "object",
  368. "properties": {
  369. "AdminId": {
  370. "description": "添加人id",
  371. "type": "integer",
  372. "format": "int64"
  373. },
  374. "AdminName": {
  375. "description": "添加人名称",
  376. "type": "string"
  377. },
  378. "CalculateFormula": {
  379. "description": "计算公式",
  380. "type": "string"
  381. },
  382. "ClassifyId": {
  383. "description": "分类id",
  384. "type": "integer",
  385. "format": "int64"
  386. },
  387. "EdbInfoId": {
  388. "description": "指标id",
  389. "type": "integer",
  390. "format": "int64"
  391. },
  392. "EdbInfoIdArr": {
  393. "type": "array",
  394. "items": {
  395. "$ref": "#/definitions/10348.0xc0004c0090.false"
  396. }
  397. },
  398. "EdbName": {
  399. "description": "指标名称",
  400. "type": "string"
  401. },
  402. "Formula": {
  403. "description": "N值/移动天数",
  404. "type": "string"
  405. },
  406. "Frequency": {
  407. "description": "频度",
  408. "type": "string"
  409. },
  410. "FromEdbInfoId": {
  411. "description": "计算来源指标id",
  412. "type": "integer",
  413. "format": "int64"
  414. },
  415. "MoveFrequency": {
  416. "description": "移动频度:天/周/月/季/年",
  417. "type": "string"
  418. },
  419. "MoveType": {
  420. "description": "移动方式:1:领先(默认),2:滞后",
  421. "type": "integer",
  422. "format": "int64"
  423. },
  424. "Source": {
  425. "description": "来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频",
  426. "type": "integer",
  427. "format": "int64"
  428. },
  429. "Unit": {
  430. "description": "单位",
  431. "type": "string"
  432. }
  433. }
  434. },
  435. "models.EditEdbInfoReq": {
  436. "title": "EditEdbInfoReq",
  437. "type": "object"
  438. },
  439. "models.RefreshEdbInfoReq": {
  440. "title": "RefreshEdbInfoReq",
  441. "type": "object",
  442. "properties": {
  443. "EdbCode": {
  444. "description": "指标编码",
  445. "type": "string"
  446. },
  447. "EdbInfoId": {
  448. "description": "指标ID",
  449. "type": "integer",
  450. "format": "int64"
  451. },
  452. "StartDate": {
  453. "description": "开始日期",
  454. "type": "string"
  455. }
  456. }
  457. }
  458. },
  459. "tags": [
  460. {
  461. "name": "ths",
  462. "description": "同花顺\n"
  463. },
  464. {
  465. "name": "pb",
  466. "description": "彭博\n"
  467. },
  468. {
  469. "name": "wind",
  470. "description": "wind\n"
  471. },
  472. {
  473. "name": "lz",
  474. "description": "隆众\n"
  475. },
  476. {
  477. "name": "lt",
  478. "description": "路透社\n"
  479. },
  480. {
  481. "name": "smm",
  482. "description": "有色\n"
  483. },
  484. {
  485. "name": "mysteel",
  486. "description": "钢联\n"
  487. },
  488. {
  489. "name": "manual",
  490. "description": "手工指标\n"
  491. },
  492. {
  493. "name": "calculate",
  494. "description": "CalculateController 计算指标\n"
  495. }
  496. ]
  497. }