Documentation
¶
Overview ¶
Package base 提供基础模型定义和通用数据库操作方法 创建者:Done-0 创建时间:2025-08-05
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
ID int64 `gorm:"primaryKey;type:bigint" json:"id"` // 主键(snowflake)
GmtCreated int64 `gorm:"type:bigint" json:"gmt_created"` // 创建时间
GmtModified int64 `gorm:"type:bigint" json:"gmt_modified"` // 更新时间
Ext JSONMap `gorm:"type:json" json:"ext"` // 扩展字段
Deleted bool `gorm:"type:boolean;default:false" json:"deleted"` // 逻辑删除
}
Base 包含模型通用字段
Click to show internal directories.
Click to hide internal directories.