diff --git a/src/main/kotlin/kr/lunaticbum/back/lun/model/BumsPrivate.kt b/src/main/kotlin/kr/lunaticbum/back/lun/model/BumsPrivate.kt index 0124c16..2a95209 100644 --- a/src/main/kotlin/kr/lunaticbum/back/lun/model/BumsPrivate.kt +++ b/src/main/kotlin/kr/lunaticbum/back/lun/model/BumsPrivate.kt @@ -5,6 +5,7 @@ import kr.lunaticbum.back.lun.utils.LogService import lombok.AllArgsConstructor import lombok.Data import lombok.NoArgsConstructor +import org.bson.codecs.pojo.annotations.BsonIgnore import org.jsoup.Jsoup import org.springframework.beans.factory.annotation.Autowired import org.springframework.data.annotation.Id @@ -151,6 +152,10 @@ enum class RssDataType { // else -> { View.VISIBLE } // } } +@Data +@NoArgsConstructor +@AllArgsConstructor +@Document(collection = "RssData") class RssData : RssDataInterface { @Id @@ -164,6 +169,7 @@ class RssData : RssDataInterface { var chosung : String? = null + @BsonIgnore var mRssDataType : RssDataType? = null override fun title(): String { return when(category()){ @@ -273,6 +279,7 @@ object SkFWTW9zdA : SoInterface { thumbnail = thumb originPage = link this.title = title + category = RssDataType.Most.name try { pubDate = dmy.parse(date).time }catch (e : Exception) {e.printStackTrace()}