cultivationApp/api/manage.js

37 lines
1.2 KiB
JavaScript

import syhttp from "@/utils/syhttp.js";
import http from "@/utils/http.js";
//新增栏舍
export const fenceHouseAdd = (data) => syhttp.post('/fence_house/add', data);
//栏舍列表
export const fenceHouseList = (data) => syhttp.get('/fence_house/list', data);
//栏舍详情
export const fenceHouseDetail = (data) => syhttp.get('/fence_house/detail', data);
//新增养殖
export const animalInfoAdd = (data) => syhttp.post('/animal_info/add', data);
//新增驱虫
export const dewormingLogAdd = (data) => syhttp.post('/suyuan_operation.operation_deworming_log/add', data);
//新增消毒
export const disinfectLogAdd = (data) => syhttp.post('/suyuan_operation.operation_disinfect_log/add', data);
//新增喂食
export const feedingLogAdd = (data) => syhttp.post('/suyuan_operation.operation_feeding_log/add', data);
//新增喂水
export const waterLogAdd = (data) => syhttp.post('/suyuan_operation.operation_water_log/add', data);
//新增打疫苗
export const vaccinumLogAdd = (data) => syhttp.post('/suyuan_operation.operation_vaccinum_log/add', data);
//养殖列表
export const animalInfoList = (data) => syhttp.get('/animal_info/lists', data);
//喂养信息列表
export const operationLogIndex = (data) => syhttp.get('/operation_log/index', data);