cultivationApp/api/manage.js

68 lines
2.4 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 animalInfoDetail = (data) => syhttp.get('/animal_info/detail', 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 dewormingLogLists = (data) => syhttp.get('/suyuan_operation.operation_deworming_log/lists', data);
//消毒列表
export const disinfectLogLists = (data) => syhttp.get('/suyuan_operation.operation_disinfect_log/lists', data);
//喂食列表
export const feedingLogLists = (data) => syhttp.get('/suyuan_operation.operation_feeding_log/lists', data);
//喂水列表
export const waterLogLists = (data) => syhttp.get('/suyuan_operation.operation_water_log/lists', data);
//打疫苗列表
export const vaccinumLogLists = (data) => syhttp.get('/suyuan_operation.operation_vaccinum_log/lists', data);
//养殖列表
export const animalInfoList = (data) => syhttp.get('/animal_info/lists', data);
//喂养信息列表
export const operationLogIndex = (data) => syhttp.get('/operation_log/index', data);
//离栏登记
export const fenceHouseLeave = (data) => syhttp.post('/fence_house/leave', data);
//离栏信息列表
export const fenceHouseLeaveList = (data) => syhttp.get('/fence_house/leaveList', data);
//转栏登记
export const fenceHouseExchange = (data) => syhttp.post('/fence_house/exchange', data);
//转栏信息列表
export const fenceHouseExchangeList = (data) => syhttp.get('/fence_house/exchangeList', data);