|
|
@@ -6,6 +6,7 @@ import com.izouma.nineth.converter.FileObjectListConverter;
|
|
|
import com.izouma.nineth.converter.PrivilegeListConverter;
|
|
|
import com.izouma.nineth.converter.PropertyListConverter;
|
|
|
import com.izouma.nineth.enums.AssetStatus;
|
|
|
+import com.izouma.nineth.enums.CollectionType;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@@ -149,6 +150,10 @@ public class Asset extends BaseEntity {
|
|
|
|
|
|
private Long fromAssetId;
|
|
|
|
|
|
+ @ApiModelProperty("类型")
|
|
|
+ @Enumerated(EnumType.STRING)
|
|
|
+ private CollectionType type;
|
|
|
+
|
|
|
@Transient
|
|
|
private boolean opened;
|
|
|
|
|
|
@@ -174,6 +179,7 @@ public class Asset extends BaseEntity {
|
|
|
.owner(user.getNickname())
|
|
|
.ownerId(user.getId())
|
|
|
.ownerAvatar(user.getAvatar())
|
|
|
+ .type(CollectionType.DEFAULT)
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
@@ -199,6 +205,7 @@ public class Asset extends BaseEntity {
|
|
|
.owner(user.getNickname())
|
|
|
.ownerId(user.getId())
|
|
|
.ownerAvatar(user.getAvatar())
|
|
|
+ .type(CollectionType.BLIND_BOX)
|
|
|
.build();
|
|
|
}
|
|
|
}
|