更新swagger

This commit is contained in:
2025-09-19 15:59:44 +08:00
parent 7138838183
commit 3e13b4f7b0
4 changed files with 15 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ export class PlanApi {
* @returns {Promise} 计划列表
*/
static list() {
return http.get('/plans');
return http.get('/api/v1/plans');
}
/**
@@ -18,7 +18,7 @@ export class PlanApi {
* @returns {Promise} 创建结果
*/
static create(planData) {
return http.post('/plans', planData);
return http.post('/api/v1/plans', planData);
}
/**
@@ -27,7 +27,7 @@ export class PlanApi {
* @returns {Promise} 计划详情
*/
static get(id) {
return http.get(`/plans/${id}`);
return http.get(`/api/v1/plans/${id}`);
}
/**
@@ -37,7 +37,7 @@ export class PlanApi {
* @returns {Promise} 更新结果
*/
static update(id, planData) {
return http.put(`/plans/${id}`, planData);
return http.put(`/api/v1/plans/${id}`, planData);
}
/**
@@ -46,7 +46,7 @@ export class PlanApi {
* @returns {Promise} 删除结果
*/
static delete(id) {
return http.delete(`/plans/${id}`);
return http.delete(`/api/v1/plans/${id}`);
}
/**
@@ -55,7 +55,7 @@ export class PlanApi {
* @returns {Promise} 启动结果
*/
static start(id) {
return http.post(`/plans/${id}/start`);
return http.post(`/api/v1/plans/${id}/start`);
}
/**
@@ -64,7 +64,7 @@ export class PlanApi {
* @returns {Promise} 停止结果
*/
static stop(id) {
return http.post(`/plans/${id}/stop`);
return http.post(`/api/v1/plans/${id}/stop`);
}
}