12345678910111213141516171819202122232425262728 |
- 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;
- }
- @GetMapping("/getMktBranches")
- public List<Branches> getMktBranches() {
- List<Branches> branches = branchesService.getMktBranches();
- return branches;
- }
- }
|