fix: remove auth in ads log

This commit is contained in:
ericprd
2025-03-19 12:47:41 +08:00
parent d7fa8496b0
commit b0099dac1e
6 changed files with 24 additions and 26 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ package logssvc
import "fmt"
func (i *impl) CreateLogAds(adsID, userID string) error {
if err := i.logsRepo.CreateLogAds(adsID, userID); err != nil {
func (i *impl) CreateLogAds(adsID string) error {
if err := i.logsRepo.CreateLogAds(adsID); err != nil {
return fmt.Errorf("failed to create ads log: %v", err)
}
+1 -1
View File
@@ -10,7 +10,7 @@ type impl struct {
}
type Log interface {
CreateLogAds(adsID, userID string) error
CreateLogAds(string) error
GetAllLogAds(string) ([]adsdomain.Ads, error)
}