slash-e/server/service/license/feature_matrix.go
2023-09-22 08:15:18 +08:00

22 lines
550 B
Go

package license
type FeatureType string
const (
// Accounts.
// FeatureTypeUnlimitedAccounts allows the user to create unlimited accounts.
FeatureTypeUnlimitedAccounts FeatureType = "unlimited_accounts"
// Customization.
// FeatureTypeCustomStyle allows the user to customize the style.
FeatureTypeCustomeStyle FeatureType = "custom_style"
)
// FeatureMatrix is a matrix of features in [Free, Pro].
var FeatureMatrix = map[FeatureType][2]bool{
FeatureTypeUnlimitedAccounts: {false, true},
FeatureTypeCustomeStyle: {false, true},
}