fix: 完善套餐分配生效条件选择
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m30s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m30s
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
import { BaseService } from '../BaseService'
|
||||
import type {
|
||||
BaseResponse,
|
||||
CreateShopPackageBatchAllocationsRequest,
|
||||
CreateShopPackageAllocationRequest,
|
||||
ShopPackageAllocationResponse,
|
||||
ShopPackageBatchAllocationsResponse,
|
||||
UpdateShopPackageAllocationExpiryBaseRequest
|
||||
} from '@/types/api'
|
||||
|
||||
@@ -24,6 +26,19 @@ export class ShopPackageAllocationService extends BaseService {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量创建店铺套餐分配
|
||||
* POST /api/admin/shop-package-batch-allocations
|
||||
*/
|
||||
static createShopPackageBatchAllocations(
|
||||
data: CreateShopPackageBatchAllocationsRequest
|
||||
): Promise<BaseResponse<ShopPackageBatchAllocationsResponse>> {
|
||||
return this.post<BaseResponse<ShopPackageBatchAllocationsResponse>>(
|
||||
'/api/admin/shop-package-batch-allocations',
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新店铺套餐分配生效条件
|
||||
* PATCH /api/admin/shop-package-allocations/{id}/expiry-base
|
||||
|
||||
Reference in New Issue
Block a user