28 lines
582 B
TypeScript
28 lines
582 B
TypeScript
// API配置
|
|||
|
|
export const API_CONFIG = {
|
||
|
|
baseURL: '/api',
|
||
|
|
timeout: 10000,
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json',
|
||
|
|
},
|
||
|
|
}
|
||
|
|
|
||
|
|
// API端点
|
||
|
|
export const API_ENDPOINTS = {
|
||
|
|
auth: {
|
||
|
|
login: '/auth/login',
|
||
|
|
logout: '/auth/logout',
|
||
|
|
me: '/auth/me',
|
||
|
|
},
|
||
|
|
products: '/products',
|
||
|
|
customers: '/customers',
|
||
|
|
suppliers: '/suppliers',
|
||
|
|
advances: '/advances',
|
||
|
|
reimbursements: '/reimbursements',
|
||
|
|
projects: '/projects',
|
||
|
|
paymentNodes: '/payment-nodes',
|
||
|
|
paymentRecords: '/payment-records',
|
||
|
|
exchangeRates: '/exchange-rates',
|
||
|
|
financeStats: '/finance-stats',
|
||
|
|
}
|