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

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;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 颐康长者收款记录信息确认 Request VO")
@Data
public class YKPaymentRecordConfirmVO {

    @Schema(description = "颐康长者ID", example = "21819")
    private Long ykElderId;


    @Schema(description = "收款金额")
    private BigDecimal amount;

    @Schema(description = "收款方式", example = "2")
    private String paymentType;

    @Schema(description = "收款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(
            pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND,
            timezone = "GMT+8",  // 明确指定时区
            shape = JsonFormat.Shape.STRING
    )
    private Date paymentDateTime;

    @Schema(description = "操作员")
    private String operator;
}
