| | |
| | | import com.doumee.service.business.DeviceEventService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:deviceevent:create") |
| | | // @RequiresPermissions("business:deviceevent:create") |
| | | public ApiResponse create(@RequestBody DeviceEvent deviceEvent) { |
| | | return ApiResponse.success(deviceEventService.create(deviceEvent)); |
| | | } |