package io.renren.modules.sys.controller.algs;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.sys.service.FileTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/fileTest")
public class fileTestController {
    @Autowired
    FileTestService fileTestService;

    /**
     *
     * @param params
     * @return
     */
    @GetMapping("/list")
    public R listFile(@RequestParam Map<String,Object> params){
        System.out.println("111");
        PageUtils page=fileTestService.queryPageOnUse(params);

        return R.ok().put("page",page);
    }

}
