package com.wzj.soopin.transaction.domain.po;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 提现
 *
 * @author wzj
 * @date 2023-03-07
 */
@Schema(description="提现")
@Data
@TableName("trans_withdraw")
@Builder(toBuilder = true)
public class Withdraw extends BaseAudit {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 提现码
     */
    private String code;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 金额
     */
    private BigDecimal money;

    /**
     * 手续费
     */
    private BigDecimal fee;

    /**
     * 实际金额
     */
    private BigDecimal actualMoney;


    /**
     * 状态
     */
    private Integer status;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 审核人
     */
    private Long auditBy;


    /**
     * 银行名称
     */
    @Schema(description ="银行名称")
    private String bankId;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime auditTime;

    /**
     * 提现方式
     */
    private Integer method;

    /**
     * 审核状态
     */
    private Integer  auditStatus;

    /**
     * 审核原因
     */
    private String auditReason;
}
