| | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.ObjectUtil; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @ApiOperation(value="日志管理-添加", notes="日志管理-添加") |
| | | @PostMapping(value = "/add") |
| | | public R add(@RequestBody SmLogManage smLogManage) { |
| | | |
| | | if (ObjectUtil.isEmpty(smLogManage.getSource())){ |
| | | smLogManage.setSource("WEB"); |
| | | } |
| | | return R.data(smLogManageService.save(smLogManage)); |
| | | } |
| | | |