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; /** *
* 大屏-社区资源 *
* * @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; }