From d4850a73f3d0df1bcec248020bb56520fef534b6 Mon Sep 17 00:00:00 2001 From: Chang lue Tsen Date: Mon, 1 Sep 2025 12:24:15 -0400 Subject: [PATCH] feat(api): add sort field to server model --- apis/admin/server.api | 1 + internal/types/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/apis/admin/server.api b/apis/admin/server.api index 7a5f43b..6432f97 100644 --- a/apis/admin/server.api +++ b/apis/admin/server.api @@ -117,6 +117,7 @@ type ( ServerId int64 `json:"server_id"` Protocol string `json:"protocol"` Enabled *bool `json:"enabled"` + Sort int `json:"sort,omitempty"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` } diff --git a/internal/types/types.go b/internal/types/types.go index d0cece2..4af8027 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -1195,6 +1195,7 @@ type Node struct { ServerId int64 `json:"server_id"` Protocol string `json:"protocol"` Enabled *bool `json:"enabled"` + Sort int `json:"sort,omitempty"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` }