Documentation ¶
Index ¶
- type CSVPhoto
- type Resource
- func (r *Resource) Close()
- func (r *Resource) CreateAuthorByWikiart(param models.AuthorParam) (*models.Author, error)
- func (r *Resource) CreatePhotoAuthorFromWikiart(param models.WikiartParam) (*models.Photo, error)
- func (r *Resource) CreatePhotoByWikiart(param models.PhotoParam, author models.Author) (*models.Photo, error)
- func (r *Resource) GenerateSampleFeaturePhoto() (*models.Dashboard, error)
- func (r *Resource) GetFeatureOnDashboard() (*models.Dashboard, error)
- func (r *Resource) GetLatestAppVersion() (*models.Version, error)
- func (r *Resource) GetLatestFeatureOnDashboard() (*models.Dashboard, error)
- func (r *Resource) GetLatestFeaturePhoto() (*models.Photo, error)
- func (r *Resource) GetRandomPhoto() (*models.Photo, error)
- func (r *Resource) GetUpdateAppVersion(buildVersion string) (*models.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVPhoto ¶
type CSVPhoto struct { Name string `csv:"name"` ImageURL string `csv:"image_url"` Width string `csv:"width"` Height string `csv:"height"` Info string `csv:"info"` Date string `csv:"date"` Style string `csv:"style"` Location string `csv:"location"` Dimensions string `csv:"dimensions"` Media string `csv:"media"` AuthorId string `csv:"author_id"` AuthorName string `csv:"author_name"` Born string `csv:"born"` Died string `csv:"died"` Nationality string `csv:"nationality"` Wikipedia string `csv:"wikipedia"` }
func ReadCSVFile ¶
type Resource ¶
type Resource struct { Config constant.Config PostgreSQL *pop.Connection }
func (*Resource) CreateAuthorByWikiart ¶
func (*Resource) CreatePhotoAuthorFromWikiart ¶
func (*Resource) CreatePhotoByWikiart ¶
func (*Resource) GenerateSampleFeaturePhoto ¶
func (*Resource) GetFeatureOnDashboard ¶
func (*Resource) GetLatestAppVersion ¶
func (*Resource) GetLatestFeatureOnDashboard ¶
func (*Resource) GetLatestFeaturePhoto ¶
Click to show internal directories.
Click to hide internal directories.