-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.go
29 lines (25 loc) · 829 Bytes
/
init.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
27
28
29
package agent
import (
"github.com/admpub/nging/v5/application/handler"
"github.com/webx-top/echo"
)
func init() {
handler.RegisterToGroup(`/official`, func(g echo.RouteRegister) {
g = g.Group(`/agent`)
// 代理商
g.Route(`GET,POST`, `/index`, Index)
g.Route(`GET,POST`, `/add`, Add)
g.Route(`GET,POST`, `/edit`, Edit)
g.Route(`GET,POST`, `/delete`, Delete)
// 代理等级
g.Route(`GET,POST`, `/level_index`, LevelIndex)
g.Route(`GET,POST`, `/level_add`, LevelAdd)
g.Route(`GET,POST`, `/level_edit`, LevelEdit)
g.Route(`GET,POST`, `/level_delete`, LevelDelete)
// 代理产品
g.Route(`GET,POST`, `/product_index`, ProductIndex)
g.Route(`GET,POST`, `/product_add`, ProductAdd)
g.Route(`GET,POST`, `/product_edit`, ProductEdit)
g.Route(`GET,POST`, `/product_delete`, ProductDelete)
})
}