feat(1.0.2):修复专栏问题;修复多端登录问题;

developing
张帅 2 weeks ago
parent 13f045569e
commit fc961c7817

@ -10,10 +10,15 @@ type PurchaseDTO struct {
ContentType purchase.ContentType `json:"contentType"` ContentType purchase.ContentType `json:"contentType"`
Price float64 `json:"price"` Price float64 `json:"price"`
Status int8 `json:"status"` Status int8 `json:"status"`
Duration int `json:"duration"` // 购买时长文章为0表示永久
CreatedAt string `json:"createdAt"` CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"` UpdatedAt string `json:"updatedAt"`
} }
/*
*/
// ToDTO 转换为DTO // ToDTO 转换为DTO
func ToDTO(p *purchase.Purchase) *PurchaseDTO { func ToDTO(p *purchase.Purchase) *PurchaseDTO {
if p == nil { if p == nil {

Loading…
Cancel
Save