package com.sysu.admin.site.lz;

import com.sysu.admin.controller.lz.period.LzPeriodService;
import com.xiesx.fastboot.base.result.BaseResult;
import com.xiesx.fastboot.base.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/site/lz_period")
public class LzPeriodController {

    @Autowired
    LzPeriodService lzPeriodService;

    @RequestMapping("/list")
    public BaseResult list(){
        return R.succ(lzPeriodService.findAll());
    }

}
