package dto

type CreateDistrictRequest struct {
	Name       string `json:"name" binding:"required,min=2"`
	ProvinceID string `json:"province_id" binding:"required"`
	CityID     string `json:"city_id" binding:"required"`
}

type CreateDistrictResponse struct {
	ID         string  `json:"id"`
	Name       *string `json:"name"`
	ProvinceID *string `json:"province_id"`
	CityID     *string `json:"city_id"`
	MerchantID *string `json:"merchant_id"`
}

type DistrictFilterAllRequest struct {
	ID         string `json:"id" form:"id"`
	Name       string `json:"name" form:"name"`
	ProvinceID string `json:"province_id" form:"province_id"`
	CityID     string `json:"city_id" form:"city_id"`
	MerchantID string `json:"merchant_id" form:"merchant_id"`
}

type UpdateDistrictRequest struct {
	Name       string `json:"name" binding:"required,min=2"`
	ProvinceID string `json:"province_id" binding:"required"`
	CityID     string `json:"city_id" binding:"required"`
}

type ImportDistrictResponse struct {
	JobID     string      `json:"job_id,omitempty"`
	TotalRows int         `json:"total_rows"`
	Imported  int         `json:"imported"`
	Skipped   int         `json:"skipped"`
	Logs      []ImportLog `json:"logs"`
	Errors    []string    `json:"errors"`
	IsAsync   bool        `json:"is_async"`
	Message   string      `json:"message,omitempty"`
}
