1 Star 0 Fork 0

tomatomeatman/GolangRepository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Entity.go 565 Bytes
一键复制 编辑 原始数据 按行查看 历史
laowei 提交于 2024-07-15 14:55 +08:00 . bricks2准备
package model
// 实体接口定义,用于规范实体结构体
type Entity interface {
New() interface{} //创建结构实体,并赋予默认值
SetDefault() //设置默认值
TableName() string //结构体映射表名
BaseColumnNames() []string //结构体映射表的字段名集合
Info() *TableInfo //结构体映射表简化信息
GetDataInfo(name string) *DataInfo //取数据结构信息
AllDataInfo(name string) []*DataInfo //取所有数据结构信息
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tomatomeatman/golang-repository.git
git@gitee.com:tomatomeatman/golang-repository.git
tomatomeatman
golang-repository
GolangRepository
5de5a6dbad55

搜索帮助