go17/vblog/utils/resource.go

15 lines
392 B
Go
Raw Normal View History

2024-12-01 12:00:49 +08:00
package utils
import "time"
type ResourceMeta struct {
// 资源Id
Id uint `json:"id" gorm:"primaryKey;column:id"`
// 创建时间
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;not null"`
2024-12-01 16:05:07 +08:00
// 用户名称
CreateBy string `json:"create_by" gorm:"column:create_by;type:varchar(100)"`
2024-12-01 12:00:49 +08:00
// 更新时间
UpdatedAt *time.Time `json:"updated_at" gorm:"column:updated_at"`
}