更新
This commit is contained in:
@@ -4,6 +4,7 @@ import com.aiosman.riderpro.R
|
||||
import com.aiosman.riderpro.data.AccountProfileEntity
|
||||
import com.aiosman.riderpro.data.CommentEntity
|
||||
import com.aiosman.riderpro.model.MomentEntity
|
||||
import com.aiosman.riderpro.model.MomentImageEntity
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.GsonBuilder
|
||||
import io.github.serpro69.kfaker.faker
|
||||
@@ -124,7 +125,13 @@ object TestDatabase {
|
||||
commentCount = commentCount + 1,
|
||||
shareCount = faker.random.nextInt(0, 100),
|
||||
favoriteCount = faker.random.nextInt(0, 100),
|
||||
images = imageList.shuffled().take(3),
|
||||
images = imageList.shuffled().take(3).map {
|
||||
MomentImageEntity(
|
||||
id = faker.random.nextLong(),
|
||||
url = it,
|
||||
thumbnail = it
|
||||
)
|
||||
},
|
||||
authorId = person.id
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user