fix: improvement logs and record news access
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package logssvc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
logsdomain "legalgo-BE-go/internal/domain/logs"
|
||||
)
|
||||
|
||||
func (i *impl) CreateLogNews(spec logsdomain.LogsSpec) error {
|
||||
spec.Category = "news"
|
||||
if err := i.logsRepo.CreateLog(spec); err != nil {
|
||||
return fmt.Errorf("failed to create news log: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user