Pu Zhibing
2025-03-25 d3e9a09cb54017a8063e5bfe3ace5012f66f3130
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
package com.ruoyi.account.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.account.api.model.AppUser;
import com.ruoyi.account.vo.*;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.PageInfo;
 
import java.util.List;
import java.util.Set;
 
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author luodangjia
 * @since 2024-11-21
 */
public interface AppUserService extends IService<AppUser> {
    
    
    /**
     * 小程序一键登录
     * @param appletLogin
     * @return
     */
    R appletLogin(AppletLogin appletLogin);
    
    
    /**
     * 手机号码登录
     * @param mobileLogin
     * @return
     */
    R<LoginVo> mobileLogin(MobileLogin mobileLogin);
    
    
    /**
     * 获取短信验证码
     * @param smsCode
     * @return
     */
    R getSMSCode(SMSCode smsCode);
    
    
    /**
     * 注册账号
     * @param registerAccount
     * @return
     */
    R<LoginVo> registerAccount(RegisterAccount registerAccount);
    
    
    /**
     * 获取附近的推广人
     * @param nearbyReferrer
     * @return
     */
    PageInfo<NearbyReferrerVo> getNearbyReferrer(NearbyReferrer nearbyReferrer);
 
    /**
     * 获取用户的祖籍列表
     */
    List<AppUser> getUserAncestorList(Long id,List<AppUser> list);
 
    /**
     * 获取指定用户的直帮上级用户(消费用户绑定的上级,最近一个用户会员类型为【创业者】的用户)
     */
    AppUser getSuperiorLeader(Long id);
    
    
    /**
     * 解绑推广人
     */
    void unbindThePromoter();
    
    
    /**
     * 在线记录操作,用于赠送积分
     */
    void onlineRecord();
 
    IPage<AppUser> getAppuserPage(Integer pageNum, Integer pageSize, AppUser appUser, Integer shopId, Set<Long> userId);
 
 
    IPage<AppUser> getAppuserPage1(Integer pageNum, Integer pageSize, AppUser appUser,List<Long> userIds);
    
    /**
     * 处理用户会员等级
     * @param appUserId
     */
    void vipUpgrade(Long appUserId);
 
    /**
     * 消费后检查会员等级变更
     */
    void vipConsumption(Long appUserId);
 
    
    /**
     * 处理用户会员降级
     * @param appUserId
     */
    void vipDemotion(Long appUserId);
    
    
    /**
     * 降级检测
     */
    void demotionDetection();
 
 
    /**
     * 定时任务关闭订单
     */
    void closeOrder();
 
    List<AppUser> getAppUserByPhoneNoFilter(String phone);
}