xuhy
2025-12-11 79d5402492a82421b94fcbf90be01adbf3c8e0e5
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;
 
/**
 * <p>
 * 大屏-社区资源
 * </p>
 *
 * @author xiaochen
 * @since 2025-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_large_resource")
@ApiModel(value="TLargeResource对象", description="大屏-社区资源")
public class TLargeResource extends BaseModel {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
 
    @ApiModelProperty(value = "类型一级id")
    @TableField("type_parent_id")
    private String typeParentId;
 
    @ApiModelProperty(value = "类型二级id")
    @TableField("type_children_id")
    private String typeChildrenId;
 
    @Length(max = 40,message = "资源单位不能超过40个字符")
    @ApiModelProperty(value = "资源单位")
    @TableField("resource_unit")
    private String resourceUnit;
 
    @ApiModelProperty(value = "资源名称描述")
    @TableField("resource_name_desc")
    private String resourceNameDesc;
 
    @Length(max = 50,message = "资源来源不能超过50个字符")
    @ApiModelProperty(value = "资源来源")
    @TableField("resource_source")
    private String resourceSource;
 
    @ApiModelProperty(value = "数量规模")
    @TableField("quantity_scale")
    private String quantityScale;
 
    @Length(max = 20,message = "联系人不能超过20个字符")
    @ApiModelProperty(value = "联系人")
    @TableField("contact_person")
    private String contactPerson;
 
    @Pattern(regexp = "^$|^1[3-9]\\d{9}$",message = "手机号格式不正确")
    @ApiModelProperty(value = "联系电话")
    @TableField("contact_number")
    private String contactNumber;
 
}