基础结构体

This commit is contained in:
TianJun 2021-04-28 17:18:48 +08:00
parent bb971e555b
commit 9d16ea5ab6
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import (
"time"
)
type BaseDO struct {
type LingYeDO struct {
// 自增ID
ID uint `gorm:"column:id;type:bigint(20);not null;primary_key;AUTO_INCREMENT" json:"id" form:"id"`
// 创建时间

5
src/base/base_dto.go Normal file
View File

@ -0,0 +1,5 @@
package base
type LingYeDTO struct {
ID uint `json:"id" form:"id"`
}