forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.7 KiB
62 lines
1.7 KiB
package com.epmet.service;
|
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
|
|
import com.epmet.commons.tools.security.dto.TokenDto;
|
|
import com.epmet.commons.tools.utils.Result;
|
|
import com.epmet.dto.form.LoginByPassWordFormDTO;
|
|
import com.epmet.dto.form.LoginByWxCodeFormDTO;
|
|
import com.epmet.dto.form.ResiWxPhoneFormDTO;
|
|
import com.epmet.dto.result.UserTokenResultDTO;
|
|
|
|
/**
|
|
* @Description
|
|
* @Author yinzuomei
|
|
* @Date 2020/3/14 20:21
|
|
*/
|
|
public interface LoginService {
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.UserTokenResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 居民端微信小程序登录
|
|
* @Date 2020/3/14 19:34
|
|
**/
|
|
Result<UserTokenResultDTO> loginByWxCode(LoginByWxCodeFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.UserTokenResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 手机号+密码登录接口
|
|
* @Date 2020/3/14 19:54
|
|
**/
|
|
Result<UserTokenResultDTO> loginByPassword(LoginByPassWordFormDTO formDTO);
|
|
|
|
/**
|
|
* @param tokenDto
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @Author yinzuomei
|
|
* @Description 退出登录
|
|
* @Date 2020/3/18 22:44
|
|
**/
|
|
Result logoutByToken(TokenDto tokenDto);
|
|
|
|
/**
|
|
* @return cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult
|
|
* @param app
|
|
* @param wxCode
|
|
* @Author yinzuomei
|
|
* @Description 解析wxCode
|
|
* @Date 2020/4/19 0:24
|
|
**/
|
|
WxMaJscode2SessionResult getWxMaUser(String app, String wxCode);
|
|
|
|
/**
|
|
* @return java.lang.String
|
|
* @param formDTO
|
|
* @author yinzuomei
|
|
* @description 获取用户微信绑定的手机号
|
|
* @Date 2020/7/2 14:33
|
|
**/
|
|
String getResiWxPhone(ResiWxPhoneFormDTO formDTO);
|
|
}
|
|
|