feat: ads log

This commit is contained in:
ericprd
2025-03-17 22:19:17 +08:00
parent ee8e8e140d
commit c0dcdb77fa
19 changed files with 276 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
package logrepository
import (
"legalgo-BE-go/database"
adsdomain "legalgo-BE-go/internal/domain/ads"
)
type accessor struct {
db *database.DB
}
type Log interface {
CreateLogAds(adsID, userID string) error
GetAllLogAds(string) ([]adsdomain.Ads, error)
}
func New(db *database.DB) Log {
return &accessor{db}
}