verce-vue-test 0.0.131 → 0.0.133

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.131",
3
+ "version": "0.0.133",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,18 +1,25 @@
1
+ /**
2
+ * 人民币头寸预报的 TAM/UAA 请求封装。
3
+ * 参数组装和响应字段转换统一放在 `model.ts`,本文件只维护接口地址和请求方式。
4
+ */
1
5
  import baseHttpClient from '@/utils/baseHttpClient'
2
6
  import type { RmbPositionForecastQueryParams } from './model'
3
7
 
8
+ /** TAM 业务接口的请求体;具体字段由对应的 model 转换函数生成。 */
4
9
  type BusinessParams = Record<string, unknown>
10
+
11
+ /** 140101001 分页查询额外需要的页码参数。 */
5
12
  type RmbPositionForecastListParams = RmbPositionForecastQueryParams & {
6
13
  pageIndex: number
7
14
  pageSize: number
8
15
  }
9
16
 
10
- /** 分页查询人民币头寸预报。 */
17
+ /** 调用 TAM 140101001 分页查询人民币头寸预报。 */
11
18
  export function queryRmbPositionForecasts(params: RmbPositionForecastListParams) {
12
19
  return baseHttpClient.post<any>('/TAM/0001/140101001', params)
13
20
  }
14
21
 
15
- /** 新增人民币头寸预报。 */
22
+ /** 调用 TAM 120101001 新增人民币头寸预报。 */
16
23
  export function createRmbPositionForecast(params: BusinessParams) {
17
24
  return baseHttpClient.post<any>(
18
25
  '/TAM/0001/120101001',
@@ -20,7 +27,7 @@ export function createRmbPositionForecast(params: BusinessParams) {
20
27
  )
21
28
  }
22
29
 
23
- /** 修改人民币头寸预报。 */
30
+ /** 调用 TAM 120101002 修改人民币头寸预报。 */
24
31
  export function updateRmbPositionForecast(params: BusinessParams) {
25
32
  return baseHttpClient.post<any>(
26
33
  '/TAM/0001/120101002',
@@ -28,7 +35,7 @@ export function updateRmbPositionForecast(params: BusinessParams) {
28
35
  )
29
36
  }
30
37
 
31
- /** 查询客户账号并取得客户查询交易流水号。 */
38
+ /** 调用 TAM 140000002 查询客户账号,并取得后续新增交易所需的客户查询流水号。 */
32
39
  export function queryRmbPositionCustomerAccount(
33
40
  params: { clientId: string },
34
41
  ) {
@@ -38,12 +45,12 @@ export function queryRmbPositionCustomerAccount(
38
45
  )
39
46
  }
40
47
 
41
- /** 查询当前用户可用的 UAA 机构树。 */
48
+ /** 查询当前用户可用的 UAA 机构树;树节点转换由 `model.ts` 负责。 */
42
49
  export function queryRmbPositionOrganizationTree() {
43
50
  return baseHttpClient.get<any>('/uaa/org/tree')
44
51
  }
45
52
 
46
- /** 删除一个或多个人民币头寸预报。 */
53
+ /** 调用 TAM 120101003 删除一个或多个人民币头寸预报。 */
47
54
  export function deleteRmbPositionForecast(params: { predRefSeqs: string[] }) {
48
55
  return baseHttpClient.post<any>(
49
56
  '/TAM/0001/120101003',
@@ -51,7 +58,7 @@ export function deleteRmbPositionForecast(params: { predRefSeqs: string[] }) {
51
58
  )
52
59
  }
53
60
 
54
- /** 生成人民币预报日终文件或覆盖日终文件。 */
61
+ /** 调用 TAM 120101005 生成日终文件,`coverrz` 表示覆盖日终。 */
55
62
  export function runRmbPositionForecastEndOfDay(opType: 'rz' | 'coverrz') {
56
63
  return baseHttpClient.post<any>(
57
64
  '/TAM/0001/120101005',
@@ -59,7 +66,7 @@ export function runRmbPositionForecastEndOfDay(opType: 'rz' | 'coverrz') {
59
66
  )
60
67
  }
61
68
 
62
- /** 根据预报流水号查询完整详情。 */
69
+ /** 调用 TAM 140101002,根据预报流水号查询编辑页或详情页所需的完整记录。 */
63
70
  export function getRmbPositionForecastDetail(
64
71
  params: { predRefNo: string },
65
72
  ) {