根据查询条件查询User表 @param cond *orm.Condition 查询条件 @return User 返回查询到的User数据
(cond *orm.Condition)
| 108 | //@param cond *orm.Condition 查询条件 |
| 109 | //@return User 返回查询到的User数据 |
| 110 | func (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 邮箱 |
no test coverage detected