commit | author | age
|
a18bfa
|
1 |
package com.changhong.epc.form.filter; |
Z |
2 |
|
|
3 |
import org.springframework.stereotype.Component; |
|
4 |
|
|
5 |
import com.changhong.autoform.entity.system.RestResult; |
|
6 |
import com.iemsoft.framework.cloud.config.result.ResultFilter; |
|
7 |
|
|
8 |
/** |
|
9 |
* 接口返回值过滤器 |
|
10 |
* @author WangYX |
|
11 |
* |
|
12 |
*/ |
|
13 |
@Component |
|
14 |
public class ResultFormatFilter implements ResultFilter{ |
|
15 |
|
|
16 |
/** |
|
17 |
* 是否格式化接口返回值 |
|
18 |
*/ |
|
19 |
@Override |
|
20 |
public boolean format(Object obj) { |
|
21 |
return !(obj instanceof RestResult); |
|
22 |
} |
|
23 |
|
|
24 |
} |