mirror of
https://github.com/goharbor/harbor
synced 2025-04-07 21:30:15 +00:00
fix gofmt
Signed-off-by: 陈德 <chende@caicloud.io>
This commit is contained in:
parent
666bd692fe
commit
a59af8ce82
|
@ -22,16 +22,16 @@ import (
|
||||||
"github.com/goharbor/harbor/src/common/models"
|
"github.com/goharbor/harbor/src/common/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var orderMap = map[string]string {
|
var orderMap = map[string]string{
|
||||||
"name": "name asc",
|
"name": "name asc",
|
||||||
"+name": "name asc",
|
"+name": "name asc",
|
||||||
"-name": "name desc",
|
"-name": "name desc",
|
||||||
"creation_time": "creation_time asc",
|
"creation_time": "creation_time asc",
|
||||||
"+creation_time": "creation_time asc",
|
"+creation_time": "creation_time asc",
|
||||||
"-creation_time": "creation_time desc",
|
"-creation_time": "creation_time desc",
|
||||||
"update_time": "update_time asc",
|
"update_time": "update_time asc",
|
||||||
"+update_time": "update_time asc",
|
"+update_time": "update_time asc",
|
||||||
"-update_time": "update_time desc",
|
"-update_time": "update_time desc",
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddRepository adds a repo to the database.
|
// AddRepository adds a repo to the database.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user