This commit is contained in:
@@ -39,9 +39,7 @@ export class PhoneAssetAssociationService extends BaseService {
|
|||||||
/**
|
/**
|
||||||
* 解除单条手机号资产关联
|
* 解除单条手机号资产关联
|
||||||
* DELETE /api/admin/phone-asset-associations/{id}
|
* DELETE /api/admin/phone-asset-associations/{id}
|
||||||
*
|
* 请求体:{ reason, confirmed }
|
||||||
* 注意:接口文档未定义请求体,reason 与 confirmed 当前按查询参数传递;
|
|
||||||
* 联调时若后端以 JSON body 接收,需调整为请求体方式。
|
|
||||||
*/
|
*/
|
||||||
static unbindAssociation(
|
static unbindAssociation(
|
||||||
id: number,
|
id: number,
|
||||||
@@ -50,7 +48,8 @@ export class PhoneAssetAssociationService extends BaseService {
|
|||||||
): Promise<BaseResponse<UnbindPhoneAssetAssociationResponse>> {
|
): Promise<BaseResponse<UnbindPhoneAssetAssociationResponse>> {
|
||||||
return this.delete<BaseResponse<UnbindPhoneAssetAssociationResponse>>(
|
return this.delete<BaseResponse<UnbindPhoneAssetAssociationResponse>>(
|
||||||
`/api/admin/phone-asset-associations/${id}`,
|
`/api/admin/phone-asset-associations/${id}`,
|
||||||
{ reason, confirmed }
|
undefined,
|
||||||
|
{ data: { reason, confirmed } }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user