2020-09-21 18:27:35 +08:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
2020-09-03 23:26:04 +08:00
|
|
|
package handler
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"net/http"
|
|
|
|
|
|
2020-09-27 11:10:21 +08:00
|
|
|
"bookstore/api/internal/svc"
|
|
|
|
|
|
2020-09-03 23:26:04 +08:00
|
|
|
"github.com/tal-tech/go-zero/rest"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
|
2020-12-08 22:36:48 +08:00
|
|
|
engine.AddRoutes(
|
|
|
|
|
[]rest.Route{
|
|
|
|
|
{
|
|
|
|
|
Method: http.MethodGet,
|
|
|
|
|
Path: "/add",
|
|
|
|
|
Handler: AddHandler(serverCtx),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Method: http.MethodGet,
|
|
|
|
|
Path: "/check",
|
|
|
|
|
Handler: CheckHandler(serverCtx),
|
|
|
|
|
},
|
2020-09-03 23:26:04 +08:00
|
|
|
},
|
2020-12-08 22:36:48 +08:00
|
|
|
)
|
2020-09-03 23:26:04 +08:00
|
|
|
}
|