Files
TaoTaoWang_backend/src/main/java/com/qf/backend/service/UserLoginService.java
qingfeng1121 c5f631d043 refactor: 重构项目结构,将Result类及相关工具类移动到dto和util包
将Result类从common包移动到dto包,ResultUtils类从common包移动到util包
调整所有相关文件的import语句以匹配新的包结构
新增CorsConfig配置类处理跨域请求
优化AuthController的登录接口返回统一响应格式
2025-12-09 10:58:12 +08:00

23 lines
620 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Interface.java to edit this template
*/
package com.qf.backend.service;
import com.qf.backend.dto.LoginResponse;
import com.qf.backend.dto.Result;
/**
* 用户登录服务接口
*/
public interface UserLoginService {
/**
* 用户登录
* @param username 用户名
* @param password 密码
* @return 登录结果包含登录状态、token等信息
*/
Result<LoginResponse> login(String username, String password);
}