Unify error handling and HTTP statuses

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-07-11 16:18:17 +08:00
parent 61b33ae0e3
commit cb8f587e30
113 changed files with 408 additions and 166 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package livese
import (
liveseapischema "honoka-chan/internal/schema/api/livese"
"net/http"
"time"
)
@@ -10,7 +11,7 @@ func LiveSeInfo() (res any, err error) {
Result: liveseapischema.InfoData{
LiveSeList: []int{1, 2, 3},
},
Status: 200,
Status: http.StatusOK,
CommandNum: false,
TimeStamp: time.Now().Unix(),
}