package com.sysu.admin.controller.crop.clazz;

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;


@RequestMapping("/crop_class")
@RestController
public class CropClassController {
    @Autowired
    CropClassRepository cropClassRepository;

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