新增
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m7s

This commit is contained in:
sexygoat
2026-03-19 18:32:02 +08:00
parent 407287f538
commit f06d8c9133
22 changed files with 2260 additions and 117 deletions

View File

@@ -381,4 +381,28 @@ export class CardService extends BaseService {
`/api/admin/iot-cards/${iccid}/realname-link`
)
}
/**
* 启用 IoT 卡
* @param id IoT卡ID
*/
static enableIotCard(id: number): Promise<BaseResponse> {
return this.post<BaseResponse>(`/api/admin/iot-cards/${id}/enable`, {})
}
/**
* 停用 IoT 卡
* @param id IoT卡ID
*/
static disableIotCard(id: number): Promise<BaseResponse> {
return this.post<BaseResponse>(`/api/admin/iot-cards/${id}/disable`, {})
}
/**
* 手动停用 IoT 卡
* @param id IoT卡ID
*/
static deactivateIotCard(id: number): Promise<BaseResponse> {
return this.patch<BaseResponse>(`/api/admin/iot-cards/${id}/deactivate`, {})
}
}