io.github.wslxm.springbootplus2.manage.test.model.dto.GcMenuDTO Maven / Gradle / Ivy
The newest version!
package io.github.wslxm.springbootplus2.manage.test.model.dto;
import io.github.wslxm.springbootplus2.core.base.model.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* base--gc--自关联测试表 (模拟菜单) DTO
*
*
* ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
*
* @author ws
* @email [email protected]
* @date 2023-08-28 15:16:59
*/
@Data
@ToString(callSuper = true)
@ApiModel(value = "GcMenuDTO 对象", description = "base--gc--自关联测试表 (模拟菜单)")
public class GcMenuDTO extends BaseDto {
private static final long serialVersionUID = -1696059285790486528L;
@ApiModelProperty(value = "指定父id" )
@NotBlank
@Length(min=0, max=32)
private String pid;
@ApiModelProperty(value = "菜单名" )
@NotBlank
@Length(min=0, max=32)
private String name;
@ApiModelProperty(value = "第二路由 " )
@Length(min=0, max=128)
private String twoUrl;
@ApiModelProperty(value = "菜单url" )
@Length(min=0, max=128)
private String url;
@ApiModelProperty(value = "图标" )
@NotBlank
@Length(min=0, max=32)
private String icon;
@ApiModelProperty(value = "排序" )
@NotNull
@Range(min=0L, max=99999999999L)
private Integer sort;
@ApiModelProperty(value = "目录级别" )
@NotNull
@Range(min=0L, max=9L)
private Integer root;
@ApiModelProperty(value = "禁用" )
@NotNull
@Range(min=0L, max=9L)
private Integer disable;
}