fix: add clicked count on ads

This commit is contained in:
ericprd
2025-03-17 22:35:22 +08:00
parent c0dcdb77fa
commit 7b529ba46e
5 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ package adssvc
import adsdomain "legalgo-BE-go/internal/domain/ads"
func (i *impl) GetAll() ([]adsdomain.Ads, error) {
func (i *impl) GetAll() ([]adsdomain.AdsResponse, error) {
return i.adsRepo.GetAll()
}
+1 -1
View File
@@ -11,7 +11,7 @@ type impl struct {
type Ads interface {
Create(adsdomain.AdsReq) error
GetAll() ([]adsdomain.Ads, error)
GetAll() ([]adsdomain.AdsResponse, error)
Update(string, adsdomain.AdsReq) error
Delete(string) error
}