2022-12-16 15:52:35 +08:00
|
|
|
|
using JinianNet.JNTemplate;
|
|
|
|
|
|
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();
|
2023-05-15 19:54:06 +08:00
|
|
|
|
|
2022-12-16 15:52:35 +08:00
|
|
|
|
Console.WriteLine(content);
|
2022-12-20 16:06:59 +08:00
|
|
|
|
Console.ForegroundColor = ConsoleColor.Blue;
|
2023-08-02 13:36:44 +08:00
|
|
|
|
|
2022-12-16 15:52:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|