@daocloud-proto/leopard 0.1.0-dev24 → 0.1.0-dev25

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": "@daocloud-proto/leopard",
3
- "version":"0.1.0-dev24",
3
+ "version":"0.1.0-dev25",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -35,12 +35,12 @@ export type RechargeResponse = {
35
35
  redirectUrl?: string
36
36
  }
37
37
 
38
- export type InDebtRequest = {
38
+ export type UserStateRequest = {
39
39
  userId?: string
40
40
  }
41
41
 
42
- export type InDebtResponse = {
43
- inDebt?: boolean
42
+ export type UserStateResponse = {
43
+ amount?: string
44
44
  }
45
45
 
46
46
  export class Wallet {
@@ -50,7 +50,7 @@ export class Wallet {
50
50
  static Recharge(req: RechargeRequest, initReq?: fm.InitReq): Promise<RechargeResponse> {
51
51
  return fm.fetchReq<RechargeRequest, RechargeResponse>(`/apis/leopard.io/v1alpha1/wallet/recharge`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
52
52
  }
53
- static InDebt(req: InDebtRequest, initReq?: fm.InitReq): Promise<InDebtResponse> {
54
- return fm.fetchReq<InDebtRequest, InDebtResponse>(`/v1alpha1.wallet.Wallet/InDebt`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
53
+ static UserState(req: UserStateRequest, initReq?: fm.InitReq): Promise<UserStateResponse> {
54
+ return fm.fetchReq<UserStateRequest, UserStateResponse>(`/v1alpha1.wallet.Wallet/UserState`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
55
55
  }
56
56
  }