From 9d16ea5ab6e00eea811912926de44b4f73300d3c Mon Sep 17 00:00:00 2001 From: TianJun Date: Wed, 28 Apr 2021 17:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E7=BB=93=E6=9E=84=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/base_do.go | 2 +- src/base/base_dto.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/base/base_dto.go diff --git a/src/base/base_do.go b/src/base/base_do.go index f1f3f48..07ea58b 100644 --- a/src/base/base_do.go +++ b/src/base/base_do.go @@ -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"` // 创建时间 diff --git a/src/base/base_dto.go b/src/base/base_dto.go new file mode 100644 index 0000000..7c1c403 --- /dev/null +++ b/src/base/base_dto.go @@ -0,0 +1,5 @@ +package base + +type LingYeDTO struct { + ID uint `json:"id" form:"id"` +}