This commit is contained in:
@@ -28,7 +28,9 @@ export class AccountService extends BaseService {
|
||||
* POST /api/admin/accounts
|
||||
* @param data 账号数据
|
||||
*/
|
||||
static createAccount(data: CreatePlatformAccountParams): Promise<BaseResponse<{ ID?: number; id?: number }>> {
|
||||
static createAccount(
|
||||
data: CreatePlatformAccountParams
|
||||
): Promise<BaseResponse<{ ID?: number; id?: number }>> {
|
||||
return this.create('/api/admin/accounts', data)
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@ import type {
|
||||
ImportIotCardRequest,
|
||||
ImportIotCardResponse,
|
||||
IotCardImportTask,
|
||||
IotCardImportTaskDetail
|
||||
IotCardImportTaskDetail,
|
||||
BatchSetCardSeriesBindingRequest,
|
||||
BatchSetCardSeriesBindingResponse
|
||||
} from '@/types/api'
|
||||
|
||||
export class CardService extends BaseService {
|
||||
@@ -360,11 +362,13 @@ export class CardService extends BaseService {
|
||||
* 批量设置卡的套餐系列绑定
|
||||
* @param data 请求参数
|
||||
*/
|
||||
static batchSetCardSeriesBinding(data: {
|
||||
iccids: string[]
|
||||
series_id: number
|
||||
}): Promise<BaseResponse<any>> {
|
||||
return this.patch('/api/admin/iot-cards/series-binding', data)
|
||||
static batchSetCardSeriesBinding(
|
||||
data: BatchSetCardSeriesBindingRequest
|
||||
): Promise<BaseResponse<BatchSetCardSeriesBindingResponse>> {
|
||||
return this.patch<BaseResponse<BatchSetCardSeriesBindingResponse>>(
|
||||
'/api/admin/iot-cards/series-binding',
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
// ========== IoT卡网关操作相关 ==========
|
||||
|
||||
@@ -15,6 +15,8 @@ import type {
|
||||
AllocateDevicesResponse,
|
||||
RecallDevicesRequest,
|
||||
RecallDevicesResponse,
|
||||
BatchSetDeviceSeriesBindingRequest,
|
||||
BatchSetDeviceSeriesBindingResponse,
|
||||
ImportDeviceRequest,
|
||||
ImportDeviceResponse,
|
||||
DeviceImportTaskQueryParams,
|
||||
@@ -158,11 +160,13 @@ export class DeviceService extends BaseService {
|
||||
* 批量设置设备的套餐系列绑定
|
||||
* @param data 请求参数
|
||||
*/
|
||||
static batchSetDeviceSeriesBinding(data: {
|
||||
device_ids: number[]
|
||||
series_id: number
|
||||
}): Promise<BaseResponse<any>> {
|
||||
return this.patch('/api/admin/devices/series-binding', data)
|
||||
static batchSetDeviceSeriesBinding(
|
||||
data: BatchSetDeviceSeriesBindingRequest
|
||||
): Promise<BaseResponse<BatchSetDeviceSeriesBindingResponse>> {
|
||||
return this.patch<BaseResponse<BatchSetDeviceSeriesBindingResponse>>(
|
||||
'/api/admin/devices/series-binding',
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
// ========== 设备操作相关 ==========
|
||||
|
||||
@@ -32,6 +32,7 @@ export class ShopService extends BaseService {
|
||||
static getShopsCascade(params?: {
|
||||
shop_name?: string
|
||||
parent_id?: number
|
||||
exclude_self?: boolean
|
||||
}): Promise<
|
||||
BaseResponse<
|
||||
Array<{
|
||||
|
||||
Reference in New Issue
Block a user