using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Text; namespace JiaZhiQuan.Common.Messaging.Models { public enum LogType { Api = 1 } public class LogRecordModel { public LogType Type { get; set; } public string Content { get; set; } public static string GetMsgKey() { return "JZQ_Log_Record_Msg"; } } public class ApiLogRecordSubModel { /// /// 耗时 /// public int Milliseconds { get; set; } /// /// 全路径 /// public string Url { get; set; } /// /// 参数(JSON字符串) /// public string Param { get; set; } /// /// 状态码 /// public int StatusCode { get; set; } /// /// 错误信息 /// public string ErrorMessage { get; set; } /// /// 用户Id,如果没有则为0 /// public long UserId { get; set; } /// /// 设备Id /// public string DeviceId { get; set; } /// /// 设备信息 /// public string DeviceInfo { get; set; } /// /// 渠道 /// public string Channel { get; set; } /// /// IP /// public string IP { get; set; } /// /// 哪个系统 /// public string System { get; set; } /// /// 记录时间 /// public DateTime LogTime { get; set; } = DateTime.Now; } public class iOSDeviceInfo { public string os { get; set; } public string appVersoft_versionsion { get; set; } public string os_version { get; set; } } public class AndroidDeviceInfo { public string brand { get; set; } public string device { get; set; } public string manufacturer { get; set; } public string model { get; set; } public string os { get; set; } public string os_version { get; set; } public int sdk_int { get; set; } public string soft_version { get; set; } } }