refactor(constants): update repository and service name constants in tool and version files

This commit is contained in:
Chang lue Tsen 2025-11-09 08:54:50 -05:00
parent 2305562a7c
commit 87b743a2a2
2 changed files with 6 additions and 4 deletions

View File

@ -75,8 +75,8 @@ func RegisterModule(port int) error {
Secret: value,
ProxyPath: "/api",
ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port),
Repository: "https://github.com/perfect-panel/server",
ServiceName: "ApiService",
Repository: constant.Repository,
ServiceName: constant.ServiceName,
ServiceVersion: constant.Version,
}).SetResult(&response).Post(RegisterAPI)

View File

@ -2,6 +2,8 @@ package constant
// Version PPanel version
var (
Version = "unknown version"
BuildTime = "unknown time"
Version = "unknown version"
BuildTime = "unknown time"
Repository = "https://github.com/perfect-panel/server"
ServiceName = "ApiService"
)