Browse Source

用户反馈

adv_callback
huangjiajun 1 month ago
parent
commit
37355dfe1d
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      app/md/md_user_feedback.go
  2. +1
    -0
      app/svc/svc_user_feedback.go

+ 1
- 0
app/md/md_user_feedback.go View File

@@ -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"`


+ 1
- 0
app/svc/svc_user_feedback.go View File

@@ -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),


Loading…
Cancel
Save