liujie
2025-12-29 5ca4dbed191c98f121b9d493d943e72ab8a3645e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.ruoyi.system.model;
 
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
 
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
 
/**
 * <p>
 * 大屏-社区资源分类
 * </p>
 *
 * @author xiaochen
 * @since 2025-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_large_resource_type")
@ApiModel(value="TLargeResourceType对象", description="大屏-社区资源分类")
public class TLargeResourceType extends BaseModel {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
 
    @ApiModelProperty(value = "父级id 默认0")
    @TableField("parent_id")
    private String parentId;
 
    @Length(max = 40,message = "分类名称不能超过40个字符")
    @ApiModelProperty(value = "分类名称")
    @TableField("type_name")
    private String typeName;
 
    @Length(max = 40,message = "单位名称不能超过40个字符")
    @ApiModelProperty(value = "单位名称")
    @TableField("unit_name")
    private String unitName;
 
    @ApiModelProperty(value = "子项")
    @TableField(exist = false)
    private List<TLargeResourceType> children;
 
}