diff --git a/pkg/cloudcommon/db/resourcebase.go b/pkg/cloudcommon/db/resourcebase.go index 4c8bbcb480..a4289f2df6 100644 --- a/pkg/cloudcommon/db/resourcebase.go +++ b/pkg/cloudcommon/db/resourcebase.go @@ -13,7 +13,7 @@ type SResourceBase struct { SModelBase CreatedAt time.Time `nullable:"false" created_at:"true" get:"user"` - UpdatedAt time.Time `nullable:"false" updated_at:"true"` + UpdatedAt time.Time `nullable:"false" updated_at:"true" list:"user"` UpdateVersion int `default:"0" nullable:"false" auto_version:"true"` DeletedAt time.Time `` Deleted bool `nullable:"false" default:"false"` diff --git a/pkg/mcclient/options/base.go b/pkg/mcclient/options/base.go index a9972a105a..5aa6fa8e81 100644 --- a/pkg/mcclient/options/base.go +++ b/pkg/mcclient/options/base.go @@ -144,7 +144,7 @@ func ListStructToParams(v interface{}) (*jsonutils.JSONDict, error) { type BaseListOptions struct { Limit *int `default:"20" help:"Page limit"` Offset *int `default:"0" help:"Page offset"` - OrderBy string `help:"Name of the field to be ordered by"` + OrderBy []string `help:"Name of the field to be ordered by"` Order string `help:"List order" choices:"desc|asc"` Details *bool `help:"Show more details"` Search string `help:"Filter results by a simple keyword search"`