DemandAttachmentController.java 923 B

1234567891011121314151617181920212223242526272829
  1. package com.migao.controller;
  2. import com.migao.config.response.ResponseBean;
  3. import com.migao.service.DemandAttachmentService;
  4. import io.swagger.annotations.Api;
  5. import io.swagger.annotations.ApiOperation;
  6. import org.springframework.web.bind.annotation.PostMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestParam;
  9. import org.springframework.web.bind.annotation.RestController;
  10. import javax.annotation.Resource;
  11. /**
  12. * @author dingsong
  13. */
  14. @Api(tags = "008.需求库附件模快")
  15. @RestController
  16. @RequestMapping("/DemandAttachment")
  17. public class DemandAttachmentController {
  18. @Resource
  19. DemandAttachmentService demandAttachmentService;
  20. @ApiOperation("删除附件")
  21. @PostMapping(value = "/deleteById")
  22. public ResponseBean<?> deleteById(@RequestParam String id){
  23. return demandAttachmentService.deleteById(id);
  24. }
  25. }