From 37355dfe1df78989be0cebbfec362f81773e23ef Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 26 Nov 2024 19:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/md/md_user_feedback.go | 1 + app/svc/svc_user_feedback.go | 1 + 2 files changed, 2 insertions(+) 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),