admin
2019-05-16 4114e871bcb3dce771b6aed64a1027d0bbb95ca6
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java
@@ -1,13 +1,17 @@
package com.yeshi.fanli.service.inter.user;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.entity.admin.UserInfoAdmin;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.bus.user.InviteUser;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.exception.user.UserInfoException;
import com.yeshi.fanli.vo.user.UserInfoVO;
public interface UserInfoService {
   /**
@@ -94,8 +98,6 @@
   public BigDecimal getNewPeopleHB(Long id);
   public BigDecimal getMyHB(Long id);
   /**
    * 查询用户信息  -- 用户管理列表
    * @param start
@@ -108,10 +110,10 @@
    * @param orderMode
    * @return
    */
   public List<UserInfoAdmin> query(long start, int count, String key, Integer userType,
   public List<UserInfoVO> query(long start, int count, Integer userState, String key, Integer keyType, String userRank,
         Integer days, String startTime, String endTime,Integer orderField, Integer orderMode);
   public long queryCount(String key, Integer userType, Integer days, String startTime,
   public long queryCount(Integer userState, String key, Integer keyType, String userRank, Integer days, String startTime,
         String endTime);
   public double querySumMoney(String key, Integer userType, Integer days, String startTime, String endTime);
@@ -155,4 +157,51 @@
    */
   public UserInfo getInfoByPhoneOrInviteCode(String phone, String inviteCode);
   /**
    * 根据电话号码 获取有效用户
    * @param phone
    * @return
    */
   public UserInfo getEffectiveUserInfoByPhone(String phone);
   /**
    * 获取用户信息
    * @param uid
    * @return
    * @throws UserInfoException
    */
   public UserInfo getUserInfo(Long uid) throws UserInfoException;
   /**
    * 根据微信获取有效用户
    * @param unionId
    * @return
    */
   public UserInfo getEffectiveUserInfoByWXUnionId(String unionId);
   /**
    * 获取用户余额
    * @param uid
    * @return
    */
   public BigDecimal getBalance(Long uid);
   /**
    * 更换头像
    * @param file
    * @param uid
    * @throws UserInfoException
    * @throws IOException
    */
   public void uploadPortrait(MultipartFile file, Long uid) throws UserInfoException, IOException;
   /**
    * 保存头像
    * @param nickName
    * @param uid
    * @throws UserInfoException
    */
   public void saveUserInfo(String nickName, Long uid) throws UserInfoException;
}