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
+3 -4
View File
@@ -6,11 +6,10 @@ import (
"github.com/google/uuid"
)
func (a *accessor) CreateLogAds(adsID, userID string) error {
func (a *accessor) CreateLogAds(adsID string) error {
spec := database.LogAds{
ID: uuid.NewString(),
AdsID: adsID,
UserID: userID,
ID: uuid.NewString(),
AdsID: adsID,
}
if err := a.db.Create(&spec).Error; err != nil {
return err
+1 -1
View File
@@ -10,7 +10,7 @@ type accessor struct {
}
type Log interface {
CreateLogAds(adsID, userID string) error
CreateLogAds(string) error
GetAllLogAds(string) ([]adsdomain.Ads, error)
}