package com.yami.trading.service.user;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.yami.trading.bean.model.User;
|
import com.yami.trading.bean.user.dto.UserDataDto;
|
import com.yami.trading.bean.user.dto.UserDto;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface UserService extends IService<User> {
|
|
User register(String userName, String password, String userCode, int type, boolean robot);
|
|
/**
|
* 若主账户尚无模拟账户则创建,有则不做任何事(用于切换模拟账户时按需创建)
|
* @param mainUserId 主账户用户ID
|
*/
|
void createSimAccountIfAbsent(String mainUserId);
|
|
/**
|
* 验证资金密码
|
*
|
* @param safeword
|
* @param partyId
|
* @return
|
*/
|
public boolean checkSafeword(String safeword, String partyId);
|
void setSafeword(String userId,String safePassword);
|
|
User findByEmail(String email);
|
User findByUserName(String userName);
|
User findByUserId(String userId);
|
|
/**
|
* 修改余额 创建提现订单
|
*/
|
public void saveResetCreateWithdraw(String partyId,double money_revise,String safeword,String operator_partyId,String reset_type,String ip,String coin_type);
|
|
User findByUserMobile(String mobile);
|
public void saveResetLock(String partyId,double moneyRevise,String safeword,String operatorName,String resetType,String ip,String coinType) ;
|
/**
|
* 登录
|
*/
|
User login(String username, String password);
|
|
public boolean isOnline(String partyId);
|
/**
|
* 设置玩家在线
|
*/
|
public void online(String partyId);
|
|
public void saveUser(String username, String password, boolean login_authority, boolean enabled, String remarks,String operatorUsername,String ip,String parents_usercode);
|
|
/**
|
* tz_user 根据已验证的电话号码
|
*/
|
public User findPartyByVerifiedPhone(String phone);
|
|
/**
|
* 获取用户等级
|
* @param user
|
* @return
|
*/
|
int getUserLevelByAuth(User user);
|
|
/**
|
* 修改账户余额
|
* @param userId
|
* @param moneyRevise
|
* @param accountType
|
* @param coinType
|
*/
|
void updateWallt(String userId, BigDecimal moneyRevise, int accountType, String coinType);
|
|
/**
|
* 修改提现限制流水
|
* @param userId
|
*/
|
void updateWithdrawalLimitFlow(String userId, BigDecimal moneyWithdraw,String userName);
|
|
/**
|
* 重置密码
|
* @param userId
|
* @param password
|
*/
|
void restLoginPasswrod(String userId,
|
String password );
|
|
/**
|
* 解绑用户谷歌验证器
|
* @param userId
|
* @param googleAuthCode
|
* @param loginSafeword
|
*/
|
void deleteGooleAuthCode(String userId,String googleAuthCode,String loginSafeword);
|
|
/**
|
* 重置资金密码
|
* @param userId
|
* @param googleAuthCode
|
* @param loginSafeword
|
*/
|
void restSafePassword(String userId,String newSafeword);
|
|
/**
|
* 检查用户资金密码是否正确 true 正确
|
* @param userId
|
* @param loginSafeword
|
* @return
|
*/
|
boolean checkLoginSafeword(String userId,String loginSafeword);
|
|
/**
|
* 检查用户资金密码是否正确 true 正确
|
* @param userId
|
* @param loginSafeword
|
* @return
|
*/
|
|
boolean checkLoginSafeword(User user,String loginSafeword);
|
|
|
Page<UserDto> listUser(Page page, List<String> roleNames, String userCode, String userName,
|
String userMail, String userMobile, List<String> checkedList);
|
|
/**
|
* 获取基础数据
|
* @param page
|
* @param roleNames
|
* @param userCode
|
* @param userName
|
* @param ip
|
* @return
|
*/
|
Page<UserDataDto> listUserAndRecom(Page page, List<String> roleNames, String userCode, String userName,
|
String lastIp,List<String> checkedList,
|
String userMail,String userMobile);
|
|
void updateAgent(String userId,boolean operaAuthority,boolean loginAuthority);
|
User findUserByUserCode(String userCode);
|
User saveAgentUser(String userName, String password, String s, String roleName, String remarks,String userCode,boolean loginAuthority);
|
|
User cacheUserBy(String userId);
|
|
|
/**
|
* 修改余额 有创建订单
|
*
|
* coin_type 修改币种
|
*/
|
public void saveResetCreateOrder(String partyId,double money_revise,String safeword,String operator_partyId,String reset_type,String ip,String coin_type);
|
|
long countToDay(List<String> userIds);
|
|
/**
|
* tz_user 根据已验证的邮箱
|
*/
|
public User findPartyByVerifiedEmail(String email);
|
|
void saveRegister(String username, String password, String usercode, String safeword, String verifcode, String type);
|
|
void logout(String userId);
|
|
User saveRegisterUsername(String username, String password, String recoUserCode, String safeword);
|
|
Page getAgentAllStatistics(long current,long size,String startTime, String endTime,String userName,
|
List<String> userIds);
|
|
/**
|
* 赠送礼金
|
* */
|
public double recharge(String id);
|
|
void updateUserWallt(String userId, BigDecimal moneyRevise, int accountType, String coinType);
|
|
/**
|
* 查询用户绑定的验证方式
|
* @param userId
|
* @return
|
*/
|
List<Map<String, String>> getTypeListById(String userId);
|
|
/**
|
* 查询用户绑定的验证方式
|
* @param user
|
* @return
|
*/
|
List<Map<String, String>> getTypeListByUser(User user);
|
|
/**
|
* 校验用户的验证码
|
* @param userId 用户Id
|
* @param verifcode_type 验证码类型: 1 手机 2 邮件验证 3谷歌
|
* @param verifcode_value 验证码code
|
*/
|
void checkCode(String userId, String verifcode_type, String verifcode_value);
|
}
|