feat: rename lists to projects
This commit is contained in:
@ -22,7 +22,7 @@ import (
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
// Image represents an image which can be used as a list background
|
||||
// Image represents an image which can be used as a project background
|
||||
type Image struct {
|
||||
ID string `json:"id"`
|
||||
URL string `json:"url"`
|
||||
@ -32,10 +32,10 @@ type Image struct {
|
||||
Info interface{} `json:"info,omitempty"`
|
||||
}
|
||||
|
||||
// Provider represents something that is able to get a list of images and set one of them as background
|
||||
// Provider represents something that is able to get a project of images and set one of them as background
|
||||
type Provider interface {
|
||||
// Search is used to either return a pre-defined list of Image or let the user search for an image
|
||||
// Search is used to either return a pre-defined project of Image or let the user search for an image
|
||||
Search(s *xorm.Session, search string, page int64) (result []*Image, err error)
|
||||
// Set sets an image which was most likely previously obtained by Search as list background
|
||||
Set(s *xorm.Session, image *Image, list *models.List, auth web.Auth) (err error)
|
||||
// Set sets an image which was most likely previously obtained by Search as project background
|
||||
Set(s *xorm.Session, image *Image, project *models.Project, auth web.Auth) (err error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user