操作记录表索引修改

This commit is contained in:
苏尹岚
2020-01-14 15:03:22 +08:00
parent 07458141e6
commit dbc1fb7cd2

View File

@@ -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"},
}
}