first commit
This commit is contained in:
8
bin/FileTpl/model.txt
Normal file
8
bin/FileTpl/model.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';
|
||||
|
||||
export class ModelName {
|
||||
@MinLength(1,{
|
||||
message: 'id参数必须有'
|
||||
})
|
||||
id: string;
|
||||
}
|
||||
Reference in New Issue
Block a user