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