add validation on createDto
This commit is contained in:
No files matched your search
@@ -5,9 +5,9 @@ import (
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
IndName string `json:"indName"`
|
||||
Code string `json:"code" validate:"maxLength=10"`
|
||||
Name string `json:"name" validate:"maxLength=2048"`
|
||||
IndName string `json:"indName" validate:"maxLength=2048"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
|
||||
Reference in New Issue
Block a user