package request

import (
	"web-qudo-be/app/database/entity"

	"github.com/google/uuid"
)

type HeroContentImageCreateRequest struct {
	HeroContentID uuid.UUID `json:"hero_content_id" validate:"required"`
	ImagePath     string    `json:"image_path"`
	ImageURL      string    `json:"image_url"`
}

func (r *HeroContentImageCreateRequest) ToEntity() *entity.HeroContentImages {
	return &entity.HeroContentImages{
		HeroContentID: r.HeroContentID,
		ImagePath:     r.ImagePath,
		ImageURL:      r.ImageURL,
	}
}

type HeroContentImageUpdateRequest struct {
	ImagePath string `json:"image_path"`
	ImageURL  string `json:"image_url"`
}

func (r *HeroContentImageUpdateRequest) ToEntity() *entity.HeroContentImages {
	return &entity.HeroContentImages{
		ImagePath: r.ImagePath,
		ImageURL:  r.ImageURL,
	}
}