sa2kit 1.6.52 → 1.6.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/booking-BXtkG2ns.d.mts +386 -0
- package/dist/booking-BXtkG2ns.d.ts +386 -0
- package/dist/bookingAdminService-B2QDjSHJ.d.ts +193 -0
- package/dist/bookingAdminService-Dmg7dC6V.d.mts +193 -0
- package/dist/cart-CcZ7rQyG.d.mts +176 -0
- package/dist/cart-D3o67Q3H.d.ts +176 -0
- package/dist/chunk-53WLQ22S.js +119 -0
- package/dist/chunk-53WLQ22S.js.map +1 -0
- package/dist/{chunk-SHY424RZ.mjs → chunk-6NMIKAE7.mjs} +3 -3
- package/dist/{chunk-SHY424RZ.mjs.map → chunk-6NMIKAE7.mjs.map} +1 -1
- package/dist/chunk-ANKVXRPY.mjs +30 -0
- package/dist/chunk-ANKVXRPY.mjs.map +1 -0
- package/dist/{chunk-IZOIVYOW.js → chunk-DENROXAE.js} +2 -2
- package/dist/{chunk-IZOIVYOW.js.map → chunk-DENROXAE.js.map} +1 -1
- package/dist/chunk-HYZ5C6FY.mjs +3522 -0
- package/dist/chunk-HYZ5C6FY.mjs.map +1 -0
- package/dist/{chunk-7JN25DJB.js → chunk-IPY26RQH.js} +11 -11
- package/dist/{chunk-7JN25DJB.js.map → chunk-IPY26RQH.js.map} +1 -1
- package/dist/{chunk-GFVAIT6Y.mjs → chunk-MFG2Y6UR.mjs} +2 -2
- package/dist/{chunk-GFVAIT6Y.mjs.map → chunk-MFG2Y6UR.mjs.map} +1 -1
- package/dist/chunk-TJZDPOO7.js +34 -0
- package/dist/chunk-TJZDPOO7.js.map +1 -0
- package/dist/chunk-U7AQC2Z7.js +3542 -0
- package/dist/chunk-U7AQC2Z7.js.map +1 -0
- package/dist/chunk-UR5TU4MW.mjs +113 -0
- package/dist/chunk-UR5TU4MW.mjs.map +1 -0
- package/dist/chunk-V6BXO6ZS.mjs +6107 -0
- package/dist/chunk-V6BXO6ZS.mjs.map +1 -0
- package/dist/chunk-W2NCOORK.js +6138 -0
- package/dist/chunk-W2NCOORK.js.map +1 -0
- package/dist/showmasterpiece/db/index.d.mts +3028 -0
- package/dist/showmasterpiece/db/index.d.ts +3028 -0
- package/dist/showmasterpiece/db/index.js +179 -0
- package/dist/showmasterpiece/db/index.js.map +1 -0
- package/dist/showmasterpiece/db/index.mjs +6 -0
- package/dist/showmasterpiece/db/index.mjs.map +1 -0
- package/dist/showmasterpiece/index.d.mts +10 -1729
- package/dist/showmasterpiece/index.d.ts +10 -1729
- package/dist/showmasterpiece/index.js +435 -9654
- package/dist/showmasterpiece/index.js.map +1 -1
- package/dist/showmasterpiece/index.mjs +9 -9628
- package/dist/showmasterpiece/index.mjs.map +1 -1
- package/dist/showmasterpiece/logic/index.d.mts +372 -0
- package/dist/showmasterpiece/logic/index.d.ts +372 -0
- package/dist/showmasterpiece/logic/index.js +91 -0
- package/dist/showmasterpiece/logic/index.js.map +1 -0
- package/dist/showmasterpiece/logic/index.mjs +6 -0
- package/dist/showmasterpiece/logic/index.mjs.map +1 -0
- package/dist/showmasterpiece/server/index.d.mts +3 -2704
- package/dist/showmasterpiece/server/index.d.ts +3 -2704
- package/dist/showmasterpiece/server/index.js +43 -43
- package/dist/showmasterpiece/server/index.mjs +2 -2
- package/dist/showmasterpiece/ui/miniapp/index.d.mts +86 -0
- package/dist/showmasterpiece/ui/miniapp/index.d.ts +86 -0
- package/dist/showmasterpiece/ui/miniapp/index.js +196 -0
- package/dist/showmasterpiece/ui/miniapp/index.js.map +1 -0
- package/dist/showmasterpiece/ui/miniapp/index.mjs +183 -0
- package/dist/showmasterpiece/ui/miniapp/index.mjs.map +1 -0
- package/dist/showmasterpiece/ui/web/index.d.mts +600 -0
- package/dist/showmasterpiece/ui/web/index.d.ts +600 -0
- package/dist/showmasterpiece/ui/web/index.js +131 -0
- package/dist/showmasterpiece/ui/web/index.js.map +1 -0
- package/dist/showmasterpiece/ui/web/index.mjs +14 -0
- package/dist/showmasterpiece/ui/web/index.mjs.map +1 -0
- package/dist/universalFile/server/index.js +5877 -283
- package/dist/universalFile/server/index.js.map +1 -1
- package/dist/universalFile/server/index.mjs +5795 -4
- package/dist/universalFile/server/index.mjs.map +1 -1
- package/package.json +26 -1
- package/dist/chunk-PKKIDPXE.mjs +0 -5797
- package/dist/chunk-PKKIDPXE.mjs.map +0 -1
- package/dist/chunk-TSTBLX6B.js +0 -5888
- package/dist/chunk-TSTBLX6B.js.map +0 -1
- package/dist/popupConfig-BznThU1O.d.mts +0 -330
- package/dist/popupConfig-BznThU1O.d.ts +0 -330
- package/dist/showmasterpiece/migration/index.d.mts +0 -120
- package/dist/showmasterpiece/migration/index.d.ts +0 -120
- package/dist/showmasterpiece/migration/index.js +0 -595
- package/dist/showmasterpiece/migration/index.js.map +0 -1
- package/dist/showmasterpiece/migration/index.mjs +0 -589
- package/dist/showmasterpiece/migration/index.mjs.map +0 -1
- package/dist/showmasterpiece/scripts/index.d.mts +0 -28
- package/dist/showmasterpiece/scripts/index.d.ts +0 -28
- package/dist/showmasterpiece/scripts/index.js +0 -327
- package/dist/showmasterpiece/scripts/index.js.map +0 -1
- package/dist/showmasterpiece/scripts/index.mjs +0 -325
- package/dist/showmasterpiece/scripts/index.mjs.map +0 -1
|
@@ -1,890 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export { AddConfigItemDialog, AddToCartButton, ArtworkOrderManager, ArtworkOrderManager as ArtworkOrderManagerV2, ArtworkViewer, BookingAdminPanel, BookingModal, BookingPage, CartButton, CartHistoryPage, CartModal, CartPage, CollectionCard, CollectionList, CollectionOrderManager, CollectionOrderManager as CollectionOrderManagerV2, DeadlinePopup, DeadlinePopupManager, DeleteConfirmDialog, MobileAlbumViewer, PopupConfigManagement, ShowMasterPiecesConfigPage, ShowMasterPiecesHistoryPage, ShowMasterPiecesPage, SystemConfigManager, ThumbnailSidebar, UniversalImageUpload } from './ui/web/index.mjs';
|
|
2
2
|
export { G as GenericOrderManager } from '../GenericOrderManager-e4WizpNf.mjs';
|
|
3
|
-
|
|
3
|
+
export { CART_UPDATE_EVENT, CATEGORY_LABELS, CartProvider, addToMiniappCart, cartUpdateEvents, clearMiniappCart, formatPrice, getCategoryLabel, getMiniappCart, notifyCartUpdate, removeMiniappCartItem, updateMiniappCartItem, useBooking, useBookingAdmin, useBookingForm, useCart, useCartContext, useDeadlinePopup, useMasterpieces, useMasterpiecesConfig } from './logic/index.mjs';
|
|
4
|
+
import { A as ArtCollection, M as MasterpiecesConfig, b as CollectionFormData, c as ArtworkFormData, d as ArtworkPage, e as CreateBookingRequest, a as Booking, f as BookingListParams, g as BookingListResponse, U as UpdateBookingRequest, h as CollectionSummary } from '../booking-BXtkG2ns.mjs';
|
|
5
|
+
export { i as CollectionCategory, C as CollectionCategoryType, j as getAvailableCategories, k as isValidCategory } from '../booking-BXtkG2ns.mjs';
|
|
6
|
+
import { a as Cart, A as AddToCartRequest, U as UpdateCartItemRequest, R as RemoveFromCartRequest, B as BatchBookingRequest, b as BatchBookingResponse, c as CartHistory, d as CartHistoryItem } from '../cart-CcZ7rQyG.mjs';
|
|
7
|
+
export { f as CartAction, C as CartItem, g as CartState, e as ClearCartRequest } from '../cart-CcZ7rQyG.mjs';
|
|
8
|
+
export { c as BookingAdminData, j as BookingAdminQueryParams, i as BookingAdminResponse, B as BookingAdminService, h as BookingAdminStats, d as deleteBookingAdmin, e as exportBookings, f as forceRefreshAllBookings, b as forceRefreshBookingStats, g as getAllBookings, a as getBookingStats, u as updateBookingAdminStatus } from '../bookingAdminService-Dmg7dC6V.mjs';
|
|
4
9
|
import { e as ExportField } from '../types-DszP7SAQ.mjs';
|
|
5
|
-
import '
|
|
6
|
-
import 'drizzle-orm/pg-core';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* ShowMasterpiece 模块 - 购物车功能类型定义
|
|
10
|
-
*
|
|
11
|
-
* 定义了画集购物车功能相关的TypeScript类型,包括:
|
|
12
|
-
* - 购物车数据模型
|
|
13
|
-
* - API请求和响应类型
|
|
14
|
-
* - 购物车项数据类型
|
|
15
|
-
* - 状态枚举
|
|
16
|
-
*
|
|
17
|
-
* @fileoverview 购物车功能类型定义
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 购物车项数据模型
|
|
22
|
-
*/
|
|
23
|
-
interface CartItem {
|
|
24
|
-
/** 画集ID */
|
|
25
|
-
collectionId: number;
|
|
26
|
-
/** 画集信息 */
|
|
27
|
-
collection: ArtCollection;
|
|
28
|
-
/** 数量 */
|
|
29
|
-
quantity: number;
|
|
30
|
-
/** 添加时间 */
|
|
31
|
-
addedAt: Date;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* 购物车数据模型
|
|
35
|
-
*/
|
|
36
|
-
interface Cart {
|
|
37
|
-
/** 购物车项列表 */
|
|
38
|
-
items: CartItem[];
|
|
39
|
-
/** 总数量 */
|
|
40
|
-
totalQuantity: number;
|
|
41
|
-
/** 总价格 */
|
|
42
|
-
totalPrice: number;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 用户购物车历史记录项
|
|
46
|
-
*/
|
|
47
|
-
interface CartHistoryItem {
|
|
48
|
-
/** 历史记录ID */
|
|
49
|
-
id: string;
|
|
50
|
-
/** 提交时间 */
|
|
51
|
-
submittedAt: Date;
|
|
52
|
-
/** 用户QQ号 */
|
|
53
|
-
qqNumber: string;
|
|
54
|
-
/** 用户手机号 */
|
|
55
|
-
phoneNumber: string;
|
|
56
|
-
/** 购物车项列表 */
|
|
57
|
-
items: CartItem[];
|
|
58
|
-
/** 总数量 */
|
|
59
|
-
totalQuantity: number;
|
|
60
|
-
/** 总价格 */
|
|
61
|
-
totalPrice: number;
|
|
62
|
-
/** 用户备注 */
|
|
63
|
-
notes?: string;
|
|
64
|
-
/** 领取方式 */
|
|
65
|
-
pickupMethod: string;
|
|
66
|
-
/** 预订状态 */
|
|
67
|
-
status: 'pending' | 'confirmed' | 'completed' | 'cancelled';
|
|
68
|
-
/** 预订ID列表 */
|
|
69
|
-
bookingIds?: number[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* 用户购物车历史记录
|
|
73
|
-
*/
|
|
74
|
-
interface CartHistory {
|
|
75
|
-
/** 历史记录列表 */
|
|
76
|
-
records: CartHistoryItem[];
|
|
77
|
-
/** 总记录数 */
|
|
78
|
-
totalRecords: number;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* 添加到购物车请求数据
|
|
82
|
-
*/
|
|
83
|
-
interface AddToCartRequest {
|
|
84
|
-
/** 画集ID */
|
|
85
|
-
collectionId: number;
|
|
86
|
-
/** 数量 */
|
|
87
|
-
quantity: number;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* 更新购物车项请求数据
|
|
91
|
-
*/
|
|
92
|
-
interface UpdateCartItemRequest {
|
|
93
|
-
/** 画集ID */
|
|
94
|
-
collectionId: number;
|
|
95
|
-
/** 新数量 */
|
|
96
|
-
quantity: number;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* 从购物车移除请求数据
|
|
100
|
-
*/
|
|
101
|
-
interface RemoveFromCartRequest {
|
|
102
|
-
/** 画集ID */
|
|
103
|
-
collectionId: number;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* 清空购物车请求数据
|
|
107
|
-
*/
|
|
108
|
-
interface ClearCartRequest {
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* 购物车操作类型
|
|
112
|
-
*/
|
|
113
|
-
type CartAction = {
|
|
114
|
-
type: 'ADD_ITEM';
|
|
115
|
-
payload: CartItem;
|
|
116
|
-
} | {
|
|
117
|
-
type: 'UPDATE_ITEM';
|
|
118
|
-
payload: {
|
|
119
|
-
collectionId: number;
|
|
120
|
-
quantity: number;
|
|
121
|
-
};
|
|
122
|
-
} | {
|
|
123
|
-
type: 'REMOVE_ITEM';
|
|
124
|
-
payload: number;
|
|
125
|
-
} | {
|
|
126
|
-
type: 'CLEAR_CART';
|
|
127
|
-
} | {
|
|
128
|
-
type: 'SET_CART';
|
|
129
|
-
payload: Cart;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* 购物车状态
|
|
133
|
-
*/
|
|
134
|
-
interface CartState {
|
|
135
|
-
/** 购物车数据 */
|
|
136
|
-
cart: Cart;
|
|
137
|
-
/** 加载状态 */
|
|
138
|
-
loading: boolean;
|
|
139
|
-
/** 错误信息 */
|
|
140
|
-
error?: string;
|
|
141
|
-
/** 是否显示购物车弹窗 */
|
|
142
|
-
isCartOpen: boolean;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* 批量预订请求数据
|
|
146
|
-
*/
|
|
147
|
-
interface BatchBookingRequest {
|
|
148
|
-
/** 用户QQ号 */
|
|
149
|
-
qqNumber: string;
|
|
150
|
-
/** 用户手机号 */
|
|
151
|
-
phoneNumber: string;
|
|
152
|
-
/** 预订项列表 */
|
|
153
|
-
items: {
|
|
154
|
-
/** 画集ID */
|
|
155
|
-
collectionId: number;
|
|
156
|
-
/** 数量 */
|
|
157
|
-
quantity: number;
|
|
158
|
-
}[];
|
|
159
|
-
/** 备注信息 */
|
|
160
|
-
notes?: string;
|
|
161
|
-
/** 领取方式 */
|
|
162
|
-
pickupMethod: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* 批量预订响应数据
|
|
166
|
-
*/
|
|
167
|
-
interface BatchBookingResponse {
|
|
168
|
-
/** 预订ID列表 */
|
|
169
|
-
bookingIds: number[];
|
|
170
|
-
/** 成功预订数量 */
|
|
171
|
-
successCount: number;
|
|
172
|
-
/** 失败预订数量 */
|
|
173
|
-
failCount: number;
|
|
174
|
-
/** 失败原因 */
|
|
175
|
-
failures?: {
|
|
176
|
-
collectionId: number;
|
|
177
|
-
reason: string;
|
|
178
|
-
}[];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* ShowMasterpiece 模块 - 上下文类型定义
|
|
183
|
-
*
|
|
184
|
-
* 这个文件定义了ShowMasterpiece模块中所有上下文相关的TypeScript类型。
|
|
185
|
-
* 将类型定义独立出来可以避免循环依赖问题。
|
|
186
|
-
*
|
|
187
|
-
* @fileoverview 上下文类型定义
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* 购物车上下文状态接口
|
|
192
|
-
*/
|
|
193
|
-
interface CartContextState {
|
|
194
|
-
/** 购物车数据 */
|
|
195
|
-
cart: Cart;
|
|
196
|
-
/** 加载状态 */
|
|
197
|
-
loading: boolean;
|
|
198
|
-
/** 错误信息 */
|
|
199
|
-
error: string | undefined;
|
|
200
|
-
/** 刷新购物车数据 */
|
|
201
|
-
refreshCart: () => Promise<void>;
|
|
202
|
-
/** 添加商品到购物车(活动感知) */
|
|
203
|
-
addToCart: (request: AddToCartRequest & {
|
|
204
|
-
collection?: any;
|
|
205
|
-
}) => Promise<void>;
|
|
206
|
-
/** 更新购物车商品数量(活动感知) */
|
|
207
|
-
updateCartItem: (request: UpdateCartItemRequest) => Promise<void>;
|
|
208
|
-
/** 从购物车移除商品(活动感知) */
|
|
209
|
-
removeFromCart: (request: RemoveFromCartRequest) => Promise<void>;
|
|
210
|
-
/** 批量预订购物车商品(活动感知) */
|
|
211
|
-
batchBooking: (request: BatchBookingRequest) => Promise<BatchBookingResponse>;
|
|
212
|
-
/** 清空购物车(活动感知) */
|
|
213
|
-
clearCart: () => Promise<void>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* ShowMasterpiece 模块类型定义
|
|
218
|
-
*
|
|
219
|
-
* 包含画集、作品、配置等相关的TypeScript类型定义
|
|
220
|
-
*/
|
|
221
|
-
/**
|
|
222
|
-
* 画集分类枚举
|
|
223
|
-
*
|
|
224
|
-
* 定义画集的各种分类:
|
|
225
|
-
* - COLLECTION: 画集 - 用于展示艺术作品
|
|
226
|
-
* - ACRYLIC: 立牌 - 立牌制品
|
|
227
|
-
* - BADGE: 吧唧 - 徽章类商品
|
|
228
|
-
* - COLOR_PAPER: 色纸 - 彩色纸张制品
|
|
229
|
-
* - POSTCARD: 明信片 - 明信片类商品
|
|
230
|
-
* - LASER_TICKET: 镭射票 - 镭射票类商品
|
|
231
|
-
* - CANVAS_BAG: 帆布包 - 帆布包类商品
|
|
232
|
-
* - SUPPORT_STICK: 应援棒 - 应援棒类商品
|
|
233
|
-
* - OTHER: 挂件/钥匙扣 - 挂件/钥匙扣类商品
|
|
234
|
-
*/
|
|
235
|
-
declare enum CollectionCategory {
|
|
236
|
-
/** 画集 - 用于展示艺术作品 */
|
|
237
|
-
COLLECTION = "collection",
|
|
238
|
-
/** 立牌 - 立牌制品 */
|
|
239
|
-
ACRYLIC = "acrylic",
|
|
240
|
-
/** 吧唧 - 徽章类商品 */
|
|
241
|
-
BADGE = "badge",
|
|
242
|
-
/** 色纸 - 彩色纸张制品 */
|
|
243
|
-
COLOR_PAPER = "color_paper",
|
|
244
|
-
/** 透卡 - 透明卡片制品 */
|
|
245
|
-
TRANSPARENT_CARD = "transparent_card",
|
|
246
|
-
/** 明信片 - 明信片类商品 */
|
|
247
|
-
POSTCARD = "postcard",
|
|
248
|
-
/** 镭射票 - 镭射票类商品 */
|
|
249
|
-
LASER_TICKET = "laser_ticket",
|
|
250
|
-
/** 帆布包 - 帆布包类商品 */
|
|
251
|
-
CANVAS_BAG = "canvas_bag",
|
|
252
|
-
/** 线圈笔记本 - 线圈装订笔记本 */
|
|
253
|
-
SPIRAL_NOTEBOOK = "spiral_notebook",
|
|
254
|
-
/** 鼠标垫 - 鼠标垫类商品 */
|
|
255
|
-
MOUSE_PAD = "mouse_pad",
|
|
256
|
-
/** 应援棒 - 应援棒类商品 */
|
|
257
|
-
SUPPORT_STICK = "support_stick",
|
|
258
|
-
/** 挂件/钥匙扣 - 挂件/钥匙扣类商品 */
|
|
259
|
-
KEYCHAIN = "keychain",
|
|
260
|
-
/** 其它 */
|
|
261
|
-
OTHER = "other"
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* 画集分类类型
|
|
265
|
-
* 使用枚举值作为类型
|
|
266
|
-
*/
|
|
267
|
-
type CollectionCategoryType = `${CollectionCategory}` | string;
|
|
268
|
-
/**
|
|
269
|
-
* 分类信息接口
|
|
270
|
-
* 包含分类值和显示名称
|
|
271
|
-
*/
|
|
272
|
-
interface CategoryInfo {
|
|
273
|
-
/** 分类值 */
|
|
274
|
-
value: CollectionCategoryType;
|
|
275
|
-
/** 显示名称 */
|
|
276
|
-
displayName: string;
|
|
277
|
-
/** 描述信息 */
|
|
278
|
-
description?: string;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* 艺术作品页面数据结构
|
|
282
|
-
*
|
|
283
|
-
* 表示画集中的单个作品页面,包含图片、标题、描述等信息。
|
|
284
|
-
* 每个画集包含多个这样的作品页面。
|
|
285
|
-
*/
|
|
286
|
-
interface ArtworkPage {
|
|
287
|
-
/** 作品的唯一标识符 */
|
|
288
|
-
id: number;
|
|
289
|
-
/** 作品标题 */
|
|
290
|
-
title: string;
|
|
291
|
-
/** 编号 */
|
|
292
|
-
number: string;
|
|
293
|
-
/** 作品图片(支持URL或base64编码) */
|
|
294
|
-
image: string;
|
|
295
|
-
/** 通用文件服务的图片文件ID(新架构,可选) */
|
|
296
|
-
fileId?: string;
|
|
297
|
-
/** 作品描述 */
|
|
298
|
-
description: string;
|
|
299
|
-
/** 创作时间(可选) */
|
|
300
|
-
createdTime?: string;
|
|
301
|
-
/** 作品主题(可选) */
|
|
302
|
-
theme?: string;
|
|
303
|
-
/** 作品年份(可选) */
|
|
304
|
-
year?: string;
|
|
305
|
-
/** 创作媒介(可选) */
|
|
306
|
-
medium?: string;
|
|
307
|
-
/** 作品尺寸(可选) */
|
|
308
|
-
dimensions?: string;
|
|
309
|
-
/** 在画集中的显示顺序 */
|
|
310
|
-
pageOrder: number;
|
|
311
|
-
/** 是否激活(可选,默认true) */
|
|
312
|
-
isActive?: boolean;
|
|
313
|
-
/** 创建时间(可选) */
|
|
314
|
-
createdAt?: string;
|
|
315
|
-
/** 更新时间(可选) */
|
|
316
|
-
updatedAt?: string;
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* 艺术画集数据结构
|
|
320
|
-
*
|
|
321
|
-
* 表示一个完整的艺术画集,包含多个作品页面和相关元数据。
|
|
322
|
-
* 这是系统中的核心数据模型之一。
|
|
323
|
-
*/
|
|
324
|
-
interface ArtCollection {
|
|
325
|
-
/** 画集的唯一标识符 */
|
|
326
|
-
id: number;
|
|
327
|
-
/** 画集标题 */
|
|
328
|
-
title: string;
|
|
329
|
-
/** 编号 */
|
|
330
|
-
number: string;
|
|
331
|
-
/** 画集封面图片路径 */
|
|
332
|
-
coverImage: string;
|
|
333
|
-
/** 通用文件服务的封面图片文件ID(新架构,可选) */
|
|
334
|
-
coverImageFileId?: string;
|
|
335
|
-
/** 画集描述 */
|
|
336
|
-
description: string;
|
|
337
|
-
/** 画集包含的所有作品页面 */
|
|
338
|
-
pages: ArtworkPage[];
|
|
339
|
-
/** 画集分类(使用枚举值) */
|
|
340
|
-
category: CollectionCategoryType;
|
|
341
|
-
/** 画集标签列表(可选) */
|
|
342
|
-
tags?: string[];
|
|
343
|
-
/** 是否已发布(可选,默认true) */
|
|
344
|
-
isPublished?: boolean;
|
|
345
|
-
/** 画集价格(单位:元,可选) */
|
|
346
|
-
price?: number;
|
|
347
|
-
/** 创建时间(可选) */
|
|
348
|
-
createdAt?: string;
|
|
349
|
-
/** 更新时间(可选) */
|
|
350
|
-
updatedAt?: string;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* 系统配置数据结构
|
|
354
|
-
*
|
|
355
|
-
* 存储ShowMasterpiece模块的全局配置信息,
|
|
356
|
-
* 包括网站设置、显示选项、功能开关等。
|
|
357
|
-
*/
|
|
358
|
-
interface MasterpiecesConfig {
|
|
359
|
-
/** 网站名称 */
|
|
360
|
-
siteName: string;
|
|
361
|
-
/** 网站描述 */
|
|
362
|
-
siteDescription?: string;
|
|
363
|
-
/** 首页主标题 */
|
|
364
|
-
heroTitle: string;
|
|
365
|
-
/** 首页副标题 */
|
|
366
|
-
heroSubtitle?: string;
|
|
367
|
-
/** 每页显示的最大画集数量 */
|
|
368
|
-
maxCollectionsPerPage: number;
|
|
369
|
-
/** 是否启用搜索功能 */
|
|
370
|
-
enableSearch: boolean;
|
|
371
|
-
/** 是否启用分类功能 */
|
|
372
|
-
enableCategories: boolean;
|
|
373
|
-
/** 首页分类Tab配置 */
|
|
374
|
-
homeTabConfig: HomeTabConfigItem[];
|
|
375
|
-
/** 默认分类 */
|
|
376
|
-
defaultCategory: string;
|
|
377
|
-
/** 主题模式:light(浅色)、dark(深色)、auto(自动) */
|
|
378
|
-
theme: 'light' | 'dark' | 'auto';
|
|
379
|
-
/** 界面语言:zh(中文)、en(英文) */
|
|
380
|
-
language: 'zh' | 'en';
|
|
381
|
-
}
|
|
382
|
-
interface CategoryOption {
|
|
383
|
-
name: string;
|
|
384
|
-
description?: string | null;
|
|
385
|
-
}
|
|
386
|
-
interface HomeTabConfigItem {
|
|
387
|
-
name?: string;
|
|
388
|
-
description?: string | null;
|
|
389
|
-
category: CollectionCategoryType;
|
|
390
|
-
visible: boolean;
|
|
391
|
-
order: number;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* 画集表单数据结构
|
|
395
|
-
*
|
|
396
|
-
* 用于创建和编辑画集时的表单数据
|
|
397
|
-
*/
|
|
398
|
-
interface CollectionFormData {
|
|
399
|
-
/** 画集标题 */
|
|
400
|
-
title: string;
|
|
401
|
-
/** 编号 */
|
|
402
|
-
number: string;
|
|
403
|
-
/** 封面图片 */
|
|
404
|
-
coverImage: string;
|
|
405
|
-
/** 通用文件服务的封面图片文件ID */
|
|
406
|
-
coverImageFileId?: string;
|
|
407
|
-
/** 画集描述 */
|
|
408
|
-
description: string;
|
|
409
|
-
/** 画集分类(使用枚举值) */
|
|
410
|
-
category: CollectionCategoryType;
|
|
411
|
-
/** 画集标签列表 */
|
|
412
|
-
tags: string[];
|
|
413
|
-
/** 是否已发布 */
|
|
414
|
-
isPublished: boolean;
|
|
415
|
-
/** 画集价格(单位:元,可选) */
|
|
416
|
-
price?: number;
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* 作品表单数据结构
|
|
420
|
-
*
|
|
421
|
-
* 用于创建和编辑作品时的表单数据
|
|
422
|
-
*/
|
|
423
|
-
interface ArtworkFormData {
|
|
424
|
-
/** 作品标题 */
|
|
425
|
-
title: string;
|
|
426
|
-
/** 编号 */
|
|
427
|
-
number: string;
|
|
428
|
-
/** 作品图片 */
|
|
429
|
-
image?: string;
|
|
430
|
-
/** 通用文件服务的图片文件ID */
|
|
431
|
-
fileId?: string;
|
|
432
|
-
/** 作品描述 */
|
|
433
|
-
description: string;
|
|
434
|
-
/** 创作时间 */
|
|
435
|
-
createdTime: string;
|
|
436
|
-
/** 作品主题 */
|
|
437
|
-
theme: string;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* 获取所有可用的画集分类
|
|
441
|
-
*
|
|
442
|
-
* @returns 分类枚举值数组
|
|
443
|
-
*/
|
|
444
|
-
declare function getAvailableCategories(): CollectionCategoryType[];
|
|
445
|
-
/**
|
|
446
|
-
* 验证分类是否为有效值
|
|
447
|
-
*
|
|
448
|
-
* @param category - 要验证的分类值
|
|
449
|
-
* @returns 是否为有效分类
|
|
450
|
-
*/
|
|
451
|
-
declare function isValidCategory(category: string): category is CollectionCategoryType;
|
|
452
|
-
/**
|
|
453
|
-
* 扩展 CollectionCategoryType,使其支持 displayName 属性访问
|
|
454
|
-
* 使用方式: collection.category.displayName
|
|
455
|
-
*/
|
|
456
|
-
declare global {
|
|
457
|
-
interface String {
|
|
458
|
-
get displayName(): string;
|
|
459
|
-
get categoryInfo(): CategoryInfo;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* 画集卡片组件 (CollectionCard) - Tailwind CSS 版本
|
|
465
|
-
*
|
|
466
|
-
* 这是一个用于展示单个画集信息的卡片组件,主要用于画集列表页面。
|
|
467
|
-
*
|
|
468
|
-
* 主要功能:
|
|
469
|
-
* - 画集封面图片展示(支持懒加载)
|
|
470
|
-
* - 画集基本信息显示(标题、编号、分类、描述等)
|
|
471
|
-
* - 作品页数统计显示
|
|
472
|
-
* - 点击进入画集浏览
|
|
473
|
-
*
|
|
474
|
-
* 性能优化特性:
|
|
475
|
-
* - 图片懒加载(Intersection Observer API)
|
|
476
|
-
* - 加载状态和错误处理
|
|
477
|
-
* - Tailwind CSS 样式
|
|
478
|
-
*
|
|
479
|
-
* @component
|
|
480
|
-
*/
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* CollectionCard 组件的 Props 接口
|
|
484
|
-
*/
|
|
485
|
-
interface CollectionCardProps {
|
|
486
|
-
/** 要展示的画集数据 */
|
|
487
|
-
collection: ArtCollection;
|
|
488
|
-
/** 用户ID */
|
|
489
|
-
userId: number;
|
|
490
|
-
/** 用户选择画集时的回调函数 */
|
|
491
|
-
onSelect: (collection: ArtCollection) => void;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* 画集卡片组件主体
|
|
495
|
-
*
|
|
496
|
-
* @param props - 组件属性
|
|
497
|
-
* @param props.collection - 画集数据对象
|
|
498
|
-
* @param props.userId - 用户ID
|
|
499
|
-
* @param props.onSelect - 选择画集的回调函数
|
|
500
|
-
* @returns React函数组件
|
|
501
|
-
*/
|
|
502
|
-
declare const CollectionCard: React__default.FC<CollectionCardProps>;
|
|
503
|
-
|
|
504
|
-
interface ArtworkViewerProps {
|
|
505
|
-
artwork: ArtworkPage;
|
|
506
|
-
collectionId: number;
|
|
507
|
-
onNext: () => void;
|
|
508
|
-
onPrev: () => void;
|
|
509
|
-
canGoNext: boolean;
|
|
510
|
-
canGoPrev: boolean;
|
|
511
|
-
}
|
|
512
|
-
declare const ArtworkViewer: React__default.FC<ArtworkViewerProps>;
|
|
513
|
-
|
|
514
|
-
interface MobileAlbumViewerProps {
|
|
515
|
-
artworks: ArtworkPage[];
|
|
516
|
-
collectionId: number;
|
|
517
|
-
currentIndex: number;
|
|
518
|
-
onIndexChange: (index: number) => void;
|
|
519
|
-
onNext: () => void;
|
|
520
|
-
onPrev: () => void;
|
|
521
|
-
canGoNext: boolean;
|
|
522
|
-
canGoPrev: boolean;
|
|
523
|
-
}
|
|
524
|
-
declare const MobileAlbumViewer: React__default.FC<MobileAlbumViewerProps>;
|
|
525
|
-
|
|
526
|
-
interface ThumbnailSidebarProps {
|
|
527
|
-
pages: ArtworkPage[];
|
|
528
|
-
currentPage: number;
|
|
529
|
-
onPageSelect: (pageIndex: number) => void;
|
|
530
|
-
}
|
|
531
|
-
declare const ThumbnailSidebar: React__default.FC<ThumbnailSidebarProps>;
|
|
532
|
-
|
|
533
|
-
interface CollectionOrderManagerV2Props {
|
|
534
|
-
onOrderChanged?: () => void;
|
|
535
|
-
moveCollectionUp?: (id: number) => Promise<void>;
|
|
536
|
-
moveCollectionDown?: (id: number) => Promise<void>;
|
|
537
|
-
updateCollectionOrder?: (orders: {
|
|
538
|
-
id: number;
|
|
539
|
-
displayOrder: number;
|
|
540
|
-
}[]) => Promise<void>;
|
|
541
|
-
}
|
|
542
|
-
declare function CollectionOrderManagerV2({ onOrderChanged, moveCollectionUp: propMoveCollectionUp, moveCollectionDown: propMoveCollectionDown, updateCollectionOrder: propUpdateCollectionOrder }: CollectionOrderManagerV2Props): React__default.JSX.Element;
|
|
543
|
-
|
|
544
|
-
interface ArtworkOrderManagerV2Props {
|
|
545
|
-
collectionId: number;
|
|
546
|
-
onOrderChanged?: () => void;
|
|
547
|
-
moveArtworkUp?: (collectionId: number, id: number) => Promise<void>;
|
|
548
|
-
moveArtworkDown?: (collectionId: number, id: number) => Promise<void>;
|
|
549
|
-
updateArtworkOrder?: (collectionId: number, orders: {
|
|
550
|
-
id: number;
|
|
551
|
-
pageOrder: number;
|
|
552
|
-
}[]) => Promise<void>;
|
|
553
|
-
}
|
|
554
|
-
declare function ArtworkOrderManagerV2({ collectionId, onOrderChanged, moveArtworkUp: propMoveArtworkUp, moveArtworkDown: propMoveArtworkDown, updateArtworkOrder: propUpdateArtworkOrder }: ArtworkOrderManagerV2Props): React__default.JSX.Element;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* 通用图片上传组件
|
|
558
|
-
* 使用通用文件服务,支持阿里云OSS存储
|
|
559
|
-
* 可在画集封面和作品图片之间复用
|
|
560
|
-
*
|
|
561
|
-
* 修复记录:
|
|
562
|
-
* - 2026-01-19: 修复封面图片上传覆盖问题
|
|
563
|
-
* 为封面图片生成唯一文件夹路径(包含时间戳和随机ID),避免新画集覆盖历史画集的封面图片
|
|
564
|
-
* - 2026-01-19: 修复图片链接过期问题
|
|
565
|
-
* 为封面图片路径添加文件扩展名,确保被正确识别为图片文件,避免生成带过期时间的签名URL
|
|
566
|
-
*/
|
|
567
|
-
|
|
568
|
-
interface UniversalImageUploadProps {
|
|
569
|
-
/** 当前图片值(URL) */
|
|
570
|
-
value?: string;
|
|
571
|
-
/** 通用文件服务的文件ID */
|
|
572
|
-
fileId?: string;
|
|
573
|
-
/** 值变化回调,返回包含image和fileId的对象 */
|
|
574
|
-
onChange: (data: {
|
|
575
|
-
image?: string;
|
|
576
|
-
fileId?: string;
|
|
577
|
-
}) => void;
|
|
578
|
-
/** 占位符文本 */
|
|
579
|
-
placeholder?: string;
|
|
580
|
-
/** 标签文本 */
|
|
581
|
-
label?: string;
|
|
582
|
-
/** 是否禁用 */
|
|
583
|
-
disabled?: boolean;
|
|
584
|
-
/** 业务类型:cover(封面) 或 artwork(作品) */
|
|
585
|
-
businessType?: 'cover' | 'artwork';
|
|
586
|
-
/** 是否显示调试信息 */
|
|
587
|
-
showDebugInfo?: boolean;
|
|
588
|
-
/** 是否显示测试按钮 */
|
|
589
|
-
showTestButton?: boolean;
|
|
590
|
-
/** 自定义样式类名 */
|
|
591
|
-
className?: string;
|
|
592
|
-
}
|
|
593
|
-
declare const UniversalImageUpload: React__default.FC<UniversalImageUploadProps>;
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* ShowMasterpiece 模块 - 购物车弹窗组件
|
|
597
|
-
*
|
|
598
|
-
* @fileoverview 购物车弹窗组件
|
|
599
|
-
*/
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* 购物车弹窗组件属性
|
|
603
|
-
*/
|
|
604
|
-
interface CartModalProps {
|
|
605
|
-
/** 用户ID */
|
|
606
|
-
userId: number;
|
|
607
|
-
/** 是否显示弹窗 */
|
|
608
|
-
isOpen: boolean;
|
|
609
|
-
/** 关闭弹窗回调 */
|
|
610
|
-
onClose: () => void;
|
|
611
|
-
/** 弹窗标题 */
|
|
612
|
-
title?: string;
|
|
613
|
-
/** 弹窗宽度 */
|
|
614
|
-
width?: number | string;
|
|
615
|
-
/** 弹窗高度 */
|
|
616
|
-
height?: number | string;
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* 购物车弹窗组件
|
|
620
|
-
*
|
|
621
|
-
* @param props 组件属性
|
|
622
|
-
* @returns React组件
|
|
623
|
-
*/
|
|
624
|
-
declare const CartModal: React__default.FC<CartModalProps>;
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* ShowMasterpiece 模块 - 购物车页面组件
|
|
628
|
-
*
|
|
629
|
-
* 完整的购物车页面,包含:
|
|
630
|
-
* - 购物车商品列表展示
|
|
631
|
-
* - 商品数量调整
|
|
632
|
-
* - 商品移除功能
|
|
633
|
-
* - 批量预订表单
|
|
634
|
-
* - 提交和状态管理
|
|
635
|
-
*
|
|
636
|
-
* @fileoverview 购物车页面组件
|
|
637
|
-
*/
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* 购物车页面组件属性
|
|
641
|
-
*/
|
|
642
|
-
interface CartPageProps {
|
|
643
|
-
/** 用户ID */
|
|
644
|
-
userId: number;
|
|
645
|
-
/** 关闭回调 */
|
|
646
|
-
onClose?: () => void;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* 购物车页面组件
|
|
650
|
-
*
|
|
651
|
-
* @param props 组件属性
|
|
652
|
-
* @returns React组件
|
|
653
|
-
*/
|
|
654
|
-
declare const CartPage: React__default.FC<CartPageProps>;
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* ShowMasterpiece 模块 - 购物车按钮组件
|
|
658
|
-
*
|
|
659
|
-
* 显示购物车图标和商品数量的按钮组件,点击可打开购物车弹窗
|
|
660
|
-
*
|
|
661
|
-
* @fileoverview 购物车按钮组件
|
|
662
|
-
*/
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* 购物车按钮组件属性
|
|
666
|
-
*/
|
|
667
|
-
interface CartButtonProps {
|
|
668
|
-
/** 用户ID */
|
|
669
|
-
userId: number;
|
|
670
|
-
/** 点击回调 */
|
|
671
|
-
onClick: () => void;
|
|
672
|
-
/** 按钮样式类名 */
|
|
673
|
-
className?: string;
|
|
674
|
-
/** 是否显示商品数量 */
|
|
675
|
-
showBadge?: boolean;
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* 购物车按钮组件
|
|
679
|
-
*
|
|
680
|
-
* @param props 组件属性
|
|
681
|
-
* @returns React组件
|
|
682
|
-
*/
|
|
683
|
-
declare const CartButton: React__default.FC<CartButtonProps>;
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* ShowMasterpiece 模块 - 添加到购物车按钮组件
|
|
687
|
-
*
|
|
688
|
-
* 用于将画集添加到购物车的按钮组件
|
|
689
|
-
*
|
|
690
|
-
* @fileoverview 添加到购物车按钮组件
|
|
691
|
-
*/
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* 添加到购物车按钮组件属性
|
|
695
|
-
*/
|
|
696
|
-
interface AddToCartButtonProps {
|
|
697
|
-
/** 画集信息 */
|
|
698
|
-
collection: ArtCollection;
|
|
699
|
-
/** 用户ID */
|
|
700
|
-
userId: number;
|
|
701
|
-
/** 按钮样式类名 */
|
|
702
|
-
className?: string;
|
|
703
|
-
/** 按钮大小 */
|
|
704
|
-
size?: 'sm' | 'md' | 'lg';
|
|
705
|
-
/** 是否显示数量选择器 */
|
|
706
|
-
showQuantitySelector?: boolean;
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* 添加到购物车按钮组件
|
|
710
|
-
*
|
|
711
|
-
* @param props 组件属性
|
|
712
|
-
* @returns React组件
|
|
713
|
-
*/
|
|
714
|
-
declare const AddToCartButton: React__default.FC<AddToCartButtonProps>;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* ShowMasterpiece 模块 - 预订功能类型定义
|
|
718
|
-
*
|
|
719
|
-
* 定义了画集预订功能相关的TypeScript类型,包括:
|
|
720
|
-
* - 预订数据模型
|
|
721
|
-
* - API请求和响应类型
|
|
722
|
-
* - 表单数据类型
|
|
723
|
-
* - 状态枚举
|
|
724
|
-
*
|
|
725
|
-
* @fileoverview 预订功能类型定义
|
|
726
|
-
*/
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* 预订状态枚举
|
|
730
|
-
*/
|
|
731
|
-
type BookingStatus = 'pending' | 'confirmed' | 'completed' | 'cancelled';
|
|
732
|
-
/**
|
|
733
|
-
* 预订数据模型
|
|
734
|
-
*/
|
|
735
|
-
interface Booking {
|
|
736
|
-
/** 预订ID */
|
|
737
|
-
id: number;
|
|
738
|
-
/** 画集ID */
|
|
739
|
-
collectionId: number;
|
|
740
|
-
/** 用户QQ号 */
|
|
741
|
-
qqNumber: string;
|
|
742
|
-
/** 用户手机号 */
|
|
743
|
-
phoneNumber?: string;
|
|
744
|
-
/** 预订数量 */
|
|
745
|
-
quantity: number;
|
|
746
|
-
/** 预订状态 */
|
|
747
|
-
status: BookingStatus;
|
|
748
|
-
/** 预订备注 */
|
|
749
|
-
notes?: string;
|
|
750
|
-
/** 管理员备注 */
|
|
751
|
-
adminNotes?: string;
|
|
752
|
-
/** 预订时间 */
|
|
753
|
-
createdAt: string;
|
|
754
|
-
/** 更新时间 */
|
|
755
|
-
updatedAt: string;
|
|
756
|
-
/** 确认时间 */
|
|
757
|
-
confirmedAt?: string;
|
|
758
|
-
/** 完成时间 */
|
|
759
|
-
completedAt?: string;
|
|
760
|
-
/** 取消时间 */
|
|
761
|
-
cancelledAt?: string;
|
|
762
|
-
/** 关联的画集信息 */
|
|
763
|
-
collection?: ArtCollection;
|
|
764
|
-
}
|
|
765
|
-
/**
|
|
766
|
-
* 创建预订请求数据
|
|
767
|
-
*/
|
|
768
|
-
interface CreateBookingRequest {
|
|
769
|
-
/** 画集ID */
|
|
770
|
-
collectionId: number;
|
|
771
|
-
/** 用户QQ号 */
|
|
772
|
-
qqNumber: string;
|
|
773
|
-
/** 用户手机号 */
|
|
774
|
-
phoneNumber: string;
|
|
775
|
-
/** 预订数量 */
|
|
776
|
-
quantity: number;
|
|
777
|
-
/** 预订备注 */
|
|
778
|
-
notes?: string;
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* 更新预订请求数据
|
|
782
|
-
*/
|
|
783
|
-
interface UpdateBookingRequest {
|
|
784
|
-
/** 预订状态 */
|
|
785
|
-
status?: BookingStatus;
|
|
786
|
-
/** 管理员备注 */
|
|
787
|
-
adminNotes?: string;
|
|
788
|
-
}
|
|
789
|
-
/**
|
|
790
|
-
* 预订列表查询参数
|
|
791
|
-
*/
|
|
792
|
-
interface BookingListParams {
|
|
793
|
-
/** 画集ID过滤 */
|
|
794
|
-
collectionId?: number;
|
|
795
|
-
/** QQ号过滤 */
|
|
796
|
-
qqNumber?: string;
|
|
797
|
-
/** 手机号过滤 */
|
|
798
|
-
phoneNumber?: string;
|
|
799
|
-
/** 状态过滤 */
|
|
800
|
-
status?: BookingStatus;
|
|
801
|
-
/** 页码 */
|
|
802
|
-
page?: number;
|
|
803
|
-
/** 每页数量 */
|
|
804
|
-
limit?: number;
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* 预订列表响应
|
|
808
|
-
*/
|
|
809
|
-
interface BookingListResponse {
|
|
810
|
-
/** 预订列表 */
|
|
811
|
-
bookings: Booking[];
|
|
812
|
-
/** 总数 */
|
|
813
|
-
total: number;
|
|
814
|
-
/** 当前页 */
|
|
815
|
-
page: number;
|
|
816
|
-
/** 每页数量 */
|
|
817
|
-
limit: number;
|
|
818
|
-
/** 总页数 */
|
|
819
|
-
totalPages: number;
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* 预订表单数据
|
|
823
|
-
*/
|
|
824
|
-
interface BookingFormData {
|
|
825
|
-
/** 画集ID */
|
|
826
|
-
collectionId: number;
|
|
827
|
-
/** 用户QQ号 */
|
|
828
|
-
qqNumber: string;
|
|
829
|
-
/** 用户手机号 */
|
|
830
|
-
phoneNumber: string;
|
|
831
|
-
/** 预订数量 */
|
|
832
|
-
quantity: number;
|
|
833
|
-
/** 预订备注 */
|
|
834
|
-
notes: string;
|
|
835
|
-
}
|
|
836
|
-
/**
|
|
837
|
-
* 画集简略信息(用于预订页面展示)
|
|
838
|
-
*/
|
|
839
|
-
interface CollectionSummary {
|
|
840
|
-
/** 画集ID */
|
|
841
|
-
id: number;
|
|
842
|
-
/** 画集标题 */
|
|
843
|
-
title: string;
|
|
844
|
-
/** 编号 */
|
|
845
|
-
number: string;
|
|
846
|
-
/** 封面图片 */
|
|
847
|
-
coverImage: string;
|
|
848
|
-
/** 价格(单位:元) */
|
|
849
|
-
price?: number;
|
|
850
|
-
/** 画集描述 */
|
|
851
|
-
description?: string;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* ShowMasterpiece 模块 - 画集列表组件
|
|
856
|
-
*
|
|
857
|
-
* 用于预订页面展示画集简略信息,包括:
|
|
858
|
-
* - 画集封面和标题
|
|
859
|
-
* - 艺术家信息
|
|
860
|
-
* - 价格显示
|
|
861
|
-
* - 选择功能
|
|
862
|
-
*
|
|
863
|
-
* @fileoverview 画集列表组件
|
|
864
|
-
*/
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* 画集列表组件属性
|
|
868
|
-
*/
|
|
869
|
-
interface CollectionListProps {
|
|
870
|
-
/** 画集列表 */
|
|
871
|
-
collections: CollectionSummary[];
|
|
872
|
-
/** 当前选中的画集ID */
|
|
873
|
-
selectedCollectionId?: number;
|
|
874
|
-
/** 选择画集回调 */
|
|
875
|
-
onSelectCollection?: (collectionId: number) => void;
|
|
876
|
-
/** 加载状态 */
|
|
877
|
-
loading?: boolean;
|
|
878
|
-
/** 是否禁用选择 */
|
|
879
|
-
disabled?: boolean;
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* 画集列表组件
|
|
883
|
-
*
|
|
884
|
-
* @param props 组件属性
|
|
885
|
-
* @returns React组件
|
|
886
|
-
*/
|
|
887
|
-
declare const CollectionList: React__default.FC<CollectionListProps>;
|
|
10
|
+
import 'react';
|
|
888
11
|
|
|
889
12
|
/**
|
|
890
13
|
* MasterpiecesService - 美术作品前端API服务
|
|
@@ -1351,7 +474,7 @@ declare const updateBooking: (id: number, data: UpdateBookingRequest) => Promise
|
|
|
1351
474
|
*
|
|
1352
475
|
* @param id 预订ID
|
|
1353
476
|
*/
|
|
1354
|
-
declare const deleteBooking
|
|
477
|
+
declare const deleteBooking: (id: number) => Promise<void>;
|
|
1355
478
|
/**
|
|
1356
479
|
* 获取可预订的画集列表
|
|
1357
480
|
*
|
|
@@ -1359,160 +482,6 @@ declare const deleteBooking$1: (id: number) => Promise<void>;
|
|
|
1359
482
|
*/
|
|
1360
483
|
declare const getBookableCollections: () => Promise<CollectionSummary[]>;
|
|
1361
484
|
|
|
1362
|
-
/**
|
|
1363
|
-
* ShowMasterpiece 模块 - 预订管理服务
|
|
1364
|
-
*
|
|
1365
|
-
* 提供预订管理相关的类型定义和服务函数
|
|
1366
|
-
*
|
|
1367
|
-
* @fileoverview 预订管理服务
|
|
1368
|
-
*/
|
|
1369
|
-
|
|
1370
|
-
/**
|
|
1371
|
-
* 预订管理数据接口
|
|
1372
|
-
*/
|
|
1373
|
-
interface BookingAdminData {
|
|
1374
|
-
/** 预订ID */
|
|
1375
|
-
id: number;
|
|
1376
|
-
/** 用户ID */
|
|
1377
|
-
userId: number;
|
|
1378
|
-
/** 用户名 */
|
|
1379
|
-
userName: string;
|
|
1380
|
-
/** 用户手机号 */
|
|
1381
|
-
userPhone: string;
|
|
1382
|
-
/** QQ号 */
|
|
1383
|
-
qqNumber?: string;
|
|
1384
|
-
/** 手机号 */
|
|
1385
|
-
phoneNumber?: string;
|
|
1386
|
-
/** 画集ID */
|
|
1387
|
-
collectionId: number;
|
|
1388
|
-
/** 画集标题 */
|
|
1389
|
-
collectionTitle: string;
|
|
1390
|
-
/** 画集编号 */
|
|
1391
|
-
collectionNumber: string;
|
|
1392
|
-
/** 画集信息 */
|
|
1393
|
-
collection: {
|
|
1394
|
-
/** 画集ID */
|
|
1395
|
-
id: number;
|
|
1396
|
-
/** 画集标题 */
|
|
1397
|
-
title: string;
|
|
1398
|
-
/** 画集编号 */
|
|
1399
|
-
number: string;
|
|
1400
|
-
/** 封面图片 */
|
|
1401
|
-
coverImage: string;
|
|
1402
|
-
/** 价格 */
|
|
1403
|
-
price: number;
|
|
1404
|
-
};
|
|
1405
|
-
/** 预订状态 */
|
|
1406
|
-
status: BookingStatus;
|
|
1407
|
-
/** 预订时间 */
|
|
1408
|
-
bookingTime: string;
|
|
1409
|
-
/** 更新时间 */
|
|
1410
|
-
updatedAt: string;
|
|
1411
|
-
/** 创建时间 */
|
|
1412
|
-
createdAt: string;
|
|
1413
|
-
/** 管理员备注 */
|
|
1414
|
-
adminNotes?: string;
|
|
1415
|
-
/** 用户备注 */
|
|
1416
|
-
notes?: string;
|
|
1417
|
-
/** 领取方式 */
|
|
1418
|
-
pickupMethod?: string;
|
|
1419
|
-
/** 数量 */
|
|
1420
|
-
quantity: number;
|
|
1421
|
-
/** 价格 */
|
|
1422
|
-
price: number;
|
|
1423
|
-
/** 总价格 */
|
|
1424
|
-
totalPrice: number;
|
|
1425
|
-
/** 确认时间 */
|
|
1426
|
-
confirmedAt?: string;
|
|
1427
|
-
/** 完成时间 */
|
|
1428
|
-
completedAt?: string;
|
|
1429
|
-
/** 取消时间 */
|
|
1430
|
-
cancelledAt?: string;
|
|
1431
|
-
}
|
|
1432
|
-
/**
|
|
1433
|
-
* 预订管理统计信息接口
|
|
1434
|
-
*/
|
|
1435
|
-
interface BookingAdminStats {
|
|
1436
|
-
/** 总预订数 */
|
|
1437
|
-
totalBookings: number;
|
|
1438
|
-
/** 待处理预订数 */
|
|
1439
|
-
pendingBookings: number;
|
|
1440
|
-
/** 已确认预订数 */
|
|
1441
|
-
confirmedBookings: number;
|
|
1442
|
-
/** 已完成预订数 */
|
|
1443
|
-
completedBookings: number;
|
|
1444
|
-
/** 已取消预订数 */
|
|
1445
|
-
cancelledBookings: number;
|
|
1446
|
-
/** 总金额 */
|
|
1447
|
-
totalAmount: number;
|
|
1448
|
-
/** 总收入 */
|
|
1449
|
-
totalRevenue: number;
|
|
1450
|
-
/** 总数量 */
|
|
1451
|
-
totalQuantity: number;
|
|
1452
|
-
/** 今日新增预订数 */
|
|
1453
|
-
todayBookings: number;
|
|
1454
|
-
/** 本周新增预订数 */
|
|
1455
|
-
weekBookings: number;
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* 预订管理接口响应类型
|
|
1459
|
-
*/
|
|
1460
|
-
interface BookingAdminResponse {
|
|
1461
|
-
bookings: BookingAdminData[];
|
|
1462
|
-
stats: BookingAdminStats;
|
|
1463
|
-
}
|
|
1464
|
-
/**
|
|
1465
|
-
* 预订管理查询参数
|
|
1466
|
-
*/
|
|
1467
|
-
interface BookingAdminQueryParams {
|
|
1468
|
-
/** QQ号搜索 */
|
|
1469
|
-
qqNumber?: string;
|
|
1470
|
-
/** 手机号搜索 */
|
|
1471
|
-
phoneNumber?: string;
|
|
1472
|
-
/** 状态过滤 */
|
|
1473
|
-
status?: BookingStatus | 'all';
|
|
1474
|
-
}
|
|
1475
|
-
/**
|
|
1476
|
-
* 预订管理服务类
|
|
1477
|
-
*/
|
|
1478
|
-
declare class BookingAdminService {
|
|
1479
|
-
/**
|
|
1480
|
-
* 获取所有预订数据
|
|
1481
|
-
*/
|
|
1482
|
-
static getAllBookings(params?: BookingAdminQueryParams): Promise<BookingAdminData[]>;
|
|
1483
|
-
/**
|
|
1484
|
-
* 强制刷新获取所有预订数据(绕过所有缓存)
|
|
1485
|
-
*/
|
|
1486
|
-
static forceRefreshAllBookings(params?: BookingAdminQueryParams): Promise<BookingAdminData[]>;
|
|
1487
|
-
/**
|
|
1488
|
-
* 获取预订统计信息
|
|
1489
|
-
*/
|
|
1490
|
-
static getBookingStats(params?: BookingAdminQueryParams): Promise<BookingAdminStats>;
|
|
1491
|
-
/**
|
|
1492
|
-
* 强制刷新获取预订统计信息(绕过所有缓存)
|
|
1493
|
-
*/
|
|
1494
|
-
static forceRefreshBookingStats(params?: BookingAdminQueryParams): Promise<BookingAdminStats>;
|
|
1495
|
-
/**
|
|
1496
|
-
* 更新预订状态
|
|
1497
|
-
*/
|
|
1498
|
-
static updateBookingStatus(bookingId: number, status: BookingStatus, adminNotes?: string): Promise<void>;
|
|
1499
|
-
/**
|
|
1500
|
-
* 删除预订
|
|
1501
|
-
*/
|
|
1502
|
-
static deleteBooking(bookingId: number): Promise<void>;
|
|
1503
|
-
/**
|
|
1504
|
-
* 导出预订数据
|
|
1505
|
-
*/
|
|
1506
|
-
static exportBookings(format?: 'csv' | 'excel'): Promise<Blob>;
|
|
1507
|
-
}
|
|
1508
|
-
declare const getAllBookings: typeof BookingAdminService.getAllBookings;
|
|
1509
|
-
declare const getBookingStats: typeof BookingAdminService.getBookingStats;
|
|
1510
|
-
declare const forceRefreshAllBookings: typeof BookingAdminService.forceRefreshAllBookings;
|
|
1511
|
-
declare const forceRefreshBookingStats: typeof BookingAdminService.forceRefreshBookingStats;
|
|
1512
|
-
declare const updateBookingStatus$1: typeof BookingAdminService.updateBookingStatus;
|
|
1513
|
-
declare const deleteBooking: typeof BookingAdminService.deleteBooking;
|
|
1514
|
-
declare const exportBookings: typeof BookingAdminService.exportBookings;
|
|
1515
|
-
|
|
1516
485
|
/**
|
|
1517
486
|
* ShowMasterpiece 模块 - 购物车历史记录服务
|
|
1518
487
|
*
|
|
@@ -1799,694 +768,6 @@ declare const DEFAULT_BOOKING_EXPORT_CONFIG: {
|
|
|
1799
768
|
businessId: string;
|
|
1800
769
|
};
|
|
1801
770
|
|
|
1802
|
-
/**
|
|
1803
|
-
* ShowMasterpiece 模块 - 预订管理面板组件
|
|
1804
|
-
*
|
|
1805
|
-
* 管理员查看所有用户预订信息的面板组件
|
|
1806
|
-
*
|
|
1807
|
-
* @fileoverview 预订管理面板组件
|
|
1808
|
-
*/
|
|
1809
|
-
|
|
1810
|
-
/**
|
|
1811
|
-
* 预订管理面板组件属性
|
|
1812
|
-
*/
|
|
1813
|
-
interface BookingAdminPanelProps {
|
|
1814
|
-
/** 预订数据列表 */
|
|
1815
|
-
bookings: BookingAdminData[];
|
|
1816
|
-
/** 统计信息 */
|
|
1817
|
-
stats: BookingAdminStats;
|
|
1818
|
-
/** 加载状态 */
|
|
1819
|
-
loading: boolean;
|
|
1820
|
-
/** 错误信息 */
|
|
1821
|
-
error?: string;
|
|
1822
|
-
/** 搜索参数 */
|
|
1823
|
-
searchParams: BookingAdminQueryParams;
|
|
1824
|
-
/** 刷新数据回调 */
|
|
1825
|
-
onRefresh: () => void;
|
|
1826
|
-
/** 搜索预订数据回调 */
|
|
1827
|
-
onSearch: (params: BookingAdminQueryParams) => Promise<void>;
|
|
1828
|
-
/** 清除搜索条件回调 */
|
|
1829
|
-
onClearSearch: () => void;
|
|
1830
|
-
/** 更新预订状态回调 */
|
|
1831
|
-
onUpdateStatus: (id: number, status: BookingStatus, adminNotes?: string) => Promise<void>;
|
|
1832
|
-
/** 删除预订回调 */
|
|
1833
|
-
onDeleteBooking: (id: number) => Promise<void>;
|
|
1834
|
-
/** 导出预订数据回调 */
|
|
1835
|
-
onExportBookings: (format?: 'csv' | 'excel') => Promise<void>;
|
|
1836
|
-
}
|
|
1837
|
-
/**
|
|
1838
|
-
* 预订管理面板组件
|
|
1839
|
-
*
|
|
1840
|
-
* @param props 组件属性
|
|
1841
|
-
* @returns React组件
|
|
1842
|
-
*/
|
|
1843
|
-
declare const BookingAdminPanel: React__default.FC<BookingAdminPanelProps>;
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* ShowMasterpiece 模块 - 预订弹窗组件
|
|
1847
|
-
*
|
|
1848
|
-
* 使用现有的Modal组件包装预订页面,提供弹窗形式的预订功能
|
|
1849
|
-
*
|
|
1850
|
-
* @fileoverview 预订弹窗组件
|
|
1851
|
-
*/
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* 预订弹窗组件属性
|
|
1855
|
-
*/
|
|
1856
|
-
interface BookingModalProps {
|
|
1857
|
-
/** 是否显示弹窗 */
|
|
1858
|
-
isOpen: boolean;
|
|
1859
|
-
/** 关闭弹窗回调 */
|
|
1860
|
-
onClose: () => void;
|
|
1861
|
-
/** 弹窗标题 */
|
|
1862
|
-
title?: string;
|
|
1863
|
-
/** 弹窗宽度 */
|
|
1864
|
-
width?: number | string;
|
|
1865
|
-
/** 弹窗高度 */
|
|
1866
|
-
height?: number | string;
|
|
1867
|
-
}
|
|
1868
|
-
/**
|
|
1869
|
-
* 预订弹窗组件
|
|
1870
|
-
*
|
|
1871
|
-
* @param props 组件属性
|
|
1872
|
-
* @returns React组件
|
|
1873
|
-
*/
|
|
1874
|
-
declare const BookingModal: React__default.FC<BookingModalProps>;
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* ShowMasterpiece 模块 - 预订页面组件
|
|
1878
|
-
*
|
|
1879
|
-
* 完整的预订页面,包含:
|
|
1880
|
-
* - 画集列表展示和选择
|
|
1881
|
-
* - 预订表单(QQ号、数量、备注)
|
|
1882
|
-
* - 提交和状态管理
|
|
1883
|
-
*
|
|
1884
|
-
* @fileoverview 预订页面组件
|
|
1885
|
-
*/
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* 预订页面组件属性
|
|
1889
|
-
*/
|
|
1890
|
-
interface BookingPageProps {
|
|
1891
|
-
/** 关闭回调 */
|
|
1892
|
-
onClose?: () => void;
|
|
1893
|
-
}
|
|
1894
|
-
/**
|
|
1895
|
-
* 预订页面组件
|
|
1896
|
-
*
|
|
1897
|
-
* @param props 组件属性
|
|
1898
|
-
* @returns React组件
|
|
1899
|
-
*/
|
|
1900
|
-
declare const BookingPage: React__default.FC<BookingPageProps>;
|
|
1901
|
-
|
|
1902
|
-
/**
|
|
1903
|
-
* ShowMasterpiece 模块 - 用户预订历史记录页面组件
|
|
1904
|
-
*
|
|
1905
|
-
* 用户查看自己的预订历史记录
|
|
1906
|
-
*
|
|
1907
|
-
* @fileoverview 用户预订历史记录页面组件
|
|
1908
|
-
*/
|
|
1909
|
-
|
|
1910
|
-
/**
|
|
1911
|
-
* 用户预订历史记录页面组件属性
|
|
1912
|
-
*/
|
|
1913
|
-
interface CartHistoryPageProps {
|
|
1914
|
-
/** 用户QQ号 */
|
|
1915
|
-
qqNumber: string;
|
|
1916
|
-
/** 用户手机号 */
|
|
1917
|
-
phoneNumber: string;
|
|
1918
|
-
}
|
|
1919
|
-
/**
|
|
1920
|
-
* 用户预订历史记录页面组件
|
|
1921
|
-
*
|
|
1922
|
-
* @param props 组件属性
|
|
1923
|
-
* @returns React组件
|
|
1924
|
-
*/
|
|
1925
|
-
declare const CartHistoryPage: React__default.FC<CartHistoryPageProps>;
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* ShowMasterpiece 模块 - 限时弹窗组件
|
|
1929
|
-
*
|
|
1930
|
-
* 基于配置显示限时提醒弹窗
|
|
1931
|
-
*
|
|
1932
|
-
* @fileoverview 限时弹窗组件
|
|
1933
|
-
*/
|
|
1934
|
-
|
|
1935
|
-
/**
|
|
1936
|
-
* 限时弹窗组件属性
|
|
1937
|
-
*/
|
|
1938
|
-
interface DeadlinePopupProps {
|
|
1939
|
-
/** 弹窗配置 */
|
|
1940
|
-
config: PopupConfig;
|
|
1941
|
-
/** 是否显示弹窗 */
|
|
1942
|
-
isOpen: boolean;
|
|
1943
|
-
/** 关闭回调 */
|
|
1944
|
-
onClose: () => void;
|
|
1945
|
-
/** 确认回调 */
|
|
1946
|
-
onConfirm?: () => void;
|
|
1947
|
-
/** 取消回调 */
|
|
1948
|
-
onCancel?: () => void;
|
|
1949
|
-
}
|
|
1950
|
-
/**
|
|
1951
|
-
* 限时弹窗组件
|
|
1952
|
-
*/
|
|
1953
|
-
declare const DeadlinePopup: React__default.FC<DeadlinePopupProps>;
|
|
1954
|
-
/**
|
|
1955
|
-
* 多弹窗管理组件
|
|
1956
|
-
*/
|
|
1957
|
-
interface DeadlinePopupManagerProps {
|
|
1958
|
-
/** 弹窗配置列表 */
|
|
1959
|
-
configs: PopupConfig[];
|
|
1960
|
-
/** 关闭回调 */
|
|
1961
|
-
onClose: (configId: string) => void;
|
|
1962
|
-
/** 确认回调 */
|
|
1963
|
-
onConfirm?: (configId: string) => void;
|
|
1964
|
-
/** 取消回调 */
|
|
1965
|
-
onCancel?: (configId: string) => void;
|
|
1966
|
-
}
|
|
1967
|
-
declare const DeadlinePopupManager: React__default.FC<DeadlinePopupManagerProps>;
|
|
1968
|
-
|
|
1969
|
-
/**
|
|
1970
|
-
* ShowMasterpiece 模块 - 弹窗配置管理组件
|
|
1971
|
-
*
|
|
1972
|
-
* 提供弹窗配置的创建、编辑、删除和启用/禁用功能
|
|
1973
|
-
*
|
|
1974
|
-
* @fileoverview 弹窗配置管理组件
|
|
1975
|
-
*/
|
|
1976
|
-
|
|
1977
|
-
/**
|
|
1978
|
-
* 弹窗配置管理组件属性
|
|
1979
|
-
*/
|
|
1980
|
-
interface PopupConfigManagementProps {
|
|
1981
|
-
}
|
|
1982
|
-
/**
|
|
1983
|
-
* 弹窗配置管理组件
|
|
1984
|
-
*/
|
|
1985
|
-
declare const PopupConfigManagement: React__default.FC<PopupConfigManagementProps>;
|
|
1986
|
-
|
|
1987
|
-
/**
|
|
1988
|
-
* ShowMasterpiece模块 - 系统配置管理组件
|
|
1989
|
-
*
|
|
1990
|
-
* 从全局configManager复制并适配,专门为showmasterpiece模块使用
|
|
1991
|
-
* 用于模块独立化准备
|
|
1992
|
-
*/
|
|
1993
|
-
|
|
1994
|
-
declare const SystemConfigManager: React__default.FC;
|
|
1995
|
-
|
|
1996
|
-
/**
|
|
1997
|
-
* ShowMasterpiece模块 - 新增配置项对话框组件
|
|
1998
|
-
*
|
|
1999
|
-
* 从全局configManager复制并简化适配
|
|
2000
|
-
*/
|
|
2001
|
-
|
|
2002
|
-
interface ConfigItemFormData {
|
|
2003
|
-
key: string;
|
|
2004
|
-
displayName: string;
|
|
2005
|
-
description: string;
|
|
2006
|
-
value: string;
|
|
2007
|
-
defaultValue: string;
|
|
2008
|
-
type: 'string' | 'number' | 'boolean' | 'password';
|
|
2009
|
-
isRequired: boolean;
|
|
2010
|
-
isSensitive: boolean;
|
|
2011
|
-
validation: string;
|
|
2012
|
-
sortOrder: number;
|
|
2013
|
-
}
|
|
2014
|
-
interface AddConfigItemDialogProps {
|
|
2015
|
-
isOpen: boolean;
|
|
2016
|
-
onSave: (data: ConfigItemFormData) => Promise<void>;
|
|
2017
|
-
onCancel: () => void;
|
|
2018
|
-
}
|
|
2019
|
-
declare const AddConfigItemDialog: React__default.FC<AddConfigItemDialogProps>;
|
|
2020
|
-
|
|
2021
|
-
/**
|
|
2022
|
-
* ShowMasterpiece模块 - 删除确认对话框组件
|
|
2023
|
-
*
|
|
2024
|
-
* 从全局configManager复制并适配
|
|
2025
|
-
*/
|
|
2026
|
-
|
|
2027
|
-
interface ConfigItem {
|
|
2028
|
-
id: string;
|
|
2029
|
-
key: string;
|
|
2030
|
-
displayName: string;
|
|
2031
|
-
description: string;
|
|
2032
|
-
value: string;
|
|
2033
|
-
defaultValue: string;
|
|
2034
|
-
type: 'string' | 'number' | 'boolean' | 'password';
|
|
2035
|
-
isRequired: boolean;
|
|
2036
|
-
isSensitive: boolean;
|
|
2037
|
-
validation: string | null;
|
|
2038
|
-
sortOrder: number;
|
|
2039
|
-
isActive: boolean;
|
|
2040
|
-
createdAt: string;
|
|
2041
|
-
updatedAt: string;
|
|
2042
|
-
}
|
|
2043
|
-
interface DeleteConfirmDialogProps {
|
|
2044
|
-
isOpen: boolean;
|
|
2045
|
-
item: ConfigItem | null;
|
|
2046
|
-
onConfirm: () => void;
|
|
2047
|
-
onCancel: () => void;
|
|
2048
|
-
loading?: boolean;
|
|
2049
|
-
}
|
|
2050
|
-
declare const DeleteConfirmDialog: React__default.FC<DeleteConfirmDialogProps>;
|
|
2051
|
-
|
|
2052
|
-
/**
|
|
2053
|
-
* ShowMasterpiece 主页面组件 - Tailwind CSS 版本
|
|
2054
|
-
*
|
|
2055
|
-
* 这是ShowMasterpiece模块的主要页面组件,提供完整的画集浏览体验。
|
|
2056
|
-
* 支持两种视图模式:画集列表视图和作品详情视图。
|
|
2057
|
-
*
|
|
2058
|
-
* 主要功能:
|
|
2059
|
-
* - 画集列表展示和搜索
|
|
2060
|
-
* - 画集详情浏览和作品查看
|
|
2061
|
-
* - 用户权限控制和认证
|
|
2062
|
-
* - 响应式设计和优化的用户体验
|
|
2063
|
-
* - 配置管理入口(需要管理员权限)
|
|
2064
|
-
*
|
|
2065
|
-
* 技术特点:
|
|
2066
|
-
* - 使用自定义Hook进行状态管理
|
|
2067
|
-
* - 集成认证系统,支持权限控制
|
|
2068
|
-
* - 动态配置加载,支持个性化设置
|
|
2069
|
-
* - 性能优化:使用useMemo缓存计算结果
|
|
2070
|
-
* - 使用 Tailwind CSS 进行样式管理
|
|
2071
|
-
*
|
|
2072
|
-
* @component
|
|
2073
|
-
*/
|
|
2074
|
-
|
|
2075
|
-
interface ShowMasterPiecesPageProps {
|
|
2076
|
-
/** Next.js 页面参数 */
|
|
2077
|
-
params?: Record<string, string>;
|
|
2078
|
-
/** Next.js 搜索参数 */
|
|
2079
|
-
searchParams?: Record<string, string | string[] | undefined>;
|
|
2080
|
-
}
|
|
2081
|
-
/**
|
|
2082
|
-
* ShowMasterpiece 主组件
|
|
2083
|
-
*
|
|
2084
|
-
* 提供认证上下文包装器,确保组件能够访问用户认证状态。
|
|
2085
|
-
* 这是模块的对外接口组件。
|
|
2086
|
-
*
|
|
2087
|
-
* @returns React函数组件
|
|
2088
|
-
*/
|
|
2089
|
-
declare function ShowMasterPieces(props?: ShowMasterPiecesPageProps): React__default.JSX.Element;
|
|
2090
|
-
|
|
2091
|
-
declare function ConfigPage(): React__default.JSX.Element;
|
|
2092
|
-
|
|
2093
|
-
/**
|
|
2094
|
-
* ShowMasterpiece 模块 - 用户购物车历史记录页面
|
|
2095
|
-
*
|
|
2096
|
-
* 用户输入QQ号和手机号查看自己的购物车历史记录
|
|
2097
|
-
*
|
|
2098
|
-
* @fileoverview 用户历史记录页面
|
|
2099
|
-
*/
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
* 用户历史记录页面组件
|
|
2103
|
-
*
|
|
2104
|
-
* @returns React组件
|
|
2105
|
-
*/
|
|
2106
|
-
declare function UserHistoryPage(): React__default.JSX.Element;
|
|
2107
|
-
|
|
2108
|
-
/**
|
|
2109
|
-
* useMasterpieces Hook 主体函数
|
|
2110
|
-
*
|
|
2111
|
-
* 提供画集数据管理和浏览状态管理的完整解决方案。
|
|
2112
|
-
* 包含状态管理、数据获取、缓存机制和用户交互功能。
|
|
2113
|
-
*
|
|
2114
|
-
*/
|
|
2115
|
-
declare const useMasterpieces: () => {
|
|
2116
|
-
/** 所有画集数据 */
|
|
2117
|
-
collections: ArtCollection[];
|
|
2118
|
-
/** 当前选中的画集 */
|
|
2119
|
-
selectedCollection: ArtCollection | null;
|
|
2120
|
-
/** 当前页面索引 */
|
|
2121
|
-
currentPage: number;
|
|
2122
|
-
/** 加载状态 */
|
|
2123
|
-
loading: boolean;
|
|
2124
|
-
/** 错误信息 */
|
|
2125
|
-
error: string | null;
|
|
2126
|
-
/** 获取当前作品的方法 */
|
|
2127
|
-
getCurrentArtwork: () => ArtworkPage | null;
|
|
2128
|
-
/** 是否可以下一页 */
|
|
2129
|
-
canGoNext: boolean;
|
|
2130
|
-
/** 是否可以上一页 */
|
|
2131
|
-
canGoPrev: boolean;
|
|
2132
|
-
/** 选择画集 */
|
|
2133
|
-
selectCollection: (collection: ArtCollection) => void;
|
|
2134
|
-
/** 下一页 */
|
|
2135
|
-
nextPage: () => void;
|
|
2136
|
-
/** 上一页 */
|
|
2137
|
-
prevPage: () => void;
|
|
2138
|
-
/** 跳转到指定页 */
|
|
2139
|
-
goToPage: (pageIndex: number) => void;
|
|
2140
|
-
/** 返回画集列表 */
|
|
2141
|
-
backToGallery: () => void;
|
|
2142
|
-
/** 搜索画集 */
|
|
2143
|
-
searchCollections: (query: string) => Promise<void>;
|
|
2144
|
-
/** 加载画集数据 */
|
|
2145
|
-
loadCollections: (forceRefresh?: boolean) => Promise<void>;
|
|
2146
|
-
};
|
|
2147
|
-
|
|
2148
|
-
declare const useMasterpiecesConfig: () => {
|
|
2149
|
-
config: MasterpiecesConfig | null;
|
|
2150
|
-
collections: ArtCollection[];
|
|
2151
|
-
categories: CategoryOption[];
|
|
2152
|
-
tags: string[];
|
|
2153
|
-
loading: boolean;
|
|
2154
|
-
error: string | null;
|
|
2155
|
-
refreshCounter: number;
|
|
2156
|
-
updateConfig: (configData: Partial<MasterpiecesConfig>) => Promise<void>;
|
|
2157
|
-
resetConfig: () => Promise<void>;
|
|
2158
|
-
createCollection: (collectionData: CollectionFormData) => Promise<void>;
|
|
2159
|
-
updateCollection: (id: number, collectionData: CollectionFormData) => Promise<void>;
|
|
2160
|
-
deleteCollection: (id: number) => Promise<void>;
|
|
2161
|
-
addArtworkToCollection: (collectionId: number, artworkData: ArtworkFormData) => Promise<void>;
|
|
2162
|
-
updateArtwork: (collectionId: number, artworkId: number, artworkData: ArtworkFormData) => Promise<void>;
|
|
2163
|
-
deleteArtwork: (collectionId: number, artworkId: number) => Promise<void>;
|
|
2164
|
-
moveArtworkUp: (collectionId: number, artworkId: number) => Promise<void>;
|
|
2165
|
-
moveArtworkDown: (collectionId: number, artworkId: number) => Promise<void>;
|
|
2166
|
-
updateArtworkOrder: (collectionId: number, artworkOrders: {
|
|
2167
|
-
id: number;
|
|
2168
|
-
pageOrder: number;
|
|
2169
|
-
}[]) => Promise<void>;
|
|
2170
|
-
moveCollectionUp: (collectionId: number) => Promise<void>;
|
|
2171
|
-
moveCollectionDown: (collectionId: number) => Promise<void>;
|
|
2172
|
-
updateCollectionOrder: (collectionOrders: {
|
|
2173
|
-
id: number;
|
|
2174
|
-
displayOrder: number;
|
|
2175
|
-
}[]) => Promise<void>;
|
|
2176
|
-
refreshData: () => Promise<{
|
|
2177
|
-
config: MasterpiecesConfig;
|
|
2178
|
-
collections: any;
|
|
2179
|
-
categories: {
|
|
2180
|
-
name: string;
|
|
2181
|
-
description?: string | null;
|
|
2182
|
-
}[];
|
|
2183
|
-
tags: string[];
|
|
2184
|
-
}>;
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
/**
|
|
2188
|
-
* ShowMasterpiece 模块 - 购物车功能Hook
|
|
2189
|
-
*
|
|
2190
|
-
* 提供购物车功能相关的状态管理和业务逻辑,包括:
|
|
2191
|
-
* - 购物车状态管理
|
|
2192
|
-
* - 购物车操作(添加、更新、移除、清空)
|
|
2193
|
-
* - 批量预订处理
|
|
2194
|
-
* - 错误处理和加载状态
|
|
2195
|
-
*
|
|
2196
|
-
* @fileoverview 购物车功能Hook
|
|
2197
|
-
*/
|
|
2198
|
-
|
|
2199
|
-
declare const cartUpdateEvents: EventTarget;
|
|
2200
|
-
declare const CART_UPDATE_EVENT = "cart-updated";
|
|
2201
|
-
declare const notifyCartUpdate: () => void;
|
|
2202
|
-
/**
|
|
2203
|
-
* 购物车Hook
|
|
2204
|
-
*
|
|
2205
|
-
* 管理购物车的状态和业务逻辑
|
|
2206
|
-
*
|
|
2207
|
-
* @param userId 用户ID
|
|
2208
|
-
* @returns 购物车状态和操作方法
|
|
2209
|
-
*/
|
|
2210
|
-
declare function useCart(userId: number): {
|
|
2211
|
-
cart: Cart;
|
|
2212
|
-
loading: boolean;
|
|
2213
|
-
error: string | undefined;
|
|
2214
|
-
isCartOpen: boolean;
|
|
2215
|
-
loadCart: () => Promise<void>;
|
|
2216
|
-
addItemToCart: (request: AddToCartRequest & {
|
|
2217
|
-
userId: number;
|
|
2218
|
-
collection?: any;
|
|
2219
|
-
}) => Promise<void>;
|
|
2220
|
-
updateItemQuantity: (collectionId: number, quantity: number) => Promise<void>;
|
|
2221
|
-
removeItemFromCart: (collectionId: number) => Promise<void>;
|
|
2222
|
-
clearCartItems: () => Promise<void>;
|
|
2223
|
-
checkoutCart: (qqNumber: string, phoneNumber: string, notes?: string, pickupMethod?: string) => Promise<BatchBookingResponse>;
|
|
2224
|
-
openCart: () => void;
|
|
2225
|
-
closeCart: () => void;
|
|
2226
|
-
clearError: () => void;
|
|
2227
|
-
};
|
|
2228
|
-
|
|
2229
|
-
/**
|
|
2230
|
-
* ShowMasterpiece 模块 - 预订功能Hook
|
|
2231
|
-
*
|
|
2232
|
-
* 提供预订功能相关的状态管理和业务逻辑,包括:
|
|
2233
|
-
* - 预订表单状态管理
|
|
2234
|
-
* - 画集列表加载
|
|
2235
|
-
* - 预订提交处理
|
|
2236
|
-
* - 错误处理和加载状态
|
|
2237
|
-
*
|
|
2238
|
-
* @fileoverview 预订功能Hook
|
|
2239
|
-
*/
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* 预订页面Hook属性
|
|
2243
|
-
*/
|
|
2244
|
-
interface UseBookingProps {
|
|
2245
|
-
}
|
|
2246
|
-
/**
|
|
2247
|
-
* 预订页面Hook
|
|
2248
|
-
*
|
|
2249
|
-
* 管理预订页面的状态和业务逻辑
|
|
2250
|
-
*
|
|
2251
|
-
* @param props Hook属性
|
|
2252
|
-
* @returns 预订页面状态和操作方法
|
|
2253
|
-
*/
|
|
2254
|
-
declare function useBooking(_props?: UseBookingProps): {
|
|
2255
|
-
collections: CollectionSummary[];
|
|
2256
|
-
loading: boolean;
|
|
2257
|
-
error: string | undefined;
|
|
2258
|
-
submitting: boolean;
|
|
2259
|
-
submitted: boolean;
|
|
2260
|
-
loadCollections: () => Promise<void>;
|
|
2261
|
-
submitBooking: (formData: BookingFormData) => Promise<void>;
|
|
2262
|
-
resetSubmission: () => void;
|
|
2263
|
-
clearError: () => void;
|
|
2264
|
-
};
|
|
2265
|
-
/**
|
|
2266
|
-
* 预订表单Hook
|
|
2267
|
-
*
|
|
2268
|
-
* 管理预订表单的状态和验证
|
|
2269
|
-
*
|
|
2270
|
-
* @returns 表单状态和操作方法
|
|
2271
|
-
*/
|
|
2272
|
-
declare function useBookingForm(): {
|
|
2273
|
-
formData: BookingFormData;
|
|
2274
|
-
errors: Partial<Record<keyof BookingFormData, string>>;
|
|
2275
|
-
updateField: (field: keyof BookingFormData, value: any) => void;
|
|
2276
|
-
validateForm: () => boolean;
|
|
2277
|
-
resetForm: () => void;
|
|
2278
|
-
};
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* ShowMasterpiece 模块 - 预订管理Hook
|
|
2282
|
-
*
|
|
2283
|
-
* 提供预订管理功能的状态管理和数据获取逻辑,包括:
|
|
2284
|
-
* - 获取所有预订数据
|
|
2285
|
-
* - 预订统计信息
|
|
2286
|
-
* - 状态更新
|
|
2287
|
-
* - 加载和错误状态管理
|
|
2288
|
-
* - 用户搜索功能
|
|
2289
|
-
*
|
|
2290
|
-
* @fileoverview 预订管理Hook
|
|
2291
|
-
*/
|
|
2292
|
-
|
|
2293
|
-
/**
|
|
2294
|
-
* 预订管理Hook返回值类型
|
|
2295
|
-
*/
|
|
2296
|
-
interface UseBookingAdminReturn {
|
|
2297
|
-
/** 预订数据列表 */
|
|
2298
|
-
bookings: BookingAdminData[];
|
|
2299
|
-
/** 统计信息 */
|
|
2300
|
-
stats: BookingAdminStats;
|
|
2301
|
-
/** 加载状态 */
|
|
2302
|
-
loading: boolean;
|
|
2303
|
-
/** 错误信息 */
|
|
2304
|
-
error?: string;
|
|
2305
|
-
/** 搜索参数 */
|
|
2306
|
-
searchParams: BookingAdminQueryParams;
|
|
2307
|
-
/** 刷新数据 */
|
|
2308
|
-
refreshData: () => Promise<void>;
|
|
2309
|
-
/** 搜索预订数据 */
|
|
2310
|
-
searchBookings: (params: BookingAdminQueryParams) => Promise<void>;
|
|
2311
|
-
/** 清除搜索条件 */
|
|
2312
|
-
clearSearch: () => void;
|
|
2313
|
-
/** 更新预订状态 */
|
|
2314
|
-
updateBookingStatus: (id: number, status: BookingStatus, adminNotes?: string) => Promise<void>;
|
|
2315
|
-
/** 删除预订 */
|
|
2316
|
-
deleteBooking: (id: number) => Promise<void>;
|
|
2317
|
-
/** 导出预订数据 */
|
|
2318
|
-
exportBookings: (format?: 'csv' | 'excel') => Promise<void>;
|
|
2319
|
-
/** 清除错误 */
|
|
2320
|
-
clearError: () => void;
|
|
2321
|
-
}
|
|
2322
|
-
/**
|
|
2323
|
-
* 预订管理Hook
|
|
2324
|
-
*
|
|
2325
|
-
* 提供预订管理功能的状态管理和数据获取逻辑
|
|
2326
|
-
*
|
|
2327
|
-
* @returns 预订管理Hook返回值
|
|
2328
|
-
*/
|
|
2329
|
-
declare const useBookingAdmin: () => UseBookingAdminReturn;
|
|
2330
|
-
|
|
2331
|
-
/**
|
|
2332
|
-
* ShowMasterpiece 模块 - 限时弹窗Hook
|
|
2333
|
-
*
|
|
2334
|
-
* 管理限时弹窗的显示逻辑
|
|
2335
|
-
*
|
|
2336
|
-
* @fileoverview 限时弹窗Hook
|
|
2337
|
-
*/
|
|
2338
|
-
|
|
2339
|
-
/**
|
|
2340
|
-
* 限时弹窗Hook
|
|
2341
|
-
*/
|
|
2342
|
-
declare function useDeadlinePopup(businessModule?: string, businessScene?: string): {
|
|
2343
|
-
checkPopups: (currentTime?: Date) => Promise<{
|
|
2344
|
-
id: string;
|
|
2345
|
-
description: string | null;
|
|
2346
|
-
createdAt: Date | null;
|
|
2347
|
-
updatedAt: Date | null;
|
|
2348
|
-
type: string;
|
|
2349
|
-
enabled: boolean | null;
|
|
2350
|
-
name: string;
|
|
2351
|
-
sortOrder: string | null;
|
|
2352
|
-
triggerConfig: {
|
|
2353
|
-
deadlineTime?: string;
|
|
2354
|
-
advanceMinutes?: number;
|
|
2355
|
-
triggerType: "after_deadline" | "before_deadline" | "always";
|
|
2356
|
-
};
|
|
2357
|
-
contentConfig: {
|
|
2358
|
-
title: string;
|
|
2359
|
-
message: string;
|
|
2360
|
-
confirmText?: string;
|
|
2361
|
-
cancelText?: string;
|
|
2362
|
-
showCancel?: boolean;
|
|
2363
|
-
theme?: "warning" | "info" | "error" | "success";
|
|
2364
|
-
};
|
|
2365
|
-
displayConfig: {
|
|
2366
|
-
width?: number;
|
|
2367
|
-
height?: number | string;
|
|
2368
|
-
maskClosable?: boolean;
|
|
2369
|
-
autoCloseSeconds?: number;
|
|
2370
|
-
} | null;
|
|
2371
|
-
blockProcess: boolean | null;
|
|
2372
|
-
businessModule: string;
|
|
2373
|
-
businessScene: string;
|
|
2374
|
-
}[]>;
|
|
2375
|
-
closePopup: (configId: string) => void;
|
|
2376
|
-
confirmPopup: (configId: string) => void;
|
|
2377
|
-
cancelPopup: (configId: string) => void;
|
|
2378
|
-
temporaryClosePopup: (configId: string) => void;
|
|
2379
|
-
resetDismissedPopups: () => void;
|
|
2380
|
-
triggerCheck: (currentTime?: Date) => Promise<{
|
|
2381
|
-
id: string;
|
|
2382
|
-
description: string | null;
|
|
2383
|
-
createdAt: Date | null;
|
|
2384
|
-
updatedAt: Date | null;
|
|
2385
|
-
type: string;
|
|
2386
|
-
enabled: boolean | null;
|
|
2387
|
-
name: string;
|
|
2388
|
-
sortOrder: string | null;
|
|
2389
|
-
triggerConfig: {
|
|
2390
|
-
deadlineTime?: string;
|
|
2391
|
-
advanceMinutes?: number;
|
|
2392
|
-
triggerType: "after_deadline" | "before_deadline" | "always";
|
|
2393
|
-
};
|
|
2394
|
-
contentConfig: {
|
|
2395
|
-
title: string;
|
|
2396
|
-
message: string;
|
|
2397
|
-
confirmText?: string;
|
|
2398
|
-
cancelText?: string;
|
|
2399
|
-
showCancel?: boolean;
|
|
2400
|
-
theme?: "warning" | "info" | "error" | "success";
|
|
2401
|
-
};
|
|
2402
|
-
displayConfig: {
|
|
2403
|
-
width?: number;
|
|
2404
|
-
height?: number | string;
|
|
2405
|
-
maskClosable?: boolean;
|
|
2406
|
-
autoCloseSeconds?: number;
|
|
2407
|
-
} | null;
|
|
2408
|
-
blockProcess: boolean | null;
|
|
2409
|
-
businessModule: string;
|
|
2410
|
-
businessScene: string;
|
|
2411
|
-
}[]>;
|
|
2412
|
-
/** 需要显示的弹窗配置 */
|
|
2413
|
-
configs: PopupConfig[];
|
|
2414
|
-
/** 是否正在加载 */
|
|
2415
|
-
loading: boolean;
|
|
2416
|
-
/** 错误信息 */
|
|
2417
|
-
error: string | null;
|
|
2418
|
-
/** 是否有弹窗显示 */
|
|
2419
|
-
hasPopup: boolean;
|
|
2420
|
-
};
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* ShowMasterpiece 模块 - 购物车上下文Hook
|
|
2424
|
-
*
|
|
2425
|
-
* 提供购物车上下文状态的访问Hook,用于在组件中获取购物车相关的状态和操作。
|
|
2426
|
-
* 这个Hook必须在CartProvider包装的组件内使用。
|
|
2427
|
-
*
|
|
2428
|
-
* 主要功能:
|
|
2429
|
-
* - 获取购物车数据
|
|
2430
|
-
* - 获取加载状态
|
|
2431
|
-
* - 获取错误信息
|
|
2432
|
-
* - 提供刷新购物车的方法
|
|
2433
|
-
*
|
|
2434
|
-
* @fileoverview 购物车上下文Hook
|
|
2435
|
-
*/
|
|
2436
|
-
|
|
2437
|
-
/**
|
|
2438
|
-
* 使用购物车上下文Hook
|
|
2439
|
-
*
|
|
2440
|
-
* 这个Hook用于在组件中访问购物车上下文状态。
|
|
2441
|
-
* 必须在CartProvider包装的组件内使用,否则会抛出错误。
|
|
2442
|
-
*
|
|
2443
|
-
* @returns 购物车上下文状态,包含购物车数据、加载状态、错误信息和刷新方法
|
|
2444
|
-
* @throws {Error} 当在CartProvider外部使用时抛出错误
|
|
2445
|
-
*
|
|
2446
|
-
* @example
|
|
2447
|
-
* ```tsx
|
|
2448
|
-
* function CartButton() {
|
|
2449
|
-
* const { cart, loading, error, refreshCart } = useCartContext();
|
|
2450
|
-
*
|
|
2451
|
-
* if (loading) return <div>加载中...</div>;
|
|
2452
|
-
* if (error) return <div>错误: {error}</div>;
|
|
2453
|
-
*
|
|
2454
|
-
* return (
|
|
2455
|
-
* <button onClick={refreshCart}>
|
|
2456
|
-
* 购物车 ({cart.totalQuantity})
|
|
2457
|
-
* </button>
|
|
2458
|
-
* );
|
|
2459
|
-
* }
|
|
2460
|
-
* ```
|
|
2461
|
-
*/
|
|
2462
|
-
declare const useCartContext: () => CartContextState;
|
|
2463
|
-
|
|
2464
|
-
/**
|
|
2465
|
-
* ShowMasterpiece 模块 - 购物车上下文
|
|
2466
|
-
*
|
|
2467
|
-
* 提供购物车状态的全局管理,包括:
|
|
2468
|
-
* - 购物车数据状态
|
|
2469
|
-
* - 购物车数据刷新
|
|
2470
|
-
* - 购物车更新通知
|
|
2471
|
-
*
|
|
2472
|
-
* @fileoverview 购物车上下文
|
|
2473
|
-
*/
|
|
2474
|
-
|
|
2475
|
-
/**
|
|
2476
|
-
* 购物车上下文提供者属性
|
|
2477
|
-
*/
|
|
2478
|
-
interface CartProviderProps {
|
|
2479
|
-
children: ReactNode;
|
|
2480
|
-
userId: number;
|
|
2481
|
-
}
|
|
2482
|
-
/**
|
|
2483
|
-
* 购物车上下文提供者组件
|
|
2484
|
-
*
|
|
2485
|
-
* @param props 组件属性
|
|
2486
|
-
* @returns React组件
|
|
2487
|
-
*/
|
|
2488
|
-
declare const CartProvider: React__default.FC<CartProviderProps>;
|
|
2489
|
-
|
|
2490
771
|
/**
|
|
2491
772
|
* ShowMasterpiece 模块 - 主入口文件
|
|
2492
773
|
*
|
|
@@ -2536,4 +817,4 @@ declare const SHOWMASTERPIECE_MODULE_VERSION = "1.0.0";
|
|
|
2536
817
|
/** 模块名称标识 */
|
|
2537
818
|
declare const SHOWMASTERPIECE_MODULE_NAME = "@profilesa2kitsa2kit/showmasterpiece";
|
|
2538
819
|
|
|
2539
|
-
export {
|
|
820
|
+
export { AddToCartRequest, ArtCollection, ArtworkFormData, ArtworkPage, BOOKING_EXPORT_FIELDS, BatchBookingRequest, BatchBookingResponse, BookingService, Cart, CartHistoryService, CartService, CollectionFormData, DEFAULT_BOOKING_EXPORT_CONFIG, MasterpiecesConfig, MasterpiecesService, RemoveFromCartRequest, SHOWMASTERPIECE_MODULE_NAME, SHOWMASTERPIECE_MODULE_VERSION, UpdateCartItemRequest, addArtworkToCollection, addToCart, batchBooking, clearCart, clearConfigCache, clearUserHistory, createBooking, createCategory, createCollection, deleteArtwork, deleteBooking, deleteCollection, deleteHistoryRecord, getAllCollections, getAllHistory, getArtworkImageUrl, getArtworksByCollection, getBookableCollections, getBooking, getBookings, getCart, getCartHistory, getCategories, getCollectionsOverview, getConfig, getMasterpieces, getShowMasterpieceFileConfig, getStatistics, getStorageModeDisplayName, getTags, moveArtwork, moveArtworkDown, moveArtworkUp, moveCollection, moveCollectionDown, moveCollectionUp, refreshFileServiceConfig, removeFromCart, resetConfig, saveCartHistory, shouldUseUniversalFileService, updateArtwork, updateArtworkOrder, updateBooking, updateBookingStatus as updateCartHistoryBookingStatus, updateCartItem, updateCollection, updateCollectionOrder, updateConfig, uploadArtworkImage };
|