fix: image must be url in create ads
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user