Commit 817732d93bdb619da2d2dcfc69e92cde1465478c

Authored by guzijian
1 parent 17511d1f

feat: 修改askTransport接口和update接口

trash-garbage/src/main/java/com/trash/garbage/custom/BizException.java
... ... @@ -7,41 +7,37 @@ import lombok.Data;
7 7 * @author 20412
8 8 */
9 9 @Data
10   -public class BizException extends RuntimeException{
  10 +public class BizException extends RuntimeException {
11 11 private String msg;
12 12 private ResultCode code;
13 13  
14   -
15   -
16   - public String getMsg() {
17   - return msg;
18   - }
19   -
20   -
21 14  
22   - public void setMsg(String msg) {
23   - this.msg = msg;
24   - }
  15 + public String getMsg() {
  16 + return msg;
  17 + }
25 18  
26 19  
  20 + public void setMsg(String msg) {
  21 + this.msg = msg;
  22 + }
27 23  
28   - public ResultCode getCode() {
29   - return code;
30   - }
31 24  
  25 + public ResultCode getCode() {
  26 + return code;
  27 + }
32 28  
33 29  
34   - public void setCode(ResultCode code) {
35   - this.code = code;
36   - }
  30 + public void setCode(ResultCode code) {
  31 + this.code = code;
  32 + }
37 33  
38   - public BizException(ResultCode code, String msg){
  34 + public BizException(ResultCode code, String msg) {
39 35 this.code = code;
40 36 this.msg = msg;
41 37 }
42 38  
43   - public BizException(ResultCode code){
44   - this.code = code;
45   - this.msg = code.getMsg();
46   - }
  39 + public BizException(ResultCode code) {
  40 + this.code = code;
  41 + this.msg = code.getMsg();
  42 + }
47 43 }
... ...