package com.czg.system.dto;

import com.czg.validator.group.InsertGroup;
import com.czg.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author GYJoker
 */
@Data
public class MiniAppPagesDTO {

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

    /**
     * 图标
     */
    private String icon;

    /**
     * 页面名称
     */
    @NotBlank(message = "页面路径不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String name;

    /**
     * 页面路径
     */
    @NotBlank(message = "页面路径不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String path;

    /**
     * 页面描述
     */
    private String description;

    /**
     * 状态 1:启用 0:禁用
     */
    private Integer status = 1;

    /**
     * 排序
     */
    private Integer sort = 1;
}
