Documentation ¶
Index ¶
- Constants
- func Init(dbClient *gorm.DB)
- type LicenseApi
- func (licenseApi *LicenseApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
- func (licenseApi *LicenseApi) Create(ctx *gin.Context)
- func (licenseApi *LicenseApi) Get(ctx *gin.Context)
- func (licenseApi *LicenseApi) GetLicenseValidity() (uint64, error)
- func (licenseApi *LicenseApi) MigriateSetting()
- type Setting
Constants ¶
View Source
const ( //license CodeLicenseGetLicenseError = "503-16001" CodeLicenseCreateLicenseError = "503-16002" CodeLicenseNotFoundLicenseError = "503-16003" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LicenseApi ¶
func (*LicenseApi) ApiRegister ¶
func (licenseApi *LicenseApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
func (*LicenseApi) Create ¶
func (licenseApi *LicenseApi) Create(ctx *gin.Context)
func (*LicenseApi) Get ¶
func (licenseApi *LicenseApi) Get(ctx *gin.Context)
func (*LicenseApi) GetLicenseValidity ¶
func (licenseApi *LicenseApi) GetLicenseValidity() (uint64, error)
func (*LicenseApi) MigriateSetting ¶
func (licenseApi *LicenseApi) MigriateSetting()
Click to show internal directories.
Click to hide internal directories.