|
@@ -0,0 +1,23 @@
|
|
|
|
+package com.ygj.yuemum.controller.admin;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+import com.ygj.yuemum.domain.admin.Branches;
|
|
|
|
+import com.ygj.yuemum.service.admin.BranchesService;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+@RestController
|
|
|
|
+public class BranchesController {
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private BranchesService branchesService;
|
|
|
|
+ @GetMapping("/getBranches")
|
|
|
|
+ public List<Branches> getBranches() {
|
|
|
|
+ List<Branches> branches = branchesService.getBranches();
|
|
|
|
+ return branches;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|