拓展类型 自定义工具类型
This commit is contained in:
+14
-1
@@ -3,6 +3,7 @@ package models
|
||||
import (
|
||||
"time"
|
||||
"work_cation/pkg/gormx"
|
||||
"work_cation/pkg/utils"
|
||||
)
|
||||
|
||||
type BaseCard struct {
|
||||
@@ -19,5 +20,17 @@ type BaseCard struct {
|
||||
}
|
||||
|
||||
const (
|
||||
ToolTypeErlang = "erlangCard" // 卡片
|
||||
ToolTypeErlang = "erlangCard" // 卡片
|
||||
ToolTypeExecFiles = "execFiles" // 可执行文件
|
||||
)
|
||||
|
||||
func NewBaseCard(t, userId string) BaseCard {
|
||||
return BaseCard{
|
||||
UUID: utils.Uuid.CreateUUID(),
|
||||
UserID: userId,
|
||||
Title: "未命名",
|
||||
Text: "未命名",
|
||||
ToolType: t,
|
||||
UpdateTx: time.Now(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user