package thyyxxk.webserver.entity.dashboardEditor;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.Date;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_dashboard_template")
public class TDashboardTemplate implements Serializable {

    private static final long serialVersionUID = 9097568630165242770L;

    /**
     * id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 科室的编码
     */
    @TableField(value = "ward_code")
    private String wardCode;

    /**
     * 页面数据
     */
    @TableField(value = "html_data")
    private String htmlData;

    /**
     * 临时页面数据
     */
    @TableField(value = "html_data_temp")
    private String htmlDataTemp;

    /**
     * createTime
     */
    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private Date createTime;

    /**
     * createCode
     */
    @TableField(fill = FieldFill.INSERT, value = "create_code")
    private String createCode;

    /**
     * updateTime
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_time")
    private Date updateTime;

    /**
     * updateCode
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_code")
    private String updateCode;

    /**
     * 模板类型，在magic-api中 /public/dashboard/getTemplateType 定义 [{code: 0,name: ''}] 就可以了
     */
    private Integer templateType;

    public static LambdaQueryWrapper<TDashboardTemplate> lambdaQueryWrapper() {
        return new LambdaQueryWrapper<>();
    }

    public static QueryWrapper<TDashboardTemplate> queryWrapper() {
        return new QueryWrapper<>();
    }


}
