修改业务层

This commit is contained in:
2025-10-30 10:05:35 +08:00
parent dd2670f33f
commit 4528cb271f
10 changed files with 18 additions and 20 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {