2026-05-08 11:35:15 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
2026-06-10 15:29:21 +08:00
|
|
|
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
2026-05-08 11:35:15 +08:00
|
|
|
|
|
|
|
|
|
|
type CreationInfo struct {
|
|
|
|
|
|
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段:Id, TenantId, Creator, CreatedAt, Updater, UpdatedAt, DeletedAt
|
|
|
|
|
|
// 业务字段
|
|
|
|
|
|
HtmlFileUrl string `orm:"html_file_url" json:"htmlFileUrl"`
|
|
|
|
|
|
ImageUrls []string `orm:"image_urls" json:"imageUrls"`
|
|
|
|
|
|
ContentType string `orm:"content_type" json:"contentType"`
|
|
|
|
|
|
Theme string `orm:"theme" json:"theme"`
|
|
|
|
|
|
Title string `orm:"title" json:"title"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type creationInfoCol struct {
|
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
|
HtmlFileUrl string
|
|
|
|
|
|
ImageUrls string
|
|
|
|
|
|
ContentType string
|
|
|
|
|
|
Theme string
|
|
|
|
|
|
Title string
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var CreationInfoCol = creationInfoCol{
|
|
|
|
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
|
|
|
|
HtmlFileUrl: "html_file_url",
|
|
|
|
|
|
ImageUrls: "image_urls",
|
|
|
|
|
|
ContentType: "content_type",
|
|
|
|
|
|
Theme: "theme",
|
|
|
|
|
|
Title: "title",
|
|
|
|
|
|
}
|