操作记录表索引修改
This commit is contained in:
@@ -13,7 +13,10 @@ type OperateEvent struct {
|
|||||||
|
|
||||||
func (v *OperateEvent) TableIndex() [][]string {
|
func (v *OperateEvent) TableIndex() [][]string {
|
||||||
return [][]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 {
|
func (v *OperateEventDetail) TableIndex() [][]string {
|
||||||
return [][]string{
|
return [][]string{
|
||||||
[]string{"AccessUUID", "ThingID", "StoreID"},
|
[]string{"AccessUUID"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*OperateEventDetail) TableUnique() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"ThingID", "StoreID"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user