Files
hldrCenter/server/internal/social_service/handler/routes.go

47 lines
1.1 KiB
Go
Raw Normal View History

2025-10-29 11:33:13 +08:00
// Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2
package handler
import (
"net/http"
socialService2 "github.com/JACKYMYPERSON/hldrCenter/internal/social_service/handler/socialService"
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/",
Handler: socialService2.CreateSocialServiceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/:id",
Handler: socialService2.GetSocialServiceHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/:id",
Handler: socialService2.UpdateSocialServiceHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/:id",
Handler: socialService2.DeleteSocialServiceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/list",
Handler: socialService2.ListSocialServiceHandler(serverCtx),
},
},
rest.WithPrefix("/api/social-service"),
)
}