Add entity valid use hunt.validation
zoujiaqing opened this issue · comments
@gaoxincheng , like code:
class User : Model
{
mixin MakeEntity;
@Length(6, 24)
string username;
}
- Model extend of hunt.validation.Valid;
- MakeEntity generate valid code;