1.优化接口登录逻辑

This commit is contained in:
2025-07-24 21:10:47 +08:00
parent e74a8bfd98
commit 061711a9c0
4 changed files with 102 additions and 60 deletions

View File

@@ -0,0 +1,16 @@
package com.yupi.springbootinit.model.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum LoginSceneEnum {
HOST("doLogin", "host", "checkCrawlRole"),
BIG_BROTHER("bigbrother-doLogin", "bigbrother", "checkBigBrotherRole"),
AI_CHAT("aiChat-doLogin", "aiChat", "checkAiChatLoginRole");
private final String path; // 对应 @PostMapping
private final String saMode; // Sa-Token 登录模式
private final String checker; // SystemUsersService 中对应的校验方法名
}