mirror of
https://github.com/stashapp/stash.git
synced 2025-12-10 10:22:18 +01:00
19 lines
380 B
Go
19 lines
380 B
Go
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"
|
|
}
|