@@ -0,0 +1,13 @@
|
||||
package costume
|
||||
|
||||
import "fmt"
|
||||
|
||||
func CostumeApi(action string) (res any, err error) {
|
||||
switch action {
|
||||
case "costumeList":
|
||||
res, err = costumeList()
|
||||
default:
|
||||
err = fmt.Errorf("unimplemented action: costume: %s", action)
|
||||
}
|
||||
return res, err
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package costume
|
||||
|
||||
import (
|
||||
"honoka-chan/internal/schema/api/costume"
|
||||
"time"
|
||||
)
|
||||
|
||||
func costumeList() (res any, err error) {
|
||||
res = costume.ListResp{
|
||||
Result: costume.ListData{
|
||||
CostumeList: []costume.CostumeList{},
|
||||
},
|
||||
Status: 200,
|
||||
CommandNum: false,
|
||||
TimeStamp: time.Now().Unix(),
|
||||
}
|
||||
|
||||
return res, err
|
||||
}
|
||||
Reference in New Issue
Block a user