package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysAppletIndexCategories;

/**
 * 小程序首页精选分类 BO
 *
 * @Author: Trae
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysAppletIndexCategories.class, reverseConvertGenerate = false)
public class SysAppletIndexCategoriesBo extends BaseEntity {

    @NotNull(message = "分类ID不能为空", groups = { EditGroup.class })
    private Long id;

    @NotBlank(message = "分类标题不能为空")
    @Size(min = 1, max = 50, message = "分类标题长度不能超过{max}个字符")
    private String title;

    @Size(max = 200, message = "备注长度不能超过{max}个字符")
    private String remark;

    private Long background;

}
