package com.zsElectric.boot.business.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 积分兑换规则表单对象
 *
 * @author zsElectric
 * @since 2025-12-12 10:07
 */
@Getter
@Setter
@Schema(description = "积分兑换规则表单对象")
public class UserExchangeIntegralRuleForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "兑换度数基数（按照多少度进行兑换）")
    private BigDecimal degree;

    @Schema(description = "1度电获得的积分（如1度1积分）")
    private BigDecimal gainIntegral;

    @Schema(description = "是否启用（0-停用 1-启用）")
    private Integer status;

    @Schema(description = "乐观锁")
    private Integer version;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "逻辑删除（0-未删除 1-已删除）")
    private Integer isDeleted;


}
