ProductController.java 657 B

123456789101112131415161718192021222324252627
  1. package com.uas.eis.controller;
  2. import com.uas.eis.service.ProductService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestParam;
  6. import org.springframework.web.bind.annotation.RestController;
  7. import java.util.Map;
  8. /**
  9. *
  10. */
  11. @RestController
  12. public class ProductController {
  13. @Autowired
  14. private ProductService productService;
  15. @PostMapping(value = "/yunding/product")
  16. public Map<String,Object> postProductToYunding(@RequestParam Integer id){
  17. return productService.postProductToYunding(id);
  18. }
  19. }