feat(auth): 实现基础登录功能并配置全局网络地址新增 GlobalConfig 类用于管理全局配置,包括网络接口地址和租户标识。新增 LoginUserDTO 数据传输对象用于封装登录账号和密码。修改 LoginView 页面逻辑,实现调用后端登录接口进行认证。
更新 module-info.java 和 pom.xml 以支持新引入的依赖库(hutool、fastjson等)。升级 fastjson 版本至2.0.9 以增强安全性与稳定性。```
This commit is contained in:
39
src/main/java/com/fantaibao/config/GlobalConfig.java
Normal file
39
src/main/java/com/fantaibao/config/GlobalConfig.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.fantaibao.config;
|
||||
|
||||
public class GlobalConfig {
|
||||
/**
|
||||
* 基础网络地址
|
||||
*/
|
||||
public static final String BASE_NET_URL = "http://127.0.0.1:9606";
|
||||
|
||||
/**
|
||||
* 登录接口地址
|
||||
*/
|
||||
public static final String loginInterfaceAddress = BASE_NET_URL+"/user/login";
|
||||
|
||||
/**
|
||||
* 更新cookie地址
|
||||
*/
|
||||
public static final String updateCookieInterfaceAddress = BASE_NET_URL+"/crawler/appraisal/update-user-cookie";
|
||||
|
||||
/**
|
||||
* 租户Id标识
|
||||
*/
|
||||
public static String tenantId;
|
||||
|
||||
/**
|
||||
* 美团点评评价接口地址
|
||||
*/
|
||||
public static String mtDianPingInterfaceAddress;
|
||||
|
||||
/**
|
||||
* 美团大众点评评价接口地址
|
||||
*/
|
||||
public static String mtDaZhInterfaceAddress;
|
||||
|
||||
/**
|
||||
* 抖音评价接口地址
|
||||
*/
|
||||
public static String dyPingJiaInterfaceAddress;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user