shishuaikang
2023-12-12 e5cd5597aad68f294fcfff465e0a312713804c0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.thhy.general.utils;
 
import com.thhy.general.common.BasicMessage;
import com.thhy.general.common.BasicResult;
import com.thhy.general.exception.BasicException;
 
public class CheckResult {
 
    public static void check(BasicResult basicResult){
        if(!basicResult.isSuccess()){
            throw new BasicException(new BasicMessage(basicResult.getStatusCode(), basicResult.getStatusMsg()));
        }
    }
 
}