fusenapi/server/upload/internal/handler/routes.go

63 lines
1.4 KiB
Go
Raw Normal View History

// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
"fusenapi/server/upload/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
2023-07-12 06:11:04 +00:00
Path: "/api/upload/up-file",
Handler: UploadUpFileHandler(serverCtx),
},
{
Method: http.MethodPost,
2023-07-12 06:11:04 +00:00
Path: "/api/upload/upload-file-frontend",
Handler: UploadFileFrontendHandler(serverCtx),
},
{
Method: http.MethodPost,
2023-07-12 06:11:04 +00:00
Path: "/api/upload/upload-file-backend",
Handler: UploadFileBackendHandler(serverCtx),
},
2023-07-11 03:33:43 +00:00
{
Method: http.MethodPost,
2023-07-12 06:11:04 +00:00
Path: "/api/upload/qrcode",
2023-07-11 03:33:43 +00:00
Handler: UploadQrcodeHandler(serverCtx),
},
2023-08-01 10:13:30 +00:00
{
Method: http.MethodPost,
Path: "/api/upload/upload-files-backend",
Handler: UploadFilesBackendHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/api/upload/upload-files-frontend",
Handler: UploadFilesFrontendHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/api/upload/upload-callback",
Handler: UploadCallbackHandler(serverCtx),
},
2023-08-02 10:14:53 +00:00
{
Method: http.MethodPost,
Path: "/api/upload/up-logo",
Handler: UploadLogoHandler(serverCtx),
},
2023-08-07 03:34:22 +00:00
{
Method: http.MethodPost,
Path: "/api/upload/upload-file-base",
Handler: UploadFileBaseHandler(serverCtx),
},
},
)
}