功能:落地待优化建议与VIP资产联动

This commit is contained in:
xiaowang
2026-03-20 12:24:56 +08:00
parent 8330ea1c83
commit f139395e60
52 changed files with 3187 additions and 1014 deletions
+11 -2
View File
@@ -17,6 +17,9 @@ export interface Coupon {
status: number
statusName: string
shopId?: number
couponScene?: string
requiredVipLevel?: string
autoMatch?: number
availableTags: Tag[]
unavailableTags: Tag[]
}
@@ -41,6 +44,9 @@ export interface UserCoupon {
statusName: string
obtainTime: string
useTime: string
sourceType?: string
requiredVipLevel?: string
autoMatched?: boolean
}
export interface CreateCouponRequest {
@@ -53,6 +59,9 @@ export interface CreateCouponRequest {
totalCount: number
startTime: string
endTime: string
couponScene?: string
requiredVipLevel?: string
autoMatch?: number
availableTagIds: number[]
unavailableTagIds: number[]
}
@@ -136,11 +145,11 @@ export const couponApi = {
},
// 获取作品可用的优惠券
getAvailableCoupons: (productTags: string, productPrice: number) => {
getAvailableCoupons: (productTags: string, productPrice: number, shopId?: number) => {
return request({
url: '/coupon/available',
method: 'get',
params: { productTags, productPrice }
params: { productTags, productPrice, shopId }
})
}
}