feat:完善入驻信息管理

This commit is contained in:
henry
2021-12-03 11:32:26 +08:00
parent d9cbdd2486
commit 95b12fdb07
9 changed files with 101 additions and 40 deletions

View File

@ -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")
{