完成Salon SIT整改并清理旧接口
This commit is contained in:
@@ -21,74 +21,11 @@ export interface OrderItem {
|
||||
* Usage: import, call, read, or update this interface from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
export interface CreateOrderRequest {
|
||||
couponId?: IdType
|
||||
couponSourceType?: string
|
||||
remark?: string
|
||||
clientRequestId?: string
|
||||
items: OrderItem[]
|
||||
}
|
||||
|
||||
export type CheckoutPreviewRequest = CreateOrderRequest
|
||||
|
||||
export interface CheckoutCouponPreview {
|
||||
id: IdType
|
||||
couponId?: IdType
|
||||
userCouponId?: IdType
|
||||
sourceType?: string
|
||||
couponName: string
|
||||
couponType: number
|
||||
couponTypeName?: string
|
||||
discountValue?: number
|
||||
minAmount?: number
|
||||
reduceAmount?: number
|
||||
discountAmount?: number
|
||||
available?: boolean
|
||||
best?: boolean
|
||||
vipAuto?: boolean
|
||||
displayText?: string
|
||||
savingText?: string
|
||||
unavailableReason?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}
|
||||
|
||||
export interface CheckoutIssue {
|
||||
code: string
|
||||
message: string
|
||||
itemId?: IdType
|
||||
productId?: IdType
|
||||
productTitle?: string
|
||||
}
|
||||
|
||||
export interface CheckoutPreview {
|
||||
subtotalAmount: number
|
||||
savedAmount: number
|
||||
payableAmount: number
|
||||
bestCoupon?: CheckoutCouponPreview
|
||||
availableCoupons: CheckoutCouponPreview[]
|
||||
unavailableCoupons: CheckoutCouponPreview[]
|
||||
bookingAvailable?: boolean
|
||||
bookingIssues?: CheckoutIssue[]
|
||||
vipTip?: string
|
||||
summaryText?: string
|
||||
}
|
||||
|
||||
export interface PaymentOrderVO {
|
||||
id: IdType
|
||||
payNo?: string
|
||||
orderId: IdType
|
||||
orderNo?: string
|
||||
userId?: IdType
|
||||
shopId?: IdType
|
||||
channel?: string
|
||||
status?: string
|
||||
payAmount?: number
|
||||
paidAmount?: number
|
||||
payTime?: string
|
||||
expireTime?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface OrderQuoteItem {
|
||||
orderItemId: IdType
|
||||
quotedPrice?: number
|
||||
@@ -147,14 +84,6 @@ export interface PageResult<T> {
|
||||
size: number
|
||||
}
|
||||
|
||||
export interface GrowthSummaryVO {
|
||||
userId?: IdType
|
||||
growthValue?: number
|
||||
levelName?: string
|
||||
appointmentCount?: number
|
||||
reviewCount?: number
|
||||
}
|
||||
|
||||
export const afterSaleApi = {
|
||||
apply: async (data: AfterSaleApplyRequest): Promise<AfterSaleVO> => {
|
||||
return await api.post<AfterSaleVO>('/after-sale/apply', data) as unknown as AfterSaleVO
|
||||
@@ -164,12 +93,6 @@ export const afterSaleApi = {
|
||||
}
|
||||
}
|
||||
|
||||
export const growthApi = {
|
||||
getSummary: async (): Promise<GrowthSummaryVO> => {
|
||||
return await api.get<GrowthSummaryVO>('/growth/summary') as unknown as GrowthSummaryVO
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Purpose: ArtistCalendarAppointment supports order.ts by holding or executing the artist calendar appointment page or API role.
|
||||
* Usage: import, call, read, or update this interface from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
@@ -329,10 +252,6 @@ export const orderApi = {
|
||||
return api.post('/order/create', data)
|
||||
},
|
||||
|
||||
checkoutPreview: async (data: CheckoutPreviewRequest): Promise<CheckoutPreview> => {
|
||||
return await api.post<CheckoutPreview>('/order/checkout-preview', data) as unknown as CheckoutPreview
|
||||
},
|
||||
|
||||
replyQuote: async (orderId: IdType, data?: OrderQuoteReplyRequest): Promise<any> => {
|
||||
return await api.post(`/order/${orderId}/quote/reply`, data || {}) as unknown as any
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user