diff --git a/app/md/md_user_feedback.go b/app/md/md_user_feedback.go index e6ab9cb..bdfc722 100644 --- a/app/md/md_user_feedback.go +++ b/app/md/md_user_feedback.go @@ -32,6 +32,7 @@ type UserFeedbackSaveReq struct { Img []string `json:"img" example:"图片"` Idea string `json:"idea" example:"建议内容"` Phone string `json:"phone"` + Title string `json:"title"` } type UserFeedbackSayReq struct { Id string `json:"id" example:"id"` diff --git a/app/svc/svc_user_feedback.go b/app/svc/svc_user_feedback.go index 2ad329b..a5fec04 100644 --- a/app/svc/svc_user_feedback.go +++ b/app/svc/svc_user_feedback.go @@ -113,6 +113,7 @@ func UserFeedbackSave(c *gin.Context) { data := model.UserFeedback{ Uid: int(user.Id), Type: req.Type, + Title: req.Title, Extra: utils.SerializeStr(c.Request.Header), Content: req.Content, Img: utils.SerializeStr(req.Img),