package com.cool.store.request.config;

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;

@Data
public class ConfigItemUpdateRequest {

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

    @ApiModelProperty("配置项编码")
    private String itemCode;

    @ApiModelProperty("配置项名称")
    @NotBlank(message = "配置项名称不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String itemName;

    @ApiModelProperty("配置大类ID")
    @NotNull(message = "配置大类ID不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Long categoryId;

    @ApiModelProperty("显示排序")
    @NotNull(message = "显示排序不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer sortNo;

    @ApiModelProperty("状态:1启用,0禁用")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("费用类型 字典表")
    private String expenseTypeCode;

    @ApiModelProperty("是否支持多选 1-是 2-否")
    private Integer multipleChoice;
}
