Files
honoka-chan/internal/handler/api/login/login.go
T
YumeMichi 947da92a66 webui: Add user birthday settings
- Store birth month and day in user_pref with default 10/18
- Migrate existing user_pref rows to fill missing birthday fields
- Expose birthday editing in the webui profile page
- Replace hardcoded birthday values in user info, top info, and product list responses
- Fix birthday month/day field alignment in the profile form

Signed-off-by: Sean Du <do4suki@gmail.com>
2026-06-05 05:48:36 +08:00

20 lines
348 B
Go

package login
import (
"fmt"
"github.com/gin-gonic/gin"
)
func LoginApi(ctx *gin.Context, action string) (res any, err error) {
switch action {
case "topInfo":
res, err = loginTopInfo(ctx)
case "topInfoOnce":
res, err = loginTopInfoOnce(ctx)
default:
err = fmt.Errorf("unimplemented action: login: %s", action)
}
return res, err
}