Files
hldrCenter/server/router/social/social_service_governmentprogram/social_service_government.go
2025-11-03 09:28:49 +08:00

25 lines
1.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package social_service_governmentprogram
import (
"github.com/JACKYMYPERSON/hldrCenter/config"
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/handler/socialServiceGovernmentProgram"
"github.com/gin-gonic/gin"
)
func Social_Service_Government_Router(api *gin.RouterGroup, cfg *config.Config) {
// ------------ 社会服务政府项目模块 ------------
socialServiceGovProgramapi := api.Group("/social-service/government-program")
{
// 创建社会服务政府项目POST /api/social-service/government-program
socialServiceGovProgramapi.POST("", gin.WrapH(socialServiceGovernmentProgram.CreateSocialServiceGovernmentProgramHandler(cfg)))
// 获取社会服务政府项目列表GET /api/social-service/government-program/list
socialServiceGovProgramapi.POST("/list", gin.WrapH(socialServiceGovernmentProgram.ListSocialServiceGovernmentProgramHandler(cfg)))
// 获取社会服务政府项目详情GET /api/social-service/government-program/:id
socialServiceGovProgramapi.GET("/:id", gin.WrapH(socialServiceGovernmentProgram.GetSocialServiceGovernmentProgramHandler(cfg)))
// 更新社会服务政府项目PUT /api/social-service/government-program
socialServiceGovProgramapi.PUT("", gin.WrapH(socialServiceGovernmentProgram.UpdateSocialServiceGovernmentProgramHandler(cfg)))
// 删除社会服务政府项目DELETE /api/social-service/government-program/:id
socialServiceGovProgramapi.DELETE("/:id", gin.WrapH(socialServiceGovernmentProgram.DeleteSocialServiceGovernmentProgramHandler(cfg)))
}
}