This commit is contained in:
@@ -13,12 +13,14 @@ type Feedback struct {
|
|||||||
Text string `gorm:"type:varchar(300)"`
|
Text string `gorm:"type:varchar(300)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewFeedback(userUUID, sessionUUID, ticketType, text string) *Feedback {
|
func NewFeedback(userUUID, sessionUUID, ticketType, text, projectID string) *Feedback {
|
||||||
return &Feedback{
|
return &Feedback{
|
||||||
UUID: uuid.New().String(),
|
UUID: uuid.New().String(),
|
||||||
UserID: userUUID,
|
UserID: userUUID,
|
||||||
SessionUUID: sessionUUID,
|
SessionUUID: sessionUUID,
|
||||||
Type: ticketType,
|
ProjectID: projectID,
|
||||||
Text: text,
|
|
||||||
|
Type: ticketType,
|
||||||
|
Text: text,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user