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.
sky-take-out/sky-server/src/main/java/com/sky/service/UserService.java

20 lines
722 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.sky.service;
import com.sky.dto.UserLoginDTO;
import com.sky.entity.User;
/**
* UserService 接口定义了用户相关的服务方法。
*/
public interface UserService {
/**
* 使用微信登录根据提供的用户登录数据传输对象UserLoginDTO进行登录操作。
* 如果登录成功返回对应的用户实体User否则可能抛出异常或返回null。
*
* @param userLoginDTO 包含用户登录信息的数据传输对象通常包括必要的认证信息如微信的code等。
* @return 返回登录成功后的用户实体如果登录失败则可能抛出异常或返回null。
*/
User wxLogin(UserLoginDTO userLoginDTO);
}