fix: image must be url in create ads

This commit is contained in:
ericprd
2025-03-10 10:28:23 +08:00
parent 1ae192ccef
commit ef6b17a363
4 changed files with 59 additions and 128 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
package adsdomain
import (
"legalgo-BE-go/internal/domain/oss"
"time"
)
@@ -14,6 +13,6 @@ type Ads struct {
}
type AdsReq struct {
Image *oss.UploadFileRequest `json:"image"`
Url string `json:"url"`
Image string `json:"image" validate:"required"`
URL string `json:"url" validate:"required"`
}