package org.fanli.facade.user.service.account;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
import org.fanli.facade.user.dto.InviteUser;
|
import org.fanli.facade.user.dto.UserInfoAdmin;
|
|
import com.yeshi.fanli.base.entity.user.UserInfo;
|
|
public interface UserInfoService {
|
/**
|
* 通过openid和loginType,获取用户
|
*
|
* @param loginType
|
* 1:阿里系列(淘宝)账户
|
* @param openid
|
* :登录淘宝后得到的openid
|
* @param appid
|
* @return 用户,如果不存在返回null
|
*/
|
public UserInfo getUserByLoginTypeAndOpenId(int loginType, String openid, String appid);
|
|
/**
|
* 添加用户
|
*
|
* @param form
|
* 用户信息
|
* @return 用户,添加失败返回null
|
*/
|
public UserInfo addUser(UserInfo form, String appid);
|
|
/**
|
* 通过用户id获取用户
|
*
|
* @param uid
|
* 用户id
|
* @return 用户
|
*/
|
public UserInfo getUserById(long uid);
|
|
/**
|
* Mybatis通过用户ID获取用户信息
|
*
|
* @param uid
|
* @return
|
*/
|
public UserInfo getUserByIdWithMybatis(long uid);
|
|
public void update(UserInfo user);
|
|
public long getUserCount();
|
|
public List<UserInfo> getUserList(int index, String key);
|
|
public int getUserCount(String key);
|
|
public Map<String, Integer> getnewUserByDate(int days, Date date);
|
|
public Map<String, Integer> getnewUserByMonth(int months, Date date);
|
|
public Map<String, Integer> getUserTotalByDate(int days, Date date);
|
|
public Map<String, Integer> getUserTotalByMonth(int months, Date date);
|
|
public List<UserInfo> getUserListByUid(long uid);
|
|
public double getFreezeAssets(double min);
|
|
public double getCanAssets(double min);
|
|
public long getRandomShamUser();
|
|
public boolean inviteWXUserInfo(String code, UserInfo inviter);
|
|
public void unBindUserInfo(UserInfo find, int type);
|
|
public void addMoney(UserInfo userInfo, BigDecimal money);
|
|
public List<UserInfo> findFriends(long id, int type);
|
|
public List<InviteUser> getFriendsList(long id, int type, int page, int pageSize);
|
|
public long getFriendsListCount(long id, int type);
|
|
public int findFriendsCount(long id, int type);
|
|
public boolean createUser(UserInfo form, String appid);
|
|
public void updateLoginInfo(UserInfo user);
|
|
public void cleanPassword(long id);
|
|
public BigDecimal getNewPeopleHB(Long id);
|
|
public BigDecimal getMyHB(Long id);
|
|
/**
|
* 查询用户信息 -- 用户管理列表
|
* @param start
|
* @param count
|
* @param key
|
* @param userType
|
* @param days
|
* @param startTime
|
* @param endTime
|
* @param orderMode
|
* @return
|
*/
|
public List<UserInfoAdmin> query(long start, int count, String key, Integer userType,
|
Integer days, String startTime, String endTime,Integer orderField, Integer orderMode);
|
|
public long queryCount(String key, Integer userType, Integer days, String startTime,
|
String endTime);
|
|
public double querySumMoney(String key, Integer userType, Integer days, String startTime, String endTime);
|
|
|
/**
|
* 选择性更新
|
* @param record
|
* @return
|
*/
|
public int updateByPrimaryKeySelective(UserInfo record);
|
|
/**
|
* 其强制删除绑定信息
|
* @param user
|
* @param type
|
*/
|
public void deleteBindInfo(UserInfo user, int type);
|
|
/**
|
* 根据id查询用户信息
|
* @param id
|
* @return
|
*/
|
public UserInfo selectByPKey(Long id);
|
|
|
/**
|
* 超过 daysNum 天未登陆的用户
|
* @param daysNum
|
* @param list
|
* @return
|
*/
|
public List<Long> longTimeNoLogin(int daysNum, List<Long> list);
|
|
/**
|
* 根据电话号码、邀请码获取邀请用户
|
* @param phone
|
* @param inviteCode
|
* @return
|
*/
|
public UserInfo getInfoByPhoneOrInviteCode(String phone, String inviteCode);
|
|
}
|