Files
xfc_server_V2/app/main/api/internal/handler/user/gettokenhandler.go

18 lines
415 B
Go
Raw Normal View History

2026-01-30 15:56:38 +08:00
package user
import (
"net/http"
"xingfucha-server/app/main/api/internal/logic/user"
"xingfucha-server/app/main/api/internal/svc"
"xingfucha-server/common/result"
)
func GetTokenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := user.NewGetTokenLogic(r.Context(), svcCtx)
resp, err := l.GetToken()
result.HttpResult(r, w, resp, err)
}
}