This commit is contained in:
@@ -27,10 +27,10 @@ import type {
|
||||
import type {
|
||||
EnterpriseDeviceListParams,
|
||||
EnterpriseDevicePageResult,
|
||||
AllocateDevicesRequest,
|
||||
AllocateDevicesResponse,
|
||||
RecallDevicesRequest,
|
||||
RecallDevicesResponse
|
||||
EnterpriseAllocateDevicesRequest,
|
||||
EnterpriseAllocateDevicesResponse,
|
||||
EnterpriseRecallDevicesRequest,
|
||||
EnterpriseRecallDevicesResponse
|
||||
} from '@/types/api/enterpriseDevice'
|
||||
|
||||
export class EnterpriseService extends BaseService {
|
||||
@@ -171,9 +171,9 @@ export class EnterpriseService extends BaseService {
|
||||
*/
|
||||
static allocateDevices(
|
||||
enterpriseId: number,
|
||||
data: AllocateDevicesRequest
|
||||
): Promise<BaseResponse<AllocateDevicesResponse>> {
|
||||
return this.post<BaseResponse<AllocateDevicesResponse>>(
|
||||
data: EnterpriseAllocateDevicesRequest
|
||||
): Promise<BaseResponse<EnterpriseAllocateDevicesResponse>> {
|
||||
return this.post<BaseResponse<EnterpriseAllocateDevicesResponse>>(
|
||||
`/api/admin/enterprises/${enterpriseId}/allocate-devices`,
|
||||
data
|
||||
)
|
||||
@@ -201,9 +201,9 @@ export class EnterpriseService extends BaseService {
|
||||
*/
|
||||
static recallDevices(
|
||||
enterpriseId: number,
|
||||
data: RecallDevicesRequest
|
||||
): Promise<BaseResponse<RecallDevicesResponse>> {
|
||||
return this.post<BaseResponse<RecallDevicesResponse>>(
|
||||
data: EnterpriseRecallDevicesRequest
|
||||
): Promise<BaseResponse<EnterpriseRecallDevicesResponse>> {
|
||||
return this.post<BaseResponse<EnterpriseRecallDevicesResponse>>(
|
||||
`/api/admin/enterprises/${enterpriseId}/recall-devices`,
|
||||
data
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user