Files
IUQT/acquaintances/biz/router/user/user.go
2025-08-20 19:52:13 +08:00

120 lines
4.4 KiB
Go

// Code generated by hertz generator. DO NOT EDIT.
package user
import (
user "acquaintances/biz/handler/user"
"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()...)
{
_v1 := root.Group("/v1", _v1Mw()...)
{
_moments := _v1.Group("/Moments", _momentsMw()...)
_moments.DELETE("/", append(_deletemomentMw(), user.DeleteMoment)...)
_moments.POST("/", append(_createmomentMw(), user.CreateMoment)...)
{
_comment := _moments.Group("/comment", _commentMw()...)
_comment.DELETE("/", append(_deletecommentMw(), user.DeleteComment)...)
_comment.POST("/", append(_commentmomentMw(), user.CommentMoment)...)
{
_list := _comment.Group("/list", _listMw()...)
_list.GET("/", append(_listmomentcommentsMw(), user.ListMomentComments)...)
}
}
{
_dislike := _moments.Group("/dislike", _dislikeMw()...)
_dislike.POST("/", append(_unlikemomentMw(), user.UnlikeMoment)...)
}
{
_like := _moments.Group("/like", _likeMw()...)
_like.POST("/", append(_likemomentMw(), user.LikeMoment)...)
{
_list0 := _like.Group("/list", _list0Mw()...)
_list0.GET("/", append(_listmomentlikesMw(), user.ListMomentLikes)...)
}
}
{
_list1 := _moments.Group("/list", _list1Mw()...)
_list1.GET("/", append(_listmomentsMw(), user.ListMoments)...)
}
{
_user := _moments.Group("/user", _userMw()...)
{
_list2 := _user.Group("/list", _list2Mw()...)
_list2.GET("/", append(_listmomentsappointMw(), user.ListMomentsAppoint)...)
}
}
}
{
_cg := _v1.Group("/cg", _cgMw()...)
_cg.DELETE("/", append(_deletechatgroupMw(), user.DeleteChatGroup)...)
_cg.GET("/", append(_listchatgroupbyuserMw(), user.ListChatGroupByUser)...)
_cg.POST("/", append(_createchatgroupMw(), user.CreateChatGroup)...)
_cg.PUT("/", append(_updatechatgroupMw(), user.UpdateChatGroup)...)
{
_exit := _cg.Group("/exit", _exitMw()...)
_exit.POST("/", append(_exitchatgroupMw(), user.ExitChatGroup)...)
}
{
_join := _cg.Group("/join", _joinMw()...)
_join.POST("/", append(_joinchatgroupMw(), user.JoinChatGroup)...)
}
{
_users := _cg.Group("/users", _usersMw()...)
_users.GET("/", append(_listuserchatgroupMw(), user.ListUserChatGroup)...)
}
}
{
_user0 := _v1.Group("/user", _user0Mw()...)
_user0.DELETE("/", append(_deleteuserMw(), user.DeleteUser)...)
_user0.GET("/", append(_infouserMw(), user.InfoUser)...)
_user0.POST("/", append(_createuserMw(), user.CreateUser)...)
_user0.PUT("/", append(_updateuserMw(), user.UpdateUser)...)
{
_check_otp := _user0.Group("/check_otp", _check_otpMw()...)
_check_otp.POST("/", append(_checkotpMw(), user.CheckOtp)...)
}
{
_find := _user0.Group("/find", _findMw()...)
_find.GET("/", append(_finduserMw(), user.FindUser)...)
}
{
_friendrelationship := _user0.Group("/friendRelationship", _friendrelationshipMw()...)
_friendrelationship.GET("/", append(_listfriendrelationshipMw(), user.ListFriendRelationship)...)
_friendrelationship.POST("/", append(_createfriendrelationshipMw(), user.CreateFriendRelationship)...)
_friendrelationship.PUT("/", append(_updatefriendrelationshipMw(), user.UpdateFriendRelationship)...)
{
_record := _friendrelationship.Group("/record", _recordMw()...)
_record.GET("/", append(_listfriendrelationshiprecordMw(), user.ListFriendRelationshipRecord)...)
}
}
{
_login := _user0.Group("/login", _loginMw()...)
_login.POST("/", append(_loginuserMw(), user.LoginUser)...)
}
{
_relation := _user0.Group("/relation", _relationMw()...)
_relation.DELETE("/", append(_deleteuserrelationsMw(), user.DeleteUserRelations)...)
_relation.GET("/", append(_listuserrelationsMw(), user.ListUserRelations)...)
_relation.POST("/", append(_createuserrelationsMw(), user.CreateUserRelations)...)
_relation.PUT("/", append(_updateuserrelationsMw(), user.UpdateUserRelations)...)
}
{
_sms := _user0.Group("/sms", _smsMw()...)
_sms.POST("/", append(_smsuserMw(), user.SmsUser)...)
}
}
}
}