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.
50 lines
1.3 KiB
50 lines
1.3 KiB
package com.epmet.service;
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto;
|
|
import com.epmet.dto.form.LoginByPhoneFormDTO;
|
|
import com.epmet.dto.form.PaWxCodeFormDTO;
|
|
import com.epmet.dto.form.PublicSendSmsCodeFormDTO;
|
|
import com.epmet.dto.form.RegisterFormDTO;
|
|
import com.epmet.dto.result.UserTokenResultDTO;
|
|
|
|
/**
|
|
* 描述一下
|
|
*
|
|
* @author yinzuomei@elink-cn.com
|
|
* @date 2020/7/8 18:31
|
|
*/
|
|
public interface PublicUserLoginService {
|
|
|
|
/**
|
|
* @return
|
|
* @param formDTO
|
|
* @author sun
|
|
* @description 解析wxcode获取用户信息并生成token
|
|
**/
|
|
UserTokenResultDTO wxCodeToToken(PaWxCodeFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO 手机号
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @Author sun
|
|
* @Description 公众号登录-发送验证码
|
|
**/
|
|
void sendSmsCode(PublicSendSmsCodeFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @Author sun
|
|
* @Description 公众号-手机验证码登陆
|
|
**/
|
|
UserTokenResultDTO loginByPhone(TokenDto tokenDTO, LoginByPhoneFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return
|
|
* @Author sun
|
|
* @Description 公众号-手机号注册
|
|
**/
|
|
UserTokenResultDTO register(RegisterFormDTO formDTO);
|
|
|
|
}
|
|
|