增加推销模式
This commit is contained in:
@@ -411,3 +411,275 @@ export type FootprintItemType = {
|
||||
shopName: string
|
||||
viewTime: number
|
||||
}
|
||||
|
||||
// =========================
|
||||
// 积分相关类型
|
||||
// =========================
|
||||
|
||||
// 签到记录类型
|
||||
export type SigninRecordType = {
|
||||
id: string
|
||||
user_id: string
|
||||
signin_date: string
|
||||
points_earned: number
|
||||
bonus_points: number
|
||||
continuous_days: number
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 签到结果类型
|
||||
export type SigninResultType = {
|
||||
success: boolean
|
||||
points: number
|
||||
continuous_days: number
|
||||
bonus_points: number
|
||||
total_points: number
|
||||
message: string
|
||||
}
|
||||
|
||||
// 积分兑换商品类型
|
||||
export type PointProductType = {
|
||||
id: string
|
||||
name: string
|
||||
description: string | null
|
||||
image_url: string | null
|
||||
product_type: string
|
||||
points_required: number
|
||||
original_price: number | null
|
||||
stock: number
|
||||
status: number
|
||||
sort_order: number
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 积分兑换记录类型
|
||||
export type PointExchangeType = {
|
||||
id: string
|
||||
user_id: string
|
||||
product_id: string
|
||||
quantity: number
|
||||
points_used: number
|
||||
status: number
|
||||
tracking_no: string | null
|
||||
address_snapshot: UTSJSONObject | null
|
||||
created_at: string
|
||||
product: PointProductType | null
|
||||
}
|
||||
|
||||
// 积分规则类型
|
||||
export type PointRuleType = {
|
||||
id: string
|
||||
rule_type: string
|
||||
rule_name: string
|
||||
points: number
|
||||
description: string | null
|
||||
config: UTSJSONObject | null
|
||||
status: number
|
||||
}
|
||||
|
||||
// 积分概览类型
|
||||
export type PointsOverviewType = {
|
||||
current_points: number
|
||||
total_earned: number
|
||||
total_used: number
|
||||
expiring_points: number
|
||||
expiring_date: string | null
|
||||
}
|
||||
|
||||
// =========================
|
||||
// 评价相关类型
|
||||
// =========================
|
||||
|
||||
// 商品评价类型(扩展)
|
||||
export type ProductReviewType = {
|
||||
id: string
|
||||
user_id: string
|
||||
product_id: string
|
||||
order_id: string
|
||||
order_item_id: string | null
|
||||
rating: number
|
||||
content: string | null
|
||||
images: string[]
|
||||
videos: string[]
|
||||
tags: string[]
|
||||
is_anonymous: boolean
|
||||
like_count: number
|
||||
is_edited: boolean
|
||||
append_content: string | null
|
||||
append_at: string | null
|
||||
append_images: string[]
|
||||
reply: string | null
|
||||
reply_time: string | null
|
||||
created_at: string
|
||||
updated_at: string
|
||||
user_name: string | null
|
||||
user_avatar: string | null
|
||||
is_liked: boolean
|
||||
}
|
||||
|
||||
// 评价统计类型
|
||||
export type ReviewStatsType = {
|
||||
total_count: number
|
||||
avg_rating: number
|
||||
good_rate: number
|
||||
rating_distribution: Map<string, number>
|
||||
tags: ReviewTagType[]
|
||||
}
|
||||
|
||||
// 评价标签类型
|
||||
export type ReviewTagType = {
|
||||
name: string
|
||||
count: number
|
||||
}
|
||||
|
||||
// 评价点赞类型
|
||||
export type ReviewLikeType = {
|
||||
id: string
|
||||
review_id: string
|
||||
user_id: string
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 评价举报类型
|
||||
export type ReviewReportType = {
|
||||
id: string
|
||||
review_id: string
|
||||
user_id: string
|
||||
reason: string
|
||||
description: string | null
|
||||
status: number
|
||||
handle_result: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 配送员评价类型
|
||||
export type DeliveryRatingType = {
|
||||
id: string
|
||||
order_id: string
|
||||
delivery_user_id: string
|
||||
user_id: string
|
||||
rating: number
|
||||
content: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 我的评价列表项类型
|
||||
export type MyReviewItemType = {
|
||||
id: string
|
||||
product_id: string
|
||||
product_name: string
|
||||
product_image: string
|
||||
rating: number
|
||||
content: string | null
|
||||
images: string[]
|
||||
created_at: string
|
||||
can_append: boolean
|
||||
can_edit: boolean
|
||||
}
|
||||
|
||||
// =========================
|
||||
// 推销模式相关类型
|
||||
// =========================
|
||||
|
||||
// 用户余额类型
|
||||
export type UserBalanceType = {
|
||||
id: string
|
||||
user_id: string
|
||||
balance: number
|
||||
frozen_balance: number
|
||||
total_earned: number
|
||||
total_withdrawn: number
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
// 余额变动记录类型
|
||||
export type BalanceRecordType = {
|
||||
id: string
|
||||
user_id: string
|
||||
type: string
|
||||
amount: number
|
||||
balance_before: number
|
||||
balance_after: number
|
||||
related_id: string | null
|
||||
description: string | null
|
||||
operator_id: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 分享记录类型
|
||||
export type ShareRecordType = {
|
||||
id: string
|
||||
user_id: string
|
||||
product_id: string
|
||||
order_id: string
|
||||
order_item_id: string | null
|
||||
share_code: string
|
||||
product_name: string
|
||||
product_image: string | null
|
||||
product_price: number
|
||||
required_count: number
|
||||
current_count: number
|
||||
status: number
|
||||
reward_amount: number | null
|
||||
created_at: string
|
||||
completed_at: string | null
|
||||
expired_at: string | null
|
||||
}
|
||||
|
||||
// 二级购买记录类型
|
||||
export type SecondaryPurchaseType = {
|
||||
id: string
|
||||
share_record_id: string
|
||||
buyer_id: string
|
||||
order_id: string
|
||||
quantity: number
|
||||
unit_price: number
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 免单奖励记录类型
|
||||
export type FreeOrderRewardType = {
|
||||
id: string
|
||||
user_id: string
|
||||
share_record_id: string
|
||||
amount: number
|
||||
status: number
|
||||
balance_record_id: string | null
|
||||
cleared_at: string | null
|
||||
cleared_by: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// 会员等级类型
|
||||
export type MemberLevelType = {
|
||||
id: number
|
||||
name: string
|
||||
min_amount: number
|
||||
discount: number
|
||||
icon: string | null
|
||||
description: string | null
|
||||
sort_order: number
|
||||
status: number
|
||||
}
|
||||
|
||||
// 用户会员信息类型
|
||||
export type UserMemberInfoType = {
|
||||
member_level: number
|
||||
level_name: string
|
||||
discount: number
|
||||
total_spent: number
|
||||
next_level: MemberLevelType | null
|
||||
progress_percent: number
|
||||
manual_level: boolean
|
||||
}
|
||||
|
||||
// 会员等级变更记录类型
|
||||
export type MemberLevelLogType = {
|
||||
id: string
|
||||
user_id: string
|
||||
old_level: number
|
||||
new_level: number
|
||||
reason: string | null
|
||||
operator_id: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user