忽略字段

设置 - 即可忽略 struct 中的字段

type User struct {
... AnyField string `orm:"-"` ...
}

beego orm 模型定义

相关文章: