package com.ygj.yuemum.controller.wxmini; import com.ygj.yuemum.domain.wxmini.WXMktInfo; import com.ygj.yuemum.service.wxmini.WXMktInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class WXMktInfoController { @Autowired private WXMktInfoService mktInfoService; @GetMapping("/getMktInfos") public List getMktInfos(@RequestParam("mi_branche_code") Integer mi_branche_code) { List mktInfos = mktInfoService.getMktInfos(mi_branche_code); return mktInfos; } }