feat: get all ads

This commit is contained in:
ericprd
2025-03-09 00:55:40 +08:00
parent 213d370332
commit 1ae192ccef
7 changed files with 61 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (i *impl) Create(ctx context.Context, spec adsdomain.AdsReq) error {
Url: spec.Url,
}
if err := i.ads.Create(newSpec); err != nil {
if err := i.adsRepo.Create(newSpec); err != nil {
if err := i.ossRepo.DeleteObject(ctx, id); err != nil {
return err
}