add validation on createDto

This commit is contained in:
dpurbosakti
2025-09-03 14:17:01 +07:00
parent 3d98e5508d
commit 92c6e8ea08
36 changed files with 103 additions and 103 deletions

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ import (
type CreateDto struct {
Installation_Id *uint16 `json:"installation_id"`
Code string `json:"code"`
Name string `json:"name"`
Code string `json:"code" validate:"maxLength=10"`
Name string `json:"name" validate:"maxLength=50"`
}
type ReadListDto struct {