diff --git a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/createsocialservicegovernmentprogramhandler.go b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/createsocialservicegovernmentprogramhandler.go index b0add730..7c488b70 100644 --- a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/createsocialservicegovernmentprogramhandler.go +++ b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/createsocialservicegovernmentprogramhandler.go @@ -7,12 +7,11 @@ import ( "net/http" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func CreateSocialServiceGovernmentProgramHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func CreateSocialServiceGovernmentProgramHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.CreateSocialServiceGovernmentProgramReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/deletesocialservicegovernmentprogramhandler.go b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/deletesocialservicegovernmentprogramhandler.go index 3af41754..cda89b37 100644 --- a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/deletesocialservicegovernmentprogramhandler.go +++ b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/deletesocialservicegovernmentprogramhandler.go @@ -6,13 +6,13 @@ package socialServiceGovernmentProgram import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func DeleteSocialServiceGovernmentProgramHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func DeleteSocialServiceGovernmentProgramHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.DeleteSocialServiceGovernmentProgramReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/getsocialservicegovernmentprogramhandler.go b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/getsocialservicegovernmentprogramhandler.go index 2508c00a..6179d0e3 100644 --- a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/getsocialservicegovernmentprogramhandler.go +++ b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/getsocialservicegovernmentprogramhandler.go @@ -7,12 +7,11 @@ import ( "net/http" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func GetSocialServiceGovernmentProgramHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func GetSocialServiceGovernmentProgramHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.GetSocialServiceGovernmentProgramReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/listsocialservicegovernmentprogramhandler.go b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/listsocialservicegovernmentprogramhandler.go index 09c1793d..155b7395 100644 --- a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/listsocialservicegovernmentprogramhandler.go +++ b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/listsocialservicegovernmentprogramhandler.go @@ -6,13 +6,13 @@ package socialServiceGovernmentProgram import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func ListSocialServiceGovernmentProgramHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func ListSocialServiceGovernmentProgramHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.ListSocialServiceGovernmentProgramReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/updatesocialservicegovernmentprogramhandler.go b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/updatesocialservicegovernmentprogramhandler.go index e773c464..e920142e 100644 --- a/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/updatesocialservicegovernmentprogramhandler.go +++ b/server/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram/updatesocialservicegovernmentprogramhandler.go @@ -6,13 +6,13 @@ package socialServiceGovernmentProgram import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func UpdateSocialServiceGovernmentProgramHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func UpdateSocialServiceGovernmentProgramHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.UpdateSocialServiceGovernmentProgramReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_internship/handler/socialServiceInternship/createsocialserviceinternshiphandler.go b/server/internal/social_service_internship/handler/socialServiceInternship/createsocialserviceinternshiphandler.go index 1368bd87..dcc01e26 100644 --- a/server/internal/social_service_internship/handler/socialServiceInternship/createsocialserviceinternshiphandler.go +++ b/server/internal/social_service_internship/handler/socialServiceInternship/createsocialserviceinternshiphandler.go @@ -6,13 +6,13 @@ package socialServiceInternship import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/logic/socialServiceInternship" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func CreateSocialServiceInternshipHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func CreateSocialServiceInternshipHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.CreateSocialServiceInternshipReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_internship/handler/socialServiceInternship/deletesocialserviceinternshiphandler.go b/server/internal/social_service_internship/handler/socialServiceInternship/deletesocialserviceinternshiphandler.go index fb1e6c38..9f23b348 100644 --- a/server/internal/social_service_internship/handler/socialServiceInternship/deletesocialserviceinternshiphandler.go +++ b/server/internal/social_service_internship/handler/socialServiceInternship/deletesocialserviceinternshiphandler.go @@ -6,13 +6,13 @@ package socialServiceInternship import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/logic/socialServiceInternship" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func DeleteSocialServiceInternshipHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func DeleteSocialServiceInternshipHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.DeleteSocialServiceInternshipReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_internship/handler/socialServiceInternship/getsocialserviceinternshiphandler.go b/server/internal/social_service_internship/handler/socialServiceInternship/getsocialserviceinternshiphandler.go index 2a15b82f..33009791 100644 --- a/server/internal/social_service_internship/handler/socialServiceInternship/getsocialserviceinternshiphandler.go +++ b/server/internal/social_service_internship/handler/socialServiceInternship/getsocialserviceinternshiphandler.go @@ -6,13 +6,13 @@ package socialServiceInternship import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/logic/socialServiceInternship" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func GetSocialServiceInternshipHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func GetSocialServiceInternshipHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.GetSocialServiceInternshipReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_internship/handler/socialServiceInternship/listsocialserviceinternshiphandler.go b/server/internal/social_service_internship/handler/socialServiceInternship/listsocialserviceinternshiphandler.go index ea478800..6bf48223 100644 --- a/server/internal/social_service_internship/handler/socialServiceInternship/listsocialserviceinternshiphandler.go +++ b/server/internal/social_service_internship/handler/socialServiceInternship/listsocialserviceinternshiphandler.go @@ -6,13 +6,13 @@ package socialServiceInternship import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/logic/socialServiceInternship" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func ListSocialServiceInternshipHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func ListSocialServiceInternshipHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.ListSocialServiceInternshipReq if err := httpx.Parse(r, &req); err != nil { diff --git a/server/internal/social_service_internship/handler/socialServiceInternship/updatesocialserviceinternshiphandler.go b/server/internal/social_service_internship/handler/socialServiceInternship/updatesocialserviceinternshiphandler.go index 15eb64f4..ffd66348 100644 --- a/server/internal/social_service_internship/handler/socialServiceInternship/updatesocialserviceinternshiphandler.go +++ b/server/internal/social_service_internship/handler/socialServiceInternship/updatesocialserviceinternshiphandler.go @@ -6,13 +6,13 @@ package socialServiceInternship import ( "net/http" + "github.com/JACKYMYPERSON/hldrCenter/config" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/logic/socialServiceInternship" - "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc" "github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) -func UpdateSocialServiceInternshipHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { +func UpdateSocialServiceInternshipHandler(cfg *config.Config) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.UpdateSocialServiceInternshipReq if err := httpx.Parse(r, &req); err != nil {