- @zenweb/helper: ^3.3.0
- 去除 Helper
- 新增 QueryHelper, ParamHelper, TypeCastHelper
- @zenweb/body: ^3.1.0
- 新增 BodyHelper 数据类型转换&校验
import { mapping, BodyHelper } from 'zenweb';
export class TestController {
@mapping()
test1(body: BodyHelper) {
return body.get({ age: '!int' });
}
@mapping()
test2(query: QueryHelper) {
return query.get({ age: '!int' });
}
}