mirror of
https://github.com/saysky/Hotel
synced 2025-06-28 16:28:04 +08:00
77 lines
1.2 KiB
Java
77 lines
1.2 KiB
Java
package com.example.hotel.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.example.hotel.common.base.BaseEntity;
|
|
import com.example.hotel.util.RelativeDateFormat;
|
|
import lombok.Data;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author example
|
|
*/
|
|
@Data
|
|
@TableName("post")
|
|
public class Post extends BaseEntity {
|
|
|
|
/**
|
|
* 客房标题
|
|
*/
|
|
private String postTitle;
|
|
|
|
/**
|
|
* 客房描述
|
|
*/
|
|
private String postContent;
|
|
|
|
/**
|
|
* 客房摘要
|
|
*/
|
|
private String postSummary;
|
|
|
|
/**
|
|
* 缩略图
|
|
*/
|
|
private String postThumbnail;
|
|
|
|
/**
|
|
* 0 正常
|
|
* 1 已预订
|
|
* 2 下架
|
|
*/
|
|
private Integer postStatus;
|
|
|
|
/**
|
|
* 价格
|
|
*/
|
|
private Integer price;
|
|
|
|
/**
|
|
* 房间编号
|
|
*/
|
|
private String number;
|
|
|
|
/**
|
|
* 分类ID
|
|
*/
|
|
private Long cateId;
|
|
|
|
/**
|
|
* 图片URL
|
|
*/
|
|
private String imgUrl;
|
|
|
|
/**
|
|
* 富文本
|
|
*/
|
|
private String postEditor;
|
|
|
|
/**
|
|
* 客房所属分类
|
|
*/
|
|
@TableField(exist = false)
|
|
private Category category;
|
|
|
|
} |