Files
quyun-v2/backend/app/http/v1/dto/coupon.go
2026-01-08 15:13:15 +08:00

25 lines
737 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dto
type UserCouponItem struct {
// ID 用户券ID。
ID int64 `json:"id"`
// CouponID 券模板ID。
CouponID int64 `json:"coupon_id"`
// Title 券标题。
Title string `json:"title"`
// Description 券描述。
Description string `json:"description"`
// Type 券类型(满减/折扣)。
Type string `json:"type"`
// Value 券面值(分/百分比)。
Value int64 `json:"value"`
// MinOrderAmount 使用门槛金额(分)。
MinOrderAmount int64 `json:"min_order_amount"`
// StartAt 生效时间RFC3339
StartAt string `json:"start_at"`
// EndAt 过期时间RFC3339
EndAt string `json:"end_at"`
// Status 当前状态(可用/已用/过期)。
Status string `json:"status"`
}