package com.kxs.user.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户提现申请表(KxsUserWithdrawal)表实体类
 *
 * @author 系统
 * @since 2024-01-03 09:39:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsUserWithdrawal extends Model<KxsUserWithdrawal> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;


    /**
     * 申请金额
     */
    @Schema(description = "申请金额")
    private BigDecimal applyAmount;


    /**
     * 到账金额
     */
    @Schema(description = "到账金额")
    private BigDecimal realAmount;


    /**
     * 税费
     */
    @Schema(description = "税费")
    private BigDecimal taxAmount;


    /**
     * 手续费
     */
    @Schema(description = "手续费")
    private BigDecimal serviceAmount;


    /**
     * 申请单号
     */
    @Schema(description = "申请单号")
    private String applyNo;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


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

    /**
     * 银行卡
     */
    @Schema(description = "银行卡")
    private String bankCode;


    /**
     * 状态 0处理中 1成功 2失败
     */
    @Schema(description = "状态 0处理中 1成功 2失败")
    private Integer status;


    /**
     * 提交代付状态 0未提交 1已提交
     */
    @Schema(description = "提交代付状态 0未提交 1已提交")
    private Integer applyStatus;


    /**
     * 提现类型 普通提现=0 合伙人提现=1 盟主提现=3 助力宝提现=4
     */
    @Schema(description = "提现类型 普通提现=0 合伙人提现=1 盟主提现=3 助力宝提现=4")
    private Integer withdrawalType;


    /**
     * 代付返回信息json
     */
    @Schema(description = "代付返回信息json")
    private String result;

    /**
     * 提现渠道
     */
    @Schema(description = "提现渠道")
    private String channelName;




}

