From c5aec907f708fd941ef2124e7dc342fb4fba0492 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 12 Sep 2023 10:42:51 +0800 Subject: [PATCH] updat --- app/admin/hdl/hdl_role.go | 1 + app/admin/md/md_role.go | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/admin/hdl/hdl_role.go b/app/admin/hdl/hdl_role.go index ba43876..4bed084 100644 --- a/app/admin/hdl/hdl_role.go +++ b/app/admin/hdl/hdl_role.go @@ -328,6 +328,7 @@ func AdminList(c *gin.Context) { CreateAt: v.CreateAt, UpdateAt: v.UpdateAt, RoleList: roleList, + EnterpriseList: enterpriseList, }) } diff --git a/app/admin/md/md_role.go b/app/admin/md/md_role.go index 825132a..4efb0e8 100644 --- a/app/admin/md/md_role.go +++ b/app/admin/md/md_role.go @@ -52,14 +52,15 @@ type AdminListReq struct { } type AdminListResp struct { - AdmId int `json:"adm_id"` - Username string `json:"username"` - State int32 `json:"state"` - IsSuperAdministrator int32 `json:"is_super_administrator"` - Memo string `json:"memo"` - CreateAt string `json:"create_at"` - UpdateAt string `json:"update_at"` - RoleList []string `json:"role_list"` + AdmId int `json:"adm_id"` + Username string `json:"username"` + State int32 `json:"state"` + IsSuperAdministrator int32 `json:"is_super_administrator"` + Memo string `json:"memo"` + CreateAt string `json:"create_at"` + UpdateAt string `json:"update_at"` + RoleList []string `json:"role_list"` + EnterpriseList []map[string]interface{} `json:"enterprise_list"` } type UpdateAdminStateReq struct {