From 0af5cf580f350cb110dc7fad8935e33b7b7d92cd Mon Sep 17 00:00:00 2001 From: Anton Berezhnyi Date: Sun, 27 Oct 2024 19:13:39 +0200 Subject: [PATCH] fix(organization): update struct to align with main casdoor repository --- casdoorsdk/organization.go | 42 +++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/casdoorsdk/organization.go b/casdoorsdk/organization.go index ba41671..fe5e536 100644 --- a/casdoorsdk/organization.go +++ b/casdoorsdk/organization.go @@ -45,22 +45,32 @@ type Organization struct { Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` - DisplayName string `xorm:"varchar(100)" json:"displayName"` - WebsiteUrl string `xorm:"varchar(100)" json:"websiteUrl"` - Favicon string `xorm:"varchar(100)" json:"favicon"` - PasswordType string `xorm:"varchar(100)" json:"passwordType"` - PasswordSalt string `xorm:"varchar(100)" json:"passwordSalt"` - PasswordOptions []string `xorm:"varchar(100)" json:"passwordOptions"` - CountryCodes []string `xorm:"varchar(200)" json:"countryCodes"` - DefaultAvatar string `xorm:"varchar(200)" json:"defaultAvatar"` - DefaultApplication string `xorm:"varchar(100)" json:"defaultApplication"` - Tags []string `xorm:"mediumtext" json:"tags"` - Languages []string `xorm:"varchar(255)" json:"languages"` - ThemeData *ThemeData `xorm:"json" json:"themeData"` - MasterPassword string `xorm:"varchar(100)" json:"masterPassword"` - InitScore int `json:"initScore"` - EnableSoftDeletion bool `json:"enableSoftDeletion"` - IsProfilePublic bool `json:"isProfilePublic"` + DisplayName string `xorm:"varchar(100)" json:"displayName"` + WebsiteUrl string `xorm:"varchar(100)" json:"websiteUrl"` + Logo string `xorm:"varchar(200)" json:"logo"` + LogoDark string `xorm:"varchar(200)" json:"logoDark"` + Favicon string `xorm:"varchar(200)" json:"favicon"` + PasswordType string `xorm:"varchar(100)" json:"passwordType"` + PasswordSalt string `xorm:"varchar(100)" json:"passwordSalt"` + PasswordOptions []string `xorm:"varchar(100)" json:"passwordOptions"` + PasswordObfuscatorType string `xorm:"varchar(100)" json:"passwordObfuscatorType"` + PasswordObfuscatorKey string `xorm:"varchar(100)" json:"passwordObfuscatorKey"` + CountryCodes []string `xorm:"varchar(200)" json:"countryCodes"` + DefaultAvatar string `xorm:"varchar(200)" json:"defaultAvatar"` + DefaultApplication string `xorm:"varchar(100)" json:"defaultApplication"` + Tags []string `xorm:"mediumtext" json:"tags"` + Languages []string `xorm:"varchar(255)" json:"languages"` + ThemeData *ThemeData `xorm:"json" json:"themeData"` + MasterPassword string `xorm:"varchar(100)" json:"masterPassword"` + DefaultPassword string `xorm:"varchar(100)" json:"defaultPassword"` + MasterVerificationCode string `xorm:"varchar(100)" json:"masterVerificationCode"` + IpWhitelist string `xorm:"varchar(200)" json:"ipWhitelist"` + InitScore int `json:"initScore"` + EnableSoftDeletion bool `json:"enableSoftDeletion"` + IsProfilePublic bool `json:"isProfilePublic"` + UseEmailAsUsername bool `json:"useEmailAsUsername"` + EnableTour bool `json:"enableTour"` + IpRestriction string `json:"ipRestriction"` MfaItems []*MfaItem `xorm:"varchar(300)" json:"mfaItems"` AccountItems []*AccountItem `xorm:"varchar(5000)" json:"accountItems"`