Pu Zhibing
2025-04-22 fd7b8fb7c89832c28a838b0449bbb8a392433ee2
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/AppUserService.java
@@ -1,10 +1,15 @@
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 org.springframework.web.bind.annotation.RequestBody;
import com.ruoyi.common.core.web.page.PageInfo;
import java.util.List;
import java.util.Set;
/**
 * <p>
@@ -22,7 +27,7 @@
    * @param appletLogin
    * @return
    */
   AjaxResult appletLogin(AppletLogin appletLogin);
   R appletLogin(AppletLogin appletLogin);
   
   
   /**
@@ -30,7 +35,7 @@
    * @param mobileLogin
    * @return
    */
   AjaxResult<LoginVo> mobileLogin(MobileLogin mobileLogin);
   R<LoginVo> mobileLogin(MobileLogin mobileLogin);
   
   
   /**
@@ -38,7 +43,7 @@
    * @param smsCode
    * @return
    */
   AjaxResult getSMSCode(SMSCode smsCode);
   R getSMSCode(SMSCode smsCode);
   
   
   /**
@@ -46,5 +51,72 @@
    * @param registerAccount
    * @return
    */
   AjaxResult<LoginVo> registerAccount(RegisterAccount registerAccount);
   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);
}