cb49789bf4
- Created a new RegisterResult.vue component for displaying registration success. - Added ESLint configuration for unit tests in the tests directory. - Implemented vue.config.js for webpack configuration, including theme color support and proxy settings for development.
41 lines
764 B
JavaScript
41 lines
764 B
JavaScript
import request from '@/utils/request'
|
|
|
|
const api = {
|
|
list: '/api/credentials/list',
|
|
get: '/api/credentials/get',
|
|
create: '/api/credentials/create',
|
|
delete: '/api/credentials/delete'
|
|
}
|
|
|
|
export function listExchangeCredentials (params = {}) {
|
|
return request({
|
|
url: api.list,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getExchangeCredential (id, params = {}) {
|
|
return request({
|
|
url: api.get,
|
|
method: 'get',
|
|
params: { id, ...params }
|
|
})
|
|
}
|
|
|
|
export function createExchangeCredential (data) {
|
|
return request({
|
|
url: api.create,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function deleteExchangeCredential (id, params = {}) {
|
|
return request({
|
|
url: api.delete,
|
|
method: 'delete',
|
|
params: { id, ...params }
|
|
})
|
|
}
|