Course.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.futu.goose.course.pojo;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.io.Serializable;
  7. import java.math.BigDecimal;
  8. import java.util.Date;
  9. import lombok.Data;
  10. /**
  11. * 课程表
  12. * @TableName course
  13. */
  14. @TableName(value ="course")
  15. @Data
  16. public class Course implements Serializable {
  17. /**
  18. * 课程ID(雪花ID)
  19. */
  20. @TableId
  21. private Long id;
  22. /**
  23. * 课程标题
  24. */
  25. private String title;
  26. /**
  27. * 课程副标题
  28. */
  29. private String subtitle;
  30. /**
  31. * 封面图URL
  32. */
  33. private String coverImage;
  34. /**
  35. * 分类ID
  36. */
  37. private Long categoryId;
  38. /**
  39. * 主讲教师ID
  40. */
  41. private Long teacherId;
  42. /**
  43. * 课程价格
  44. */
  45. private BigDecimal price;
  46. /**
  47. * 原价
  48. */
  49. private BigDecimal originalPrice;
  50. /**
  51. * 总课时数
  52. */
  53. private Integer duration;
  54. /**
  55. * 状态:0-未发布,1-已发布,2-已下架
  56. */
  57. private Integer status;
  58. /**
  59. * 课程详情
  60. */
  61. private String description;
  62. /**
  63. * 学习目标
  64. */
  65. private String learnGoals;
  66. /**
  67. * 学习要求
  68. */
  69. private String requirements;
  70. /**
  71. * 创建时间
  72. */
  73. private Date createTime;
  74. /**
  75. * 更新时间
  76. */
  77. private Date updateTime;
  78. /**
  79. * shop_id
  80. */
  81. private Long shopId;
  82. @TableField(exist = false)
  83. private static final long serialVersionUID = 1L;
  84. }