86 lines
2.8 KiB
Go
86 lines
2.8 KiB
Go
// Code generated by hertz generator. DO NOT EDIT.
|
|
|
|
package moment
|
|
|
|
import (
|
|
"github.com/cloudwego/hertz/pkg/app/server"
|
|
moment "weMedia/biz/handler/moment"
|
|
)
|
|
|
|
/*
|
|
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()...)
|
|
{
|
|
_v1 := root.Group("/v1", _v1Mw()...)
|
|
{
|
|
_wemedia := _v1.Group("/weMedia", _wemediaMw()...)
|
|
{
|
|
_moments := _wemedia.Group("/moments", _momentsMw()...)
|
|
_moments.DELETE("/", append(_deletemomentMw(), moment.DeleteMoment)...)
|
|
_moments.POST("/", append(_createmomentMw(), moment.CreateMoment)...)
|
|
{
|
|
_collect := _moments.Group("/collect", _collectMw()...)
|
|
_collect.POST("/", append(_collectmomentMw(), moment.CollectMoment)...)
|
|
}
|
|
{
|
|
_comment := _moments.Group("/comment", _commentMw()...)
|
|
_comment.DELETE("/", append(_deletecommentMw(), moment.DeleteComment)...)
|
|
_comment.POST("/", append(_commentmomentMw(), moment.CommentMoment)...)
|
|
{
|
|
_list := _comment.Group("/list", _listMw()...)
|
|
_list.GET("/", append(_listmomentcommentsMw(), moment.ListMomentComments)...)
|
|
}
|
|
}
|
|
{
|
|
_dislike := _moments.Group("/dislike", _dislikeMw()...)
|
|
_dislike.POST("/", append(_unlikemomentMw(), moment.UnlikeMoment)...)
|
|
}
|
|
{
|
|
_like := _moments.Group("/like", _likeMw()...)
|
|
_like.POST("/", append(_likemomentMw(), moment.LikeMoment)...)
|
|
{
|
|
_list0 := _like.Group("/list", _list0Mw()...)
|
|
_list0.GET("/", append(_listmomentlikesMw(), moment.ListMomentLikes)...)
|
|
}
|
|
}
|
|
{
|
|
_list1 := _moments.Group("/list", _list1Mw()...)
|
|
_list1.GET("/", append(_listmomentsMw(), moment.ListMoments)...)
|
|
}
|
|
{
|
|
_uncollect := _moments.Group("/unCollect", _uncollectMw()...)
|
|
_uncollect.POST("/", append(_uncollectmomentMw(), moment.UnCollectMoment)...)
|
|
}
|
|
{
|
|
_user := _moments.Group("/user", _userMw()...)
|
|
{
|
|
_list2 := _user.Group("/list", _list2Mw()...)
|
|
_list2.GET("/", append(_listmomentsappointMw(), moment.ListMomentsAppoint)...)
|
|
}
|
|
}
|
|
{
|
|
_usercollects := _moments.Group("/userCollects", _usercollectsMw()...)
|
|
{
|
|
_list3 := _usercollects.Group("/list", _list3Mw()...)
|
|
_list3.GET("/", append(_listusercollectsMw(), moment.ListUserCollects)...)
|
|
}
|
|
}
|
|
{
|
|
_userlike := _moments.Group("/userlike", _userlikeMw()...)
|
|
{
|
|
_list4 := _userlike.Group("/list", _list4Mw()...)
|
|
_list4.GET("/", append(_listuserlikesMw(), moment.ListUserLikes)...)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|