feat:完善入驻信息管理
This commit is contained in:
@ -127,7 +127,11 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
apiPrefix := "/enterprise"
|
||||
g := app.Group(apiPrefix)
|
||||
|
||||
//g.Use(NeedLogin(session.NewManage(), AddSkipperURL([]string{}...)))
|
||||
g.Use(NeedLogin(session.NewEnterprise(), AddSkipperURL([]string{
|
||||
apiPrefix + "/v1/account/login",
|
||||
apiPrefix + "/v1/account/register",
|
||||
apiPrefix + "/v1/account/authorize",
|
||||
}...)))
|
||||
|
||||
v1 := g.Group("/v1")
|
||||
|
||||
@ -148,6 +152,13 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
accountV1.POST("/authorize", _api.Authorize)
|
||||
accountV1.POST("/logout", _api.Logout)
|
||||
}
|
||||
// User 用户管理
|
||||
userV1 := v1.Group("/user")
|
||||
{
|
||||
_api := new(api2.User)
|
||||
userV1.GET("/info", _api.Info)
|
||||
userV1.GET("/patent", _api.Patent)
|
||||
}
|
||||
// Sys 配置管理
|
||||
sysV1 := v1.Group("/sys")
|
||||
{
|
||||
|
Reference in New Issue
Block a user