...
|
...
|
@@ -2,9 +2,12 @@ package routers |
|
|
|
|
|
import (
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/mobile_client"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/web_client"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/middleware"
|
|
|
)
|
|
|
|
|
|
func init() {
|
...
|
...
|
@@ -31,4 +34,6 @@ func init() { |
|
|
web.Router("/v1/user/department-users", &mobile_client.UserController{}, "Post:DepartmentUsers") //公用的
|
|
|
web.Router("/v1/app/orgs/department-users", &mobile_client.UserController{}, "Post:DepartmentUsers")
|
|
|
web.Router("/v1/web/orgs/department-users", &web_client.OrgController{}, "Post:DepartmentUsers")
|
|
|
|
|
|
web.Post("/v1/user/sync-to-attendance-machine", middleware.RedirectInternalService("/v1", allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})))
|
|
|
} |
...
|
...
|
|