|
|
@@ -27,6 +27,17 @@ func (u UserRealNameAuthDb) GetRealNameAuthByUid(uid string) (m *model.UserRealN |
|
|
|
} |
|
|
|
return m, nil |
|
|
|
} |
|
|
|
func (u UserRealNameAuthDb) GetRealNameAuthById(id string) (m *model.UserRealNameAuth, err error) { |
|
|
|
m = new(model.UserRealNameAuth) |
|
|
|
has, err := u.Db.Where("id=?", id).Get(m) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
if has == false { |
|
|
|
return nil, nil |
|
|
|
} |
|
|
|
return m, nil |
|
|
|
} |
|
|
|
func (u UserRealNameAuthDb) GetRealNameAuthByUidWithState(uid, state string) (m *model.UserRealNameAuth, err error) { |
|
|
|
m = new(model.UserRealNameAuth) |
|
|
|
has, err := u.Db.Where("uid = ? and state=?", uid, state).Get(m) |
|
|
|