@@ -46,7 +46,7 @@ export type ResPage<T> = {
records: T[];
};
-export type ResResult<T> = {
+export type ResResult = {
code: number
data: any
message: any
@@ -54,7 +54,7 @@ export const updateUserStatusFetch = (params: Pick<UserType, 'userId' | 'status'
});
export const getMsgAuthCode = (areaNum: string,
phoneNum: string) =>
- sendFetch<ResResult<{}>>(URL.getMsgAuthCode, {
+ sendFetch<ResResult>(URL.getMsgAuthCode, {
method: "post",
body: JSON.stringify({
areaNum,