pusher/biz/router/push/push.go
timerzz 4ec0cd1564
Some checks failed
Build image / build (push) Failing after 4m48s
feat 测试
2024-05-20 17:57:25 +08:00

32 lines
991 B
Go

// Code generated by hertz generator. DO NOT EDIT.
package push
import (
push "gitea.timerzz.com/kedaya_haitao/pusher/biz/handler/push"
"github.com/cloudwego/hertz/pkg/app/server"
)
/*
This file will register all the routes of the services in the master idl.
And it will update automatically when you use the "update" command for the idl.
So don't modify the contents of the file, or your code will be deleted when it is updated.
*/
// Register register routes based on the IDL 'api.${HTTP Method}' annotation.
func Register(r *server.Hertz) {
root := r.Group("/", rootMw()...)
{
_api := root.Group("/api", _apiMw()...)
{
_v1 := _api.Group("/v1", _v1Mw()...)
_v1.POST("/push", append(_pushMw(), push.Push)...)
_v1.POST("/pushers", append(_addMw(), push.Add)...)
_pushers := _v1.Group("/pushers", _pushersMw()...)
_pushers.GET("/options", append(_getpusheroptionsMw(), push.GetPusherOptions)...)
_v1.GET("/pushers", append(_listMw(), push.List)...)
}
}
}