mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
feat: 更新商品管理功能,添加虚拟礼物多Key支持和排序功能
- 在商品模型中添加密钥选择模式和虚拟密钥列表 - 更新商品展示组件,支持置顶标记和价格徽章 - 优化商品管理视图,添加排序功能和清空筛选条件的功能 - 改进礼物添加表单,增加输入验证和错误提示
This commit is contained in:
@@ -650,6 +650,14 @@ export enum GoodsTypes {
|
||||
Physical,
|
||||
Virtual
|
||||
}
|
||||
|
||||
// 添加密钥选择模式枚举
|
||||
export enum KeySelectionMode {
|
||||
None,
|
||||
Random, // 随机选择
|
||||
Sequential // 顺序选择
|
||||
}
|
||||
|
||||
export interface PointGoodsSetting {
|
||||
guardFree?: { year: number; month: number }
|
||||
allowGuardLevel?: GuardLevel
|
||||
@@ -670,16 +678,22 @@ export interface ResponsePointGoodModel {
|
||||
maxBuyCount?: number
|
||||
collectUrl?: string
|
||||
embedCollectUrl?: boolean
|
||||
isPinned: boolean
|
||||
|
||||
canFreeBuy: boolean
|
||||
allowGuardLevel: GuardLevel
|
||||
setting: PointGoodsSetting
|
||||
|
||||
// 添加虚拟礼物多Key支持
|
||||
virtualKeys?: string[]
|
||||
keySelectionMode?: KeySelectionMode
|
||||
currentKeyIndex?: number
|
||||
}
|
||||
export interface ImageUploadModel {
|
||||
existImages: string[]
|
||||
newImagesBase64: string[]
|
||||
}
|
||||
export interface PointGoodsModel {
|
||||
export interface UploadPointGoodsModel {
|
||||
id?: number
|
||||
name: string
|
||||
count?: number
|
||||
@@ -694,8 +708,14 @@ export interface PointGoodsModel {
|
||||
content?: string
|
||||
isAllowRebuy: boolean
|
||||
maxBuyCount?: number
|
||||
isPinned: boolean
|
||||
|
||||
setting: PointGoodsSetting
|
||||
|
||||
// 添加虚拟礼物多Key支持
|
||||
virtualKeys?: string[]
|
||||
keySelectionMode?: KeySelectionMode
|
||||
currentKeyIndex?: number
|
||||
}
|
||||
export interface AddressInfo {
|
||||
id?: string
|
||||
|
||||
Reference in New Issue
Block a user