添加业务逻辑
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.aiosman.riderpro.data
|
||||
|
||||
data class AccountProfile(
|
||||
val id: Int,
|
||||
val followerCount: Int,
|
||||
val followingCount: Int,
|
||||
val nickName: String,
|
||||
val avatar: String,
|
||||
val bio: String,
|
||||
val country: String,
|
||||
)
|
||||
|
||||
interface AccountService {
|
||||
suspend fun getAccountProfile(): AccountProfile
|
||||
}
|
||||
|
||||
class TestAccountServiceImpl : AccountService {
|
||||
override suspend fun getAccountProfile(): AccountProfile {
|
||||
return AccountProfile(
|
||||
id = 1,
|
||||
followerCount = 100,
|
||||
followingCount = 200,
|
||||
nickName = "Aiosman",
|
||||
avatar = "https://img.freepik.com/free-photo/white-billboard-template_23-2147726635.jpg?t=st=1722150015~exp=1722153615~hmac=5540620196d7898215d822be26353c87a63d51bbfb2b814e032626e1948a1583&w=740",
|
||||
bio = "I am a software engineer",
|
||||
country = "Nigeria"
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user