Commit 3e0b690d authored by zhouzihao's avatar zhouzihao

tmp

parent 3d0034cd
...@@ -88,7 +88,7 @@ com.vandyo.sentry.core ...@@ -88,7 +88,7 @@ com.vandyo.sentry.core
- [ ] 更多接口支持 - [ ] 更多接口支持
- [ ] 相同接口依赖并发支持 - [ ] 相同接口依赖并发支持
- [ ] 接口调用插件配置化 - [ ] 接口调用插件配置化
- [ ] 更通用化的空案例 - [x] 更通用化的空案例
- [ ] 统一接口出参验证封装 - [ ] 统一接口出参验证封装
- [ ] 数据收集器依赖解耦 - [ ] 数据收集器依赖解耦
......
...@@ -41,6 +41,8 @@ public class Tmp { ...@@ -41,6 +41,8 @@ public class Tmp {
public void test() { public void test() {
log.info("we run it {} times", ++times); log.info("we run it {} times", ++times);
Case case1 = null; Case case1 = null;
// 上线前使用这段代码
// case1 = new EmptyCase(sId,uid);
case1 = new LoginCase(mobile, pwd); case1 = new LoginCase(mobile, pwd);
case1 = new CarListDecorator(case1); case1 = new CarListDecorator(case1);
case1 = new CarInfoDecorator(case1); case1 = new CarInfoDecorator(case1);
...@@ -48,6 +50,7 @@ public class Tmp { ...@@ -48,6 +50,7 @@ public class Tmp {
case1 = new CarStatusDecorator(case1); case1 = new CarStatusDecorator(case1);
case1.check(); case1.check();
// 注释掉这段代码
Case case2 = null; Case case2 = null;
case2 = new TestCase(); case2 = new TestCase();
case2.check(); case2.check();
......
...@@ -41,8 +41,6 @@ public class EmptyCase extends Case { ...@@ -41,8 +41,6 @@ public class EmptyCase extends Case {
return this; return this;
} }
// FIXME: 更灵活的初始调用
@Override @Override
public Res<Map<String, String>> check() { public Res<Map<String, String>> check() {
Res<Map<String, String>> res = new Res<>(); Res<Map<String, String>> res = new Res<>();
......
package com.vandyo.sentry.core.collectionMachine; package com.vandyo.sentry.core.collectionMachine;
import com.vandyo.sentry.core.dto.ErrStatus; import com.vandyo.sentry.core.dto.ErrStatus;
import org.jetbrains.annotations.NotNull;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
...@@ -15,7 +16,7 @@ public abstract class DataClearDealer implements CollectionDealer { ...@@ -15,7 +16,7 @@ public abstract class DataClearDealer implements CollectionDealer {
} }
@Override @Override
public String formatData(Map<String, Map<ErrStatus, Long>> data, Map<String, String> names) { public String formatData(@NotNull Map<String, Map<ErrStatus, Long>> data, Map<String, String> names) {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append("接口报错:\n"); builder.append("接口报错:\n");
......
package com.vandyo.sentry.core.collectionMachine;
import com.vandyo.sentry.core.dto.ErrStatus;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.Map;
@Component
@Slf4j
public class WeChatDealer extends DataClearDealer {
@Override
public void deal(Map<String, Map<ErrStatus, Long>> data) {
// todo using wechat send msg
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment