|
@@ -0,0 +1,20 @@
|
|
|
+package org.ajnb.controller;
|
|
|
+
|
|
|
+import org.ajnb.service.SuppliersService;
|
|
|
+import org.ajnb.vo.SuppliersVO;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("Suppliers")
|
|
|
+public class SuppliersController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ SuppliersService suppliersService;
|
|
|
+
|
|
|
+ @RequestMapping("addSuppliers")
|
|
|
+ public void addSuppliers(SuppliersVO suppliersVO){
|
|
|
+ suppliersService.addSuppliers(suppliersVO);
|
|
|
+ }
|
|
|
+}
|