蛋蛋星球-客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

81 lines
3.0 KiB

  1. package hdl
  2. import (
  3. "applet/app/svc"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // UserFeedbackCate
  7. // @Summary 意见反馈-分类
  8. // @Tags 意见反馈
  9. // @Description 意见反馈-分类
  10. // @Accept json
  11. // @Produce json
  12. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  13. // @Success 200 {object} md.AdvertisingResp "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/userFeedback/cate [get]
  16. func UserFeedbackCate(c *gin.Context) {
  17. svc.UserFeedbackCate(c)
  18. }
  19. // UserFeedbackList
  20. // @Summary 意见反馈-反馈记录
  21. // @Tags 意见反馈
  22. // @Description 意见反馈-反馈记录
  23. // @Accept json
  24. // @Produce json
  25. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  26. // @Param req body md.UserFeedbackListReq true "参数"
  27. // @Success 200 {object} md.UserFeedbackListResp "具体数据"
  28. // @Failure 400 {object} md.Response "具体错误"
  29. // @Router /api/v1/userFeedback/list [post]
  30. func UserFeedbackList(c *gin.Context) {
  31. svc.UserFeedbackList(c)
  32. }
  33. // UserFeedbackRecord
  34. // @Summary 意见反馈-反馈记录-沟通记录
  35. // @Tags 意见反馈
  36. // @Description 意见反馈-反馈记录-沟通记录
  37. // @Accept json
  38. // @Produce json
  39. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  40. // @Param req body md.UserFeedbackRecordReq true "参数"
  41. // @Success 200 {object} md.UserFeedbackRecordResp "具体数据"
  42. // @Failure 400 {object} md.Response "具体错误"
  43. // @Router /api/v1/userFeedback/record [post]
  44. func UserFeedbackRecord(c *gin.Context) {
  45. svc.UserFeedbackRecord(c)
  46. }
  47. // UserFeedbackSay
  48. // @Summary 意见反馈-反馈记录-沟通发送
  49. // @Tags 意见反馈
  50. // @Description 意见反馈-反馈记录-沟通发送
  51. // @Accept json
  52. // @Produce json
  53. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  54. // @Param req body md.UserFeedbackSayReq true "参数"
  55. // @Success 200 {string} "具体数据"
  56. // @Failure 400 {object} md.Response "具体错误"
  57. // @Router /api/v1/userFeedback/say [post]
  58. func UserFeedbackSay(c *gin.Context) {
  59. svc.UserFeedbackSay(c)
  60. }
  61. // UserFeedbackSave
  62. // @Summary 意见反馈-反馈记录-提交
  63. // @Tags 意见反馈
  64. // @Description 意见反馈-反馈记录-提交
  65. // @Accept json
  66. // @Produce json
  67. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  68. // @Param req body md.UserFeedbackSaveReq true "参数"
  69. // @Success 200 {string} "具体数据"
  70. // @Failure 400 {object} md.Response "具体错误"
  71. // @Router /api/v1/userFeedback/save [post]
  72. func UserFeedbackSave(c *gin.Context) {
  73. svc.UserFeedbackSave(c)
  74. }