feat:更换企业授权
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m41s

This commit is contained in:
luo
2026-06-22 10:36:33 +08:00
parent 866a2587b3
commit d3b5f55c64
34 changed files with 2478 additions and 3335 deletions

View File

@@ -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
)