사용자 삭제 API 메소드를 POST로 변경
변경 사항:
- axios.delete → axios.post로 변경
- POST /api/v1/nmsa/user/delete/{usrid}
- Request Body: { "mid": "xxx", "usrid": "xxx" }
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -33,14 +33,17 @@ export const userDelete = async (params: UserDeleteParams): Promise<UserDeleteMu
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
},
|
||||
data: {
|
||||
mid: params.mid,
|
||||
usrid: params.usrid
|
||||
}
|
||||
};
|
||||
try {
|
||||
const response = await axios.delete<UserDeleteResponse>(API_URL_USER.deleteUser(params.usrid), options);
|
||||
const response = await axios.post<UserDeleteResponse>(
|
||||
API_URL_USER.deleteUser(params.usrid),
|
||||
{
|
||||
mid: params.mid,
|
||||
usrid: params.usrid
|
||||
},
|
||||
options
|
||||
);
|
||||
return { status: true, data: response.data };
|
||||
} catch (error: any) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user