外观
为字段设置默认值
import { Default, BaseModel } from '@gx-web/tool' class UserVO extends BaseModel { /** * ### 用户名称 */ @Default('') userName!: string /** 等于以上 */ userName: string = '' } UserVO.fromJson() // => { userName: '' }