using System; using System.Collections.Generic; using System.Text; namespace JiaZhiQuan.Common.ElasticSearch.Models { /* DELETE /personalpageviewrecord PUT /personalpageviewrecord { "mappings": { "properties": { "notValidRecord": { "type": "boolean" }, "isMock": { "type": "boolean" }, "pageUserId": { "type": "long" }, "isSelf": { "type": "boolean" }, "userId": { "type": "long" }, "ip": { "type": "keyword" }, "clientId": { "type": "keyword" }, "createAt": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss" } } } } */ /// /// 有效的主页访问记录 /// public class ESPersonalPageViewRecordModel { /// /// 是否不是有效阅读 /// public bool notValidRecord { get; set; } /// /// 是否是模拟数据 /// public bool isMock { get; set; } /// /// 主页用户的编号 /// public long pageUserId { get; set; } public bool isSelf { get; set; } /// /// 当匿名访问时,为0 /// public long userId { get; set; } public string ip { get; set; } /// /// 用户客户端的编号,如果是H5,则为生成的GUID /// public string clientId { get; set; } public string createAt { get; set; } } }