fetch(add): 新增企业设备授权
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m25s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m25s
This commit is contained in:
@@ -23,7 +23,6 @@ export { DeviceService } from './device'
|
||||
export { CarrierService } from './carrier'
|
||||
export { PackageSeriesService } from './packageSeries'
|
||||
export { PackageManageService } from './packageManage'
|
||||
export { MyPackageService } from './myPackage'
|
||||
export { ShopPackageAllocationService } from './shopPackageAllocation'
|
||||
export { ShopSeriesAllocationService } from './shopSeriesAllocation'
|
||||
export { OrderService } from './order'
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/**
|
||||
* 代理可售套餐 API 服务
|
||||
*/
|
||||
|
||||
import { BaseService } from '../BaseService'
|
||||
import type {
|
||||
MyPackageResponse,
|
||||
MyPackageQueryParams,
|
||||
MySeriesAllocationResponse,
|
||||
BaseResponse,
|
||||
PaginationResponse
|
||||
} from '@/types/api'
|
||||
|
||||
export class MyPackageService extends BaseService {
|
||||
/**
|
||||
* 获取我的可售套餐列表
|
||||
* GET /api/admin/my-packages
|
||||
* @param params 查询参数
|
||||
*/
|
||||
static getMyPackages(
|
||||
params?: MyPackageQueryParams
|
||||
): Promise<PaginationResponse<MyPackageResponse>> {
|
||||
return this.getPage<MyPackageResponse>('/api/admin/my-packages', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我的可售套餐详情
|
||||
* GET /api/admin/my-packages/{id}
|
||||
* @param id 套餐ID
|
||||
*/
|
||||
static getMyPackageDetail(id: number): Promise<BaseResponse<MyPackageResponse>> {
|
||||
return this.getOne<MyPackageResponse>(`/api/admin/my-packages/${id}`)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我的被分配系列列表
|
||||
* GET /api/admin/my-series-allocations
|
||||
* @param params 查询参数(支持分页)
|
||||
*/
|
||||
static getMySeriesAllocations(
|
||||
params?: Record<string, any>
|
||||
): Promise<PaginationResponse<MySeriesAllocationResponse>> {
|
||||
return this.getPage<MySeriesAllocationResponse>('/api/admin/my-series-allocations', params)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user