content: /*
   * 爱组搭，低代码组件化开发平台
   * ------------------------------------------
   * 受知识产权保护，请勿删除版权申明，开发平台不允许做非法网站，后果自负
   */
  package com.aizuda.boot.modules.system.entity;
  
  import com.aizuda.core.bean.BaseEntity;
  import com.aizuda.core.validation.Create;
  import com.baomidou.mybatisplus.annotation.OrderBy;
  import com.baomidou.mybatisplus.annotation.SqlCondition;
  import com.baomidou.mybatisplus.annotation.TableField;
  import io.swagger.v3.oas.annotations.media.Schema;
  import jakarta.validation.constraints.NotBlank;
  import jakarta.validation.constraints.PositiveOrZero;
  import jakarta.validation.constraints.Size;
  import lombok.Getter;
  import lombok.Setter;
  
  /**
   * 系统字典
   *
   * @author 青苗
   * @since 1.0.0
   */
  @Getter
  @Setter
  @Schema(name = "SysDict", description = "系统字典")
  public class SysDict extends BaseEntity {
  
      @Schema(description = "父ID")
      @PositiveOrZero
      private Long pid;
  
      @Schema(description = "名称")
      @NotBlank(groups = Create.class)
      @Size(max = 100)
      @TableField(condition = SqlCondition.LIKE)
      private String name;
  
      @Schema(description = "编码")
      @NotBlank(groups = Create.class)
      @Size(max = 100)
      @TableField(condition = SqlCondition.LIKE)
      private String code;
  
      @Schema(description = "内容")
      @Size(max = 100)
      private String content;
  
      @Schema(description = "状态 0、禁用 1、正常")
      @PositiveOrZero
      private Integer status;
  
      @Schema(description = "排序")
      @PositiveOrZero
      @OrderBy
      private Integer sort;
  
      @Schema(description = "备注")
      @Size(max = 255)
      private String remark;
  
  }
  