This commit is contained in:
laodaming
2023-11-16 16:59:51 +08:00
parent 7d9f271b7c
commit a8cddf020f
4 changed files with 11 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ import (
"fusenapi/server/ldap-admin/internal/types"
)
func GetorginationsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
func GetLdapOrginationsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.Request
@@ -21,12 +21,12 @@ func GetorginationsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
// 创建一个业务逻辑层实例
l := logic.NewGetorginationsLogic(r.Context(), svcCtx)
l := logic.NewGetLdapOrginationsLogic(r.Context(), svcCtx)
rl := reflect.ValueOf(l)
basic.BeforeLogic(w, r, rl)
resp := l.Getorginations(&req, userinfo)
resp := l.GetLdapOrginations(&req, userinfo)
if !basic.AfterLogic(w, r, rl, resp) {
basic.NormalAfterLogic(w, r, resp)

View File

@@ -45,7 +45,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
{
Method: http.MethodGet,
Path: "/api/ldap-admin/get_ldap_orginations",
Handler: GetorginationsHandler(serverCtx),
Handler: GetLdapOrginationsHandler(serverCtx),
},
{
Method: http.MethodPost,