package dto type CreateCostComponentRequest struct { Name string `json:"name" binding:"required,min=2"` Code string `json:"code" binding:"required"` Inc int32 `json:"inc"` Value string `json:"value"` CostComponentGroupID string `json:"cost_component_group_id" binding:"required"` } type CreateCostComponentResponse struct { ID string `json:"id"` Name *string `json:"name"` Code *string `json:"code"` Inc *int32 `json:"inc"` Value *string `json:"value"` CostComponentGroupID *string `json:"cost_component_group_id"` MerchantID *string `json:"merchant_id"` } type CostComponentFilterAllRequest struct { ID string `json:"id" form:"id"` Name string `json:"name" form:"name"` Code string `json:"code" form:"code"` CostComponentGroupID string `json:"cost_component_group_id" form:"cost_component_group_id"` MerchantID string `json:"merchant_id" form:"merchant_id"` } type UpdateCostComponentRequest struct { Name string `json:"name" binding:"required,min=2"` Code string `json:"code" binding:"required"` Inc int32 `json:"inc"` Value string `json:"value"` CostComponentGroupID string `json:"cost_component_group_id" binding:"required"` } type ImportCostComponentResponse 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"` }