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