package com.bcxin.api.interfaces.tenants.responses;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class QualificationCredentialResponse implements Serializable {

        /**
         * 发证机关
         */
        private String orgName;

        /**
         * 发证日期
         */
        private Date cerDate;
        private String xm;
        private String idnum;
        private String zsbh;
        private String headImg;
        private String state = "正常";

        public QualificationCredentialResponse(){}
        public QualificationCredentialResponse(String xm,String idnum,String orgName,String zsbh,String headImg,Date cerDate){
                this.xm = xm;
                this.idnum = idnum;
                this.orgName = orgName;
                this.zsbh = zsbh;
                this.headImg = headImg;
                this.cerDate = cerDate;
        }
        public static QualificationCredentialResponse create(String xm,String idnum,String orgName,String zsbh,String headImg,Date cerDate) {
                return new QualificationCredentialResponse( xm, idnum, orgName, zsbh, headImg, cerDate);
        }
}
