| | |
| | | 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.BaseTable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @param appletLogin |
| | | * @return |
| | | */ |
| | | AjaxResult appletLogin(AppletLogin appletLogin); |
| | | R appletLogin(AppletLogin appletLogin); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param mobileLogin |
| | | * @return |
| | | */ |
| | | AjaxResult<LoginVo> mobileLogin(MobileLogin mobileLogin); |
| | | R<LoginVo> mobileLogin(MobileLogin mobileLogin); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param smsCode |
| | | * @return |
| | | */ |
| | | AjaxResult getSMSCode(SMSCode smsCode); |
| | | R getSMSCode(SMSCode smsCode); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param registerAccount |
| | | * @return |
| | | */ |
| | | AjaxResult<LoginVo> registerAccount(RegisterAccount registerAccount); |
| | | R<LoginVo> registerAccount(RegisterAccount registerAccount); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param nearbyReferrer |
| | | * @return |
| | | */ |
| | | BaseTable<NearbyReferrerVo> getNearbyReferrer(NearbyReferrer nearbyReferrer); |
| | | 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); |
| | | } |