将Result类从common包移动到dto包,ResultUtils类从common包移动到util包 调整所有相关文件的import语句以匹配新的包结构 新增CorsConfig配置类处理跨域请求 优化AuthController的登录接口返回统一响应格式
23 lines
620 B
Java
23 lines
620 B
Java
/*
|
||
* 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);
|
||
}
|