fix: 完善套餐分配生效条件选择
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m30s

This commit is contained in:
luo
2026-07-24 17:42:36 +08:00
parent d1ff4d5f6c
commit eb13763020
8 changed files with 1649 additions and 90 deletions

View File

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