@@ -0,0 +1,19 @@
|
||||
package liveicon
|
||||
|
||||
import (
|
||||
"honoka-chan/internal/schema/api/liveicon"
|
||||
"time"
|
||||
)
|
||||
|
||||
func liveIconInfo() (res any, err error) {
|
||||
res = liveicon.InfoResp{
|
||||
Result: liveicon.InfoData{
|
||||
LiveNotesIconList: []int{1, 2, 3},
|
||||
},
|
||||
Status: 200,
|
||||
CommandNum: false,
|
||||
TimeStamp: time.Now().Unix(),
|
||||
}
|
||||
|
||||
return res, err
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package liveicon
|
||||
|
||||
import "fmt"
|
||||
|
||||
func LiveIconApi(action string) (res any, err error) {
|
||||
switch action {
|
||||
case "liveiconInfo":
|
||||
res, err = liveIconInfo()
|
||||
default:
|
||||
err = fmt.Errorf("unimplemented action: liveicon: %s", action)
|
||||
}
|
||||
return res, err
|
||||
}
|
||||
Reference in New Issue
Block a user