♻️ refactor(api): update endpoints to include '/api' prefix and add new types for IP location and withdrawal logs
- Updated all user and common service endpoints to include '/api' prefix for consistency. - Added new API types for querying IP location and withdrawal logs. - Introduced commission withdrawal functionality in user service. - Enhanced user service typings to include rules and withdrawal log structures.
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
const baseConfig = {
|
||||
requestLibPath: "import request from '@workspace/ui/lib/request';",
|
||||
serversPath: "./src/services",
|
||||
apiPrefix: "'/api'",
|
||||
};
|
||||
|
||||
const config = [
|
||||
{
|
||||
requestLibPath: "import request from '@workspace/ui/lib/request';",
|
||||
...baseConfig,
|
||||
schemaPath:
|
||||
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/common.json",
|
||||
serversPath: "./src/services",
|
||||
projectName: "common",
|
||||
},
|
||||
{
|
||||
requestLibPath: "import request from '@workspace/ui/lib/request';",
|
||||
...baseConfig,
|
||||
schemaPath:
|
||||
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/user.json",
|
||||
serversPath: "./src/services",
|
||||
projectName: "user",
|
||||
},
|
||||
{
|
||||
requestLibPath: "import request from '@workspace/ui/lib/request';",
|
||||
...baseConfig,
|
||||
schemaPath:
|
||||
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/admin.json",
|
||||
serversPath: "./src/services",
|
||||
projectName: "admin",
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user