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

优化 Mica Context 接口。

上级 2e1d9b37
......@@ -30,11 +30,6 @@ public class DefaultMicaContext implements IMicaContext {
return null;
}
@Override
public String getTenantId() {
return null;
}
@Override
public String getAccountId() {
return null;
......
......@@ -41,7 +41,9 @@ public interface IMicaContext {
* @return 租户id
*/
@Nullable
String getTenantId();
default String getTenantId() {
return null;
}
/**
* 账号id
......@@ -51,6 +53,16 @@ public interface IMicaContext {
@Nullable
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.
先完成此消息的编辑!
想要评论请 注册