Files
ycc-proxy-server/app/main/api/internal/handler/agent/getinvitelinkhandler.go
2025-11-27 13:09:54 +08:00

18 lines
415 B
Go

package agent
import (
"net/http"
"ycc-server/app/main/api/internal/logic/agent"
"ycc-server/app/main/api/internal/svc"
"ycc-server/common/result"
)
func GetInviteLinkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := agent.NewGetInviteLinkLogic(r.Context(), svcCtx)
resp, err := l.GetInviteLink()
result.HttpResult(r, w, resp, err)
}
}