You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
568 B

import request from '@/utils/request';
const apiPrefix = '/api/vgpu';
class nodeApi {
getNodeList(data) {
return {
url: apiPrefix + '/v1/nodes',
method: 'POST',
data,
};
}
getNodes(data) {
return request({
url: apiPrefix + '/v1/nodes',
method: 'POST',
data,
});
}
getNodeDetail(params) {
return request({
url: apiPrefix + '/v1/node',
method: 'GET',
params,
});
}
getNodeListReq(data) {
return request(this.getNodeList(data));
}
}
export default new nodeApi();