beego orm 忽略字段

忽略字段

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

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

beego orm 模型定义

原文地址:https://www.cnblogs.com/mafeng/p/10772968.html