fix: add start date and end date of ads

This commit is contained in:
ericprd
2025-03-13 11:45:39 +08:00
parent ce17e9dc73
commit 47085ca0ae
3 changed files with 23 additions and 15 deletions
+5 -3
View File
@@ -18,9 +18,11 @@ func (i *impl) Create(spec adsdomain.AdsReq) error {
}
newSpec := adsdomain.Ads{
ID: uuid.NewString(),
ImageUrl: spec.Image,
Url: spec.URL,
ID: uuid.NewString(),
ImageUrl: spec.Image,
Url: spec.URL,
StartDate: spec.StartDate,
EndDate: spec.EndDate,
}
return i.adsRepo.Create(newSpec)