修正基本架构逻辑,基本实现离线功能

This commit is contained in:
2024-10-11 01:03:17 +08:00
parent 1a0a9466d8
commit 0716c82833
14 changed files with 331 additions and 96 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ type BaseCard struct {
}
const (
ToolTypeErlang = "erlangCard" // 卡片
ToolTypeExecFiles = "execFiles" // 可执行文件
ToolTypeErlang = "erlangCard" // 卡片
ToolTypeNoVarErlang = "erlangNoVarCard"
ToolTypeExecFiles = "execFiles" // 可执行文件
)
func NewBaseCard(t, userId string) BaseCard {
+1 -5
View File
@@ -3,11 +3,7 @@ package models
import "work_cation/pkg/gormx"
type ErlangCards 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"` // 封面
BaseCard
Template string `json:"template"` // 模版
VarName gormx.ListString `json:"var_name"` // 变量
VarContent gormx.ListString `json:"var_content"` // 变量内容