diff --git a/modules/core.go b/modules/core.go index bd8e4346a..8f32830e5 100644 --- a/modules/core.go +++ b/modules/core.go @@ -19,17 +19,16 @@ type ( SendMsgToUser(mainType, subType string, msg proto.Message, user *pb.Cache_UserData) (err error) ///向多个用户发送消息 SendMsgToUsers(mainType, subType string, msg proto.Message, user ...*pb.Cache_UserData) (err error) - - // 向db 写日志信息 - InsertModelLogs(table string, uID string, handle interface{}) (err error) - DeleteModelLogs(table string, uID string, where interface{}) (err error) - UpdateModelLogs(table string, uID string, where interface{}, handle interface{}) (err error) } IAPI_Comp interface { } ICache_Comp interface { } IDB_Comp interface { + // 向db 写日志信息 + InsertModelLogs(table string, uID string, handle interface{}) (err error) + DeleteModelLogs(table string, uID string, where interface{}) (err error) + UpdateModelLogs(table string, uID string, where interface{}, handle interface{}) (err error) } IConfigure_Comp interface { LoadConfigure(name string, fn interface{}) (err error) diff --git a/modules/db_comp.go b/modules/db_comp.go index f340d0e70..5c2254caa 100644 --- a/modules/db_comp.go +++ b/modules/db_comp.go @@ -55,7 +55,7 @@ func (this *MComp_DBComp) InsertModelLogs(table string, uID string, target inter return err } -func (this *MComp_DBComp) DeleteModelLogs(table string, uID string, where interface{}, target interface{}) (err error) { +func (this *MComp_DBComp) DeleteModelLogs(table string, uID string, where interface{}) (err error) { data := &comm.Autogenerated{ ID: primitive.NewObjectID().Hex(),