package com.ylx.shoppingfunds.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：更新我的购物金余额
 *
 * @author Administrator
 * @version 1.0
 * @date 2026/6/1 9:21
 */
@Data
@ApiModel("更新我的购物金余额dto")
public class MyShoppingFundsUpdateDto implements Serializable {
    private static final long serialVersionUID = -1987716391112070123L;

    @NotBlank(message = "userId不能为空")
    @ApiModelProperty("微信用户userId")
    private String  wxUserId;

    @NotBlank(message = "金额不能为空")
    @ApiModelProperty("若是购卡即这次购卡花费；若消费购物金则表示这次消费金额")
    private BigDecimal amount;

    @NotNull(message = "消费类型不能为空")
    @ApiModelProperty("消费类型：0-购卡，1-消费")
    private Integer expenseType;



}