package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("treatment_resource")
public class TreatmentResource {
    
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer categoryId;
    private String content;
    private String resourceUrl;
    private String applicableSymptoms;
    private Integer visitCount;
    private Integer downloadCount;
    private Integer publisherId;
    private String auditStatus;
    private LocalDateTime createTime;
    
    @TableField(exist = false)
    private String categoryName;
    
    @TableField(exist = false)
    private String publisherName;
} 