Merge branch 'new_3A' of https://axzsource.com/infra/axzo-framework.git into new_3A
This commit is contained in:
commit
88c8a9b1dd
@ -9,6 +9,16 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
*
|
||||
* 经过auth之后,可以得到ContextInfo。
|
||||
* 在ThreadLocal里通过ContextInfoHolder获取,或者在标注PreBuildContext的类或者方法里做参数注入,都是可以获取到的。
|
||||
*
|
||||
* 在传参的时候,这个内容略大,推荐大家使用lite()方法。
|
||||
*
|
||||
* @author gaowei
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Slf4j
|
||||
@AllArgsConstructor
|
||||
@ -99,6 +109,8 @@ public class ContextInfo {
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public static class LiteSaasContext {
|
||||
private Long workspaceId;
|
||||
private Integer workspaceType;
|
||||
@ -122,7 +134,7 @@ public class ContextInfo {
|
||||
* 这个小DTO是为了方便传参。
|
||||
* 主要是用在写方法上,这些方法需要记录完整操作日志。
|
||||
*
|
||||
* @return
|
||||
* @return 精简的ContextInfo核心字段
|
||||
*/
|
||||
public LiteSaasContext lite() {
|
||||
return LiteSaasContext.builder()
|
||||
|
||||
@ -10,6 +10,15 @@ import java.util.Set;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
|
||||
|
||||
/**
|
||||
* 安心筑的所有终端的类型定义。
|
||||
*
|
||||
* 最重要的方法是NT()
|
||||
*
|
||||
* @author gaowei
|
||||
*
|
||||
*/
|
||||
public class TerminalInfo {
|
||||
/**
|
||||
* TODO: 数据库迁移,terminal字符串有存到数据库里的。比如这个函数
|
||||
@ -248,7 +257,6 @@ public class TerminalInfo {
|
||||
aliasMap.put(STR_TERMINAL_SMART_PANEL, NT_SM);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Screen,数据大屏
|
||||
*/
|
||||
|
||||
@ -6,6 +6,7 @@ import lombok.Getter;
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum EnvEnum {
|
||||
LOCAL("local", "http://localhost:10099/webApi/oauth/apisix/authentication"),
|
||||
// dev
|
||||
DEV("dev", "http://dev-app.axzo.cn/pudge/webApi/oauth/apisix/authentication"),
|
||||
// TEST
|
||||
|
||||
Loading…
Reference in New Issue
Block a user