From 9ca89cf9752f98a8cca4c11ecda0e85d1f7858e0 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 20 Nov 2023 17:33:38 +0800 Subject: [PATCH] fix --- server/ldap-admin/internal/types/types.go | 10 +++++----- server_api/ldap-admin.api | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/server/ldap-admin/internal/types/types.go b/server/ldap-admin/internal/types/types.go index 60b52761..85f83ed2 100644 --- a/server/ldap-admin/internal/types/types.go +++ b/server/ldap-admin/internal/types/types.go @@ -92,11 +92,11 @@ type GetMenuDetailRsp struct { } type GetMenusReq struct { - CurrentPage int `form:"current_page"` - Name string `form:"name"` - Title string `form:"title"` - Path string `form:"path"` - ParentId *int64 `form:"parent_id"` + CurrentPage int `form:"current_page,optional"` + Name string `form:"name,optional"` + Title string `form:"title,optional"` + Path string `form:"path,optional"` + ParentId *int64 `form:"parent_id,optional"` } type GetMenusRsp struct { diff --git a/server_api/ldap-admin.api b/server_api/ldap-admin.api index bad0b0e7..8fc175ed 100644 --- a/server_api/ldap-admin.api +++ b/server_api/ldap-admin.api @@ -178,11 +178,11 @@ type GetMenuDetailRsp { } //获取菜单列表 type GetMenusReq { - CurrentPage int `form:"current_page"` - Name string `form:"name"` - Title string `form:"title"` - Path string `form:"path"` - ParentId *int64 `form:"parent_id"` + CurrentPage int `form:"current_page,optional"` + Name string `form:"name,optional"` + Title string `form:"title,optional"` + Path string `form:"path,optional"` + ParentId *int64 `form:"parent_id,optional"` } type GetMenusRsp { List []MenuItem `json:"list"`