package com.iformall.controller;

import com.iformall.common.ErrorCode;
import com.iformall.common.ResultData;
import com.iformall.domain.po.WxMallFloor;
import com.iformall.service.WxMallBuildingService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/wxMallBuilding")
public class WxMallBuildingController extends BaseController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private WxMallBuildingService wxMallBuildingService;

    @ApiOperation("获取楼层楼座数据")
    @GetMapping("getbuildingfloorlist")
    public ResultData getbuildingfloorlist() {
        logger.debug("[" + getIpAddr() + "] WxMallBuildingController::getbuildingfloorlist");
        return wxMallBuildingService.getbuildingfloorlist(getTenantId());
    }
}
