Exemple #1
0
 /// <summary>
 /// 根据openid获取单条用户信息
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public List<WxUserInfo> SearchUserByOpenid(WxUserInfo info)
 {
     return _userDal.List(i => i.openid == info.openid);
 }
Exemple #2
0
 /// <summary>
 /// 根据openid更新单条用户信息
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public void UpdateUserInfo(WxUserInfo info)
 {
     _userDal.Update(info, i => i.openid == info.openid);
 }
Exemple #3
0
 /// <summary>
 /// 插入用户信息
 /// </summary>
 /// <param name="info"></param>
 public void InsertUser(WxUserInfo info)
 {
     _userDal.Insert(info);
 }