mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Moved everything out of internal
This commit is contained in:
19
api/urlbuilders/performer.go
Normal file
19
api/urlbuilders/performer.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user