| 12345678910111213141516171819202122232425262728293031323334353637 |
- import request from "@/utils/request";
- export interface OpenConfForm {
- notify_url?: string;
- return_url?: string;
- }
- export interface OpenConfResponse {
- id: number;
- app_id: string;
- gateway_url: string;
- notify_url?: string;
- return_url?: string;
- status: string;
- description?: string;
- created_time?: string;
- updated_time?: string;
- }
- const OpenAPI = {
- getOpenConf: () => {
- return request({
- url: "/payment/openapi/conf",
- method: "GET",
- });
- },
- saveOpenConf: (data?: OpenConfForm) => {
- return request({
- url: "/payment/openapi/conf",
- method: "POST",
- data,
- });
- },
- };
- export default OpenAPI;
|