现有接口整理&bug修改

This commit is contained in:
2025-07-18 14:44:08 +08:00
parent ce8de6c324
commit 2802d4e08a
16 changed files with 1551 additions and 138 deletions

View File

@@ -195,3 +195,13 @@ func _listfriendrelationshipMw() []app.HandlerFunc {
// your code...
return nil
}
func _finduserMw() []app.HandlerFunc {
// your code...
return nil
}
func _findMw() []app.HandlerFunc {
// your code...
return nil
}

View File

@@ -44,6 +44,10 @@ func Register(r *server.Hertz) {
_user.GET("/", append(_infouserMw(), user.InfoUser)...)
_user.POST("/", append(_createuserMw(), user.CreateUser)...)
_user.PUT("/", append(_updateuserMw(), user.UpdateUser)...)
{
_find := _user.Group("/find", _findMw()...)
_find.GET("/", append(_finduserMw(), user.FindUser)...)
}
{
_friendrelationship := _user.Group("/friendRelationship", _friendrelationshipMw()...)
_friendrelationship.GET("/", append(_listfriendrelationshipMw(), user.ListFriendRelationship)...)