package io.renren.modules.snoop.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.snoop.entity.SnoopValueEntity;
import io.renren.modules.snoop.service.SnoopValueService;
import io.renren.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/snoopvalue")
public class SnoopValueController extends AbstractController {

    @Autowired
    private SnoopValueService snoopValueService;

    /**
     *
     */
    @RequestMapping("/selectBySnoopId")
    public R selectBySnoopId(@RequestParam Integer snoopId){

        List<SnoopValueEntity> snoopValueList = snoopValueService.selectBySnoopId(snoopId);
        return R.ok().put("snoopvaluelist", snoopValueList);
    }
}
