beego orm 主键不是Id的字段如何处理
type Thread struct { Threadid int64 `orm:"pk"` Userid int Forumid int Postid int Ip string `orm:"size(15)"` Source int Project int Other string `orm:"size(20)"` Type int Code int Pic string `orm:"size(2000)"` Title string `orm:"size(255)"` Content string `orm:"size(255)"` Datetime time.Time `orm:"auto_now_add;type(datetime)"` }
bee generate 自动生成代码的查询都是报错的