package com.ruoyi.demo.controller; import com.ruoyi.common.core.domain.R; import com.ruoyi.demo.entity.vo.AddrCategoryBody; import com.ruoyi.demo.entity.vo.TypeByBody; import com.ruoyi.demo.service.CommonService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/common") public class CommonController { @Autowired CommonService commonService; //获取网点标签 @GetMapping("/tag") public R tag(){ List tag = commonService.tag(); return R.ok(tag); } //获取网点标签 @GetMapping("/addrCodeMap") public R addrCodeMap(){ List addrCategoryBodies = commonService.addrCodeMap(); return R.ok(addrCategoryBodies); } }