2022-12-16 15:52:35 +08:00
|
|
|
|
using JinianNet.JNTemplate;
|
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using ZR.Common;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ZR.Admin.WebApi.Extensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class LogoExtension
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void AddLogo(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
Console.ForegroundColor = ConsoleColor.Blue;
|
|
|
|
|
|
var contentTpl = JnHelper.ReadTemplate("", "logo.txt");
|
2022-12-20 16:06:59 +08:00
|
|
|
|
var content = contentTpl?.Render();
|
2022-12-16 15:52:35 +08:00
|
|
|
|
|
|
|
|
|
|
Console.WriteLine(content);
|
2022-12-20 16:06:59 +08:00
|
|
|
|
Console.ForegroundColor = ConsoleColor.Blue;
|
2022-12-16 15:52:35 +08:00
|
|
|
|
Console.WriteLine("源码地址: https://gitee.com/izory/ZrAdminNetCore");
|
|
|
|
|
|
Console.WriteLine("官方文档:http://www.izhaorui.cn/doc");
|
|
|
|
|
|
Console.WriteLine("打赏作者:http://www.izhaorui.cn/doc/support.html");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|