feat: ads log
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package logssvc
|
||||
|
||||
import (
|
||||
logrepository "legalgo-BE-go/internal/accessor/log"
|
||||
adsdomain "legalgo-BE-go/internal/domain/ads"
|
||||
)
|
||||
|
||||
type impl struct {
|
||||
logsRepo logrepository.Log
|
||||
}
|
||||
|
||||
type Log interface {
|
||||
CreateLogAds(adsID, userID string) error
|
||||
GetAllLogAds(string) ([]adsdomain.Ads, error)
|
||||
}
|
||||
|
||||
func New(
|
||||
logsRepo logrepository.Log,
|
||||
) Log {
|
||||
return &impl{
|
||||
logsRepo,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user