show license info in admin active page, optimize markdown generate prompt

This commit is contained in:
RockYang
2024-04-24 19:00:28 +08:00
parent 2933c057a2
commit 514dd6c76a
6 changed files with 91 additions and 16 deletions

View File

@@ -115,3 +115,9 @@ func (h *ConfigHandler) Active(c *gin.Context) {
resp.SUCCESS(c, info.HostID)
}
// GetLicense 获取 License 信息
func (h *ConfigHandler) GetLicense(c *gin.Context) {
license := h.licenseService.GetLicense()
resp.SUCCESS(c, license)
}