MCPcopy Index your code
hub / github.com/TruthHun/DocHub / GetUserField

Method GetUserField

models/UserModel.go:110–113  ·  view source on GitHub ↗

根据查询条件查询User表 @param cond *orm.Condition 查询条件 @return User 返回查询到的User数据

(cond *orm.Condition)

Source from the content-addressed store, hash-verified

108//@param cond *orm.Condition 查询条件
109//@return User 返回查询到的User数据
110func (u *User) GetUserField(cond *orm.Condition) (user User) {
111 orm.NewOrm().QueryTable(GetTableUser()).SetCond(cond).One(&user)
112 return user
113}
114
115//用户注册
116//@param email string 邮箱

Callers 2

SendMailMethod · 0.95
FindPwdMethod · 0.80

Calls 2

GetTableUserFunction · 0.85
OneMethod · 0.80

Tested by

no test coverage detected