package com.hz.pm.api.external.model.dto;

import lombok.Data;

/**
 * <p>
 * XcRetDTO
 * </p>
 *
 * @author WendyYang
 * @since 20:46 2023/12/20
 */
@Data
public class MhRetDTO<T> {

    /**
     * 成功状态码
     */
    private static final int OK_CODE = 200;
    /**
     * 失败状态码
     */
    private static final int FAIL_CODE = 500;

    private Integer code;

    private String msg;

    private T data;

    public boolean isOk() {
        return OK_CODE == this.code;
    }

}
