现有接口整理&bug修改
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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)...)
|
||||
|
Reference in New Issue
Block a user