services.js 749 B

123456789101112131415161718192021222324252627
  1. import { fetchApi, fetchApi_get as fetchApiGet } from '@/apis/'
  2. import { dc } from '@/conf/config'
  3. // 获取配置属性信息
  4. export async function getConfigDetailAction (params) {
  5. const url = `${dc}/api/poster/property`
  6. return fetchApiGet(url, params)
  7. }
  8. // 复制模板
  9. export async function copyTemplateAction (data) {
  10. const url = `${dc}/api/poster/copy`
  11. // return fetchApi({ url, method: 'POST', data })
  12. return fetchApi(url, data)
  13. }
  14. // 删除模版
  15. export async function delTemplateAction (params) {
  16. const url = `${dc}/api/poster/delete`
  17. return fetchApiGet(url, params)
  18. }
  19. // 改变模板状态
  20. export async function changePosterState (params) {
  21. const url = `${dc}/api/poster/check-status`
  22. return fetchApiGet(url, params)
  23. }