We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current go sdk Subscription struct def:
// Subscription has the same definition as https://github.com/casdoor/casdoor/blob/master/object/subscription.go#L24 type Subscription struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` Duration int `json:"duration"` Description string `xorm:"varchar(100)" json:"description"` User string `xorm:"mediumtext" json:"user"` Plan string `xorm:"varchar(100)" json:"plan"` IsEnabled bool `json:"isEnabled"` Submitter string `xorm:"varchar(100)" json:"submitter"` Approver string `xorm:"varchar(100)" json:"approver"` ApproveTime string `xorm:"varchar(100)" json:"approveTime"` State string `xorm:"varchar(100)" json:"state"` }
while Casdoor has newer def:
type SubscriptionState string const ( SubStatePending SubscriptionState = "Pending" SubStateError SubscriptionState = "Error" SubStateSuspended SubscriptionState = "Suspended" // suspended by the admin SubStateActive SubscriptionState = "Active" SubStateUpcoming SubscriptionState = "Upcoming" SubStateExpired SubscriptionState = "Expired" ) type Subscription struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` DisplayName string `xorm:"varchar(100)" json:"displayName"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Description string `xorm:"varchar(100)" json:"description"` User string `xorm:"varchar(100)" json:"user"` Pricing string `xorm:"varchar(100)" json:"pricing"` Plan string `xorm:"varchar(100)" json:"plan"` Payment string `xorm:"varchar(100)" json:"payment"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` Period string `xorm:"varchar(100)" json:"period"` State SubscriptionState `xorm:"varchar(100)" json:"state"` }
The text was updated successfully, but these errors were encountered:
@tangyang9464 @JalinWang @imp2002
Sorry, something went wrong.
hsluoyz
Successfully merging a pull request may close this issue.
current go sdk Subscription struct def:
while Casdoor has newer def:
The text was updated successfully, but these errors were encountered: