sysDictionary.js 2.5 KB

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