diff --git a/src/api/invest/futuresDailyHistory.js b/src/api/invest/futuresDailyHistory.js new file mode 100644 index 0000000..021ab1b --- /dev/null +++ b/src/api/invest/futuresDailyHistory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询期货日行情历史列表 +export function listFuturesDailyHistory(query) { + return request({ + url: '/invest/futuresDailyHistory/list', + method: 'get', + params: query + }) +} + +// 查询期货日行情历史详细 +export function getFuturesDailyHistory(id) { + return request({ + url: '/invest/futuresDailyHistory/' + id, + method: 'get' + }) +} + +// 新增期货日行情历史 +export function addFuturesDailyHistory(data) { + return request({ + url: '/invest/futuresDailyHistory', + method: 'post', + data + }) +} + +// 修改期货日行情历史 +export function updateFuturesDailyHistory(data) { + return request({ + url: '/invest/futuresDailyHistory', + method: 'put', + data + }) +} + +// 删除期货日行情历史 +export function delFuturesDailyHistory(id) { + return request({ + url: '/invest/futuresDailyHistory/' + id, + method: 'delete' + }) +} diff --git a/src/api/invest/stocksDailyHistory.js b/src/api/invest/stocksDailyHistory.js new file mode 100644 index 0000000..b84e3d4 --- /dev/null +++ b/src/api/invest/stocksDailyHistory.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询股票日行情历史列表 +export function listStocksDailyHistory(query) { + return request({ + url: '/invest/stocksDailyHistory/list', + method: 'get', + params: query + }) +} + +// 查询股票日行情历史详细 +export function getStocksDailyHistory(id) { + return request({ + url: '/invest/stocksDailyHistory/' + id, + method: 'get' + }) +} + +// 新增股票日行情历史 +export function addStocksDailyHistory(data) { + return request({ + url: '/invest/stocksDailyHistory', + method: 'post', + data + }) +} + +// 修改股票日行情历史 +export function updateStocksDailyHistory(data) { + return request({ + url: '/invest/stocksDailyHistory', + method: 'put', + data + }) +} + +// 删除股票日行情历史 +export function delStocksDailyHistory(id) { + return request({ + url: '/invest/stocksDailyHistory/' + id, + method: 'delete' + }) +} + +// 同步股票日行情历史列表 +export function synStocksDailyHistory(query) { + return request({ + url: '/invest/stocksDailyHistory/synStocksDailyHistory', + method: 'get', + params: query + }) +} diff --git a/src/views/invest/exchange/index.vue b/src/views/invest/exchange/index.vue index d2a8d38..8d3dddd 100644 --- a/src/views/invest/exchange/index.vue +++ b/src/views/invest/exchange/index.vue @@ -33,8 +33,9 @@ - + +