(email string)
| 479 | } |
| 480 | |
| 481 | func IsEmailAlreadyTaken(email string) bool { |
| 482 | return DB.Unscoped().Where("email = ?", email).Find(&User{}).RowsAffected == 1 |
| 483 | } |
| 484 | |
| 485 | func IsWeChatIdAlreadyTaken(wechatId string) bool { |
| 486 | return DB.Unscoped().Where("wechat_id = ?", wechatId).Find(&User{}).RowsAffected == 1 |
no outgoing calls
no test coverage detected