From dbc1fb7cd2b4cfd7940220e0bba9f07b1ad9a574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 14 Jan 2020 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=AE=B0=E5=BD=95=E8=A1=A8?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/event.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/business/model/event.go b/business/model/event.go index abb79ba88..cb0c930b1 100644 --- a/business/model/event.go +++ b/business/model/event.go @@ -13,7 +13,10 @@ type OperateEvent struct { func (v *OperateEvent) TableIndex() [][]string { return [][]string{ - []string{"AccessUUID", "UserID"}, + []string{"AccessUUID"}, + []string{"UserID"}, + []string{"APIFunction"}, + []string{"CreatedAt"}, } } @@ -30,6 +33,12 @@ type OperateEventDetail struct { func (v *OperateEventDetail) TableIndex() [][]string { return [][]string{ - []string{"AccessUUID", "ThingID", "StoreID"}, + []string{"AccessUUID"}, + } +} + +func (*OperateEventDetail) TableUnique() [][]string { + return [][]string{ + []string{"ThingID", "StoreID"}, } }