| | |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | public ResponseEntity<Object> createOrderOperationLog(@Validated @RequestBody OrderOperationLog resources) { |
| | | orderOperationLogService.create(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改订单操作日志") |
| | | @ApiOperation("修改订单操作日志") |
| | | @PreAuthorize("@el.check('orderOperationLog:edit')") |
| | | public ResponseEntity<Object> updateOrderOperationLog(@Validated @RequestBody OrderOperationLog resources) { |
| | | orderOperationLogService.update(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除订单操作日志") |
| | | @ApiOperation("删除订单操作日志") |
| | | @PreAuthorize("@el.check('orderOperationLog:del')") |
| | | public ResponseEntity<Object> deleteOrderOperationLog(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | orderOperationLogService.deleteAll(ids); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.OK); |
| | | } |
| | | } |