19 lines
841 B
TypeScript
19 lines
841 B
TypeScript
|
|
import http from '@/api'
|
||
|
|
import type { SteadyTrend } from './interface'
|
||
|
|
|
||
|
|
export const getSteadyTrendLedgerTree = (params?: { keyword?: string }) => {
|
||
|
|
return http.get<SteadyTrend.SteadyLedgerNode[]>('/steady/data-view/ledger-tree', params, { loading: false })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getSteadyTrendIndicatorTree = () => {
|
||
|
|
return http.get<SteadyTrend.SteadyIndicatorNode[]>('/steady/data-view/indicator-tree', {}, { loading: false })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const querySteadyTrend = (params: SteadyTrend.SteadyTrendQueryParams) => {
|
||
|
|
return http.post<SteadyTrend.SteadyTrendQueryResult>('/steady/data-view/trend/query', params, { loading: false })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const querySteadyTrendDay = (params: SteadyTrend.SteadyTrendQueryParams) => {
|
||
|
|
return http.post<SteadyTrend.SteadyTrendQueryResult>('/steady/data-view/trend/day', params, { loading: false })
|
||
|
|
}
|