package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分销商提现银行卡
 *
 * @author 科技小王子
 * @since 2025-08-11 23:51:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopDealerBank对象", description = "分销商提现银行卡")
public class ShopDealerBank implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "分销商用户ID")
    private Integer userId;

    @Schema(description = "开户行名称")
    private String bankName;

    @Schema(description = "银行开户名")
    private String bankAccount;

    @Schema(description = "银行卡号")
    private String bankCard;

    @Schema(description = "申请状态 (10待审核 20审核通过 30驳回)")
    private Integer applyStatus;

    @Schema(description = "驳回原因")
    private String rejectReason;

    @Schema(description = "默认收货地址")
    private Boolean isDefault;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
