package com.microservices.zone.member.domain;

import com.microservices.common.core.annotation.Excel;
import com.microservices.common.core.web.domain.BaseEntity;
import com.microservices.zone.member.domain.vo.ZoneMemberOverviewVo;
import lombok.Data;

/**
 * 特色专区会员类别对象 zone_member_type
 *
 * @author otto
 * @date 2023-05-16
 */
@Data
public class ZoneMemberType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 专区会员类别主键
     */
    private Long id;

    /**
     * 专区会员类别名称
     */
    @Excel(name = "专区会员类别名称")
    private String name;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 专区会员类别简介
     */
    @Excel(name = "专区会员类别简介")
    private String introduction;

    /**
     * 所属组织Id
     */
    @Excel(name = "所属组织Id")
    private Long deptId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 专区标识
     */
    @Excel(name = "专区标识")
    private Long zoneId;

    public ZoneMemberOverviewVo toZoneMemberOverviewVo() {
        ZoneMemberOverviewVo zoneMemberOverviewVo = new ZoneMemberOverviewVo();
        zoneMemberOverviewVo.setId(this.id);
        zoneMemberOverviewVo.setTypeName(this.name);
        zoneMemberOverviewVo.setTypeIntroduction(this.introduction);
        return zoneMemberOverviewVo;
    }
}
