package com.cool.store.request.tp;

import com.cool.store.common.InsertGroup;
import com.cool.store.common.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * <p>
 * 加分规则更新Request
 * </p>
 *
 * @author wangff
 * @since 2025/11/4
 */
@Data
public class TpRewardRuleUpdateRequest {

    @ApiModelProperty("id")
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty("项目大类")
    @NotBlank(message = "项目大类不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String projectCategory;

    @ApiModelProperty("加分项目名称")
    @NotBlank(message = "加分项目名称不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String projectName;

    @ApiModelProperty("是否加满，0否 1是")
    @NotNull(message = "是否加满不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer isFull;

    @ApiModelProperty("加分值")
    private BigDecimal score;

    @ApiModelProperty("启用状态，0未启用 1启用")
    @NotNull(message = "启用状态不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer status;

    @ApiModelProperty("加分项目描述")
    @NotBlank(message = "加分项目描述不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String remark;
}
