09-1 回收站介绍.md

huishouzhan.png

回收站接口

import request from '@/utils/request';

const URL = {
  GET: '/notes/trash',
  REVERT: '/notes/:noteId/revert',
  DELETE: '/notes/:noteId/confirm'
}

export default {
  getAll() {
    return request(URL.GET)
  },
  revertNote({ noteId }) {
    return request(URL.REVERT.replace(':noteId', noteId),'PATCH')
  },
  deleteNote({ noteId }) {
    return request(URL.DELETE.replace(':noteId', noteId), 'DELETE')
  }
}

回收站布局











你可能感兴趣的:(09-1 回收站介绍.md)