Implement more endpoints & overhaul [2/n]
Drop LevelDB and move all the things to SQLite. Implemented endpoints: /api <unit, accessoryMaterialAll> /api <unit, accessoryTab> /live/continue /live/partyList /unit/favoriteAccessory (WIP) /unit/sale Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"encoding/pem"
|
||||
"honoka-chan/config"
|
||||
"honoka-chan/internal/router"
|
||||
"honoka-chan/internal/schema/ghome"
|
||||
ghomeschema "honoka-chan/internal/schema/ghome"
|
||||
"honoka-chan/internal/session"
|
||||
honokautils "honoka-chan/pkg/utils"
|
||||
|
||||
@@ -18,7 +18,7 @@ func publicKey(ctx *gin.Context) {
|
||||
|
||||
publicKeyCode := 0
|
||||
publicKeyMsg := "ok"
|
||||
publicKeyData := ghome.PublicKeyData{
|
||||
publicKeyData := ghomeschema.PublicKeyData{
|
||||
Result: publicKeyCode,
|
||||
Message: publicKeyMsg,
|
||||
}
|
||||
@@ -33,7 +33,7 @@ func publicKey(ctx *gin.Context) {
|
||||
publicKeyData.Method = "rsa"
|
||||
}
|
||||
|
||||
ss.Respond(ghome.PublicKeyResp{
|
||||
ss.Respond(ghomeschema.PublicKeyResp{
|
||||
Code: publicKeyCode,
|
||||
Msg: publicKeyMsg,
|
||||
Data: publicKeyData,
|
||||
|
||||
Reference in New Issue
Block a user