| | |
| | | @ManagerAuth |
| | | public R add(ApiLog apiLog) { |
| | | apiLogService.insert(apiLog); |
| | | return R.ok(); |
| | | return R.ok("response.save_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/apiLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(ApiLog apiLog){ |
| | | if (Cools.isEmpty(apiLog) || null==apiLog.getId()){ |
| | | return R.error(); |
| | | return R.error("response.param_error"); |
| | | } |
| | | apiLogService.updateById(apiLog); |
| | | return R.ok(); |
| | | return R.ok("response.update_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/apiLog/delete/auth") |
| | |
| | | for (Long id : ids){ |
| | | apiLogService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | return R.ok("response.delete_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/apiLog/export/auth") |