package com.sckw.system.model.vo.req;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author czh
 * @desc 保存菜单映射
 * @date 2023/9/5
 */
@Data
public class SaveMappingReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 6484424016595829142L;

    /**
     * 菜单id
     */
    @NotNull(message = "菜单不能为空")
    private Long menuId;

    /**
     * 对应的菜单id
     */
    @NotNull(message = "对应的菜单不能为空")
    private List<Long> mappingIdList;

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