mirror of
https://github.com/cuigh/swirl
synced 2025-01-02 09:06:07 +00:00
22 lines
891 B
Go
22 lines
891 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Setting struct {
|
|
LDAP struct {
|
|
Enabled bool `bson:"enabled" json:"enabled,omitempty"`
|
|
Address string `bson:"address" json:"address,omitempty"`
|
|
BaseDN string `bson:"base_dn" json:"base_dn,omitempty"`
|
|
EmailAttr string `bson:"email_attr" json:"email_attr,omitempty"`
|
|
LoginAttr string `bson:"login_attr" json:"login_attr,omitempty"`
|
|
NameAttr string `bson:"name_attr" json:"name_attr,omitempty"`
|
|
} `bson:"ldap" json:"ldap,omitempty"`
|
|
TimeZone struct {
|
|
Name string `bson:"name" json:"name,omitempty"` // Asia/Shanghai
|
|
Offset int32 `bson:"offset" json:"offset,omitempty"` // seconds east of UTC
|
|
} `bson:"tz" json:"tz,omitempty"`
|
|
Language string `bson:"lang" json:"lang,omitempty"`
|
|
UpdatedBy string `bson:"updated_by" json:"updated_by,omitempty"`
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at,omitempty"`
|
|
}
|