mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Moved everything out of internal
This commit is contained in:
19
api/urlbuilders/studio.go
Normal file
19
api/urlbuilders/studio.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package urlbuilders
|
||||
|
||||
import "strconv"
|
||||
|
||||
type studioURLBuilder struct {
|
||||
BaseURL string
|
||||
StudioID string
|
||||
}
|
||||
|
||||
func NewStudioURLBuilder(baseURL string, studioID int) studioURLBuilder {
|
||||
return studioURLBuilder{
|
||||
BaseURL: baseURL,
|
||||
StudioID: strconv.Itoa(studioID),
|
||||
}
|
||||
}
|
||||
|
||||
func (b studioURLBuilder) GetStudioImageUrl() string {
|
||||
return b.BaseURL + "/studio/" + b.StudioID + "/image"
|
||||
}
|
||||
Reference in New Issue
Block a user