package com.tax.token.model;

import com.yxcheng.token.common.model.MqMessage;
import com.yxcheng.token.common.model.SafeModel;
import com.yxcheng.token.common.model.TaxUserInfo;
import com.yxcheng.token.utils.StringUtil;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CookieReq extends SafeModel implements MqMessage {

      private String zoneCode;
      private String userCode;
      private String userInfo;
      private String loginType;
      private String loginName;
      private String checkType;
      private String cleanType;
      private String site;
      private String target;
      private Object userInfoJson;
      private Object cookieInfoJson;

      @Override
      public String toString() {
            return "CookieReq{" +
                    "taxno='" + getTaxno() + '\'' +
                    ", zoneCode='" + zoneCode + '\'' +
                    ", userCode='" + userCode + '\'' +
                    ", userInfo='" + userInfo + '\'' +
                    ", loginType='" + loginType + '\'' +
                    ", loginName='" + loginName + '\'' +
                    ", checkType='" + checkType + '\'' +
                    ", cleanType='" + cleanType + '\'' +
                    ", site='" + site + '\'' +
                    ", target='" + target + '\'' +
                    ", userInfoJson=" + userInfoJson +
                    ", cookieInfoJson=" + cookieInfoJson +
                    '}';
      }

      public boolean checkParamNull() {
            boolean checkFlag = false;
            if(StringUtil.isEmpty(getTaxno()) || StringUtil.isEmpty(getZoneCode())) {
                checkFlag = true;
            }
            return checkFlag;
      }
}
