基础结构体
This commit is contained in:
+1
-1
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user