|
|
@@ -1,5 +1,6 @@
|
|
|
package com.izouma.jiashanxia.domain;
|
|
|
|
|
|
+import com.izouma.jiashanxia.converter.StringArrayConverter;
|
|
|
import com.izouma.jiashanxia.enums.SetType;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
@@ -10,6 +11,7 @@ import lombok.NoArgsConstructor;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Data
|
|
|
@Builder
|
|
|
@@ -26,7 +28,8 @@ public class Package extends BaseEntity {
|
|
|
private String title;
|
|
|
|
|
|
@ApiModelProperty(value = "套餐标签")
|
|
|
- private String tag;
|
|
|
+ @Convert(converter = StringArrayConverter.class)
|
|
|
+ private List<String> tag;
|
|
|
|
|
|
@ApiModelProperty(value = "金额")
|
|
|
private BigDecimal amount;
|
|
|
@@ -39,7 +42,9 @@ public class Package extends BaseEntity {
|
|
|
private SetType type;
|
|
|
|
|
|
@ApiModelProperty(value = "图")
|
|
|
- private String img;
|
|
|
+ @Column(columnDefinition = "TEXT")
|
|
|
+ @Convert(converter = StringArrayConverter.class)
|
|
|
+ private List<String> img;
|
|
|
|
|
|
// @OneToMany(cascade = CascadeType.DETACH)
|
|
|
// @JoinColumn(name = "set_goods_id")
|