feat: 新增更新资产实名认证策略
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m5s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m5s
This commit is contained in:
@@ -201,4 +201,19 @@ export class AssetService extends BaseService {
|
||||
params
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产实名认证策略
|
||||
* PATCH /api/admin/assets/:identifier/realname-mode
|
||||
* @param identifier 资产标识符(ICCID 或 VirtualNo)
|
||||
* @param realname_policy 实名认证策略 (none:无需实名, before_order:先实名后充值/购买, after_order:先充值/购买后实名)
|
||||
*/
|
||||
static updateRealnamePolicy(
|
||||
identifier: string,
|
||||
realname_policy: string
|
||||
): Promise<BaseResponse> {
|
||||
return this.patch<BaseResponse>(`/api/admin/assets/${identifier}/realname-mode`, {
|
||||
realname_policy
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user