-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.go
26 lines (21 loc) · 826 Bytes
/
user.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by hertz generator. DO NOT EDIT.
package user
import (
"github.com/cloudwego/hertz/pkg/app/server"
user "github.com/three-body/hertz-scaffold/biz/handler/user"
)
/*
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()...)
{
_users := root.Group("/users", _usersMw()...)
_users.POST("/login", append(_loginMw(), user.Login)...)
_users.POST("/logout", append(_logoutMw(), user.Logout)...)
_users.POST("/signup", append(_signupMw(), user.Signup)...)
}
}