Skip to content

Commit

Permalink
feat: update Plan struct fields (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiemax100 authored Oct 8, 2024
1 parent 51af090 commit 2732198
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions casdoorsdk/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ type Plan struct {
DisplayName string `xorm:"varchar(100)" json:"displayName"`
Description string `xorm:"varchar(100)" json:"description"`

PricePerMonth float64 `json:"pricePerMonth"`
PricePerYear float64 `json:"pricePerYear"`
Currency string `xorm:"varchar(100)" json:"currency"`
IsEnabled bool `json:"isEnabled"`
Price float64 `json:"price"`
Currency string `xorm:"varchar(100)" json:"currency"`
Period string `xorm:"varchar(100)" json:"period"`
Product string `xorm:"varchar(100)" json:"product"`
PaymentProviders []string `xorm:"varchar(100)" json:"paymentProviders"` // payment providers for related product
IsEnabled bool `json:"isEnabled"`

Role string `xorm:"varchar(100)" json:"role"`
Options []string `xorm:"-" json:"options"`
Expand Down

0 comments on commit 2732198

Please sign in to comment.