feat(api): add sort field to server model

This commit is contained in:
Chang lue Tsen 2025-09-01 12:24:15 -04:00
parent 367ef9d2e7
commit d4850a73f3
2 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,7 @@ type (
ServerId int64 `json:"server_id"` ServerId int64 `json:"server_id"`
Protocol string `json:"protocol"` Protocol string `json:"protocol"`
Enabled *bool `json:"enabled"` Enabled *bool `json:"enabled"`
Sort int `json:"sort,omitempty"`
CreatedAt int64 `json:"created_at"` CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"` UpdatedAt int64 `json:"updated_at"`
} }

View File

@ -1195,6 +1195,7 @@ type Node struct {
ServerId int64 `json:"server_id"` ServerId int64 `json:"server_id"`
Protocol string `json:"protocol"` Protocol string `json:"protocol"`
Enabled *bool `json:"enabled"` Enabled *bool `json:"enabled"`
Sort int `json:"sort,omitempty"`
CreatedAt int64 `json:"created_at"` CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"` UpdatedAt int64 `json:"updated_at"`
} }