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

@@ -135,10 +135,23 @@ export interface ShopPackageAllocationResponse extends PackageAllocationExpiryBa
cost_price: number
}
// 批量创建店铺套餐分配请求
export interface CreateShopPackageBatchAllocationsRequest {
shop_id: number
package_ids: number[]
cost_price?: number
expiry_base_override: PackageAllocationExpiryBaseOverride | null
}
// 批量创建店铺套餐分配响应
export interface ShopPackageBatchAllocationsResponse {
allocations: ShopPackageAllocationResponse[]
}
/**
* 套餐响应
*/
export interface PackageResponse {
export interface PackageResponse extends PackageAllocationExpiryBaseFields {
id: number
package_code: string
package_name: string
@@ -323,7 +336,8 @@ export interface CreateShopSeriesGrantRequest {
commission_tiers?: CommissionTier[] // 梯度配置列表,梯度模式时必填
enable_force_recharge?: boolean // 是否启用强充
force_recharge_amount?: number // 强充金额(分)
packages?: GrantPackageInfo[] // 套餐列表
packages?: GrantPackageItem[] // 套餐列表
expiry_base_override: PackageAllocationExpiryBaseOverride | null
}
/**
@@ -342,6 +356,7 @@ export interface UpdateShopSeriesGrantRequest {
export interface GrantPackageItem {
package_id?: number // 套餐ID
cost_price?: number // 成本价(分)
expiry_base_override?: PackageAllocationExpiryBaseOverride | null
remove?: boolean | null // 是否删除该套餐授权true=删除)
}
@@ -350,4 +365,5 @@ export interface GrantPackageItem {
*/
export interface ManageGrantPackagesRequest {
packages?: GrantPackageItem[] | null // 套餐操作列表
expiry_base_override: PackageAllocationExpiryBaseOverride | null // 新增套餐统一生效条件
}