68 lines
1.4 KiB
JavaScript
68 lines
1.4 KiB
JavaScript
// API配置文件
|
|
const config = {
|
|
// 后端服务器配置
|
|
baseURL: 'http://localhost:5352/api',
|
|
|
|
// 请求超时时间
|
|
timeout: 10000,
|
|
|
|
// API端点配置
|
|
endpoints: {
|
|
// 认证相关
|
|
auth: {
|
|
login: '/auth/login',
|
|
logout: '/auth/logout',
|
|
userInfo: '/auth/userinfo'
|
|
},
|
|
|
|
// 养殖户管理
|
|
farmer: {
|
|
list: '/government/farmers',
|
|
create: '/government/farmers',
|
|
update: '/government/farmers',
|
|
delete: '/government/farmers',
|
|
detail: '/government/farmers',
|
|
resetPassword: '/government/farmers/{id}/reset-password',
|
|
farmTypes: '/government/farm-types',
|
|
animalTypes: '/government/animal-types'
|
|
},
|
|
|
|
// 数据统计
|
|
statistics: {
|
|
dataCenter: '/government/data-center',
|
|
marketPrice: '/government/market-price'
|
|
},
|
|
|
|
// 系统管理
|
|
system: {
|
|
health: '/health'
|
|
},
|
|
|
|
// 设备管理
|
|
device: {
|
|
warnings: '/device-warning',
|
|
smartCollars: '/government/collars',
|
|
smartEarmarks: '/smart-earmark',
|
|
smartHosts: '/smart-host'
|
|
},
|
|
|
|
// 疫情管理
|
|
epidemic: {
|
|
records: '/epidemic-record',
|
|
activities: '/epidemic-activity',
|
|
vaccines: '/vaccine'
|
|
},
|
|
|
|
// 监管任务
|
|
supervision: {
|
|
tasks: '/supervision'
|
|
},
|
|
|
|
// 审批流程
|
|
approval: {
|
|
processes: '/approval-process'
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = config; |