| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- package com.sqx.modules.app.service;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.sqx.common.utils.PageUtils;
- import com.sqx.common.utils.Result;
- import com.sqx.modules.app.entity.UserEntity;
- import com.sqx.modules.app.entity.queryRiderVo;
- import com.sqx.modules.errand.entity.Feedback;
- import org.apache.poi.ss.formula.functions.T;
- import java.util.List;
- import java.util.Map;
- /**
- * 用户
- *
- * @author fang
- * @date 2021/2/27
- */
- public interface UserService extends IService<UserEntity> {
- /**
- * 根据手机号查询用户
- *
- * @param phone 手机号
- * @return
- */
- UserEntity queryByPhone(String phone);
- /**
- * 根据真实姓名查询用户
- *
- * @param realName 真实姓名
- * @return
- */
- List<UserEntity> queryByRealName(String realName);
- /**
- * 根据手机号和用户类型查询用户
- * @param phone 手机号
- * @param type 用户类型
- * @return
- */
- UserEntity queryByPhoneAndType(String phone);
- /**
- * 根据小程序微信openId查询用户
- *
- * @param openId 微信小程序openId
- * @return
- */
- UserEntity queryByOpenId(String openId,Integer userType);
- /**
- * 根据微信APP openId查询用户
- *
- * @param openId 微信APP openId
- * @return
- */
- UserEntity queryByWxOpenId(String openId,Integer userType);
- /**
- * 根据userId查询用户
- *
- * @param userId userId
- * @return
- */
- UserEntity queryByUserId(Long userId);
- UserEntity queryByInvitationCode(String invitationCode);
- /**
- * 根据用户appleId查询用户
- *
- * @param appleId
- * @return
- */
- UserEntity queryByAppleId(String appleId);
- Result wxLogin(String code,Integer type);
- /**
- * 注册或更新用户信息
- *
- * @param userInfo1 用户信息
- * @return 用户信息
- */
- Result wxRegister(UserEntity userInfo1);
- /**
- * 注册或更新用户信息
- *
- * @param appleId 苹果账号id
- * @return 用户信息
- */
- Result iosRegister(String appleId);
- /**
- * 发送验证码
- *
- * @param phone 手机号
- * @param state 验证码类型
- * @return
- */
- Result sendMsg(String phone, String state);
- /**
- * 绑定手机号
- *
- * @param phone 手机号
- * @param code 验证码
- * @return
- */
- Result wxBindMobile(String phone, String code, String wxOpenId, String token, String platform, Integer sysPhone);
- /**
- * @param phone
- * @param code
- * @param appleId
- * @param platform
- * @param sysPhone
- * @return
- */
- Result iosBindMobile(String phone, String code, String appleId, String platform, Integer sysPhone);
- /**
- * 换绑手机号
- *
- * @param phone 手机号
- * @param msg 验证码
- * @param userId 用户id
- * @return
- */
- Result updatePhone(String phone, String msg, Long userId);
- /**
- * 登录token
- *
- * @param user 用户信息
- * @return
- */
- Result getResult(UserEntity user);
- /**
- * app注册或h5注册
- *
- * @param phone 手机号
- * @param msg 验证按
- * @param
- * @param platform 来源 app h5
- * @return
- */
- Result registerCode(String phone, String msg, String platform, Integer sysPhone,String password,Integer type,String openId);
- Result wxOpenIdLogin(String openId, Integer userType);
- Result wxAppLogin(String wxOpenId, String token);
- /**
- * app或h5登录
- *
- * @param phone 手机号
- * @param pwd 密码
- * @return
- */
- Result login(String phone, String pwd);
- /**
- * 根据 code 获取openId
- *
- * @param code
- * @param userId
- * @return
- */
- Result getOpenId(String code, Long userId);
- queryRiderVo queryRider(Long userId);
- Result queryRiders(Integer page, Integer limit, Long userId,Integer riderStationId, String keyword);
- /**
- * 根据用户id查询用户
- *
- * @param userId 用户id
- * @return
- */
- UserEntity selectUserById(Long userId);
- int updateUserClientIdIsNull(String clientid);
- int updateUserRiderClientIdIsNull(String clientid);
- int updateUserShopClientIdIsNull(String clientid);
- void pushToSingle(String title, String content, String clientId);
- void pushToSingleRider(String title, String content, String clientId);
- void pushToSingleShop(String title, String content, String clientId);
- PageUtils selectUserPage(Integer page, Integer limit, String search, Integer sex, String platform, String sysPhone,
- Integer status, Integer type, String userName, Integer isVip, Integer shopAdminFlag, String nickName);
- int queryInviterCount(String inviterCode);
- int queryUserCount(int type, String date);
- Double queryPayMoney(int type);
- IPage<Map<String, Object>> queryCourseOrder(Page<Map<String, Object>> iPage, int type, String date);
- int userMessage(String date, int type);
- Result loginApp(String phone, String password);
- Result takingOrdersMessage(Page<Map<String, Object>> iPage, Long type, String date);
- Result forgetPwd(String pwd, String phone, String msg);
- Result selectUserList(Integer page,Integer limit,String userName);
- Result selectUserId(String invitationCode);
- Result selectUserMessage(Long userId);
- Result updateUserMessage(UserEntity userEntity);
- Result userFeedback(Long userId, Feedback feedback);
- Result updateShopAdminFlag(Long userId, Integer shopAdminFlag);
- Result sendMsgDXB(String phone, String state, int code);
- UserEntity getByAdminId(Long adminUserId);
- }
|