Xlight API用户手册
v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
xlt_struct.h
浏览该文件的文档.
1
8
#pragma once
9
10
#include "
xlt_data_type.h
"
11
12
namespace
x1
{
13
14
#pragma pack(push, 1)
18
typedef
struct
{
19
uint64_t
error_code_type
;
20
uint64_t
error_code
;
21
char
error_msg[
CONST_ERROR_MSG_LEN
];
22
}
xlt_error_info_t
;
23
27
typedef
struct
xlt_user_terminal_info_t
{
28
char
*
local_ip
;
29
char
*
mac_addr
;
30
char
*
hd
;
31
TerminalType
term_type
;
32
char
*
internet_ip
;
33
int32_t
internet_port
;
34
char
*
macos_sno
;
35
char
*
pcn
;
36
char
*
cpu_sn
;
37
char
*
pi
;
38
char
*
vol
;
39
char
*
extern_info
;
40
}
xlt_user_terminal_info_t
;
41
46
typedef
struct
xlt_page_query_reference_t
{
47
uint32_t
sub_table_num
;
48
uint32_t
sub_table_end_points
[16];
49
uint32_t
positions
[16];
50
51
static
xlt_page_query_reference_t
create
() {
52
xlt_page_query_reference_t
ref{};
53
return
ref;
54
}
55
}
xlt_page_query_reference_t
;
56
57
#pragma pack(pop)
58
}
x1
定义
xlt_data_type.h:13
x1::TerminalType
TerminalType
终端类型
定义
xlt_data_type.h:44
x1::CONST_ERROR_MSG_LEN
constexpr uint16_t CONST_ERROR_MSG_LEN
错误信息长度
定义
xlt_data_type.h:16
x1::xlt_page_query_reference_t
struct x1::xlt_page_query_reference_t xlt_page_query_reference_t
查询定位结构体 用于记录每个分表的查询位置,用于分页查询
x1::xlt_user_terminal_info_t
struct x1::xlt_user_terminal_info_t xlt_user_terminal_info_t
申报用户的ip和mac等信息
x1::xlt_error_info_t
错误信息
定义
xlt_struct.h:18
x1::xlt_error_info_t::error_code_type
uint64_t error_code_type
错误类型
定义
xlt_struct.h:19
x1::xlt_error_info_t::error_code
uint64_t error_code
错误代码
定义
xlt_struct.h:20
x1::xlt_page_query_reference_t
查询定位结构体 用于记录每个分表的查询位置,用于分页查询
定义
xlt_struct.h:46
x1::xlt_page_query_reference_t::positions
uint32_t positions[16]
查询位置数组,每个分表对应一个位置,用于分页查询
定义
xlt_struct.h:49
x1::xlt_page_query_reference_t::sub_table_num
uint32_t sub_table_num
分表数量
定义
xlt_struct.h:47
x1::xlt_page_query_reference_t::sub_table_end_points
uint32_t sub_table_end_points[16]
每个分表的数据终点,即当前的数据量
定义
xlt_struct.h:48
x1::xlt_page_query_reference_t::create
static xlt_page_query_reference_t create()
定义
xlt_struct.h:51
x1::xlt_user_terminal_info_t
申报用户的ip和mac等信息
定义
xlt_struct.h:27
x1::xlt_user_terminal_info_t::pcn
char * pcn
PC 终端设备名
定义
xlt_struct.h:35
x1::xlt_user_terminal_info_t::internet_ip
char * internet_ip
公网IP地址
定义
xlt_struct.h:32
x1::xlt_user_terminal_info_t::pi
char * pi
硬盘分区信息
定义
xlt_struct.h:37
x1::xlt_user_terminal_info_t::extern_info
char * extern_info
扩展信息,如客户端版本号等(终端信息规范中'@'之后的所有内容)
定义
xlt_struct.h:39
x1::xlt_user_terminal_info_t::vol
char * vol
系统盘卷标号
定义
xlt_struct.h:38
x1::xlt_user_terminal_info_t::macos_sno
char * macos_sno
MacOS系统的序列号,仅为MacOS系统需要填写
定义
xlt_struct.h:34
x1::xlt_user_terminal_info_t::internet_port
int32_t internet_port
公网端口号
定义
xlt_struct.h:33
x1::xlt_user_terminal_info_t::cpu_sn
char * cpu_sn
CPU 序列号
定义
xlt_struct.h:36
x1::xlt_user_terminal_info_t::term_type
TerminalType term_type
终端类型
定义
xlt_struct.h:31
x1::xlt_user_terminal_info_t::hd
char * hd
硬盘序列号
定义
xlt_struct.h:30
x1::xlt_user_terminal_info_t::mac_addr
char * mac_addr
MAC地址
定义
xlt_struct.h:29
x1::xlt_user_terminal_info_t::local_ip
char * local_ip
本地IP地址
定义
xlt_struct.h:28
xlt_data_type.h
本文件定义XLT API中使用的基本数据类型和常量
include
xlt_api
xlt_struct.h
制作者
1.11.0