mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user