mirror of https://github.com/stashapp/stash.git
20 lines
416 B
Go
20 lines
416 B
Go
|
package urlbuilders
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
type performerURLBuilder struct {
|
||
|
BaseURL string
|
||
|
PerformerID string
|
||
|
}
|
||
|
|
||
|
func NewPerformerURLBuilder(baseURL string, performerID int) performerURLBuilder {
|
||
|
return performerURLBuilder{
|
||
|
BaseURL: baseURL,
|
||
|
PerformerID: strconv.Itoa(performerID),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (b performerURLBuilder) GetPerformerImageUrl() string {
|
||
|
return b.BaseURL + "/performer/" + b.PerformerID + "/image"
|
||
|
}
|