feat: Add SysInfoVer endpoint and AppService for version retrieval

This commit is contained in:
lejianwen
2025-04-07 16:38:21 +08:00
parent e7f28cca36
commit ab231b3fed
6 changed files with 71 additions and 7 deletions

View File

@@ -56,3 +56,9 @@ func (p *Peer) SysInfo(c *gin.Context) {
//直接响应文本
c.String(http.StatusOK, "SYSINFO_UPDATED")
}
func (p *Peer) SysInfoVer(c *gin.Context) {
//读取resources/version文件
v := service.AllService.AppService.GetAppVersion()
c.String(http.StatusOK, v)
}