verce-vue-test 0.0.97 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,6 @@
1
- import baseHttpClient, {
2
- type HttpRequestOptions,
3
- type TamResponse,
4
- } from '@/utils/baseHttpClient'
1
+ import baseHttpClient, { type TamResponse } from '@/utils/baseHttpClient'
5
2
 
3
+ /** 未来现金缺口明细。 */
6
4
  export type FutureCashGapRecord = {
7
5
  curDate?: string
8
6
  wlbdssrxjqk?: string
@@ -19,6 +17,7 @@ export type FutureCashGapBody = {
19
17
  resultInfos?: FutureCashGapRecord[]
20
18
  }
21
19
 
20
+ /** 现金流图表的区间及刷新信息。 */
22
21
  export type FutureCashFlowSummary = {
23
22
  max?: string
24
23
  min?: string
@@ -81,6 +80,7 @@ export type InterbankIndicatorBody = {
81
80
  resultInfoObj?: InterbankIndicatorRecord[]
82
81
  }
83
82
 
83
+ /** 顶部四块资金指标的汇总数据。 */
84
84
  export type FundCockpitSummaryBody = {
85
85
  actualCollection?: string
86
86
  actualPayment?: string
@@ -97,9 +97,13 @@ export type FundCockpitSummaryBody = {
97
97
  reportedAmt?: string
98
98
  }
99
99
 
100
+ /** 人行账户余额历史趋势。 */
100
101
  export type PbocBalanceHistoryRecord = {
102
+ /** 跨境余额。 */
101
103
  crossBorder?: string
104
+ /** 人行余额。 */
102
105
  datBlance?: string
106
+ /** 数据日期。 */
103
107
  mtDate?: string
104
108
  }
105
109
 
@@ -107,6 +111,7 @@ export type PbocBalanceHistoryBody = {
107
111
  resultInfoObj?: PbocBalanceHistoryRecord[]
108
112
  }
109
113
 
114
+ /** 报备轧差与实际轧差历史趋势。 */
110
115
  export type DeviationHistoryRecord = {
111
116
  actualdeviation?: string
112
117
  mtDate?: string
@@ -117,13 +122,21 @@ export type DeviationHistoryBody = {
117
122
  resultInfoObj?: DeviationHistoryRecord[]
118
123
  }
119
124
 
125
+ /** 报备、实际及预测收付款历史趋势。 */
120
126
  export type PaymentReceiptHistoryRecord = {
127
+ /** 预测收款。 */
121
128
  foreAmtIn?: string
129
+ /** 预测付款。 */
122
130
  foreAmtOut?: string
131
+ /** 数据日期。 */
123
132
  mtDate?: string
133
+ /** 报备收款。 */
124
134
  predAmtIn?: string
135
+ /** 报备付款。 */
125
136
  predAmtOut?: string
137
+ /** 实际收款。 */
126
138
  tranAmtIn?: string
139
+ /** 实际付款。 */
127
140
  tranAmtOut?: string
128
141
  }
129
142
 
@@ -131,6 +144,7 @@ export type PaymentReceiptHistoryBody = {
131
144
  resultInfoObj?: PaymentReceiptHistoryRecord[]
132
145
  }
133
146
 
147
+ /** 流动性仪表盘指标。 */
134
148
  export type LiquidityGaugeBody = {
135
149
  curDate?: string
136
150
  jwdzjbl?: string
@@ -141,59 +155,52 @@ export type LiquidityGaugeBody = {
141
155
  ldxfglTime?: string
142
156
  }
143
157
 
144
- const TRAN_CODES = {
145
- futureCashGap: '/TAM/0001/140206002',
146
- futureCashFlow: '/TAM/0001/140206003',
147
- shibor: '/TAM/0001/140206004',
148
- futureYearCashFlow: '/TAM/0001/140206005',
149
- interbankIndicators: '/TAM/0001/140206006',
150
- summary: '/TAM/0001/140206007',
151
- pbocBalanceHistory: '/TAM/0001/140206008',
152
- deviationHistory: '/TAM/0001/140206009',
153
- paymentReceiptHistory: '/TAM/0001/140206010',
154
- liquidityGauges: '/TAM/0001/140206017',
155
- } as const
156
-
157
- function post<T>(path: string, body: object, options?: HttpRequestOptions) {
158
- return baseHttpClient.post<TamResponse<T>>(path, body, options)
159
- }
160
-
161
- export function queryFutureCashGap(options?: HttpRequestOptions) {
162
- return post<FutureCashGapBody>(TRAN_CODES.futureCashGap, {}, options)
158
+ /** 查询未来现金缺口(140206002,无请求参数)。 */
159
+ export function queryFutureCashGap() {
160
+ return baseHttpClient.post<TamResponse<FutureCashGapBody>>('/TAM/0001/140206002', {})
163
161
  }
164
162
 
165
- export function queryFutureCashFlow(options?: HttpRequestOptions) {
166
- return post<FutureCashFlowBody>(TRAN_CODES.futureCashFlow, {}, options)
163
+ /** 查询未来现金流(140206003,无请求参数)。 */
164
+ export function queryFutureCashFlow() {
165
+ return baseHttpClient.post<TamResponse<FutureCashFlowBody>>('/TAM/0001/140206003', {})
167
166
  }
168
167
 
169
- export function queryShibor(queryDate: string, options?: HttpRequestOptions) {
170
- return post<ShiborBody>(TRAN_CODES.shibor, { queryDate }, options)
168
+ /** 查询指定数据日期的 SHIBOR 指标(140206004)。 */
169
+ export function queryShibor(queryDate: string) {
170
+ return baseHttpClient.post<TamResponse<ShiborBody>>('/TAM/0001/140206004', { queryDate })
171
171
  }
172
172
 
173
- export function queryFutureYearCashFlow(queryDate: string, options?: HttpRequestOptions) {
174
- return post<FutureYearCashFlowBody>(TRAN_CODES.futureYearCashFlow, { queryDate }, options)
173
+ /** 查询指定数据日期的未来一年现金流(140206005)。 */
174
+ export function queryFutureYearCashFlow(queryDate: string) {
175
+ return baseHttpClient.post<TamResponse<FutureYearCashFlowBody>>('/TAM/0001/140206005', { queryDate })
175
176
  }
176
177
 
177
- export function queryInterbankIndicators(queryDate: string, options?: HttpRequestOptions) {
178
- return post<InterbankIndicatorBody>(TRAN_CODES.interbankIndicators, { queryDate }, options)
178
+ /** 查询指定数据日期的同业指标(140206006)。 */
179
+ export function queryInterbankIndicators(queryDate: string) {
180
+ return baseHttpClient.post<TamResponse<InterbankIndicatorBody>>('/TAM/0001/140206006', { queryDate })
179
181
  }
180
182
 
181
- export function queryFundCockpitSummary(queryDate: string, options?: HttpRequestOptions) {
182
- return post<FundCockpitSummaryBody>(TRAN_CODES.summary, { queryDate }, options)
183
+ /** 查询指定数据日期的顶部资金指标汇总(140206007)。 */
184
+ export function queryFundCockpitSummary(queryDate: string) {
185
+ return baseHttpClient.post<TamResponse<FundCockpitSummaryBody>>('/TAM/0001/140206007', { queryDate })
183
186
  }
184
187
 
185
- export function queryPbocBalanceHistory(queryDate: string, options?: HttpRequestOptions) {
186
- return post<PbocBalanceHistoryBody>(TRAN_CODES.pbocBalanceHistory, { queryDate }, options)
188
+ /** 查询指定数据日期的人行账户余额趋势(140206008)。 */
189
+ export function queryPbocBalanceHistory(queryDate: string) {
190
+ return baseHttpClient.post<TamResponse<PbocBalanceHistoryBody>>('/TAM/0001/140206008', { queryDate })
187
191
  }
188
192
 
189
- export function queryDeviationHistory(queryDate: string, options?: HttpRequestOptions) {
190
- return post<DeviationHistoryBody>(TRAN_CODES.deviationHistory, { queryDate }, options)
193
+ /** 查询指定数据日期的轧差趋势(140206009)。 */
194
+ export function queryDeviationHistory(queryDate: string) {
195
+ return baseHttpClient.post<TamResponse<DeviationHistoryBody>>('/TAM/0001/140206009', { queryDate })
191
196
  }
192
197
 
193
- export function queryPaymentReceiptHistory(queryDate: string, options?: HttpRequestOptions) {
194
- return post<PaymentReceiptHistoryBody>(TRAN_CODES.paymentReceiptHistory, { queryDate }, options)
198
+ /** 查询指定数据日期的收付款趋势(140206010)。 */
199
+ export function queryPaymentReceiptHistory(queryDate: string) {
200
+ return baseHttpClient.post<TamResponse<PaymentReceiptHistoryBody>>('/TAM/0001/140206010', { queryDate })
195
201
  }
196
202
 
197
- export function queryLiquidityGauges(queryDate: string, options?: HttpRequestOptions) {
198
- return post<LiquidityGaugeBody>(TRAN_CODES.liquidityGauges, { queryDate }, options)
203
+ /** 查询指定数据日期的流动性仪表盘指标(140206017)。 */
204
+ export function queryLiquidityGauges(queryDate: string) {
205
+ return baseHttpClient.post<TamResponse<LiquidityGaugeBody>>('/TAM/0001/140206017', { queryDate })
199
206
  }