package cn.iocoder.yudao.module.system.controller.admin.yk.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Schema(description = "管理后台 - 余额更新 Request VO")
@Data
public class YkBalanceUpdateReqVO {

    @Schema(description = "财务数据ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "250")
    private BigDecimal amount;

    @Schema(description = "支付方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "wechat")
    private String paymentType;

    @Schema(description = "更新原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "金额修正")
    private String updateReason;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date mealTime;
}