Package com.bytedesk.core.license
Class LicenseService
java.lang.Object
com.bytedesk.core.license.LicenseService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deactivateLicense
(String licenseKey) 禁用授权generateLicense
(String phone, String email, String name, String company, String serverIp, LicenseTypeEnum licenseType, int userCount, Set<LicenseFeatureEnum> features, int validityMonths) 生成新的授权getLicenseDetails
(String licenseKey) 获取授权详情boolean
validateLicense
(String licenseKey) 验证授权
-
Field Details
-
licenseGenerator
-
licenseRepository
-
-
Constructor Details
-
LicenseService
public LicenseService()
-
-
Method Details
-
generateLicense
@Transactional public LicenseInfo generateLicense(String phone, String email, String name, String company, String serverIp, LicenseTypeEnum licenseType, int userCount, Set<LicenseFeatureEnum> features, int validityMonths) throws Exception 生成新的授权- Throws:
Exception
-
validateLicense
验证授权 -
getLicenseDetails
获取授权详情 -
deactivateLicense
禁用授权
-