mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-28 05:27:41 +08:00
welcome page update
This commit is contained in:
@@ -23,6 +23,8 @@ const (
|
||||
FieldOverview = "overview"
|
||||
// FieldPath holds the string denoting the path field in the database.
|
||||
FieldPath = "path"
|
||||
// FieldPosterPath holds the string denoting the poster_path field in the database.
|
||||
FieldPosterPath = "poster_path"
|
||||
// Table holds the table name of the series in the database.
|
||||
Table = "series"
|
||||
)
|
||||
@@ -36,6 +38,7 @@ var Columns = []string{
|
||||
FieldOriginalName,
|
||||
FieldOverview,
|
||||
FieldPath,
|
||||
FieldPosterPath,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
@@ -85,3 +88,8 @@ func ByOverview(opts ...sql.OrderTermOption) OrderOption {
|
||||
func ByPath(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPath, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPosterPath orders the results by the poster_path field.
|
||||
func ByPosterPath(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPosterPath, opts...).ToFunc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user