feat: create ads
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package adsdomain
|
||||
|
||||
import (
|
||||
"legalgo-BE-go/internal/domain/oss"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Ads struct {
|
||||
ID string `gorm:"primaryKey;not null" json:"id"`
|
||||
ImageUrl string `gorm:"not null" json:"image_url"`
|
||||
Url string `gorm:"not null" json:"url"`
|
||||
CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
|
||||
UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
|
||||
}
|
||||
|
||||
type AdsReq struct {
|
||||
Image *oss.UploadFileRequest `json:"image"`
|
||||
Url string `json:"url"`
|
||||
}
|
||||
Reference in New Issue
Block a user