problemReply.js 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import service from '@/utils/request'
  2. // @Tags ProblemReply
  3. // @Summary 创建ProblemReply
  4. // @Security ApiKeyAuth
  5. // @accept application/json
  6. // @Produce application/json
  7. // @Param data body model.ProblemReply true "创建ProblemReply"
  8. // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
  9. // @Router /problemReply/createProblemReply [post]
  10. export const createProblemReply = (data) => {
  11. return service({
  12. url: '/problemReply/createProblemReply',
  13. method: 'post',
  14. data
  15. })
  16. }
  17. // @Tags ProblemReply
  18. // @Summary 删除ProblemReply
  19. // @Security ApiKeyAuth
  20. // @accept application/json
  21. // @Produce application/json
  22. // @Param data body model.ProblemReply true "删除ProblemReply"
  23. // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
  24. // @Router /problemReply/deleteProblemReply [delete]
  25. export const deleteProblemReply = (data) => {
  26. return service({
  27. url: '/problemReply/deleteProblemReply',
  28. method: 'delete',
  29. data
  30. })
  31. }
  32. // @Tags ProblemReply
  33. // @Summary 删除ProblemReply
  34. // @Security ApiKeyAuth
  35. // @accept application/json
  36. // @Produce application/json
  37. // @Param data body request.IdsReq true "批量删除ProblemReply"
  38. // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
  39. // @Router /problemReply/deleteProblemReply [delete]
  40. export const deleteProblemReplyByIds = (data) => {
  41. return service({
  42. url: '/problemReply/deleteProblemReplyByIds',
  43. method: 'delete',
  44. data
  45. })
  46. }
  47. // @Tags ProblemReply
  48. // @Summary 更新ProblemReply
  49. // @Security ApiKeyAuth
  50. // @accept application/json
  51. // @Produce application/json
  52. // @Param data body model.ProblemReply true "更新ProblemReply"
  53. // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
  54. // @Router /problemReply/updateProblemReply [put]
  55. export const updateProblemReply = (data) => {
  56. return service({
  57. url: '/problemReply/updateProblemReply',
  58. method: 'put',
  59. data
  60. })
  61. }
  62. // @Tags ProblemReply
  63. // @Summary 用id查询ProblemReply
  64. // @Security ApiKeyAuth
  65. // @accept application/json
  66. // @Produce application/json
  67. // @Param data query model.ProblemReply true "用id查询ProblemReply"
  68. // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
  69. // @Router /problemReply/findProblemReply [get]
  70. export const findProblemReply = (params) => {
  71. return service({
  72. url: '/problemReply/findProblemReply',
  73. method: 'get',
  74. params
  75. })
  76. }
  77. // @Tags ProblemReply
  78. // @Summary 分页获取ProblemReply列表
  79. // @Security ApiKeyAuth
  80. // @accept application/json
  81. // @Produce application/json
  82. // @Param data query request.PageInfo true "分页获取ProblemReply列表"
  83. // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
  84. // @Router /problemReply/getProblemReplyList [get]
  85. export const getProblemReplyList = (params) => {
  86. return service({
  87. url: '/problemReply/getProblemReplyList',
  88. method: 'get',
  89. params
  90. })
  91. }