Blame view

store-pc/src/api/lqTodo.js 798 Bytes
e1dcb3a0   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  import request from '@/utils/request'
  
  /** 我的待办列表 */
  export function getMyTodoList(data) {
    return request({
      url: '/api/Extend/LqTodo/MyTodoList',
      method: 'get',
      data
    })
  }
  
  /** 待办数量统计 */
  export function getTodoCount() {
    return request({
      url: '/api/Extend/LqTodo/TodoCount',
      method: 'get'
    })
  }
  
  /** 创建待办(自定义) */
  export function createTodo(data) {
    return request({
      url: '/api/Extend/LqTodo',
      method: 'post',
      data
    })
  }
  
  /** 标记待办已完成 */
  export function handleTodo(id) {
    return request({
      url: `/api/Extend/LqTodo/Handle/${id}`,
      method: 'post'
    })
  }
  
  /** 忽略待办 */
  export function dismissTodo(id) {
    return request({
      url: `/api/Extend/LqTodo/Dismiss/${id}`,
      method: 'post'
    })
  }