Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
also add ldap_group_gid to ConfigBodyResponse body
  • Loading branch information
Stainless888 authored Mar 1, 2021
1 parent 3ae9582 commit dd13d24
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions models/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"`
}

0 comments on commit dd13d24

Please sign in to comment.