Skip to content

Commit 2732198

Browse files
authoredOct 8, 2024··
feat: update Plan struct fields (#133)
1 parent 51af090 commit 2732198

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎casdoorsdk/plan.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ type Plan struct {
2929
DisplayName string `xorm:"varchar(100)" json:"displayName"`
3030
Description string `xorm:"varchar(100)" json:"description"`
3131

32-
PricePerMonth float64 `json:"pricePerMonth"`
33-
PricePerYear float64 `json:"pricePerYear"`
34-
Currency string `xorm:"varchar(100)" json:"currency"`
35-
IsEnabled bool `json:"isEnabled"`
32+
Price float64 `json:"price"`
33+
Currency string `xorm:"varchar(100)" json:"currency"`
34+
Period string `xorm:"varchar(100)" json:"period"`
35+
Product string `xorm:"varchar(100)" json:"product"`
36+
PaymentProviders []string `xorm:"varchar(100)" json:"paymentProviders"` // payment providers for related product
37+
IsEnabled bool `json:"isEnabled"`
3638

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

0 commit comments

Comments
 (0)
Please sign in to comment.