upvotes
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
type UpvoteFeedbackURL struct {
|
||||
FeedbackUUID string
|
||||
|
||||
Action string
|
||||
SessionUUID string
|
||||
|
||||
_basePath string
|
||||
@@ -42,7 +43,7 @@ func (o *UpvoteFeedbackURL) SetBasePath(bp string) {
|
||||
func (o *UpvoteFeedbackURL) Build() (*url.URL, error) {
|
||||
var _result url.URL
|
||||
|
||||
var _path = "/feedback/{feedback_uuid}/upvote"
|
||||
var _path = "/feedback/{feedback_uuid}/vote"
|
||||
|
||||
feedbackUUID := o.FeedbackUUID
|
||||
if feedbackUUID != "" {
|
||||
@@ -59,6 +60,11 @@ func (o *UpvoteFeedbackURL) Build() (*url.URL, error) {
|
||||
|
||||
qs := make(url.Values)
|
||||
|
||||
actionQ := o.Action
|
||||
if actionQ != "" {
|
||||
qs.Set("action", actionQ)
|
||||
}
|
||||
|
||||
sessionUUIDQ := o.SessionUUID
|
||||
if sessionUUIDQ != "" {
|
||||
qs.Set("session_uuid", sessionUUIDQ)
|
||||
|
||||
Reference in New Issue
Block a user