拓展类型

This commit is contained in:
2024-09-25 17:45:38 +08:00
parent a0e898e46c
commit 3b69ba93ad
15 changed files with 214 additions and 40 deletions
+23
View File
@@ -0,0 +1,23 @@
package models
import (
"time"
"work_cation/pkg/gormx"
)
type BaseCard struct {
UUID string `json:"uuid"` // id ip加时间戳生成
UserID string `json:"user_id"` // 用户id 标识
Title string `json:"title"` // 标题
Text string `json:"text"` // 内容
Covers gormx.ListString `json:"covers"` // 封面
ToolType string `json:"tool_type"` // 工具类型
UpdateTx time.Time `json:"update_tx"` // 更新时间
Number int `json:"number"` // 数量
Goods int `json:"goods"` // 点赞数
Collection int `json:"collection"` // 收藏数
}
const (
ToolTypeErlang = "erlangCard" // 卡片
)