(req, res)
| 22 | res.return('请至我的分享查看') |
| 23 | }, |
| 24 | async post(req, res) { |
| 25 | db('share').find({ adminId: req.info.userInfo.id, id: req.body.id }).assign(req.body).write() |
| 26 | res.return('操作成功') |
| 27 | }, |
| 28 | async delete(req, res) { |
| 29 | db('share').remove({ adminId: req.info.userInfo.id, id: req.body.id }).write() |
| 30 | res.return('删除成功') |
nothing calls this directly
no outgoing calls
no test coverage detected