优惠券额度包
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
376 B

  1. package db
  2. import (
  3. "code.fnuoos.com/go_rely_warehouse/zyos_go_coupon.git/db/model"
  4. "xorm.io/xorm"
  5. )
  6. func UserFindByPhoneOrNickname(Db *xorm.Engine, mobile string) (*model.User, error) {
  7. var m model.User
  8. if has, err := Db.Where("(phone = ? or nickname=?) AND delete_at = 0", mobile, mobile).
  9. Get(&m); err != nil || has == false {
  10. return nil, err
  11. }
  12. return &m, nil
  13. }