stash/api/urlbuilders/performer.go

20 lines
416 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
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"
}