package cn.keking.utils;

import lombok.Data;

/**
 * @author Hikaru
 */
@Data
public class ServiceResponse <T>{
    public static final String RESULT_CODE_SUCCESS_MSG = "操作成功！";
    public static final int RESULT_CODE_SUCCESS_CODE = 200;
    public static final int RESULT_CODE_ERROR_CODE = 400;
    public static final int RESULT_SERVER_ERR_CODE = 500;
    String resultMsg;
    int resultCode;
    T result;

    public ServiceResponse(T result, String resultMsg, int resultCode) {
        this.resultMsg = resultMsg;
        this.resultCode = resultCode;
        this.result = result;
    }

    public ServiceResponse(String resultMsg, int resultCode) {
        this.resultMsg = resultMsg;
        this.resultCode = resultCode;
    }


}
