更新swagger
This commit is contained in:
@@ -9,7 +9,7 @@ export class DeviceApi {
|
||||
* @returns {Promise} 设备列表
|
||||
*/
|
||||
static list() {
|
||||
return http.get('/devices');
|
||||
return http.get('/api/v1/devices');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -18,7 +18,7 @@ export class DeviceApi {
|
||||
* @returns {Promise} 创建结果
|
||||
*/
|
||||
static create(deviceData) {
|
||||
return http.post('/devices', deviceData);
|
||||
return http.post('/api/v1/devices', deviceData);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ export class DeviceApi {
|
||||
* @returns {Promise} 设备详情
|
||||
*/
|
||||
static get(id) {
|
||||
return http.get(`/devices/${id}`);
|
||||
return http.get(`/api/v1/devices/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +37,7 @@ export class DeviceApi {
|
||||
* @returns {Promise} 更新结果
|
||||
*/
|
||||
static update(id, deviceData) {
|
||||
return http.put(`/devices/${id}`, deviceData);
|
||||
return http.put(`/api/v1/devices/${id}`, deviceData);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ export class DeviceApi {
|
||||
* @returns {Promise} 删除结果
|
||||
*/
|
||||
static delete(id) {
|
||||
return http.delete(`/devices/${id}`);
|
||||
return http.delete(`/api/v1/devices/${id}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user