From dd13d2426ee6aba801349db82cfc4b220ff6aba4 Mon Sep 17 00:00:00 2001 From: Stainless888 <79852293+Stainless888@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:12:32 +0100 Subject: [PATCH] Update config.go also add ldap_group_gid to ConfigBodyResponse body --- models/config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/models/config.go b/models/config.go index 66bf2a5..db47f64 100644 --- a/models/config.go +++ b/models/config.go @@ -48,8 +48,7 @@ type ConfigBodyPost struct { EmailFrom string `json:"email_from,omitempty"` RobotTokenDuration int `json:"robot_token_duration,omitempty"` LdapVerifyCert bool `json:"ldap_verify_cert,omitempty"` - - LdapGroupGID string `json:"ldap_group_gid,omitempty"` + LdapGroupGID string `json:"ldap_group_gid,omitempty"` } type ConfigBodyResponse struct { @@ -207,4 +206,8 @@ type ConfigBodyResponse struct { Editable bool `json:"editable,omitempty"` Value string `json:"value,omitempty"` } `json:"email_from,omitempty"` + LdapGroupGID struct { + Editable bool `json:"editable,omitempty"` + Value string `json:"value,omitempty"` + } `json:"ldap_group_gid,omitempty"` }