mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
feat: 获取频道列表接口 (TODO 状态 返回空数组)
This commit is contained in:
parent
70cb876439
commit
a31fe92c0b
@ -46,7 +46,7 @@ internal object ActionManager {
|
|||||||
SetFriendAddRequest, SetGroupAddRequest,
|
SetFriendAddRequest, SetGroupAddRequest,
|
||||||
|
|
||||||
// GUILD
|
// GUILD
|
||||||
GetGuildServiceProfile,
|
GetGuildServiceProfile, GetGuildList,
|
||||||
|
|
||||||
// WEATHER
|
// WEATHER
|
||||||
GetWeatherCityCode, GetWeather,
|
GetWeatherCityCode, GetWeather,
|
||||||
|
@ -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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user