forked from Asnxthaony/ys-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
define.proto
161 lines (149 loc) · 3.66 KB
/
define.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
syntax = "proto3";
option go_package = "ys-tools/pkg/types/definepb";
enum AccountType {
ACCOUNT_MIHOYO_GUEST = 0;
ACCOUNT_MIHOYO = 1;
ACCOUNT_XIAOMI = 11;
ACCOUNT_COOLPAD = 12;
ACCOUNT_YYB = 13;
ACCOUNT_BILI = 14;
ACCOUNT_HUAWEI = 15;
ACCOUNT_MEIZU = 16;
ACCOUNT_360 = 17;
ACCOUNT_OPPO = 18;
ACCOUNT_VIVO = 19;
ACCOUNT_UC = 20;
ACCOUNT_WANDOJIA = 21;
ACCOUNT_LENOVO = 22;
ACCOUNT_JINLI = 23;
ACCOUNT_BAIDU = 25;
ACCOUNT_DANGLE = 26;
}
enum ChannelIdType {
CHANNEL_ID_NONE = 0;
CHANNEL_ID_MIHOYO = 1;
CHANNEL_ID_XIAOMI = 11;
CHANNEL_ID_COOLPAD = 12;
CHANNEL_ID_YYB = 13;
CHANNEL_ID_BILI = 14;
CHANNEL_ID_HUAWEI = 15;
CHANNEL_ID_MEIZU = 16;
CHANNEL_ID_360 = 17;
CHANNEL_ID_OPPO = 18;
CHANNEL_ID_VIVO = 19;
CHANNEL_ID_UC = 20;
CHANNEL_ID_LENOVO = 22;
CHANNEL_ID_JINLI = 23;
CHANNEL_ID_BAIDU = 25;
CHANNEL_ID_DANGLE = 26;
}
enum LanguageType {
LANGUAGE_NONE = 0;
LANGUAGE_EN = 1; // 英语
LANGUAGE_SC = 2; // 简体中文
LANGUAGE_TC = 3; // 繁体中文
LANGUAGE_FR = 4; // 法语
LANGUAGE_DE = 5; // 德语
LANGUAGE_ES = 6; // 西班牙语
LANGUAGE_PT = 7; // 葡萄牙语
LANGUAGE_RU = 8; // 俄语
LANGUAGE_JP = 9; // 日语
LANGUAGE_KR = 10; // 韩语
LANGUAGE_TH = 11; // 泰语
LANGUAGE_VN = 12; // 越南语
LANGUAGE_ID = 13; // 印尼语
LANGUAGE_TR = 14; // 土耳其语
LANGUAGE_IT = 15; // 意大利语
}
enum PlatformType {
EDITOR = 0;
IOS = 1;
ANDROID = 2;
PC = 3;
PS4 = 4;
SERVER = 5;
CLOUD_ANDROID = 6;
CLOUD_IOS = 7;
PS5 = 8;
CLOUD_WEB = 9;
CLOUD_TV = 10;
CLOUD_MAC = 11;
CLOUD_PC = 12;
CLOUD_THIRD_PARTY_MOBILE = 13;
CLOUD_THIRD_PARTY_PC = 14;
}
message RegionSimpleInfo {
string name = 1;
string title = 2;
string type = 3;
string dispatch_url = 4;
}
message QueryRegionListHttpRsp {
int32 retcode = 1;
repeated RegionSimpleInfo region_list = 2;
bytes client_secret_key = 5;
bytes client_custom_config_encrypted = 6;
bool enable_login_pc = 7;
}
message ForceUpdateInfo {
string force_update_url = 1;
}
message StopServerInfo {
uint32 stop_begin_time = 1;
uint32 stop_end_time = 2;
string url = 3;
string content_msg = 4;
}
message ResVersionConfig {
uint32 version = 1;
bool relogin = 2;
string md5 = 3;
string release_total_size = 4;
string version_suffix = 5;
string branch = 6;
string next_script_version = 7;
}
message RegionInfo {
string gateserver_ip = 1;
uint32 gateserver_port = 2;
string pay_callback_url = 3;
string area_type = 7;
string resource_url = 8;
string data_url = 9;
string feedback_url = 10;
string bulletin_url = 11;
string resource_url_bak = 12;
string data_url_bak = 13;
uint32 client_data_version = 14;
string handbook_url = 16;
uint32 client_silence_data_version = 18;
string client_data_md5 = 19;
string client_silence_data_md5 = 20;
ResVersionConfig res_version_config = 22;
bytes secret_key = 23;
string official_community_url = 24;
string client_version_suffix = 26;
string client_silence_version_suffix = 27;
bool use_gateserver_domain_name = 28;
string gateserver_domain_name = 29;
string user_center_url = 30;
string account_bind_url = 31;
string cdkey_url = 32;
string privacy_policy_url = 33;
string next_resource_url = 34;
ResVersionConfig next_res_version_config = 35;
string game_biz = 36;
}
message QueryCurrRegionHttpRsp {
int32 retcode = 1;
string msg = 2;
RegionInfo region_info = 3;
bytes client_secret_key = 11;
bytes region_custom_config_encrypted = 12;
bytes client_region_custom_config_encrypted = 13;
string connect_gate_ticket = 14;
oneof detail {
ForceUpdateInfo force_update = 4;
StopServerInfo stop_server = 5;
}
}