访问日志表增加城市字段
This commit is contained in:
@@ -35,6 +35,9 @@ public class VisitLog implements Serializable {
|
|||||||
@Field(value="ip", desc="用户IP")
|
@Field(value="ip", desc="用户IP")
|
||||||
private String ip;
|
private String ip;
|
||||||
|
|
||||||
|
@Field(value="city", desc="根据IP定位的城市")
|
||||||
|
private String city;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@@ -91,6 +94,15 @@ public class VisitLog implements Serializable {
|
|||||||
this.ip = ip;
|
this.ip = ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCity() {
|
||||||
|
return city;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCity(String city) {
|
||||||
|
this.city = city;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static Orders[] id_orders = new Orders[] { new Orders("id", Orders.OrderyType.DESC)};
|
public static Orders[] id_orders = new Orders[] { new Orders("id", Orders.OrderyType.DESC)};
|
||||||
|
|
||||||
public static String[] query_params = new String[] { "eid", "uid" };
|
public static String[] query_params = new String[] { "eid", "uid" };
|
||||||
|
|||||||
Reference in New Issue
Block a user