package com.zhyc.module.dairyProducts.controller;

import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.module.dairyProducts.service.IRanchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/dairyProducts/ranch")
public class RanchController extends BaseController {

    @Autowired
    private IRanchService ranchService;

    @GetMapping("/list")
    public AjaxResult list() {
        return success(ranchService.selectAllRanch());
    }
}