Notice.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springblade.modules.desk.entity;
  17. import com.baomidou.mybatisplus.annotation.IdType;
  18. import com.baomidou.mybatisplus.annotation.TableId;
  19. import com.baomidou.mybatisplus.annotation.TableName;
  20. import io.swagger.annotations.ApiModelProperty;
  21. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  22. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  23. import lombok.Data;
  24. import lombok.EqualsAndHashCode;
  25. import org.springblade.core.mp.base.BaseEntity;
  26. import java.util.Date;
  27. /**
  28. * 实体类
  29. *
  30. * @author Chill
  31. */
  32. @Data
  33. @EqualsAndHashCode(callSuper = true)
  34. @TableName("blade_notice")
  35. public class Notice extends BaseEntity {
  36. private static final long serialVersionUID = 1L;
  37. /**
  38. * 主键id
  39. */
  40. @ApiModelProperty(value = "主键")
  41. @TableId(value = "id", type = IdType.ASSIGN_ID)
  42. @JsonSerialize(using = ToStringSerializer.class)
  43. private Long id;
  44. /**
  45. * 标题
  46. */
  47. @ApiModelProperty(value = "标题")
  48. private String title;
  49. /**
  50. * 通知类型
  51. */
  52. @ApiModelProperty(value = "通知类型")
  53. private Integer category;
  54. /**
  55. * 发布日期
  56. */
  57. @ApiModelProperty(value = "发布日期")
  58. private Date releaseTime;
  59. /**
  60. * 内容
  61. */
  62. @ApiModelProperty(value = "内容")
  63. private String content;
  64. }