package com.cool.store.dto.wx;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author zhangchenbiao
 * @FileName: WXBaseResultDTO
 * @Description:
 * @date 2023-05-29 14:52
 */
@Data
public class WXBaseResultDTO {

    private static final String SUCCESS_CODE = "0";

    @JSONField(name = "errcode")
    private String errCode;

    @JSONField(name = "errmsg")
    private String errMsg;

    public boolean isSuccess() {
        return this.errCode == null || this.errCode.isEmpty() || this.errCode.equals("0");
    }

}
