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