From 1fe58be9ccf916d43897431f1b26c0cc14d332f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 28 Aug 2020 16:03:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BC=9A=E5=91=98=E8=A1=A8?= =?UTF-8?q?=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/user.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/model/user.go b/business/model/user.go index 9e9a6bfba..e9a0819a3 100644 --- a/business/model/user.go +++ b/business/model/user.go @@ -204,6 +204,12 @@ type UserMember struct { EndAt time.Time `json:"endAt"` //会员过期时间 } +func (*UserMember) TableUnique() [][]string { + return [][]string{ + []string{"UserID", "MemberType"}, + } +} + func (v *UserMember) TableIndex() [][]string { return [][]string{ []string{"UserID"},