diff --git a/src/api/user/coin.js b/src/api/user/coin.js new file mode 100644 index 0000000..9a3d833 --- /dev/null +++ b/src/api/user/coin.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询币种配置列表 +export function listCoin(query) { + return request({ + url: '/user/coin/list', + method: 'get', + params: query + }) +} + +// 查询币种配置详细 +export function getCoin(id) { + return request({ + url: '/user/coin/' + id, + method: 'get' + }) +} + +// 新增币种配置 +export function addCoin(data) { + return request({ + url: '/user/coin', + method: 'post', + data: data + }) +} + +// 修改币种配置 +export function updateCoin(data) { + return request({ + url: '/user/coin', + method: 'put', + data: data + }) +} + +// 删除币种配置 +export function delCoin(id) { + return request({ + url: '/user/coin/' + id, + method: 'delete' + }) +} + +// 导出币种配置 +export function exportCoin(query) { + return request({ + url: '/user/coin/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/user/coin/index.vue b/src/views/user/coin/index.vue new file mode 100644 index 0000000..7178e12 --- /dev/null +++ b/src/views/user/coin/index.vue @@ -0,0 +1,405 @@ + + +