基础结构体
This commit is contained in:
parent
bb971e555b
commit
9d16ea5ab6
|
@ -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"`
|
||||
// 创建时间
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package base
|
||||
|
||||
type LingYeDTO struct {
|
||||
ID uint `json:"id" form:"id"`
|
||||
}
|
Loading…
Reference in New Issue