refactor(proxmox): change VMID type from int to uint64 across Proxmox provider

Updates VMID parameter and field types from int to uint64 throughout the Proxmox provider implementation,
including API request structures, provider structs, client methods, and LXC-related functions.
Also updates string conversion calls from strconv.Itoa to strconv.FormatUint.
This commit is contained in:
yusing
2026-02-10 16:53:07 +08:00
parent 3aba728a3a
commit 978dd886c0
9 changed files with 21 additions and 24 deletions

View File

@@ -2,5 +2,5 @@ package proxmoxapi
type ActionRequest struct {
Node string `uri:"node" binding:"required"`
VMID int `uri:"vmid" binding:"required"`
VMID uint64 `uri:"vmid" binding:"required"`
} // @name ProxmoxVMActionRequest

View File

@@ -11,10 +11,7 @@ import (
"github.com/yusing/goutils/http/websocket"
)
type StatsRequest struct {
Node string `uri:"node" binding:"required"`
VMID int `uri:"vmid" binding:"required"`
}
type StatsRequest ActionRequest
// @x-id "nodeStats"
// @BasePath /api/v1