* 修改 msg * @param {Object} msgBody { title:{String}, content:{String} } * @return {Promise}
(msgBody)
| 42 | * @return {Promise} |
| 43 | */ |
| 44 | mod (msgBody) { |
| 45 | let msgId = msgBody.id |
| 46 | delete msgBody.msgId |
| 47 | |
| 48 | return xhr({ |
| 49 | method: 'put', |
| 50 | url: `/msg/${msgId}`, |
| 51 | body: msgBody |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * 删除 msg |