All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magic80.springBootCommon.helper.ResponseHelper Maven / Gradle / Ivy

package com.magic80.springBootCommon.helper;

import com.magic80.springBootCommon.exception.BaseBizException;
import com.magic80.springBootCommon.vo.ResponseVO;

public class ResponseHelper {

    public static ResponseVO renderSuccess(Object data) {
        return new ResponseVO(data);
    }

    public static ResponseVO renderException(BaseBizException ex) {
        ex.printStackTrace();
        return new ResponseVO(ex.getCode(), "", ex.getMessageTip());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy