1 Star 0 Fork 0

达瓦达瓦/MicroCool-user

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
model.go 519 Bytes
一键复制 编辑 原始数据 按行查看 历史
Enmin Zhang 提交于 2年前 . 用户登陆
package global
import (
"time"
"gorm.io/gorm"
)
type ModelTime struct {
CreatedTime time.Time `json:"createdTime" ` // 创建时间
UpdatedTime time.Time `json:"updatedTime"` // 更新时间
DeletedTime gorm.DeletedAt `json:"-"`
}
type OperateBy struct {
CreateBy int `json:"createBy"`
UpdateBy int `json:"updateBy"`
}
type Migration struct {
Version string `gorm:"primaryKey"`
ApplyTime time.Time `gorm:"autoCreateTime"`
}
func (Migration) TableName() string {
return "sys_migration"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangenmin666/MicroCool-user.git
git@gitee.com:zhangenmin666/MicroCool-user.git
zhangenmin666
MicroCool-user
MicroCool-user
master

搜索帮助

371d5123 14472233 46e8bd33 14472233