更改文件架构
This commit is contained in:
32
Packages/Core/Models/LogModel.cs
Normal file
32
Packages/Core/Models/LogModel.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
#if UNITY
|
||||
#else
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
#endif
|
||||
using System;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
public interface ILog
|
||||
{
|
||||
int Id { get; }
|
||||
string EntityName { get; }
|
||||
public string Message { get; }
|
||||
public string StackTrace { get; }
|
||||
DateTime CreateTime { get; }
|
||||
string CreateUser { get; }
|
||||
}
|
||||
[System.Serializable]
|
||||
public record LogModel:ILog
|
||||
{
|
||||
#if UNITY
|
||||
#else
|
||||
[Key]
|
||||
#endif
|
||||
public int Id { get; set; }
|
||||
public string EntityName { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string StackTrace { get; set; }
|
||||
public DateTime CreateTime { get; set; }=DateTime.Now;
|
||||
public string CreateUser { get; set; } = nameof(BITKit);
|
||||
};
|
||||
}
|
3
Packages/Core/Models/LogModel.cs.meta
Normal file
3
Packages/Core/Models/LogModel.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dbdc13ee7c5f4e6ea13f8a6786f74097
|
||||
timeCreated: 1686107848
|
34
Packages/Core/Models/WXPusher.cs
Normal file
34
Packages/Core/Models/WXPusher.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace BITKit
|
||||
{
|
||||
[System.Serializable]
|
||||
public record WeChatMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// WXPusher接口Token
|
||||
/// </summary>
|
||||
public string appToken = "AT_93EEY2WYtU9AQzMULFVXCUIKieixCbBc";
|
||||
/// <summary>
|
||||
/// 推送内容
|
||||
/// </summary>
|
||||
public string content;
|
||||
/// <summary>
|
||||
/// 消息摘要",//消息摘要,显示在微信聊天页面或者模版消息卡片上,限制长度100,可以不传,不传默认截取content前面的内容。
|
||||
/// </summary>
|
||||
public string summary;
|
||||
/// <summary>
|
||||
/// 内容类型 1表示文字 2表示html(只发送body标签内部的数据即可,不包括body标签) 3表示markdown
|
||||
/// </summary>
|
||||
public int contentType = 1;
|
||||
/// <summary>
|
||||
/// 是否验证订阅时间,true表示只推送给付费订阅用户,false表示推送的时候,不验证付费,不验证用户订阅到期时间,用户订阅过期了,也能收到。
|
||||
/// </summary>
|
||||
public bool verifyPay = false;
|
||||
/// <summary>
|
||||
/// 推送用户的uid
|
||||
/// </summary>
|
||||
public string[] uids = new string[]
|
||||
{
|
||||
"UID_mjMsThbCofwk5YSDJvBegUv0X0jK",
|
||||
};
|
||||
}
|
||||
}
|
3
Packages/Core/Models/WXPusher.cs.meta
Normal file
3
Packages/Core/Models/WXPusher.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5cb892c46078490e904ad43dd6c7794c
|
||||
timeCreated: 1686121360
|
Reference in New Issue
Block a user