exportTemplate.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import service from '@/utils/request'
  2. // @Tags SysExportTemplate
  3. // @Summary 创建导出模板
  4. // @Security ApiKeyAuth
  5. // @accept application/json
  6. // @Produce application/json
  7. // @Param data body model.SysExportTemplate true "创建导出模板"
  8. // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
  9. // @Router /sysExportTemplate/createSysExportTemplate [post]
  10. export const createSysExportTemplate = (data) => {
  11. return service({
  12. url: '/sysExportTemplate/createSysExportTemplate',
  13. method: 'post',
  14. data
  15. })
  16. }
  17. // @Tags SysExportTemplate
  18. // @Summary 删除导出模板
  19. // @Security ApiKeyAuth
  20. // @accept application/json
  21. // @Produce application/json
  22. // @Param data body model.SysExportTemplate true "删除导出模板"
  23. // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
  24. // @Router /sysExportTemplate/deleteSysExportTemplate [delete]
  25. export const deleteSysExportTemplate = (data) => {
  26. return service({
  27. url: '/sysExportTemplate/deleteSysExportTemplate',
  28. method: 'delete',
  29. data
  30. })
  31. }
  32. // @Tags SysExportTemplate
  33. // @Summary 批量删除导出模板
  34. // @Security ApiKeyAuth
  35. // @accept application/json
  36. // @Produce application/json
  37. // @Param data body request.IdsReq true "批量删除导出模板"
  38. // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
  39. // @Router /sysExportTemplate/deleteSysExportTemplate [delete]
  40. export const deleteSysExportTemplateByIds = (data) => {
  41. return service({
  42. url: '/sysExportTemplate/deleteSysExportTemplateByIds',
  43. method: 'delete',
  44. data
  45. })
  46. }
  47. // @Tags SysExportTemplate
  48. // @Summary 更新导出模板
  49. // @Security ApiKeyAuth
  50. // @accept application/json
  51. // @Produce application/json
  52. // @Param data body model.SysExportTemplate true "更新导出模板"
  53. // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
  54. // @Router /sysExportTemplate/updateSysExportTemplate [put]
  55. export const updateSysExportTemplate = (data) => {
  56. return service({
  57. url: '/sysExportTemplate/updateSysExportTemplate',
  58. method: 'put',
  59. data
  60. })
  61. }
  62. // @Tags SysExportTemplate
  63. // @Summary 用id查询导出模板
  64. // @Security ApiKeyAuth
  65. // @accept application/json
  66. // @Produce application/json
  67. // @Param data query model.SysExportTemplate true "用id查询导出模板"
  68. // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
  69. // @Router /sysExportTemplate/findSysExportTemplate [get]
  70. export const findSysExportTemplate = (params) => {
  71. return service({
  72. url: '/sysExportTemplate/findSysExportTemplate',
  73. method: 'get',
  74. params
  75. })
  76. }
  77. // @Tags SysExportTemplate
  78. // @Summary 分页获取导出模板列表
  79. // @Security ApiKeyAuth
  80. // @accept application/json
  81. // @Produce application/json
  82. // @Param data query request.PageInfo true "分页获取导出模板列表"
  83. // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
  84. // @Router /sysExportTemplate/getSysExportTemplateList [get]
  85. export const getSysExportTemplateList = (params) => {
  86. return service({
  87. url: '/sysExportTemplate/getSysExportTemplateList',
  88. method: 'get',
  89. params
  90. })
  91. }
  92. // ExportExcel 导出表格token
  93. // @Tags SysExportTemplate
  94. // @Summary 导出表格
  95. // @Security ApiKeyAuth
  96. // @accept application/json
  97. // @Produce application/json
  98. // @Router /sysExportTemplate/exportExcel [get]
  99. export const exportExcel = (params) => {
  100. return service({
  101. url: '/sysExportTemplate/exportExcel',
  102. method: 'get',
  103. params
  104. })
  105. }
  106. // ExportTemplate 导出表格模板
  107. // @Tags SysExportTemplate
  108. // @Summary 导出表格模板
  109. // @Security ApiKeyAuth
  110. // @accept application/json
  111. // @Produce application/json
  112. // @Router /sysExportTemplate/exportTemplate [get]
  113. export const exportTemplate = (params) => {
  114. return service({
  115. url: '/sysExportTemplate/exportTemplate',
  116. method: 'get',
  117. params
  118. })
  119. }