| @@ -16,6 +16,9 @@ import org.springframework.web.bind.annotation.GetMapping; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | import org.springframework.web.bind.annotation.RestController; | ||||
| import java.util.HashMap; | |||||
| import java.util.Map; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMall") | @RequestMapping("wxMall") | ||||
| public class WxMallController extends BaseController { | public class WxMallController extends BaseController { | ||||
| @@ -40,7 +43,10 @@ public class WxMallController extends BaseController { | |||||
| if (mall==null) { | if (mall==null) { | ||||
| return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); | return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); | ||||
| } | } | ||||
| return new ResultData(Result.SUCCESS, "查询成功", mall); | |||||
| Map resultMap = new HashMap(); | |||||
| resultMap.put("imgUrl", mall.getImgUrl()); | |||||
| resultMap.put("name", mall.getName()); | |||||
| return new ResultData(Result.SUCCESS, "查询成功", resultMap); | |||||
| } | } | ||||