-
-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add subscription and wechat pay (#904)
- Loading branch information
Showing
27 changed files
with
758 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// @ts-ignore | ||
/* eslint-disable */ | ||
/////////////////////////////////////////////////////////////////////// | ||
// // | ||
// this file is autogenerated by service-generate // | ||
// do not edit this file manually // | ||
// // | ||
/////////////////////////////////////////////////////////////////////// | ||
/// <reference path = "api-auto.d.ts" /> | ||
import request from "@/utils/request"; | ||
|
||
/** | ||
* Get account info | ||
*/ | ||
export async function AccountControllerFindOne( | ||
params: Paths.AccountControllerFindOne.BodyParameters | any, | ||
): Promise<Paths.AccountControllerFindOne.Responses> { | ||
// /v1/accounts | ||
let _params: { [key: string]: any } = { | ||
appid: localStorage.getItem("app"), | ||
...params, | ||
}; | ||
return request(`/v1/accounts`, { | ||
method: "GET", | ||
params: params, | ||
}); | ||
} | ||
|
||
/** | ||
* Get charge order | ||
*/ | ||
export async function AccountControllerGetChargeOrder( | ||
params: Paths.AccountControllerGetChargeOrder.BodyParameters | any, | ||
): Promise<Paths.AccountControllerGetChargeOrder.Responses> { | ||
// /v1/accounts/charge-order/{id} | ||
let _params: { [key: string]: any } = { | ||
appid: localStorage.getItem("app"), | ||
...params, | ||
}; | ||
return request(`/v1/accounts/charge-order/${_params.id}`, { | ||
method: "GET", | ||
params: params, | ||
}); | ||
} | ||
|
||
/** | ||
* Create charge order | ||
*/ | ||
export async function AccountControllerCharge( | ||
params: Definitions.CreateChargeOrderDto | any, | ||
): Promise<Paths.AccountControllerCharge.Responses> { | ||
// /v1/accounts/charge-order | ||
let _params: { [key: string]: any } = { | ||
appid: localStorage.getItem("app"), | ||
...params, | ||
}; | ||
return request(`/v1/accounts/charge-order`, { | ||
method: "POST", | ||
data: params, | ||
}); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
export async function AccountControllerWechatNotify( | ||
params: Paths.AccountControllerWechatNotify.BodyParameters | any, | ||
): Promise<Paths.AccountControllerWechatNotify.Responses> { | ||
// /v1/accounts/payment/wechat-notify | ||
let _params: { [key: string]: any } = { | ||
appid: localStorage.getItem("app"), | ||
...params, | ||
}; | ||
return request(`/v1/accounts/payment/wechat-notify`, { | ||
method: "POST", | ||
data: params, | ||
}); | ||
} |
Oops, something went wrong.