Skip to content

Commit

Permalink
Fix class init values
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Oct 25, 2023
1 parent c2147ab commit f8f2ad0
Show file tree
Hide file tree
Showing 21 changed files with 362 additions and 362 deletions.
24 changes: 12 additions & 12 deletions src/casdoor/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

class Adapter:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.type = "string"
self.databaseType = "string"
self.host = "string"
self.owner = ""
self.name = ""
self.createdTime = ""
self.type = ""
self.databaseType = ""
self.host = ""
self.port = 0
self.user = "string"
self.password = "string"
self.database = "string"
self.table = "string"
self.tableNamePrefix = "string"
self.isEnabled = True
self.user = ""
self.password = ""
self.database = ""
self.table = ""
self.tableNamePrefix = ""
self.isEnabled = False

def __str__(self):
return str(self.__dict__)
Expand Down
90 changes: 45 additions & 45 deletions src/casdoor/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@

class ProviderItem:
def __init__(self):
self.owner = "string"
self.name = "string"
self.canSignUp = True
self.canSignIn = True
self.canUnlink = True
self.prompted = True
self.alertType = "string"
self.rule = "string"
self.owner = ""
self.name = ""
self.canSignUp = False
self.canSignIn = False
self.canUnlink = False
self.prompted = False
self.alertType = ""
self.rule = ""
self.provider = Provider

def __str__(self):
Expand All @@ -42,11 +42,11 @@ def to_dict(self) -> dict:

class SignupItem:
def __init__(self):
self.name = "string"
self.visible = True
self.required = True
self.prompted = True
self.rule = "string"
self.name = ""
self.visible = False
self.required = False
self.prompted = False
self.rule = ""

def __str__(self):
return str(self.__dict__)
Expand All @@ -57,43 +57,43 @@ def to_dict(self) -> dict:

class Application:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.displayName = "string"
self.logo = "string"
self.homepageUrl = "string"
self.description = "string"
self.organization = "string"
self.cert = "string"
self.enablePassword = True
self.enableSignUp = True
self.enableSigninSession = True
self.enableAutoSignin = True
self.enableCodeSignin = True
self.enableSamlCompress = True
self.enableWebAuthn = True
self.enableLinkWithEmail = True
self.orgChoiceMode = "string"
self.samlReplyUrl = "string"
self.owner = ""
self.name = ""
self.createdTime = ""
self.displayName = ""
self.logo = ""
self.homepageUrl = ""
self.description = ""
self.organization = ""
self.cert = ""
self.enablePassword = False
self.enableSignUp = False
self.enableSigninSession = False
self.enableAutoSignin = False
self.enableCodeSignin = False
self.enableSamlCompress = False
self.enableWebAuthn = False
self.enableLinkWithEmail = False
self.orgChoiceMode = ""
self.samlReplyUrl = ""
self.providers = [ProviderItem]
self.signupItems = [SignupItem]
self.grantTypes = ["string"]
self.grantTypes = [""]
self.organizationObj = Organization
self.tags = ["string"]
self.clientId = "string"
self.clientSecret = "string"
self.redirectUris = ["string"]
self.tokenFormat = "string"
self.tags = [""]
self.clientId = ""
self.clientSecret = ""
self.redirectUris = [""]
self.tokenFormat = ""
self.expireInHours = 0
self.refreshExpireInHours = 0
self.signupUrl = "string"
self.signinUrl = "string"
self.forgetUrl = "string"
self.affiliationUrl = "string"
self.termsOfUse = "string"
self.signupHtml = "string"
self.signinHtml = "string"
self.signupUrl = ""
self.signinUrl = ""
self.forgetUrl = ""
self.affiliationUrl = ""
self.termsOfUse = ""
self.signupHtml = ""
self.signinHtml = ""
self.themeData = ThemeData

def __str__(self):
Expand Down
22 changes: 11 additions & 11 deletions src/casdoor/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

class Cert:
def __init__(self):
self.name = "string"
self.owner = "string"
self.createdTime = "string"
self.displayName = "string"
self.type = "string"
self.scope = "string"
self.cryptoAlgorithm = "string"
self.name = ""
self.owner = ""
self.createdTime = ""
self.displayName = ""
self.type = ""
self.scope = ""
self.cryptoAlgorithm = ""
self.bitSize = 0
self.expireInYears = 0
self.certificate = "string"
self.privateKey = "string"
self.authorityPublicKey = "string"
self.authorityRootPublicKey = "string"
self.certificate = ""
self.privateKey = ""
self.authorityPublicKey = ""
self.authorityRootPublicKey = ""

def __str__(self):
return str(self.__dict__)
Expand Down
18 changes: 9 additions & 9 deletions src/casdoor/enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

class Enforcer:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.updatedTime = "string"
self.displayName = "string"
self.description = "string"
self.model = "string"
self.adapter = "string"
self.isEnabled = True
self.owner = ""
self.name = ""
self.createdTime = ""
self.updatedTime = ""
self.displayName = ""
self.description = ""
self.model = ""
self.adapter = ""
self.isEnabled = False

def __str__(self):
return str(self.__dict__)
Expand Down
26 changes: 13 additions & 13 deletions src/casdoor/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

class Group:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.updatedTime = "string"
self.displayName = "string"
self.manager = "string"
self.contactEmail = "string"
self.type = "string"
self.parentId = "string"
self.isTopGroup = True
self.owner = ""
self.name = ""
self.createdTime = ""
self.updatedTime = ""
self.displayName = ""
self.manager = ""
self.contactEmail = ""
self.type = ""
self.parentId = ""
self.isTopGroup = False
self.users = [User]
self.title = "string"
self.key = "string"
self.title = ""
self.key = ""
self.children = [Group]
self.isEnabled = True
self.isEnabled = False

def __str__(self):
return str(self.__dict__)
Expand Down
26 changes: 13 additions & 13 deletions src/casdoor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

class Model:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.updatedTime = "string"
self.displayName = "string"
self.manager = "string"
self.contactEmail = "string"
self.type = "string"
self.parentId = "string"
self.isTopModel = True
self.owner = ""
self.name = ""
self.createdTime = ""
self.updatedTime = ""
self.displayName = ""
self.manager = ""
self.contactEmail = ""
self.type = ""
self.parentId = ""
self.isTopModel = False
self.users = [User]
self.title = "string"
self.key = "string"
self.title = ""
self.key = ""
self.children = [Model]
self.isEnabled = True
self.isEnabled = False

def __str__(self):
return str(self.__dict__)
Expand Down
48 changes: 24 additions & 24 deletions src/casdoor/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

class AccountItem:
def __init__(self):
self.name = "string"
self.name = ""
self.visible = False
self.viewRule = "string"
self.modifyRule = "string"
self.viewRule = ""
self.modifyRule = ""

def __str__(self):
return str(self.__dict__)
Expand All @@ -34,8 +34,8 @@ def to_dict(self) -> dict:

class ThemeData:
def __init__(self):
self.themeType = "string"
self.colorPrimary = "string"
self.themeType = ""
self.colorPrimary = ""
self.borderRadius = 0
self.isCompact = False
self.isEnabled = False
Expand All @@ -49,8 +49,8 @@ def to_dict(self) -> dict:

class MfaItem:
def __init__(self):
self.name = "string"
self.rule = "string"
self.name = ""
self.rule = ""

def __str__(self):
return str(self.__dict__)
Expand All @@ -61,25 +61,25 @@ def to_dict(self) -> dict:

class Organization:
def __init__(self):
self.owner = "string"
self.name = "string"
self.createdTime = "string"
self.displayName = "string"
self.websiteUrl = "string"
self.favicon = "string"
self.passwordType = "string"
self.passwordSalt = "string"
self.passwordOptions = ["string"]
self.countryCodes = ["string"]
self.defaultAvatar = "string"
self.defaultApplication = "string"
self.tags = ["string"]
self.languages = ["string"]
self.owner = ""
self.name = ""
self.createdTime = ""
self.displayName = ""
self.websiteUrl = ""
self.favicon = ""
self.passwordType = ""
self.passwordSalt = ""
self.passwordOptions = [""]
self.countryCodes = [""]
self.defaultAvatar = ""
self.defaultApplication = ""
self.tags = [""]
self.languages = [""]
self.themeData = ThemeData
self.masterPassword = "string"
self.masterPassword = ""
self.initScore = 0
self.enableSoftDeletion = True
self.isProfilePublic = True
self.enableSoftDeletion = False
self.isProfilePublic = False
self.mfaItems = [MfaItem]
self.accountItems = [AccountItem]

Expand Down
Loading

0 comments on commit f8f2ad0

Please sign in to comment.