package com.ylx.shopingfundsdetail.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ylx.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 类描述：购物金明细表
 *
 * @author Administrator
 * @version 1.0
 * @date 2026/6/1 10:28
 */
@Data
@TableName(value = "t_shopping_funds_detail",autoResultMap = true)
@ApiModel(value = "ShoppingFundsDetail", description = "购物金明细记录表")
public class ShoppingFundsDetail extends BaseEntity {
    private static final long serialVersionUID = -5890473596508557032L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Long id;
    /**
     * 订单号，expenseType=0时存购物卡订单号，expenseType=1时存服务订单号
     */
    @TableField("order_no")
    @ApiModelProperty("订单号，expenseType=0时存购物卡订单号，expenseType=1时存服务订单号")
    private String orderNo;
    /**
     * 购物卡id
     */
    @TableField("gift_card_id")
    @ApiModelProperty("购物卡id")
    private Long giftCardId;

    @TableField("user_id")
    @ApiModelProperty("用户id")
    private String userId;
    /**
     * 购物金消费类型
     */
    @TableField("expense_type")
    @ApiModelProperty("消费类型：0-收入，1-支出")
    private Integer expenseType;
    /**
     * 金额
     */
    @TableField("amount")
    @ApiModelProperty("金额")
    private BigDecimal amount;
    /**
     * 对应余额
     */
    @TableField("balance")
    @ApiModelProperty("对应余额")
    private BigDecimal balance;

}