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 ConfigItemCategoryUpdateRequest {

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

    @ApiModelProperty("配置大类编码")
    private String categoryCode;

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

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

    @ApiModelProperty("图片URL")
    private String imageUrl;

    @ApiModelProperty("视频URL")
    private String videoUrl;

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

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