-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathentity.h
167 lines (152 loc) · 3.71 KB
/
entity.h
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
162
163
164
165
166
167
//
// Created by root on 4/24/18.
//
#ifndef FEATHER_ENTITY_H
#define FEATHER_ENTITY_H
namespace feather {
struct pp_posts {
int ID;
int post_author;
std::string post_date;
std::string post_title;
std::string post_content;
std::string post_status;
std::string post_modified;
std::string content_abstract;
std::string url;
int comment_count;
std::string category;
std::string raw_content;
int visit_count;
};
REFLECTION(pp_posts, ID, post_author, post_date, post_title, post_content,
post_status, post_modified, content_abstract, url, comment_count,
category, raw_content, visit_count);
struct pp_user {
int ID;
std::string user_login;
std::string user_nickname;
std::string user_email;
std::string user_registered;
std::string user_icon;
std::string user_pass;
int user_role;
};
REFLECTION(pp_user, ID, user_login, user_nickname, user_email, user_registered,
user_icon, user_pass, user_role);
struct pp_comment {
int ID;
int user_id;
int post_id;
int comment_parant;
std::string comment_content;
std::string comment_date;
std::string comment_status;
};
REFLECTION(pp_comment, ID, user_id, post_id, comment_parant, comment_content,
comment_date, comment_status);
struct pp_terms {
int term_id;
std::string name;
std::string slug;
std::string term_group;
};
REFLECTION(pp_terms, term_id, name, slug, term_group);
struct pp_post_views {
int ID;
int type;
int count;
std::string period;
};
REFLECTION(pp_post_views, ID, type, count, period);
struct user {
int id;
std::string user_name;
std::string nick_name;
std::string token;
int32_t gender;
int32_t role;
std::string avatar;
int64_t phone;
std::string email;
std::string qq;
std::string location;
};
REFLECTION(user, id, user_name, nick_name, token, gender, role, avatar, phone,
email, qq, location);
struct article {
int id;
std::string title;
std::string introduce;
int user_id;
int visible;
std::string create_time;
};
REFLECTION(article, id, title, introduce, user_id, visible, create_time);
struct article_detail {
int id;
int parant_id;
std::string title;
std::string content;
std::string update_time;
};
REFLECTION(article_detail, id, parant_id, title, content, update_time);
struct cncppcon2018_user {
int id;
std::string user_name;
int64_t phone;
std::string email;
std::string user_group;
std::string join_time;
};
REFLECTION(cncppcon2018_user, id, user_name, phone, email, user_group,
join_time);
struct user_group_member {
int id;
std::string user_name;
int64_t phone;
std::string email;
std::string user_group;
std::string join_time;
};
REFLECTION(user_group_member, id, user_name, phone, email, user_group,
join_time);
struct book_course_member {
int id;
std::string user_name;
int64_t phone;
std::string email;
std::string user_group;
std::string join_time;
std::string courses;
};
REFLECTION(book_course_member, id, user_name, phone, email, user_group,
join_time, courses);
struct visit_counter {
int id;
std::string save_hour;
int counter;
};
REFLECTION(visit_counter, id, save_hour, counter);
struct speaker {
int id;
std::string name;
std::string tel;
std::string email;
std::string company;
std::string country;
std::string bio;
std::string title;
std::string tags;
std::string session_length;
std::string session_desc;
std::string outline;
std::string session_material;
std::string comments;
std::string code;
};
REFLECTION(speaker, id, name, tel, email, company, country, bio, title, tags,
session_length, session_desc, outline, session_material, comments,
code);
} // namespace feather
#endif // FEATHER_ENTITY_H