package cn.iocoder.yudao.module.member.controller.admin.user.vo;

import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 会员卡 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MemberCardRespVO {

    @Schema(description = "会员卡ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8703")
    @ExcelProperty("会员卡ID")
    private Long id;

    @Schema(description = "会员用户ID", example = "27718")
    @ExcelProperty("会员用户ID")
    private Long memberUserId;

    @Schema(description = "会员卡名称", example = "赵六")
    @ExcelProperty("会员卡名称")
    private String memberCardName;

    @Schema(description = "会员卡号")
    @ExcelProperty("会员卡号")
    private String memberCardNumber;

    @Schema(description = "开卡日期")
    @ExcelProperty("开卡日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate activateCardTime;

    @Schema(description = "会员卡权限")
    @ExcelProperty("会员卡权限")
    private String permission;

    @Schema(description = "状态，0：禁用 1：正常  2.冻结", example = "1")
    @ExcelProperty("状态，0：禁用 1：正常  2.冻结")
    private Integer status;

    @Schema(description = "余额")
    @ExcelProperty("余额")
    private BigDecimal balanceAmount;

    @Schema(description = "赠送金额")
    @ExcelProperty("赠送金额")
    private BigDecimal giftAmount;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private String createdBy;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private Date createdTime;

    @Schema(description = "会员信息")
    private MemberUserDO memberUser;

}