using Newtonsoft.Json; using System; using System.Collections.Generic; namespace LifePayment.Domain.Shared { public class CreateQrCodeInput { /// <summary> /// 最大32个å¯è§å—ç¬¦ï¼Œåªæ”¯æŒæ•°å—,大å°å†™è‹±æ–‡ä»¥åŠéƒ¨åˆ†ç‰¹æ®Šå—符:!#$&'()*+,/:;=?@-._~, /// 其它å—符请自行编ç ä¸ºåˆæ³•å—ç¬¦ï¼ˆå› ä¸æ”¯æŒ%ï¼Œä¸æ–‡æ— 法使用 urlencode 处ç†ï¼Œè¯·ä½¿ç”¨å…¶ä»–ç¼–ç æ–¹å¼ï¼‰ /// </summary> public string Scene { get; set; } /// <summary> /// åç‰‡äºŒç»´ç æ‰«æå¯åЍ页 /// </summary> public string Page { get; set; } /// <summary> /// è¦æ‰“开的å°ç¨‹åºç‰ˆæœ¬ã€‚æ£å¼ç‰ˆä¸º "release",体验版为 "trial",开å‘版为 "develop"。默认是æ£å¼ç‰ˆã€‚ /// </summary> public string EnvVersion { get; set; } = "release"; /// <summary> /// 默认是true,检查page 是å¦å˜åœ¨ï¼Œä¸º true æ—¶ page 必须是已ç»å‘布的å°ç¨‹åºå˜åœ¨çš„页é¢ï¼ˆå¦åˆ™æŠ¥é”™ï¼‰ï¼› /// 为 false æ—¶å…许å°ç¨‹åºæœªå‘布或者 page ä¸å˜åœ¨ï¼Œ 但page 有数é‡ä¸Šé™ï¼ˆ60000个)请勿滥用。 /// </summary> public bool CheckPath { get; set; } = true; /// <summary> /// 默认430,二维ç 的宽度,å•ä½ pxï¼Œæœ€å° 280px,最大 1280px /// </summary> public int Width { get; set; } = 430; } public class WxMiniAppIndentity { /// <summary> /// 会è¯å¯†é’¥ /// </summary> [JsonProperty("session_key")] public string SessionKey { get; set; } /// <summary> /// å°ç¨‹åºOpenId /// </summary> [JsonProperty("openid")] public string OpenId { get; set; } public string UnionId { get; set; } } public class WxMiniAppUserInfo { public string OpenId { get; set; } public string PhoneNumber { get; set; } public string NickName { get; set; } public int Gender { get; set; } public string Language { get; set; } public string City { get; set; } public string Province { get; set; } public string Country { get; set; } public string AvatarUrl { get; set; } public string CountryCode { get; set; } } public class GetCgiWritingInput { [JsonProperty("access_token")] public string AccessToken { get; set; } [JsonProperty("offset")] public int Offset { get; set; } = 0; [JsonProperty("count")] public int Count { get; set; } = 20; [JsonProperty("no_content")] public int NoContent { get; set; } = 0; } public class GetCgiWritingResponse { [JsonProperty("total_count")] public int Total_count { get; set; } [JsonProperty("item_count")] public int Utem_count { get; set; } [JsonProperty("item")] public List<GetCgiWritingItemResponse> Item { get; set; } } public class GetCgiWritingItemResponse { [JsonProperty("article_id")] public string Article_id { get; set; } [JsonProperty("content")] public GetCgiWritingContentResponse Content { get; set; } [JsonProperty("create_time")] public long? Create_time { get; set; } [JsonProperty("update_time")] public long? Update_time { get; set; } } public class GetCgiWritingContentResponse { [JsonProperty("news_item")] public List<GetCgiWritingNewItemResponse> News_item { get; set; } [JsonProperty("create_time")] public long? Create_time { get; set; } [JsonProperty("update_time")] public long? Update_time { get; set; } } public class GetCgiWritingNewItemResponse { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("author")] public string Author { get; set; } [JsonProperty("digest")] public string Digest { get; set; } [JsonProperty("content")] public string Content { get; set; } [JsonProperty("content_source_url")] public string Content_source_url { get; set; } [JsonProperty("thumb_media_id")] public string thumb_media_id { get; set; } [JsonProperty("thumb_url")] public string Thumb_url { get; set; } [JsonProperty("show_cover_pic")] public string show_cover_pic { get; set; } [JsonProperty("need_open_comment")] public string Meed_open_comment { get; set; } } }