feat (generate-file): add validation
This commit is contained in:
@@ -14,9 +14,9 @@ type GeneralConsentPDF struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GenerateDto struct {
|
type GenerateDto struct {
|
||||||
EntityType_Code ere.EntityTypeCode `json:"entityType_code"`
|
EntityType_Code ere.EntityTypeCode `json:"entityType_code" validate:"required"`
|
||||||
Ref_Id *uint `json:"ref_id"`
|
Ref_Id *uint `json:"ref_id" validate:"required"`
|
||||||
Type_Code ere.DocTypeCode `json:"type_code"`
|
Type_Code ere.DocTypeCode `json:"type_code" validate:"required"`
|
||||||
FormatType erc.DocFormatTypeCode `json:"formatType"`
|
FormatType erc.DocFormatTypeCode `json:"formatType"`
|
||||||
TemplateName TemplateDocsName `json:"-"`
|
TemplateName TemplateDocsName `json:"-"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user