1
zj
12 hours ago f658569891db433854221b80f0a9fa99608cff64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
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);
}