topfans/backend/gateway/dto/peripheral_dto.go
2026-07-13 14:24:42 +08:00

35 lines
1.2 KiB
Go

package dto
// VerificationResponseDTO 验真接口响应(对齐 spec §4.1 JSON 字段名)
type VerificationResponseDTO struct {
Code int `json:"code"`
Data *VerificationData `json:"data"`
Message string `json:"message"`
}
type VerificationData struct {
AssetID int64 `json:"asset_id"`
Code string `json:"code,omitempty"` // 周边实体唯一编号(SKU/序列号)
Company string `json:"company"`
Hash string `json:"hash"`
VerifyCount int64 `json:"verify_count"`
Brand string `json:"brand"`
Image string `json:"image"`
Verifier string `json:"verifier"`
VerifiedAt int64 `json:"verified_at"`
MaterialType string `json:"material_type,omitempty"` // 周边素材类型(空时前端 fallback "new")
}
// MintResponseDTO 加入藏品响应(对齐 spec §4.2 JSON 字段名)
type MintResponseDTO struct {
Code int `json:"code"`
Data *MintData `json:"data"`
Message string `json:"message"`
}
type MintData struct {
InstanceID int64 `json:"instance_id"`
AssetID int64 `json:"asset_id"`
MintedAt int64 `json:"minted_at"`
CoverImage string `json:"cover_image"`
}