feat: 获取频道列表接口 (TODO 状态 返回空数组)

This commit is contained in:
真心 2024-01-01 19:01:38 +08:00
parent 70cb876439
commit a31fe92c0b
No known key found for this signature in database
GPG Key ID: 62AF67230C9E6D1C
2 changed files with 21 additions and 1 deletions

View File

@ -46,7 +46,7 @@ internal object ActionManager {
SetFriendAddRequest, SetGroupAddRequest,
// GUILD
GetGuildServiceProfile,
GetGuildServiceProfile, GetGuildList,
// WEATHER
GetWeatherCityCode, GetWeather,

View File

@ -0,0 +1,20 @@
package moe.fuqiuluo.shamrock.remote.action.handlers
import kotlinx.serialization.json.JsonElement
import moe.fuqiuluo.shamrock.remote.action.ActionSession
import moe.fuqiuluo.shamrock.remote.action.IActionHandler
import moe.fuqiuluo.shamrock.tools.EmptyJsonArray
import moe.fuqiuluo.shamrock.tools.EmptyJsonString
internal object GetGuildList : IActionHandler() {
override suspend fun internalHandle(session: ActionSession): String {
return invoke(echo = session.echo)
}
operator fun invoke(echo: JsonElement = EmptyJsonString): String {
// TODO: get_guild_list
return ok(EmptyJsonArray, echo, "此功能尚未实现")
}
override fun path(): String = "get_guild_list"
}