refactor(api): 更新 API调用以使用新的请求工具- 将所有 API 调用中的 request-legacy 替换为 request

- 优化部分 API 调用的参数传递方式
- 统一导入 ApiResult 和 PageResult 类型的路径
This commit is contained in:
2025-08-18 20:39:31 +08:00
parent ef134316b0
commit 06a3b15842
128 changed files with 494 additions and 693 deletions

View File

@@ -30,6 +30,8 @@ export interface ShopGift {
validDays?: number;
// 操作人
operatorUserId?: number;
// 操作人名称
operatorUserName?: string;
// 是否展示
isShow?: string;
// 状态 (0未使用 1已使用 2已过期 3已失效)
@@ -84,7 +86,7 @@ export interface ShopGiftParam extends PageParam {
// 是否过期筛选
isExpired?: boolean;
// 排序字段
sortBy?: 'createTime' | 'expireTime' | 'faceValue' | 'useTime';
sortBy?: 'createTime' | 'expireTime' | 'faceValue' | 'takeTime';
// 排序方向
sortOrder?: 'asc' | 'desc';
}
@@ -104,9 +106,22 @@ export interface GiftRedeemParam {
*/
export interface GiftUseParam {
// 礼品卡ID
giftId: number;
giftId?: number;
// 使用地址/门店
useLocation?: string;
// 使用备注
useNote?: string;
}
export interface QRCodeParam {
// 二维码数据
data?: string;
// 二维码尺寸
width?: number;
// 二维码高度
height?: number;
// 二维码过期时间
expireMinutes?: number;
// 业务类型
businessType?: string;
}