package validation

type Create struct {
	Name string `json:"name" validate:"required_strict,min=3,max=50"`
	Code string `json:"code" validate:"required_strict,max=10"`
}

type Update struct {
	Name *string `json:"name,omitempty" validate:"omitempty,max=50"`
	Code *string `json:"code,omitempty" validate:"omitempty,max=10"`
}

type Query struct {
	Page   int    `query:"page" validate:"omitempty,number,min=1"`
	Limit  int    `query:"limit" validate:"omitempty,number,min=1,max=100"`
	Search string `query:"search" validate:"omitempty,max=50"`
}
