mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Ran formatter and fixed some lint issues
This commit is contained in:
@@ -2,18 +2,18 @@ package urlbuilders
|
||||
|
||||
import "strconv"
|
||||
|
||||
type galleryURLBuilder struct {
|
||||
BaseURL string
|
||||
type GalleryURLBuilder struct {
|
||||
BaseURL string
|
||||
GalleryID string
|
||||
}
|
||||
|
||||
func NewGalleryURLBuilder(baseURL string, galleryID int) galleryURLBuilder {
|
||||
return galleryURLBuilder{
|
||||
BaseURL: baseURL,
|
||||
func NewGalleryURLBuilder(baseURL string, galleryID int) GalleryURLBuilder {
|
||||
return GalleryURLBuilder{
|
||||
BaseURL: baseURL,
|
||||
GalleryID: strconv.Itoa(galleryID),
|
||||
}
|
||||
}
|
||||
|
||||
func (b galleryURLBuilder) GetGalleryImageUrl(fileIndex int) string {
|
||||
func (b GalleryURLBuilder) GetGalleryImageURL(fileIndex int) string {
|
||||
return b.BaseURL + "/gallery/" + b.GalleryID + "/" + strconv.Itoa(fileIndex)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user