This commit is contained in:
六如
2024-10-19 20:27:16 +08:00
parent 17bc2d5ca8
commit 0cbadbeda8
25 changed files with 487 additions and 118 deletions

View File

@@ -26,27 +26,27 @@ export const api: any = {
* @param data 表单内容
*/
add(data: object) {
return http.post<Result, any>(apiUrl.add, { data });
return http.post<Result<any>, any>(apiUrl.add, { data });
},
/**
* 修改
* @param data 表单内容
*/
update(data: object) {
return http.post<Result, any>(apiUrl.update, { data });
return http.post<Result<any>, any>(apiUrl.update, { data });
},
/**
* 删除
* @param data 表单内容
*/
del(data: object) {
return http.post<Result, any>(apiUrl.del, { data });
return http.post<Result<any>, any>(apiUrl.del, { data });
},
/**
* 修改状态
* @param data 表单内容
*/
updateStatus(data: object) {
return http.post<Result, any>(apiUrl.updateStatus, { data });
return http.post<Result<any>, any>(apiUrl.updateStatus, { data });
}
};