|
@@ -4,54 +4,66 @@ import com.google.gson.Gson;
|
|
|
import com.google.gson.GsonBuilder;
|
|
|
import lombok.Getter;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
+import lombok.Setter;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
|
@Getter
|
|
|
@NoArgsConstructor
|
|
|
+@Setter
|
|
|
+@NotNull
|
|
|
public class UserAdFeature {
|
|
|
- private String mid;
|
|
|
-
|
|
|
- private String gender;
|
|
|
- private String user_type;
|
|
|
- private String gmt_create;
|
|
|
- private String tags;
|
|
|
- private String category_name;
|
|
|
- private String isvip;
|
|
|
- private String isreward;
|
|
|
- private String isad;
|
|
|
- private String isgood;
|
|
|
-
|
|
|
- private String first_up_datetime;
|
|
|
- private String last_up_datetime;
|
|
|
- private String next_to_last_up_datetime;
|
|
|
- private String videos; // 上传视频数量
|
|
|
- private String idols; // 关注人数
|
|
|
- private String fans; // 粉丝数
|
|
|
- private String play_count; // 播放人数
|
|
|
- private String play_count_total; // 累计播放次数
|
|
|
-
|
|
|
- private String total_reward;
|
|
|
- private String currentday_reward;
|
|
|
- private String reward_person;
|
|
|
- private String total_reward_times;
|
|
|
-
|
|
|
- private String reward_videos;
|
|
|
- private String total_price;
|
|
|
- private String currentday_price;
|
|
|
- private String total_price_times;
|
|
|
- private String total_price_person;
|
|
|
- private String total_price_videos;
|
|
|
- private String cgrain_user_type;
|
|
|
- private String identity_tagname;
|
|
|
-
|
|
|
-
|
|
|
- private String operation_tags;
|
|
|
- private String identity_tag_id;
|
|
|
- private String identity_create_time;
|
|
|
- private String country;
|
|
|
- private String province;
|
|
|
- private String city;
|
|
|
|
|
|
+ private String mid = "0";
|
|
|
+
|
|
|
+ private String gender = "0";
|
|
|
+
|
|
|
+ private String user_type = "0";
|
|
|
+
|
|
|
+ private String gmt_create = "0";
|
|
|
+
|
|
|
+ private String tags = "0";
|
|
|
+
|
|
|
+ private String category_name = "0";
|
|
|
+
|
|
|
+ private String isvip = "0";
|
|
|
+
|
|
|
+ private String isreward = "0";
|
|
|
+
|
|
|
+ private String isad = "0";
|
|
|
+
|
|
|
+ private String isgood = "0";
|
|
|
+
|
|
|
+ private String first_up_datetime = "0";
|
|
|
+ private String last_up_datetime = "0";
|
|
|
+ private String next_to_last_up_datetime = "0";
|
|
|
+ private String videos = "0"; // 上传视频数量
|
|
|
+ private String idols = "0"; // 关注人数
|
|
|
+ private String fans = "0"; // 粉丝数
|
|
|
+ private String play_count = "0"; // 播放人数
|
|
|
+ private String play_count_total = "0"; // 累计播放次数
|
|
|
|
|
|
+ private String total_reward = "0";
|
|
|
+ private String currentday_reward = "0";
|
|
|
+ private String reward_person = "0";
|
|
|
+ private String total_reward_times = "0";
|
|
|
+
|
|
|
+ private String reward_videos = "0";
|
|
|
+ private String total_price = "0";
|
|
|
+ private String currentday_price = "0";
|
|
|
+ private String total_price_times = "0";
|
|
|
+ private String total_price_person = "0";
|
|
|
+ private String total_price_videos = "0";
|
|
|
+ private String cgrain_user_type = "0";
|
|
|
+ private String identity_tagname = "0";
|
|
|
+
|
|
|
+
|
|
|
+ private String operation_tags = "0";
|
|
|
+ private String identity_tag_id = "0";
|
|
|
+ private String identity_create_time = "0";
|
|
|
+ private String country = "0";
|
|
|
+ private String province = "0";
|
|
|
+ private String city = "0";
|
|
|
|
|
|
|
|
|
// 当天统计量信息
|
|
@@ -64,47 +76,36 @@ public class UserAdFeature {
|
|
|
private AdActionFeature month3_cnt_features;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- public void setMid(String key){
|
|
|
- this.mid = key;
|
|
|
- if(key == null)
|
|
|
- this.mid = "0";
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- public void setDay1_cnt_features(AdActionFeature key){
|
|
|
+ public void setDay1_cnt_features(AdActionFeature key) {
|
|
|
this.day1_cnt_features = key;
|
|
|
- if(key == null)
|
|
|
+ if (key == null)
|
|
|
this.day1_cnt_features = new AdActionFeature();
|
|
|
}
|
|
|
|
|
|
- public void setDay3_cnt_features(AdActionFeature key){
|
|
|
+ public void setDay3_cnt_features(AdActionFeature key) {
|
|
|
this.day3_cnt_features = key;
|
|
|
- if(key == null)
|
|
|
+ if (key == null)
|
|
|
this.day3_cnt_features = new AdActionFeature();
|
|
|
}
|
|
|
|
|
|
- public void setDay7_cnt_features(AdActionFeature key){
|
|
|
+ public void setDay7_cnt_features(AdActionFeature key) {
|
|
|
this.day7_cnt_features = key;
|
|
|
- if(key == null)
|
|
|
+ if (key == null)
|
|
|
this.day7_cnt_features = new AdActionFeature();
|
|
|
}
|
|
|
|
|
|
public void setMonth3_cnt_features(AdActionFeature key) {
|
|
|
this.month3_cnt_features = key;
|
|
|
- if(key == null)
|
|
|
+ if (key == null)
|
|
|
this.month3_cnt_features = new AdActionFeature();
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
public String getKey() {
|
|
|
return this.mid;
|
|
|
}
|
|
|
|
|
|
- public String getValue(){
|
|
|
+ public String getValue() {
|
|
|
Gson gson = new GsonBuilder().serializeSpecialFloatingPointValues().create();
|
|
|
return gson.toJson(this);
|
|
|
}
|