fix: 删除未使用的函数修复golangci-lint错误
This commit is contained in:
@@ -72,8 +72,3 @@ func (r databaseSQLLogRepository) FindOutTimeLog(c context.Context, dayLimit int
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r databaseSQLLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.DatabaseSQLLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
@@ -52,8 +52,3 @@ func (r filesystemLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r filesystemLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.FilesystemLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
@@ -67,8 +67,3 @@ func (r operationLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r operationLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.OperationLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user