|
@@ -9,6 +9,7 @@ import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.futu.course.shop.domain.Shop;
|
|
|
import com.futu.course.shop.domain.Teacher;
|
|
|
import lombok.Data;
|
|
@@ -24,6 +25,7 @@ public class Course implements Serializable {
|
|
|
*
|
|
|
*/
|
|
|
@TableId
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING)
|
|
|
private Long id;
|
|
|
|
|
|
/**
|
|
@@ -34,6 +36,7 @@ public class Course implements Serializable {
|
|
|
/**
|
|
|
* 所属店铺
|
|
|
*/
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING)
|
|
|
private Long shopId;
|
|
|
@TableField(exist = false)
|
|
|
private Shop shop;
|
|
@@ -41,6 +44,7 @@ public class Course implements Serializable {
|
|
|
/**
|
|
|
* 主讲老师
|
|
|
*/
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING)
|
|
|
private Long teacherId;
|
|
|
|
|
|
@TableField(exist = false)
|