fix: 单个解绑
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 54s

This commit is contained in:
luo
2026-10-07 17:16:19 +08:00
parent 2c64957e55
commit 2f23aeaaba

View File

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