From dfe218e1a07190a873479e01b4081470b359263c Mon Sep 17 00:00:00 2001 From: dorlolo <428192774@qq.com> Date: Tue, 21 Mar 2023 13:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=A1=A8=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=89=8B=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/model/real_name.go | 6 +++--- script/artistinfo_user_sync.go | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 script/artistinfo_user_sync.go diff --git a/cmd/model/real_name.go b/cmd/model/real_name.go index 06ef09c..8aae1b5 100644 --- a/cmd/model/real_name.go +++ b/cmd/model/real_name.go @@ -3,9 +3,9 @@ package model // 实名认证模型 type RealName struct { Model - Name string `gorm:"not null"` - IdNum string `gorm:"type:varchar(18) not null"` - TelNum string `gorm:"type:varchar(11) not null"` + Name string `gorm:"not null"` + IdNum string `gorm:"type:varchar(18) not null"` + // TelNum string `gorm:"type:varchar(11) not null"` IdCardFront string `gorm:"column:idcard_front;comment:身份证正面"` IdCardBack string `gorm:"column:idcard_back;comment:身份证反面"` Age int `gorm:"column:age"` diff --git a/script/artistinfo_user_sync.go b/script/artistinfo_user_sync.go new file mode 100644 index 0000000..c414696 --- /dev/null +++ b/script/artistinfo_user_sync.go @@ -0,0 +1,7 @@ +package controller + +type AutoMergeOldData struct{} + +func (AutoMergeOldData) Run() { + +}