Skip to content

Commit 546b231

Browse files
committed
feat: add tanant API
1 parent f9cf4c2 commit 546b231

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ COPY --from=build /app/documents /app/documents
1818
COPY --from=build /app/all-MiniLM-L6-v2 /app/all-MiniLM-L6-v2
1919
# 设置环境变量
2020
ENV FOLDER_PATH="/app/documents"
21-
ENV SSO_SERVER="https://opentiny.github.io/tiny-engine/login"
2221
# 替换为自己的域名接口路径
2322
ENV TINY_ENGINE_URL="https://agent.opentiny.design/material-center/api/resource/download"
2423
ENTRYPOINT ["java", "-jar", "tiny-engine-app.jar", "--spring.profiles.active=alpha"]

base/src/main/java/com/tinyengine/it/login/config/context/DefaultLoginUserContext.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,23 @@ public void setTenants(List<Tenant> tenants) {
5151
* 设置当前用户信息
5252
*/
5353
public static void setCurrentUser(UserInfo userInfo) {
54+
5455
currentUser.set(userInfo);
5556
}
5657

5758
/**
5859
* 获取当前用户完整信息
5960
*/
6061
public static UserInfo getCurrentUser() {
62+
6163
return currentUser.get();
6264
}
6365

6466
/**
6567
* 清理用户信息
6668
*/
6769
public static void clear() {
70+
6871
currentUser.remove();
6972
}
7073

0 commit comments

Comments
 (0)