mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 17:30:53 +08:00
112 lines
1.8 KiB
C++
112 lines
1.8 KiB
C++
#pragma once
|
|
|
|
struct req_global_config_t {
|
|
acl::string name;
|
|
|
|
req_global_config_t(void) {
|
|
name = "page_size";
|
|
}
|
|
};
|
|
|
|
struct req_para_t {
|
|
int start;
|
|
int end;
|
|
|
|
req_para_t(void) {
|
|
start = 0;
|
|
end = 1;
|
|
}
|
|
};
|
|
|
|
struct req_host_management_t {
|
|
acl::string table;
|
|
req_para_t para;
|
|
|
|
req_host_management_t(void) {
|
|
table = "host_info";
|
|
}
|
|
};
|
|
|
|
struct req_wireless_t {
|
|
acl::string table;
|
|
|
|
req_wireless_t(void) {
|
|
table = "sta_list";
|
|
}
|
|
};
|
|
|
|
struct request_t {
|
|
acl::string method;
|
|
req_global_config_t global_config;
|
|
req_host_management_t host_management;
|
|
req_wireless_t wireless;
|
|
|
|
request_t(void) {
|
|
method = "get";
|
|
}
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct stat_list_t {
|
|
acl::string name;
|
|
acl::string mac;
|
|
acl::string ip;
|
|
acl::string tx_rate;
|
|
acl::string rx_rate;
|
|
};
|
|
|
|
struct res_wireless_t {
|
|
std::map<acl::string, stat_list_t> sta_list;
|
|
};
|
|
|
|
struct res_count_t {
|
|
int host_info;
|
|
};
|
|
|
|
struct host_info_t {
|
|
acl::string host_save;
|
|
acl::string ip;
|
|
acl::string is_cur_host;
|
|
acl::string hostname;
|
|
acl::string mac;
|
|
acl::string type;
|
|
acl::string ssid;
|
|
acl::string up_limit;
|
|
acl::string down_limit;
|
|
acl::string limit;
|
|
acl::string dev_state;
|
|
};
|
|
|
|
struct res_host_management_t {
|
|
std::map<acl::string, host_info_t> host_info;
|
|
res_count_t count;
|
|
};
|
|
|
|
struct response_t {
|
|
res_host_management_t host_management;
|
|
res_wireless_t wireless;
|
|
|
|
int error_code;
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct login_t {
|
|
acl::string username;
|
|
acl::string password;
|
|
};
|
|
|
|
struct login_req_t {
|
|
acl::string method;
|
|
login_t login;
|
|
};
|
|
|
|
struct login_res_t {
|
|
int error_code;
|
|
acl::string stok;
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|