Modules/Framework/Gardener.NotificationSystem/SeedDatas/ChatDemoServiceFunctionSeedData.cs
(完整代码) 1KB// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Furion.DatabaseAccessor;
using Gardener.Base.Entity;
using Microsoft.EntityFrameworkCore;
using HttpMethod = Gardener.Enums.HttpMethod;
namespace Gardener.NotificationSystem.SeedDatas
{
/// <summary>
/// 种子数据
/// </summary>
public class FunctionSeedData : IEntitySeedData<Function>
{
/// <summary>
/// 种子数据
/// </summary>
/// <param name="dbContext"></param>
/// <param name="dbContextLocator"></param>
/// <returns></returns>
public IEnumerable<Function> HasData(DbContext dbContext, Type dbContextLocator)
{
return new[]{
new Function() {Group="示例服务",Service="聊天示例服务",Summary="获取聊天历史记录",Key="2A74937190C8E652BF107434EFFD1C17",Path="/api/chat-demo/history",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,Id=Guid.Parse("8be6d20e-686c-4259-8eeb-3ec2b18739c3"),IsLocked=false,IsDeleted=false,CreatedTime=DateTimeOffset.Parse("2022-08-08 08:08:08"),},
};
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
