This commit is contained in:
@@ -78,6 +78,9 @@ export * from './agentRecharge'
|
||||
// 支付设置相关
|
||||
export * from './paymentSettings'
|
||||
|
||||
// 系统配置相关
|
||||
export * from './systemConfig'
|
||||
|
||||
// 退款管理相关
|
||||
export * from './refund'
|
||||
|
||||
|
||||
@@ -336,8 +336,8 @@ export interface CreateShopSeriesGrantRequest {
|
||||
commission_tiers?: CommissionTier[] // 梯度配置列表,梯度模式时必填
|
||||
enable_force_recharge?: boolean // 是否启用强充
|
||||
force_recharge_amount?: number // 强充金额(分)
|
||||
packages?: GrantPackageItem[] // 套餐列表
|
||||
expiry_base_override: PackageAllocationExpiryBaseOverride | null
|
||||
packages: GrantPackageItem[] // 初始套餐列表,1~100项
|
||||
expiry_base_override?: PackageAllocationExpiryBaseOverride | null
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -354,7 +354,7 @@ export interface UpdateShopSeriesGrantRequest {
|
||||
* 管理套餐请求中的套餐项
|
||||
*/
|
||||
export interface GrantPackageItem {
|
||||
package_id?: number // 套餐ID
|
||||
package_id: number // 套餐ID
|
||||
cost_price?: number // 成本价(分)
|
||||
expiry_base_override?: PackageAllocationExpiryBaseOverride | null
|
||||
remove?: boolean | null // 是否删除该套餐授权(true=删除)
|
||||
@@ -364,6 +364,6 @@ export interface GrantPackageItem {
|
||||
* 管理套餐请求
|
||||
*/
|
||||
export interface ManageGrantPackagesRequest {
|
||||
packages?: GrantPackageItem[] | null // 套餐操作列表
|
||||
expiry_base_override: PackageAllocationExpiryBaseOverride | null // 新增套餐统一生效条件
|
||||
packages: GrantPackageItem[] // 套餐操作列表,1~100项
|
||||
expiry_base_override?: PackageAllocationExpiryBaseOverride | null // 新增套餐统一生效条件
|
||||
}
|
||||
|
||||
37
src/types/api/systemConfig.ts
Normal file
37
src/types/api/systemConfig.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { PaginationParams } from './common'
|
||||
|
||||
export type SystemConfigModule = 'carrier_callback' | 'c2b.payment'
|
||||
|
||||
export type SystemConfigValueType = 'string' | 'int' | 'bool' | 'json'
|
||||
|
||||
export interface SystemConfigItem {
|
||||
config_key: string
|
||||
module: SystemConfigModule
|
||||
value: string
|
||||
value_type: SystemConfigValueType
|
||||
description: string
|
||||
control: string
|
||||
enum_values: string[]
|
||||
min: number | null
|
||||
max: number | null
|
||||
readonly: boolean
|
||||
registered: boolean
|
||||
sensitive: boolean
|
||||
updated_at: string | null
|
||||
}
|
||||
|
||||
export interface SystemConfigQueryParams extends PaginationParams {
|
||||
module?: SystemConfigModule
|
||||
}
|
||||
|
||||
export interface SystemConfigPageResult {
|
||||
list: SystemConfigItem[]
|
||||
page: number
|
||||
page_size: number
|
||||
total: number
|
||||
}
|
||||
|
||||
export interface UpdateSystemConfigRequest {
|
||||
key: string
|
||||
value: string
|
||||
}
|
||||
Reference in New Issue
Block a user