You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
369 B
17 lines
369 B
const { get, post, del } = require('./request'); |
|
|
|
export function saveDraft(data) { |
|
return post('/mail/draft', data) |
|
} |
|
|
|
export function getDraft(id) { |
|
return get('/mail/draft/' + id) |
|
} |
|
|
|
export function listDraft(params) { |
|
return get(`/mail/draft?size=${params.size}¤t=${params.current}`) |
|
} |
|
|
|
export function delDraft(id) { |
|
return del('/mail/draft/' + id) |
|
} |