package com.td.WaDa.game.comconfigland.controller;

import com.td.WaDa.common.controller.*;
import com.td.WaDa.common.pojo.Result;
import com.td.WaDa.game.comconfigland.pojo.ComConfigLand;
import com.td.WaDa.game.comconfigland.vo.ComConfigLandVo;
import com.td.WaDa.game.comconfigland.service.ComConfigLandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/game/configLand/")
public class ComConfigLandController extends CommonController<ComConfigLandVo, ComConfigLand, Integer> {
    @Autowired
    private ComConfigLandService comConfigLandService;


    /**
     * 获取土地数据
     * @param userId
     * @return
     */
    @GetMapping("getList")
    public Result<List<ComConfigLandVo>> getSNBFunction(@RequestParam(value = "userId") String userId) {
        ComConfigLandVo comConfigLandVo = new ComConfigLandVo();
        Result result = comConfigLandService.list(comConfigLandVo);
        return result;
    }
}
