实现访问统计接口。

This commit is contained in:
root
2025-02-28 16:44:54 +00:00
parent e9c3cde9de
commit 63aa6a6270
17 changed files with 310053 additions and 0 deletions

17
Base/DataStructure.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef __DATASTRUCTURE_H__
#define __DATASTRUCTURE_H__
#include <string>
struct VisitorStats{
std::string url;
int visitorCount=0;
int totalViews =0;
int64_t lastViewTime =0;
};
struct SiteStats{
int totalViews =0;
int totalVisitors =0;
};
#endif // __DATASTRUCTURE_H__