提交 b5345578 编写于 作者: 如梦技术's avatar 如梦技术 🐛

优化 Mica Context 接口。

上级 2e1d9b37
...@@ -30,11 +30,6 @@ public class DefaultMicaContext implements IMicaContext { ...@@ -30,11 +30,6 @@ public class DefaultMicaContext implements IMicaContext {
return null; return null;
} }
@Override
public String getTenantId() {
return null;
}
@Override @Override
public String getAccountId() { public String getAccountId() {
return null; return null;
......
...@@ -41,7 +41,9 @@ public interface IMicaContext { ...@@ -41,7 +41,9 @@ public interface IMicaContext {
* @return 租户id * @return 租户id
*/ */
@Nullable @Nullable
String getTenantId(); default String getTenantId() {
return null;
}
/** /**
* 账号id * 账号id
...@@ -51,6 +53,16 @@ public interface IMicaContext { ...@@ -51,6 +53,16 @@ public interface IMicaContext {
@Nullable @Nullable
String getAccountId(); String getAccountId();
/**
* 微服务版本号,用于灰度
*
* @return 账号id
*/
@Nullable
default String getVersion() {
return null;
}
/** /**
* 获取上下文中的数据 * 获取上下文中的数据
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册