package com.friday.executor.common.rest;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author YaoYao
 * @Date Created In 14:25 2022/12/20
 * @Description 通用http返回结构体
 *
 * @Modified By
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FridayHttpResponse {
    /**
     * 是否成功
     */
    private Boolean success;
    /**
     * http返回码
     */
    private Integer httpRetCode;
    /**
     * 请求结果
     */
    private String result;
    /**
     * 异常信息
     */
    private String message;

    public boolean success(){
        return success!= null && this.success;
    }
}

