实现访问统计接口。
This commit is contained in:
17
Base/DataStructure.h
Normal file
17
Base/DataStructure.h
Normal 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__
|
Reference in New Issue
Block a user