using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using System.ComponentModel.DataAnnotations.Schema; namespace Winsoft.GOV.XF.WebApi.WXCore.Models { [JsonObject(MemberSerialization.OptOut)] public class WXUser { public WXUser() { CreateDate = DateTime.Now; } public int Id { get; set; } [JsonIgnore] public string OpenId { get; set; } public string Mobile { get; set; } // // 摘要: // 用户昵称 public string Nickname { get; set; } // // 摘要: // 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知 public int Sex { get; set; } // // 摘要: // 用户个人资料填写的省份 public string Province { get; set; } // // 摘要: // 普通用户个人资料填写的城市 public string City { get; set; } // // 摘要: // 国家,如中国为CN public string Country { get; set; } // // 摘要: // 用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空 public string HeadimgUrl { get; set; } [JsonIgnore] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string UnionId { get; set; } [JsonConverter(typeof(ChinaDateTimeConverter))] public DateTime CreateDate { get; set; } } }