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, Secret: value,
ProxyPath: "/api", ProxyPath: "/api",
ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port), ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port),
Repository: "https://github.com/perfect-panel/server", Repository: constant.Repository,
ServiceName: "ApiService", ServiceName: constant.ServiceName,
ServiceVersion: constant.Version, ServiceVersion: constant.Version,
}).SetResult(&response).Post(RegisterAPI) }).SetResult(&response).Post(RegisterAPI)

View File

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