puzhibing
2023-05-29 d6b28b2d38ae32c1d147e263c1cb4cff6b32a503
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
package com.agentdriving.user.modular.system.service;
 
import com.agentdriving.user.modular.system.model.AppUser;
import com.baomidou.mybatisplus.service.IService;
import com.agentdriving.user.modular.system.util.ResultUtil;
import com.agentdriving.user.modular.system.warpper.CouponsWarpper;
import com.agentdriving.user.modular.system.warpper.SignInToRegister;
import com.agentdriving.user.modular.system.warpper.SignInToRegisterWarpper;
import com.agentdriving.user.modular.system.warpper.UserInfo;
 
import java.util.List;
 
public interface IAppUserService extends IService<AppUser> {
 
 
    /**
     * 用户登录
     * @param jscode
     * @return
     * @throws Exception
     */
    ResultUtil appUserLogin(String jscode) throws Exception;
 
 
    /**
     * 微信授权注册登录
     * @param signInToRegister
     * @return
     * @throws Exception
     */
    ResultUtil<SignInToRegisterWarpper> signInToRegister(SignInToRegister signInToRegister) throws Exception;
 
 
 
    /**
     * 校验token获取用户信息
     * @return
     */
    Integer getUserByRequest() throws Exception;
 
 
    /**
     * 修改个人信息
     * @param userInfo
     * @return
     * @throws Exception
     */
    ResultUtil updateUserInfo(Integer uid, UserInfo userInfo) throws Exception;
 
 
    /**
     * 余额充值
     * @param uid
     * @param amount
     * @return
     * @throws Exception
     */
    ResultUtil rechargeBalance(Integer uid, Double amount) throws Exception;
 
 
    /**
     * 余额充值回调处理
     * @param out_trade_no
     * @param transaction_id
     * @return
     * @throws Exception
     */
    void rechargeBalanceCallback(String out_trade_no, String transaction_id) throws Exception;
 
 
    /**
     * 获取用户优惠券列表
     * @param uid
     * @param state
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    List<CouponsWarpper> queryMyCoupons(Integer uid, Integer state, Integer pageNum, Integer pageSize) throws Exception;
}