From 059b0c7557e0454bbd9eff9bb660156444e2b352 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, 11 Sep 2020 17:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97cid=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/store.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/business/model/store.go b/business/model/store.go index 3e72193cd..2e281bb68 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -685,3 +685,15 @@ func (*StoreCategoryMap) TableUnique() [][]string { []string{"StoreID", "CategoryID", "DeletedAt"}, } } + +type StoreClientPush struct { + ModelIDCULD + StoreID int `orm:"column(store_id)" json:"storeID"` + ClientID string `orm:"column(client_id);size(255)" json:"clientID"` +} + +func (*StoreClientPush) TableUnique() [][]string { + return [][]string{ + []string{"StoreID", "ClientID"}, + } +}