package com.ruoyi.hezhi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 用户地址对象 tb_member_address
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Getter
@Setter
@ToString
public class TbMemberAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户地址主键ID */
    private Long memberAddressId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long memberUserId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 省ID */
    @Excel(name = "省ID")
    private Long provinceId;

    /** 市ID */
    @Excel(name = "市ID")
    private Long cityId;

    /** 区（县）ID */
    @Excel(name = "区", readConverterExp = "县=")
    private Long areaId;

    /** 省名 */
    @Excel(name = "省名")
    private String provinceName;

    /** 市名 */
    @Excel(name = "市名")
    private String cityName;

    /** 区名 */
    @Excel(name = "区名")
    private String areaName;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 地址 */
    @Excel(name = "地址")
    private String location;

    /** 类型（0-全部） */
    @Excel(name = "类型", readConverterExp = "0=-全部")
    private Integer type;

    /** 审核状态（0-待审核，1-审核通过，2-审核拒绝） */
    @Excel(name = "审核状态", readConverterExp = "0=-待审核，1-审核通过，2-审核拒绝")
    private Integer examineStatus;

    /** 审核反馈 */
    @Excel(name = "审核反馈")
    private String examineFeedback;

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

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 状态（0-显示，1-隐藏） */
    @Excel(name = "状态", readConverterExp = "0=-显示，1-隐藏")
    private Integer status;

    /** 发布时间 */
    private Date publicationTime;

    /** 发布人 */
    private String publisher;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除标记（0-正常，1-删除） */
    private Integer delFlag;

}
