feat: 套餐分配生效条件选择
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 9m23s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 9m23s
This commit is contained in:
@@ -101,6 +101,40 @@ export interface CommissionTierInfo {
|
||||
*/
|
||||
export type ExpiryBase = 'from_activation' | 'from_purchase'
|
||||
|
||||
// 套餐分配生效条件覆盖值
|
||||
export type PackageAllocationExpiryBaseOverride = 'from_purchase' | 'from_realname'
|
||||
|
||||
// 店铺套餐分配生效条件字段
|
||||
export interface PackageAllocationExpiryBaseFields {
|
||||
default_expiry_base?: string | null
|
||||
default_expiry_base_name?: string | null
|
||||
expiry_base_override?: PackageAllocationExpiryBaseOverride | null
|
||||
expiry_base_override_name?: string | null
|
||||
effective_expiry_base?: string | null
|
||||
effective_expiry_base_name?: string | null
|
||||
}
|
||||
|
||||
// 创建店铺套餐分配请求
|
||||
export interface CreateShopPackageAllocationRequest {
|
||||
shop_id: number
|
||||
package_id: number
|
||||
cost_price: number
|
||||
expiry_base_override: PackageAllocationExpiryBaseOverride | null
|
||||
}
|
||||
|
||||
// 更新店铺套餐分配生效条件请求
|
||||
export interface UpdateShopPackageAllocationExpiryBaseRequest {
|
||||
expiry_base_override: PackageAllocationExpiryBaseOverride | null
|
||||
}
|
||||
|
||||
// 店铺套餐分配响应
|
||||
export interface ShopPackageAllocationResponse extends PackageAllocationExpiryBaseFields {
|
||||
id: number
|
||||
shop_id: number
|
||||
package_id: number
|
||||
cost_price: number
|
||||
}
|
||||
|
||||
/**
|
||||
* 套餐响应
|
||||
*/
|
||||
@@ -234,7 +268,8 @@ export interface CommissionTier {
|
||||
/**
|
||||
* 套餐信息(用于系列授权)
|
||||
*/
|
||||
export interface GrantPackageInfo {
|
||||
export interface GrantPackageInfo extends PackageAllocationExpiryBaseFields {
|
||||
allocation_id?: number
|
||||
package_id: number
|
||||
package_name?: string
|
||||
package_code?: string
|
||||
|
||||
1
src/types/auto-imports.d.ts
vendored
1
src/types/auto-imports.d.ts
vendored
@@ -8,6 +8,7 @@ export {}
|
||||
declare global {
|
||||
const EffectScope: typeof import('vue')['EffectScope']
|
||||
const ElButton: (typeof import('element-plus/es'))['ElButton']
|
||||
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
||||
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
|
||||
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
||||
|
||||
Reference in New Issue
Block a user