Files
quyun/backend_v1/app/http/dto/post_buyer.go
Rogee 65d40fa631
Some checks failed
build quyun / Build (push) Failing after 1m26s
feat: 添加作品购买人列表功能
2025-12-20 23:09:01 +08:00

18 lines
792 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
import "time"
type PostBuyerItem struct {
UserID int64 `json:"user_id"` // 用户 ID购买人唯一标识用于管理端关联用户详情/后续操作)
Username string `json:"username"` // 用户名(购买人展示名称;可能为空或默认值,前端需兼容)
Avatar string `json:"avatar"` // 用户头像 URL用于列表展示可能为空前端需提供占位图/降级展示)
Phone string `json:"phone"` // 用户手机号(管理端可见;用于客服联系/核对身份,可能为空)
BoughtAt time.Time `json:"bought_at"` // 购买时间(以 user_posts.created_at 为准;用于排序/审计)
Price int64 `json:"price"` // 购买价格(单位:分;-1 表示管理员赠送/免费,非负为实际支付金额)
}