refactor(http): 统一HTTP方法命名并添加消息提示功能

将大写的HTTP方法改为小写命名以提高一致性
添加带消息提示的HTTP方法变体
This commit is contained in:
dap
2026-01-19 19:15:43 +08:00
parent 736fa21410
commit fcc3daf904
2 changed files with 29 additions and 8 deletions

View File

@@ -49,10 +49,15 @@ declare module 'alova' {
* 添加withMessage方法 用于success弹窗
*/
interface Alova {
GetWithMessage: GetType;
PostWithMessage: PostType;
PutWithMessage: PutType;
DeleteWithMessage: DeleteType;
get: GetType;
post: PostType;
put: PutType;
delete: DeleteType;
// 添加withMessage方法 用于弹出message提示
getWithMsg: GetType;
postWithMsg: PostType;
putWithMsg: PutType;
deleteWithMsg: DeleteType;
}
}