web-core-tcm 0.0.86 → 0.0.87

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.
@@ -26,7 +26,7 @@ export declare class AlovaPayment extends Payment {
26
26
  putOutboundStatus(status: number): Promise<this>;
27
27
  putPrescriptionPaymentStatus(status: number): Promise<this>;
28
28
  get(): Promise<this>;
29
- put(): Promise<this>;
29
+ put(id: string): Promise<this>;
30
30
  static query(page: number, pageSize: number, paymentState: PaymentState): Promise<{
31
31
  data: AlovaPayment[];
32
32
  total: number;
@@ -1,5 +1,5 @@
1
- import { Check as m, Payment as S } from "../../check.js";
2
- class d extends m {
1
+ import { Check as d, Payment as S } from "../../check.js";
2
+ class l extends d {
3
3
  async get() {
4
4
  return this.of(
5
5
  await checkApi.checkStateRestful.getCheckState({
@@ -7,7 +7,7 @@ class d extends m {
7
7
  id: this.id
8
8
  },
9
9
  async transform(t) {
10
- return new d().of(t);
10
+ return new l().of(t);
11
11
  }
12
12
  }).send()
13
13
  );
@@ -36,24 +36,24 @@ class d extends m {
36
36
  }
37
37
  }).send(), Promise.resolve();
38
38
  }
39
- static query(t, r, i, a, c, n, u, h, e, p) {
39
+ static query(t, i, c, a, r, n, u, h, e, p) {
40
40
  return checkApi.checkStateRestful.queryCheckState({
41
41
  params: {
42
42
  ...a && { patientId: a },
43
- ...c && { doctorId: c },
43
+ ...r && { doctorId: r },
44
44
  ...n && { startTime: n },
45
45
  ...u && { endTime: u },
46
46
  ...h && { patientName: h },
47
47
  ...e && { patientGender: e },
48
48
  ...p && { patientPhoneNumber: p },
49
- pageSize: r,
49
+ pageSize: i,
50
50
  page: t,
51
- sort: i
51
+ sort: c
52
52
  },
53
53
  async transform(s) {
54
54
  return {
55
55
  data: await Promise.all(
56
- s.content.map((l) => new d().of(l))
56
+ s.content.map((m) => new l().of(m))
57
57
  ),
58
58
  total: s.totalElements,
59
59
  page: s.number,
@@ -64,16 +64,16 @@ class d extends m {
64
64
  }
65
65
  }).send();
66
66
  }
67
- static queryPayment(t, r, i, a, c, n, u, h) {
67
+ static queryPayment(t, i, c, a, r, n, u, h) {
68
68
  return checkApi.checkStateRestful.queryPaymentState({
69
69
  data: {
70
- ...i && { doctorId: i },
70
+ ...c && { doctorId: c },
71
71
  ...a && { patientId: a },
72
- ...c && { patientName: c },
72
+ ...r && { patientName: r },
73
73
  ...n && { patientPhone: n },
74
74
  ...u && { prescriptionPaymentStatus: u },
75
75
  ...h && { outboundStatus: h },
76
- pageSize: r,
76
+ pageSize: i,
77
77
  page: t
78
78
  },
79
79
  async transform(e) {
@@ -124,23 +124,23 @@ class o extends S {
124
124
  }).send()
125
125
  );
126
126
  }
127
- async put() {
127
+ async put(t) {
128
128
  return this.of(
129
129
  await checkApi.paymentStateRestful.putPaymentState({
130
130
  pathParams: {
131
- id: this.id
131
+ id: t
132
132
  },
133
133
  data: this.state()
134
134
  }).send(!0)
135
135
  );
136
136
  }
137
- static query(t, r, i) {
137
+ static query(t, i, c) {
138
138
  return checkApi.paymentStateRestful.queryPaymentStates({
139
139
  params: {
140
- pageSize: r,
140
+ pageSize: i,
141
141
  page: t
142
142
  },
143
- data: i,
143
+ data: c,
144
144
  async transform(a) {
145
145
  return {
146
146
  data: await Promise.all(
@@ -157,6 +157,6 @@ class o extends S {
157
157
  }
158
158
  }
159
159
  export {
160
- d as AlovaCheck,
160
+ l as AlovaCheck,
161
161
  o as AlovaPayment
162
162
  };
@@ -49,6 +49,6 @@ export declare abstract class Payment extends NetworkObject {
49
49
  abstract putOutboundStatus(status: number): Promise<this>;
50
50
  abstract putPrescriptionPaymentStatus(status: number): Promise<this>;
51
51
  abstract get(): Promise<this>;
52
- abstract put(): Promise<this>;
52
+ abstract put(id: string): Promise<this>;
53
53
  static query(page: number, pageSize: number, paymentState: PaymentState): Promise<Page<Payment>>;
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",