package cc.mrbird.febs.mall.controller; import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.mall.service.ICommonService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.ibatis.annotations.Param; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @Validated @RestController @RequiredArgsConstructor @RequestMapping(value = "/admin/common") public class AdminCommonController { @Autowired private ICommonService commonService; @GetMapping(value = "/findDicByType/{type}") public FebsResponse findDicByType(@PathVariable("type") String type) { return new FebsResponse().success().data(commonService.findDataDicByType(type)); } }