Commit dab0cd2e authored by 李涛's avatar 李涛

添加主页列表数据

parent 67ff7b0e
{
"code": 100,
"msg": "OK",
"data": {
"dynamicData": {
"title": "主页列表",
"modules": [
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934772342.png",
"title": "Miss Nguyen is Exquisitely Dainty and Ravishingly",
"link": "bkrouter://bayread.com/video_list?id=100005"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935776299.png",
"title": "An Untrammeled Miracle Doctor",
"link": "bkrouter://bayread.com/video_list?id=100007"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934452424.png",
"title": "Rebirth 1990",
"link": "bkrouter://bayread.com/video_list?id=100004"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935058103.png",
"title": "Almighty Husband like God",
"link": "bkrouter://bayread.com/video_list?id=100006"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934772342.png",
"title": "Miss Nguyen is Exquisitely Dainty and Ravishingly",
"link": "bkrouter://bayread.com/video_list?id=100005"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935776299.png",
"title": "An Untrammeled Miracle Doctor",
"link": "bkrouter://bayread.com/video_list?id=100007"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934452424.png",
"title": "Rebirth 1990",
"link": "bkrouter://bayread.com/video_list?id=100004"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935058103.png",
"title": "Almighty Husband like God",
"link": "bkrouter://bayread.com/video_list?id=100006"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934772342.png",
"title": "Miss Nguyen is Exquisitely Dainty and Ravishingly",
"link": "bkrouter://bayread.com/video_list?id=100005"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935776299.png",
"title": "An Untrammeled Miracle Doctor",
"link": "bkrouter://bayread.com/video_list?id=100007"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934452424.png",
"title": "Rebirth 1990",
"link": "bkrouter://bayread.com/video_list?id=100004"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935058103.png",
"title": "Almighty Husband like God",
"link": "bkrouter://bayread.com/video_list?id=100006"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934772342.png",
"title": "Miss Nguyen is Exquisitely Dainty and Ravishingly",
"link": "bkrouter://bayread.com/video_list?id=100005"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935776299.png",
"title": "An Untrammeled Miracle Doctor",
"link": "bkrouter://bayread.com/video_list?id=100007"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673934452424.png",
"title": "Rebirth 1990",
"link": "bkrouter://bayread.com/video_list?id=100004"
},
{
"moduleType": "1000001",
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673935058103.png",
"title": "Almighty Husband like God",
"link": "bkrouter://bayread.com/video_list?id=100006"
}
]
}
}
}
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"modules": [ "modules": [
{ {
"moduleName": "轮播图", "moduleName": "轮播图",
"moduleType": "10005", "moduleType": 10005,
"items": [ "items": [
{ {
"imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673841669737.png", "imageUrl": "http://cdn.ibreader.com/group1/M02/cms/1673841669737.png",
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
}, },
{ {
"moduleName": "横向网格列表", "moduleName": "横向网格列表",
"moduleType": "10006", "moduleType": 10006,
"title": "Original Series", "title": "Original Series",
"items": [ "items": [
{ {
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
}, },
{ {
"moduleName": "横向方块样式", "moduleName": "横向方块样式",
"moduleType": "10007", "moduleType": 10007,
"title": "Weekly Picks", "title": "Weekly Picks",
"items": [ "items": [
{ {
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
}, },
{ {
"moduleName": "纵向列表", "moduleName": "纵向列表",
"moduleType": "10003", "moduleType": 10003,
"title": "New Release", "title": "New Release",
"items": [ "items": [
{ {
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
}, },
{ {
"moduleName": "横向列表", "moduleName": "横向列表",
"moduleType": "10002", "moduleType": 10002,
"title": "Most Favorited", "title": "Most Favorited",
"style": 0, "style": 0,
"items": [ "items": [
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
}, },
{ {
"moduleName": "横向列表", "moduleName": "横向列表",
"moduleType": "10002", "moduleType": 10002,
"title": "Love After Marriage", "title": "Love After Marriage",
"style": 1, "style": 1,
"items": [ "items": [
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
}, },
{ {
"moduleName": "横向列表", "moduleName": "横向列表",
"moduleType": "10002", "moduleType": 10002,
"title": "ToxicLove", "title": "ToxicLove",
"style": 0, "style": 0,
"items": [ "items": [
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
}, },
{ {
"moduleName": "纵向列表", "moduleName": "纵向列表",
"moduleType": "10003", "moduleType": 10003,
"title": "New Release", "title": "New Release",
"items": [ "items": [
{ {
......
package com.litao.lib.dynamicui.model
import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize
/**
* @author : litao
* @date : 2023/3/24 10:14
*/
@Parcelize
@Keep
open class DynamicBaseModel: Parcelable {
var id:Int = -1
var stringId:String? = ""
var objectId:String? = null
var style:Int? = 0
var title:String? = null
var subTitle:String? = ""
var label:String? = ""
var content:String? = ""
var subContent:String? = ""
var time:String? = ""
var tip:String? = ""
var tags:List<String>? = null
var imageTag:String? = ""
var subTip:String? = ""
var link:String? = ""
var url:String? = ""
var imageUrl:String? = ""
var titleColor:String? = ""
var themeColor:String? = ""
var icon:String? = null
var iconLink:String? = ""
var state:Int? = 0
var location:Int? = 0
var sortNumber:Int? = 0
var behaviorName:String? = null
var extra: DynamicExtraModel? = null
}
\ No newline at end of file
package com.litao.lib.dynamicui.model
import android.graphics.Rect
import androidx.annotation.Keep
import com.litao.lib.utils.BKStringUtils
import kotlinx.parcelize.Parcelize
/**
* @author : litao
* @date : 2023/3/24 10:13
*/
@Parcelize
@Keep
class DynamicGroupModel: DynamicBaseModel() {
var moduleName:String? = null
var moduleType = 0
var moduleId = 0
var type = 0
var refreshUrl = 0
var padding = Rect()
var extraItems:List<DynamicItemModel>? = null
var moduleTabs:List<DynamicItemModel>? = null
var buttons:List<DynamicItemModel>? = null
var items:List<DynamicItemModel>? = null
}
\ No newline at end of file
package com.litao.lib.dynamicui.model
import androidx.annotation.Keep
/**
* @author : litao
* @date : 2023/3/24 10:14
*/
@Keep
class DynamicItemModel: DynamicBaseModel() {
var itemType = 0
var subType = 0
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is DynamicBaseModel) return false
if (id != other.id) return false
if (stringId != other.stringId) return false
if (objectId != other.objectId) return false
if (style != other.style) return false
if (title != other.title) return false
if (content != other.content) return false
if (tip != other.tip) return false
if (link != other.link) return false
if (url != other.url) return false
return true
}
override fun hashCode(): Int {
var result = id
result = 31 * result + stringId.hashCode()
result = 31 * result + objectId.hashCode()
result = 31 * result + style.hashCode()
result = 31 * result + (title?.hashCode() ?: 0)
result = 31 * result + content.hashCode()
result = 31 * result + tip.hashCode()
result = 31 * result + link.hashCode()
result = 31 * result + url.hashCode()
return result
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment