const express = require('express');
const router = express.Router();
const smartEarmarkController = require('../controllers/smartEarmarkController');
const auth = require('../middleware/auth');

// 获取智能耳标列表
router.get('/', auth, smartEarmarkController.getSmartEarmarks);

// 新增智能耳标
router.post('/', auth, smartEarmarkController.createSmartEarmark);

// 编辑智能耳标
router.put('/:id', auth, smartEarmarkController.updateSmartEarmark);

// 删除智能耳标
router.delete('/:id', auth, smartEarmarkController.deleteSmartEarmark);

module.exports = router;