更改相关接口

This commit is contained in:
zhx 2026-07-02 11:45:48 +08:00
parent 91a7c784c9
commit 8fe2efb344
5 changed files with 2787 additions and 2483 deletions

View File

@ -4486,6 +4486,99 @@
"x-permissions": ["overview:view"]
}
},
"/statistics/overview": {
"get": {
"operationId": "statisticsOverview",
"x-permission": "overview:view",
"parameters": [
{ "in": "query", "name": "app_code", "schema": { "type": "string" } },
{ "in": "query", "name": "stat_tz", "schema": { "type": "string" } },
{ "in": "query", "name": "start_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "end_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "series_start_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "series_end_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "region_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "country_id", "schema": { "type": "integer", "format": "int64" } }
],
"responses": {
"200": {
"$ref": "#/components/responses/StatisticsObjectResponse"
}
},
"x-permissions": ["overview:view"]
}
},
"/statistics/platform-grants/records": {
"get": {
"operationId": "listPlatformGrantRecords",
"x-permission": "overview:view",
"parameters": [
{ "in": "query", "name": "app_code", "schema": { "type": "string" } },
{ "in": "query", "name": "stat_tz", "schema": { "type": "string" } },
{ "in": "query", "name": "start_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "end_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "stat_day", "schema": { "type": "string" } },
{ "in": "query", "name": "region_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "country_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "user_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "source", "schema": { "type": "string" } },
{ "$ref": "#/components/parameters/Page" },
{ "$ref": "#/components/parameters/PageSize" }
],
"responses": {
"200": {
"$ref": "#/components/responses/StatisticsObjectResponse"
}
},
"x-permissions": ["overview:view"]
}
},
"/statistics/platform-grants/users": {
"get": {
"operationId": "listPlatformGrantUsers",
"x-permission": "overview:view",
"parameters": [
{ "in": "query", "name": "app_code", "schema": { "type": "string" } },
{ "in": "query", "name": "stat_tz", "schema": { "type": "string" } },
{ "in": "query", "name": "start_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "end_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "stat_day", "schema": { "type": "string" } },
{ "in": "query", "name": "region_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "country_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "user_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "source", "schema": { "type": "string" } },
{ "$ref": "#/components/parameters/Page" },
{ "$ref": "#/components/parameters/PageSize" }
],
"responses": {
"200": {
"$ref": "#/components/responses/StatisticsObjectResponse"
}
},
"x-permissions": ["overview:view"]
}
},
"/statistics/self-games/overview": {
"get": {
"operationId": "selfGameStatisticsOverview",
"x-permission": "overview:view",
"parameters": [
{ "in": "query", "name": "app_code", "schema": { "type": "string" } },
{ "in": "query", "name": "stat_tz", "schema": { "type": "string" } },
{ "in": "query", "name": "start_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "end_ms", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "region_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "country_id", "schema": { "type": "integer", "format": "int64" } },
{ "in": "query", "name": "game_id", "schema": { "type": "string" } }
],
"responses": {
"200": {
"$ref": "#/components/responses/StatisticsObjectResponse"
}
},
"x-permissions": ["overview:view"]
}
},
"/logs/login": {
"get": {
"operationId": "listLoginLogs",
@ -5846,6 +5939,16 @@
}
}
},
"StatisticsObjectResponse": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResponseObject"
}
}
}
},
"TeamListResponse": {
"description": "OK",
"content": {
@ -6170,6 +6273,22 @@
"ApiResponseEmpty": {
"$ref": "#/components/schemas/Envelope"
},
"ApiResponseObject": {
"allOf": [
{
"$ref": "#/components/schemas/Envelope"
},
{
"type": "object",
"properties": {
"data": {
"type": "object",
"additionalProperties": true
}
}
}
]
},
"ApiResponseFinanceApplication": {
"allOf": [
{

View File

@ -54,18 +54,18 @@ export async function fetchStatisticsOverview({ appCode, countryId, endMs, regio
query.region_id = String(regionId);
}
return fetchDatabiData("/v1/statistics/overview", { appCode, query });
return fetchDatabiData(apiEndpointPath(API_OPERATIONS.statisticsOverview), { appCode, query });
}
export async function fetchPlatformGrantUsers({ appCode, countryId, endMs, page, pageSize, regionId, startMs, statDay, statTz }) {
return fetchDatabiData("/v1/statistics/platform-grants/users", {
return fetchDatabiData(apiEndpointPath(API_OPERATIONS.listPlatformGrantUsers), {
appCode,
query: platformGrantQuery({ appCode, countryId, endMs, page, pageSize, regionId, startMs, statDay, statTz })
});
}
export async function fetchPlatformGrantRecords({ appCode, countryId, endMs, page, pageSize, regionId, source, startMs, statDay, statTz, userId }) {
return fetchDatabiData("/v1/statistics/platform-grants/records", {
return fetchDatabiData(apiEndpointPath(API_OPERATIONS.listPlatformGrantRecords), {
appCode,
query: platformGrantQuery({ appCode, countryId, endMs, page, pageSize, regionId, source, startMs, statDay, statTz, userId })
});
@ -92,7 +92,7 @@ export async function fetchSelfGameStatisticsOverview({ appCode, countryId, endM
query.game_id = String(gameId);
}
return fetchDatabiData("/v1/statistics/self-games/overview", { appCode, query });
return fetchDatabiData(apiEndpointPath(API_OPERATIONS.selfGameStatisticsOverview), { appCode, query });
}
function platformGrantQuery({ appCode, countryId, endMs, page, pageSize, regionId, source, startMs, statDay, statTz, userId }) {

View File

@ -63,7 +63,6 @@ export const socialBiSections = [
{
cards: [
{ delta: 8.4, key: "recharge", label: "总充值 ($)", type: "money" },
{ delta: 5.1, key: "turnover", label: "总流水 ($)", type: "money" },
{ delta: -2.6, key: "newUsers", label: "总新增人数", type: "number" },
{ delta: 3.8, key: "dau", label: "总日活 (DAU)", type: "number" },
{ delta: 1.7, key: "arppu", label: "综合 ARPPU ($)", type: "money" }
@ -286,7 +285,6 @@ export const socialBiSections = [
{
cards: [
{ delta: 9.2, key: "recharge", label: "区域总充值 ($)", type: "money" },
{ delta: 6.6, key: "turnover", label: "区域总流水 ($)", type: "money" },
{ delta: -1.1, key: "newUsers", label: "区域总新增", type: "number" },
{ delta: 2.4, key: "arppu", label: "区域综合 ARPPU ($)", type: "money" }
],

File diff suppressed because it is too large Load Diff

View File

@ -3012,6 +3012,70 @@ export interface paths {
patch?: never;
trace?: never;
};
"/statistics/overview": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["statisticsOverview"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/statistics/platform-grants/records": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["listPlatformGrantRecords"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/statistics/platform-grants/users": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["listPlatformGrantUsers"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/statistics/self-games/overview": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["selfGameStatisticsOverview"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/logs/login": {
parameters: {
query?: never;
@ -3633,6 +3697,11 @@ export interface components {
data?: components["schemas"]["DashboardOverview"];
};
ApiResponseEmpty: components["schemas"]["Envelope"];
ApiResponseObject: components["schemas"]["Envelope"] & {
data?: {
[key: string]: unknown;
};
};
ApiResponseFinanceApplication: components["schemas"]["Envelope"] & {
data?: components["schemas"]["FinanceApplication"];
};
@ -3901,13 +3970,7 @@ export interface components {
appCode: string;
appName?: string;
/** @enum {string} */
operation:
| "user_coin_credit"
| "user_coin_debit"
| "user_wallet_debit"
| "user_wallet_credit"
| "coin_seller_coin_credit"
| "coin_seller_coin_debit";
operation: "user_coin_credit" | "user_coin_debit" | "user_wallet_debit" | "user_wallet_credit" | "coin_seller_coin_credit" | "coin_seller_coin_debit";
walletIdentity?: string;
targetUserId: string;
coinAmount: number;
@ -3950,13 +4013,7 @@ export interface components {
FinanceApplicationInput: {
appCode: string;
/** @enum {string} */
operation:
| "user_coin_credit"
| "user_coin_debit"
| "user_wallet_debit"
| "user_wallet_credit"
| "coin_seller_coin_credit"
| "coin_seller_coin_debit";
operation: "user_coin_credit" | "user_coin_debit" | "user_wallet_debit" | "user_wallet_credit" | "coin_seller_coin_credit" | "coin_seller_coin_debit";
/** @enum {string} */
walletIdentity?: "host" | "agency" | "bd";
targetUserId: string;
@ -4188,6 +4245,15 @@ export interface components {
};
};
/** @description OK */
StatisticsObjectResponse: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ApiResponseObject"];
};
};
/** @description OK */
TeamListResponse: {
headers: {
[name: string]: unknown;
@ -7842,6 +7908,95 @@ export interface operations {
200: components["responses"]["DashboardOverviewResponse"];
};
};
statisticsOverview: {
parameters: {
query?: {
app_code?: string;
stat_tz?: string;
start_ms?: number;
end_ms?: number;
series_start_ms?: number;
series_end_ms?: number;
region_id?: number;
country_id?: number;
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: components["responses"]["StatisticsObjectResponse"];
};
};
listPlatformGrantRecords: {
parameters: {
query?: {
app_code?: string;
stat_tz?: string;
start_ms?: number;
end_ms?: number;
stat_day?: string;
region_id?: number;
country_id?: number;
user_id?: number;
source?: string;
page?: components["parameters"]["Page"];
page_size?: components["parameters"]["PageSize"];
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: components["responses"]["StatisticsObjectResponse"];
};
};
listPlatformGrantUsers: {
parameters: {
query?: {
app_code?: string;
stat_tz?: string;
start_ms?: number;
end_ms?: number;
stat_day?: string;
region_id?: number;
country_id?: number;
user_id?: number;
source?: string;
page?: components["parameters"]["Page"];
page_size?: components["parameters"]["PageSize"];
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: components["responses"]["StatisticsObjectResponse"];
};
};
selfGameStatisticsOverview: {
parameters: {
query?: {
app_code?: string;
stat_tz?: string;
start_ms?: number;
end_ms?: number;
region_id?: number;
country_id?: number;
game_id?: string;
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: components["responses"]["StatisticsObjectResponse"];
};
};
listLoginLogs: {
parameters: {
query?: {