mirror of https://github.com/stashapp/stash.git
20 lines
380 B
Go
20 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"
|
|
}
|