...
|
...
|
@@ -7,6 +7,7 @@ import ( |
|
|
article "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/article"
|
|
|
comment "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/comment"
|
|
|
company "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/company"
|
|
|
department "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/department"
|
|
|
message "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/message"
|
|
|
role "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/role"
|
|
|
tags "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/tags"
|
...
|
...
|
@@ -323,4 +324,31 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
rest.WithJwt(serverCtx.Config.SystemAuth.AccessSecret),
|
|
|
rest.WithPrefix("/v1"),
|
|
|
)
|
|
|
|
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/system/department/list",
|
|
|
Handler: department.SystemListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/system/department/add",
|
|
|
Handler: department.SystemAddHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/system/department/:id",
|
|
|
Handler: department.SystemGetHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPut,
|
|
|
Path: "/system/department/:id",
|
|
|
Handler: department.SystemUpdateHandler(serverCtx),
|
|
|
},
|
|
|
},
|
|
|
rest.WithJwt(serverCtx.Config.SystemAuth.AccessSecret),
|
|
|
rest.WithPrefix("/v1"),
|
|
|
)
|
|
|
} |
...
|
...
|
|