initial commit

This commit is contained in:
2025-12-10 22:50:35 +09:00
parent 8cf674c9e5
commit 6b76389942
12 changed files with 393 additions and 493 deletions

View File

@@ -26,7 +26,7 @@ func (s *Service) GetVersion(c *gin.Context) {
var rsp proto.Response
// current version
currentVersion := "1.0.0"
currentVersion := "2.3.0.b1"
versionFile := fmt.Sprintf("%s/version", AppDir)
if version, err := os.ReadFile(versionFile); err == nil {
@@ -45,6 +45,7 @@ func (s *Service) GetVersion(c *gin.Context) {
rsp.OkRspWithData(c, &proto.GetVersionRsp{
Current: currentVersion,
Latest: latest.Version,
UpdateUrl: StableURL,
})
}