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>
26 lines
477 B
Go
26 lines
477 B
Go
package misc
|
|
|
|
import (
|
|
"honoka-chan/internal/router"
|
|
ghomeschema "honoka-chan/internal/schema/ghome"
|
|
"honoka-chan/internal/session"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func agreement(ctx *gin.Context) {
|
|
ss := session.New(ctx)
|
|
defer ss.Finalize()
|
|
|
|
ss.Respond(ghomeschema.AgreementResp{
|
|
ReturnCode: 0,
|
|
ErrorType: 0,
|
|
ReturnMessage: "",
|
|
Data: ghomeschema.AgreementData{},
|
|
})
|
|
}
|
|
|
|
func init() {
|
|
router.AddHandler("/", "GET", "/agreement/all", agreement)
|
|
}
|