47 lines
1.1 KiB
Go
47 lines
1.1 KiB
Go
|
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
|
// goctl 1.9.2
|
||
|
|
|
||
|
|
package handler
|
||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
video_case2 "github.com/JACKYMYPERSON/hldrCenter/internal/video_case/handler/video_case"
|
||
|
|
"github.com/JACKYMYPERSON/hldrCenter/internal/video_case/internal/svc"
|
||
|
|
|
||
|
|
"github.com/zeromicro/go-zero/rest"
|
||
|
|
)
|
||
|
|
|
||
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||
|
|
server.AddRoutes(
|
||
|
|
[]rest.Route{
|
||
|
|
{
|
||
|
|
Method: http.MethodPost,
|
||
|
|
Path: "/api/video-cases",
|
||
|
|
Handler: video_case2.CreateVideoCaseHandler(serverCtx),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
Method: http.MethodPut,
|
||
|
|
Path: "/api/video-cases",
|
||
|
|
Handler: video_case2.UpdateVideoCaseHandler(serverCtx),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
Method: http.MethodGet,
|
||
|
|
Path: "/api/video-cases",
|
||
|
|
Handler: video_case2.ListVideoCaseHandler(serverCtx),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
Method: http.MethodGet,
|
||
|
|
Path: "/api/video-cases/:id",
|
||
|
|
Handler: video_case2.GetVideoCaseHandler(serverCtx),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
Method: http.MethodDelete,
|
||
|
|
Path: "/api/video-cases/:id",
|
||
|
|
Handler: video_case2.DeleteVideoCaseHandler(serverCtx),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rest.WithPrefix("/api/video-case"),
|
||
|
|
)
|
||
|
|
}
|