api result 부분 수정
This commit is contained in:
@@ -52,7 +52,7 @@ export const BlackListDelete = async (token, params) => {
|
|||||||
data: { list: params },
|
data: { list: params },
|
||||||
});
|
});
|
||||||
|
|
||||||
return res;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
throw new Error('BlackListDelete', e);
|
throw new Error('BlackListDelete', e);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export const EventModify = async (token, id, params) => {
|
|||||||
headers: { Authorization: `Bearer ${token}` },
|
headers: { Authorization: `Bearer ${token}` },
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.data.data.list;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
throw new Error('EventModify Error', e);
|
throw new Error('EventModify Error', e);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export const MailModify = async (token, id, params) => {
|
|||||||
headers: { Authorization: `Bearer ${token}` },
|
headers: { Authorization: `Bearer ${token}` },
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.data.data.list;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
throw new Error('MailModify Error', e);
|
throw new Error('MailModify Error', e);
|
||||||
@@ -88,7 +88,7 @@ export const MailDelete = async (token, params, id) => {
|
|||||||
data: { list: params },
|
data: { list: params },
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.data.data.list;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
throw new Error('MailDelete Error', e);
|
throw new Error('MailDelete Error', e);
|
||||||
@@ -147,7 +147,7 @@ export const MailIsItem = async (token, params) => {
|
|||||||
headers: { Authorization: `Bearer ${token}` },
|
headers: { Authorization: `Bearer ${token}` },
|
||||||
});
|
});
|
||||||
|
|
||||||
return res;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
throw new Error('MailItemCheck Error', e);
|
throw new Error('MailItemCheck Error', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user