...
This commit is contained in:
parent
23ed2e43cc
commit
0dd9114195
@ -5,6 +5,7 @@ import kr.lunaticbum.back.lun.utils.LogService
|
|||||||
import lombok.AllArgsConstructor
|
import lombok.AllArgsConstructor
|
||||||
import lombok.Data
|
import lombok.Data
|
||||||
import lombok.NoArgsConstructor
|
import lombok.NoArgsConstructor
|
||||||
|
import org.bson.codecs.pojo.annotations.BsonIgnore
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import org.springframework.beans.factory.annotation.Autowired
|
import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.data.annotation.Id
|
import org.springframework.data.annotation.Id
|
||||||
@ -151,6 +152,10 @@ enum class RssDataType {
|
|||||||
// else -> { View.VISIBLE }
|
// else -> { View.VISIBLE }
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Document(collection = "RssData")
|
||||||
class RssData : RssDataInterface {
|
class RssData : RssDataInterface {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@ -164,6 +169,7 @@ class RssData : RssDataInterface {
|
|||||||
var chosung : String? = null
|
var chosung : String? = null
|
||||||
|
|
||||||
|
|
||||||
|
@BsonIgnore
|
||||||
var mRssDataType : RssDataType? = null
|
var mRssDataType : RssDataType? = null
|
||||||
override fun title(): String {
|
override fun title(): String {
|
||||||
return when(category()){
|
return when(category()){
|
||||||
@ -273,6 +279,7 @@ object SkFWTW9zdA : SoInterface {
|
|||||||
thumbnail = thumb
|
thumbnail = thumb
|
||||||
originPage = link
|
originPage = link
|
||||||
this.title = title
|
this.title = title
|
||||||
|
category = RssDataType.Most.name
|
||||||
try {
|
try {
|
||||||
pubDate = dmy.parse(date).time
|
pubDate = dmy.parse(date).time
|
||||||
}catch (e : Exception) {e.printStackTrace()}
|
}catch (e : Exception) {e.printStackTrace()}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user