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