package com.cftech.member.model;

import com.cftech.core.poi.ExportConfig;
import com.cftech.cos.config.cosconfig.model.Cosconfig;
import lombok.Data;
import org.mp.api.core.exception.WexinReqException;
import org.mp.api.wxbase.wxmedia.JwMediaAPI;

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

/**
 * @author lisw
 * @date: 2017-08-24 17:31
 */
@Data
public class Member implements Serializable {


    public static void main(String[] args) throws WexinReqException {
        Cosconfig cosconfig = new Cosconfig();
        net.sf.json.JSONObject mediaJson= JwMediaAPI.downMedia("12_r_qzTWhvOUsmjGtRKE7bXsat2Ih10K-L9kZJoj74mZRGu3ZOYfHJzENBgSHQBDGNhCfE7Vnl3bfTuS-zh2h3MF7C6H3XErVzfOnVBBsgreAA-dqVxBmsmK4B6CJfbJDonAp9x2vvBvEcepBqVRHhAHAGCS","jwjOUMFA_llgdAP_MBMarxIHu3YozRfHdC5Cdo_koujuoRfxUSNab4u8RLoFBdjL","",cosconfig);
    }

    /* 主键id */
    private Long id;
    /* 编码 */
    private String number;
    /* 姓名 */
    @ExportConfig(value = "名", width = 100)
    private String name;
    @ExportConfig(value = "姓",width = 100)
    private String surname;
    /* 手机号 */
    @ExportConfig(value = "手机号码" , width = 100)
    private String phone;
    /* 头像 */
    @ExportConfig(value = "头像", width = 100)
    private String imageurl;
    /* 身份证 */
    //@ExportConfig(value = "身份证", width = 100)
    private String cardid;

    /* 会员卡号 */
    //@ExportConfig(value = "会员卡号", width = 100)
    private String memberId;
    /* 所属的账号 */
    private Long accountsId;
    /* 删除标识 */
    private boolean delFlag;
    /* 状态 */
    private String status;
    /* 创建时间 */
    private Date createTime;
    /* 更新时间 */
    private Date updateTime;
    /* 备注 */
    private String description;
    /* 创建人 */
    private Long createBy;
    /* 更新人 */
    private Long updateBy;

    /*微信openID*/
    //@ExportConfig(value = "openId", width = 100)
    private String openId;

    private String position;

    /**
     * 辅助字段
     */
    /*生日*/
    private String birthday;

    /*性别*/
    @ExportConfig(value = "性别", width = 100)
    private String sex;

    /**会员等级*/
    private String level;

    /**地区*/
    private String area;

    /* 其他信息 */
    @ExportConfig(value = "Email", width = 100)
    private String email;

    /**绑定的门店*/
    private String storeid;

    /**
     *注册时从粉丝表取的门店ID
     * */
    private Long fanssStoreId;




    /**
     *会员卡名字
     */
    private String memberName;

    /**
     *会员卡手机号
     */
    private String memberPhone;

    /**
     * 会员卡所绑定门店
     */
    private String memberStoreId;
    /**
     * 会员邀请码
     */
    private String invitcode;


    private String compan;

    /**
     * 所属客服id
     */
    //private String member_uid;
    private String customerId;

    /**
     * 所属药师id
     */
    //private String oilSum;
    private String doctorId;

    /**
     * 会员来源： 1:普通关注 2：医师二维码 3：客服二维码 4：医生二维码 5：组织二维码
     */
    private String source;







    public Member() {
        this.delFlag = false;
    }

}