@pnt-team/pnt-component-frontend 0.0.138 → 0.0.139
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/lib/cjs/api/cos.d.ts +103 -0
- package/lib/cjs/api/cos.js +146 -0
- package/lib/cjs/api/index.d.ts +23 -0
- package/lib/cjs/api/index.js +38 -0
- package/lib/cjs/api/types/index.d.ts +117 -0
- package/lib/cjs/api/types/index.js +17 -0
- package/lib/cjs/assets/css/tdesign-theme.css +584 -0
- package/lib/cjs/assets/images/uploadImg.png +0 -0
- package/lib/cjs/assets/svg/inputSearch.svg +4 -0
- package/lib/cjs/assets/svg/inputTip.svg +5 -0
- package/lib/cjs/components/PntRegionSelect/index.scss +1 -1
- package/lib/esm/api/cos.d.ts +103 -0
- package/lib/esm/api/cos.js +189 -0
- package/lib/esm/api/index.d.ts +23 -0
- package/lib/esm/api/index.js +23 -0
- package/lib/esm/api/types/index.d.ts +117 -0
- package/lib/esm/api/types/index.js +1 -0
- package/lib/esm/assets/css/tdesign-theme.css +584 -0
- package/lib/esm/assets/images/uploadImg.png +0 -0
- package/lib/esm/assets/svg/inputSearch.svg +4 -0
- package/lib/esm/assets/svg/inputTip.svg +5 -0
- package/lib/esm/assets/svg/inputWarnTip.svg +5 -0
- package/lib/esm/components/PntBusinessSelect/index.d.ts +192 -0
- package/lib/esm/components/PntBusinessSelect/index.js +513 -0
- package/lib/esm/components/PntBusinessSelect/index.scss +27 -0
- package/lib/esm/components/PntCosUploader/index.d.ts +134 -0
- package/lib/esm/components/PntCosUploader/index.js +300 -0
- package/lib/esm/components/PntGeneralLayout/index.d.ts +114 -0
- package/lib/esm/components/PntGeneralLayout/index.js +103 -0
- package/lib/esm/components/PntGeneralLayout/index.scss +121 -0
- package/lib/esm/components/PntImage/index.d.ts +93 -0
- package/lib/esm/components/PntImage/index.js +200 -0
- package/lib/esm/components/PntImage/index.scss +61 -0
- package/lib/esm/components/PntRegionSelect/ImportDialog.d.ts +29 -0
- package/lib/esm/components/PntRegionSelect/ImportDialog.js +244 -0
- package/lib/esm/components/PntRegionSelect/index.d.ts +39 -0
- package/lib/esm/components/PntRegionSelect/index.js +471 -0
- package/lib/esm/components/PntRegionSelect/index.scss +174 -0
- package/lib/esm/components/PntRegionSelect/types.d.ts +181 -0
- package/lib/esm/components/PntRegionSelect/types.js +77 -0
- package/lib/esm/components/PntSecureBox/index.d.ts +122 -0
- package/lib/esm/components/PntSecureBox/index.js +166 -0
- package/lib/esm/components/PntSecureBox/index.scss +23 -0
- package/lib/esm/components/PntTable/index.d.ts +14 -0
- package/lib/esm/components/PntTable/index.js +404 -0
- package/lib/esm/components/PntTable/index.scss +290 -0
- package/lib/esm/components/PntTable/types.d.ts +250 -0
- package/lib/esm/components/PntTable/types.js +81 -0
- package/lib/esm/components/PntTable/useTableCore.d.ts +38 -0
- package/lib/esm/components/PntTable/useTableCore.js +499 -0
- package/lib/esm/components/PntUpload/index.d.ts +149 -0
- package/lib/esm/components/PntUpload/index.js +276 -0
- package/lib/esm/components/PntUpload/index.scss +101 -0
- package/lib/esm/config.d.ts +97 -0
- package/lib/esm/config.js +60 -0
- package/lib/esm/global.css +2 -0
- package/lib/esm/global.d.ts +39 -0
- package/lib/esm/hooks/useHighSecurity.d.ts +88 -0
- package/lib/esm/hooks/useHighSecurity.js +250 -0
- package/lib/esm/index.d.ts +16 -0
- package/lib/esm/index.js +33 -0
- package/lib/esm/utils/const.d.ts +13 -0
- package/lib/esm/utils/const.js +23 -0
- package/lib/esm/utils/index.d.ts +6 -0
- package/lib/esm/utils/index.js +22 -0
- package/lib/umd/pnt-component-frontend.min.css +1 -0
- package/lib/umd/pnt-component-frontend.min.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// ==========================================
|
|
2
|
+
// COS 临时凭证 - 归一化类型
|
|
3
|
+
// 组件库内部统一为 camelCase;各后端接口的 snake_case / camelCase
|
|
4
|
+
// 在 fetchCosCredential 内部归一化为此结构后返回
|
|
5
|
+
// ==========================================
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 归一化后的 COS 临时凭证
|
|
9
|
+
* @description 各后端接口字段命名不统一(snake/camel),组件库内部统一为 camelCase
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// ==========================================
|
|
13
|
+
// 各后端接口的原始响应类型
|
|
14
|
+
// ==========================================
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 通用 COS 凭证响应(snake_case,pnt-tools / account-business)
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* player-network aiTranslate COS 凭证响应(camelCase)
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* SDK 定制服务上传凭证响应(snake_case,含 file_path / cdn_url)
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
// ==========================================
|
|
29
|
+
// Scene 路由表
|
|
30
|
+
// ==========================================
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 内置业务场景
|
|
34
|
+
* @description 决定走哪个后端凭证接口
|
|
35
|
+
* - default: 通用上传(GET /v2/business/operation/get-cos-temp-token)
|
|
36
|
+
* - default_download: 通用下载/上传(POST /v2/business/operation/get-download-cos-temp-token,snake_case)
|
|
37
|
+
* - sdk_customize: SDK 定制服务(POST /internal/sdk_customize/upload_token,含 cdn_url/file_path)
|
|
38
|
+
* - ai_translate: AI 翻译服务(POST /business/aiTranslate/import/cosToken,camelCase)
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 凭证获取参数
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 自定义原始响应归一化函数
|
|
47
|
+
* @description 后端返回字段不符合内置 scene 约定时使用;入参为后端响应的原始 data
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
// ==========================================
|
|
51
|
+
// 字段归一化层
|
|
52
|
+
// ==========================================
|
|
53
|
+
|
|
54
|
+
const normalizeSnake = raw => ({
|
|
55
|
+
bucket: raw.bucket,
|
|
56
|
+
region: raw.region,
|
|
57
|
+
secretId: raw.secret_id,
|
|
58
|
+
secretKey: raw.secret_key,
|
|
59
|
+
sessionToken: raw.token,
|
|
60
|
+
startTime: raw.start_time,
|
|
61
|
+
expiredTime: raw.expired_time,
|
|
62
|
+
path: raw.path
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* snake_case 凭证归一化(导出供 getCredential 自定义逃生舱复用)
|
|
67
|
+
* @description 消费方自行请求凭证(如项目 http 实例为非标准签名)时,
|
|
68
|
+
* 可在 getCredential 内调用本函数把后端 data 转为组件库统一结构
|
|
69
|
+
*/
|
|
70
|
+
export const normalizeSnakeCredential = raw => normalizeSnake(raw);
|
|
71
|
+
const normalizeAiTranslate = raw => ({
|
|
72
|
+
bucket: raw.bucket || '',
|
|
73
|
+
region: raw.region || '',
|
|
74
|
+
secretId: raw.secretId || '',
|
|
75
|
+
secretKey: raw.secretKey || '',
|
|
76
|
+
sessionToken: raw.token || '',
|
|
77
|
+
startTime: raw.startTime ?? 0,
|
|
78
|
+
expiredTime: raw.expiredTime ?? 0,
|
|
79
|
+
// aiTranslate path 类型为 Record<string, unknown>,这里收窄为 string
|
|
80
|
+
path: raw.path ? Object.fromEntries(Object.entries(raw.path).filter(v => typeof v[1] === 'string')) : undefined
|
|
81
|
+
});
|
|
82
|
+
const normalizeSdkCustomize = raw => ({
|
|
83
|
+
bucket: raw.bucket,
|
|
84
|
+
region: raw.region,
|
|
85
|
+
secretId: raw.secret_id,
|
|
86
|
+
secretKey: raw.secret_key,
|
|
87
|
+
sessionToken: raw.token,
|
|
88
|
+
startTime: raw.start_time,
|
|
89
|
+
expiredTime: raw.expired_time,
|
|
90
|
+
filePath: raw.file_path,
|
|
91
|
+
cosHost: raw.cdn_url
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// ==========================================
|
|
95
|
+
// 凭证获取接口封装(按 scene 路由)
|
|
96
|
+
// ==========================================
|
|
97
|
+
|
|
98
|
+
const DEFAULT_AUDIENCE = '/player-network';
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 统一校验后端响应并执行归一化
|
|
102
|
+
*/
|
|
103
|
+
const resolveCredential = (res, normalize, customNormalize) => {
|
|
104
|
+
// 兼容两套成功标识:新接口 code===0,老接口(账号域 get-cos-temp-token 等)ret===0
|
|
105
|
+
const success = res.code === 0 || res.ret === 0;
|
|
106
|
+
if (!success || res.data === null || typeof res.data === 'undefined') {
|
|
107
|
+
throw new Error(`[PntCosUploader] 获取 COS 凭证失败: code=${res.code ?? 'null'} ret=${res.ret ?? 'null'} ${res.msg || ''}`);
|
|
108
|
+
}
|
|
109
|
+
return customNormalize ? customNormalize(res.data) : normalize(res.data);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 获取 COS 临时凭证(按 scene 路由到不同后端接口,内部归一化字段命名)
|
|
114
|
+
* @param http 由 PntProvider 注入的 axios 实例
|
|
115
|
+
* @param params 凭证获取参数
|
|
116
|
+
* @param customNormalize 可选的原始响应自定义归一化
|
|
117
|
+
*/
|
|
118
|
+
export const fetchCosCredential = async (http, params, customNormalize) => {
|
|
119
|
+
const {
|
|
120
|
+
scene,
|
|
121
|
+
context = {},
|
|
122
|
+
contentLength,
|
|
123
|
+
fileUrl,
|
|
124
|
+
audience = DEFAULT_AUDIENCE
|
|
125
|
+
} = params;
|
|
126
|
+
switch (scene) {
|
|
127
|
+
case 'default':
|
|
128
|
+
{
|
|
129
|
+
// 通用上传:GET /v2/business/operation/get-cos-temp-token
|
|
130
|
+
// pnt-tools CosApi 约定:gameId 走请求头 x-service-type
|
|
131
|
+
const {
|
|
132
|
+
gameId,
|
|
133
|
+
...restContext
|
|
134
|
+
} = context;
|
|
135
|
+
// 第二泛型 R 显式指定为解包后的 body(约定消费方 http 响应拦截器返回 response.data)
|
|
136
|
+
const res = await http.get(`/v2/business/operation/get-cos-temp-token?audience=${audience}`, {
|
|
137
|
+
params: {
|
|
138
|
+
content_length: contentLength,
|
|
139
|
+
...restContext
|
|
140
|
+
},
|
|
141
|
+
headers: gameId !== undefined ? {
|
|
142
|
+
'x-service-type': String(gameId)
|
|
143
|
+
} : undefined
|
|
144
|
+
});
|
|
145
|
+
return resolveCredential(res, normalizeSnake, customNormalize);
|
|
146
|
+
}
|
|
147
|
+
case 'default_download':
|
|
148
|
+
{
|
|
149
|
+
// 通用下载/上传:POST /v2/business/operation/get-download-cos-temp-token
|
|
150
|
+
const {
|
|
151
|
+
gameId,
|
|
152
|
+
...restContext
|
|
153
|
+
} = context;
|
|
154
|
+
const res = await http.post(`/v2/business/operation/get-download-cos-temp-token?audience=${audience}`, {
|
|
155
|
+
file_url: fileUrl,
|
|
156
|
+
content_length: contentLength,
|
|
157
|
+
...restContext
|
|
158
|
+
}, {
|
|
159
|
+
headers: gameId !== undefined ? {
|
|
160
|
+
'x-service-type': String(gameId)
|
|
161
|
+
} : undefined
|
|
162
|
+
});
|
|
163
|
+
return resolveCredential(res, normalizeSnake, customNormalize);
|
|
164
|
+
}
|
|
165
|
+
case 'sdk_customize':
|
|
166
|
+
{
|
|
167
|
+
// SDK 定制服务:POST /internal/sdk_customize/upload_token
|
|
168
|
+
// 原项目调用不带 audience(http 拦截器默认补 /player-network)
|
|
169
|
+
const res = await http.post('/internal/sdk_customize/upload_token', {
|
|
170
|
+
content_length: contentLength,
|
|
171
|
+
...context
|
|
172
|
+
});
|
|
173
|
+
return resolveCredential(res, normalizeSdkCustomize, customNormalize);
|
|
174
|
+
}
|
|
175
|
+
case 'ai_translate':
|
|
176
|
+
{
|
|
177
|
+
// AI 翻译服务:POST /business/aiTranslate/import/cosToken(camelCase)
|
|
178
|
+
const res = await http.post('/business/aiTranslate/import/cosToken', {
|
|
179
|
+
contentLength,
|
|
180
|
+
...context
|
|
181
|
+
});
|
|
182
|
+
return resolveCredential(res, normalizeAiTranslate, customNormalize);
|
|
183
|
+
}
|
|
184
|
+
default:
|
|
185
|
+
{
|
|
186
|
+
throw new Error(`[PntCosUploader] 未支持的 scene: ${scene};请通过 getCredential 自定义`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { commonEesType, PntHttpLike } from "../config";
|
|
2
|
+
import { BusinessGameInfoHighSecurityDecryptBody, BusinessGameInfoHighSecurityDecryptResponse, BusinessRegionQueryBody, BusinessRegionQueryResponse, BusinessSelectListBody, BusinessSelectListResponse } from './types/index';
|
|
3
|
+
/**
|
|
4
|
+
* 业务下拉选择列表
|
|
5
|
+
* @param http 由 PntProvider 注入的 axios 实例
|
|
6
|
+
* @param data 请求参数
|
|
7
|
+
*/
|
|
8
|
+
export declare const businessSelectList: (axios: PntHttpLike, data: BusinessSelectListBody) => Promise<commonEesType<BusinessSelectListResponse>>;
|
|
9
|
+
/**
|
|
10
|
+
* 高敏信息解锁
|
|
11
|
+
* @param http 由 PntProvider 注入的 axios 实例
|
|
12
|
+
* @param data 请求参数
|
|
13
|
+
* @param url 自定义接口 URL(可选,覆盖默认值)
|
|
14
|
+
*/
|
|
15
|
+
export declare const businessGameInfoHighSecurityDecrypt: (axios: PntHttpLike, data: BusinessGameInfoHighSecurityDecryptBody, url?: string) => Promise<commonEesType<BusinessGameInfoHighSecurityDecryptResponse>>;
|
|
16
|
+
/**
|
|
17
|
+
* 业务区域查询
|
|
18
|
+
* @param axios 由 PntProvider 注入的 axios 实例
|
|
19
|
+
* @param data 请求参数;不传时不带任何参数,返回全部国家区域(251 个);
|
|
20
|
+
* 传 game_id 时返回该业务最终生效的区域
|
|
21
|
+
* @param url 自定义接口 URL(可选,覆盖默认值)
|
|
22
|
+
*/
|
|
23
|
+
export declare const businessRegionQuery: (axios: PntHttpLike, data?: BusinessRegionQueryBody, url?: string) => Promise<commonEesType<BusinessRegionQueryResponse>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 业务下拉选择列表
|
|
3
|
+
* @param http 由 PntProvider 注入的 axios 实例
|
|
4
|
+
* @param data 请求参数
|
|
5
|
+
*/
|
|
6
|
+
export const businessSelectList = (axios, data) => axios.post('/business/select/list?audience=/player-network', data);
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 高敏信息解锁
|
|
10
|
+
* @param http 由 PntProvider 注入的 axios 实例
|
|
11
|
+
* @param data 请求参数
|
|
12
|
+
* @param url 自定义接口 URL(可选,覆盖默认值)
|
|
13
|
+
*/
|
|
14
|
+
export const businessGameInfoHighSecurityDecrypt = (axios, data, url) => axios.post(url || '/v3/business/game_info/high-security-decrypt?audience=/laas-pnt', data);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 业务区域查询
|
|
18
|
+
* @param axios 由 PntProvider 注入的 axios 实例
|
|
19
|
+
* @param data 请求参数;不传时不带任何参数,返回全部国家区域(251 个);
|
|
20
|
+
* 传 game_id 时返回该业务最终生效的区域
|
|
21
|
+
* @param url 自定义接口 URL(可选,覆盖默认值)
|
|
22
|
+
*/
|
|
23
|
+
export const businessRegionQuery = (axios, data, url) => axios.post(url || '/v5/business/region/query?audience=/laas-pnt', data);
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本文件由 yapi-gen 自动生成,请勿手动修改
|
|
3
|
+
* 生成时间: 2026/9/10 11:19:01
|
|
4
|
+
* 数据来源: https://api-pnt.intlgame.com
|
|
5
|
+
*/
|
|
6
|
+
export interface BusinessSelectListBody {
|
|
7
|
+
/** 业务类型列表,仅 game_list、game_list_option 场景支持:1-正式业务,2-测试业务 */
|
|
8
|
+
business_types?: number[];
|
|
9
|
+
/** 云控类型列表,仅 game_list、game_list_option 场景支持:1-INTL Project,2-LI PASS Project */
|
|
10
|
+
cloudCtrlType?: number[];
|
|
11
|
+
/** 集群类型列表,仅 game_list、game_list_option 场景支持:1-公有,2-私有,3-未配置 */
|
|
12
|
+
clusterTypes?: number[];
|
|
13
|
+
/** 需要返回的字段;未传时使用场景默认字段,仅支持服务端白名单字段 */
|
|
14
|
+
fields?: string[];
|
|
15
|
+
/** 业务ID列表,仅 game_list、game_list_option 场景支持 */
|
|
16
|
+
game_ids?: string[];
|
|
17
|
+
/** 业务ID、中文名称或英文名称的模糊匹配关键字 */
|
|
18
|
+
keyword?: string;
|
|
19
|
+
/** 登录器类型列表,仅 game_list、game_list_option 场景支持 */
|
|
20
|
+
lander_type?: number[];
|
|
21
|
+
/** LI PASS 开关列表,仅 game_list、game_list_option 场景支持:1-开启,2-未开启 */
|
|
22
|
+
lipSwitches?: number[];
|
|
23
|
+
/** 当前页 */
|
|
24
|
+
pageNum?: number;
|
|
25
|
+
/** 每页条数 */
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
/** 平台列表,仅 game_list、game_list_option 场景支持 */
|
|
28
|
+
platform?: string[];
|
|
29
|
+
/** 下拉场景:game_list-业务列表,game_list_option-业务选择,compliance_age-合规年龄,custom_region-自定义合规地域,sdk-SDK定制 */
|
|
30
|
+
scene?: string;
|
|
31
|
+
/** 业务状态列表,仅 game_list、game_list_option 场景支持:3-线上运营,4-接入中,5-中途结项,6-已下线 */
|
|
32
|
+
statuses?: number[];
|
|
33
|
+
/** 总条数 */
|
|
34
|
+
total?: number;
|
|
35
|
+
/** 总页数 */
|
|
36
|
+
totalPage?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface BusinessSelectListResponseListItem {
|
|
39
|
+
/** 业务接入类型:1-纯SDK,2-LI PASS,3-工作室品牌账号 */
|
|
40
|
+
business_access_method?: number;
|
|
41
|
+
/** 业务类型:1-正式业务,2-测试业务 */
|
|
42
|
+
business_type?: number;
|
|
43
|
+
/** 当前场景是否可创建;仅 compliance_age、custom_region 场景有意义 */
|
|
44
|
+
creatable?: boolean;
|
|
45
|
+
/** 当前业务是否禁用合规年龄认证;仅 compliance_age 场景有意义 */
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/** 业务ID */
|
|
48
|
+
game_id?: string;
|
|
49
|
+
/** 业务接口开发负责人;SDK场景可返回 */
|
|
50
|
+
interface_developer_name?: string;
|
|
51
|
+
/** 业务中文名称 */
|
|
52
|
+
name?: string;
|
|
53
|
+
/** 业务英文名称 */
|
|
54
|
+
name_en?: string;
|
|
55
|
+
/** SDK定制版本通知人;SDK场景可返回 */
|
|
56
|
+
sdk_customize_notifier?: string;
|
|
57
|
+
/** 业务状态:3-线上运营,4-接入中,5-中途结项,6-已下线 */
|
|
58
|
+
state?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface BusinessSelectListResponsePagination {
|
|
61
|
+
/** 当前页 */
|
|
62
|
+
pageNum?: number;
|
|
63
|
+
/** 每页条数 */
|
|
64
|
+
pageSize?: number;
|
|
65
|
+
/** 总条数 */
|
|
66
|
+
total?: number;
|
|
67
|
+
/** 总页数 */
|
|
68
|
+
totalPage?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface BusinessSelectListResponse {
|
|
71
|
+
/** 业务列表;字段由请求 Fields 或场景默认字段决定 */
|
|
72
|
+
list?: BusinessSelectListResponseListItem[];
|
|
73
|
+
/** 分页信息;未分页时统计字段均为零值 */
|
|
74
|
+
pagination?: BusinessSelectListResponsePagination;
|
|
75
|
+
}
|
|
76
|
+
export interface BusinessGameInfoHighSecurityDecryptBodyParamItem {
|
|
77
|
+
/** 参数字段 */
|
|
78
|
+
key: string;
|
|
79
|
+
/** 参数密文 */
|
|
80
|
+
value: string;
|
|
81
|
+
}
|
|
82
|
+
export interface BusinessGameInfoHighSecurityDecryptBody {
|
|
83
|
+
param: BusinessGameInfoHighSecurityDecryptBodyParamItem[];
|
|
84
|
+
/** 页面ID */
|
|
85
|
+
page_id: string;
|
|
86
|
+
/** 请求环境 */
|
|
87
|
+
env: number;
|
|
88
|
+
game_id: number;
|
|
89
|
+
}
|
|
90
|
+
export type BusinessGameInfoHighSecurityDecryptResponse = Record<string, unknown>[];
|
|
91
|
+
export interface BusinessRegionQueryBody {
|
|
92
|
+
/** GameID 目标业务 ID;取值 > 0 时返回该业务实际生效的国家区域;
|
|
93
|
+
取值 <= 0 或未传时返回国家区域全量字典;与当前登录业务是否一致不做强校验(跨业务查询合法)。 */
|
|
94
|
+
game_id?: number;
|
|
95
|
+
}
|
|
96
|
+
export interface BusinessRegionQueryResponseRegionListItem {
|
|
97
|
+
/** ID 区域主键 ID。 */
|
|
98
|
+
id?: number;
|
|
99
|
+
/** IsEEARegion 是否 EEA 区域,取值:0=否,1=是。 */
|
|
100
|
+
is_eea_region?: number;
|
|
101
|
+
/** IsSecretRegion 是否特殊合规区域,取值:1=默认区域,2=特殊区域。 */
|
|
102
|
+
is_secret_region?: number;
|
|
103
|
+
/** RegionA2Code 二位字母码。 */
|
|
104
|
+
region_a2_code?: string;
|
|
105
|
+
/** RegionA3Code 三位字母码。 */
|
|
106
|
+
region_a3_code?: string;
|
|
107
|
+
/** RegionCH 中文名称。 */
|
|
108
|
+
region_ch?: string;
|
|
109
|
+
/** RegionCode 数字码,按数据库原始值返回,不做前导零转换。 */
|
|
110
|
+
region_code?: string;
|
|
111
|
+
/** RegionEN 英文名称。 */
|
|
112
|
+
region_en?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface BusinessRegionQueryResponse {
|
|
115
|
+
/** RegionList 国家区域列表:未携带 game_id 时为全量字典,携带 game_id 时为该业务实际生效区域;均按 id 升序。 */
|
|
116
|
+
region_list?: BusinessRegionQueryResponseRegionListItem[];
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|