first commit
This commit is contained in:
26
Infrastructure/WebExtensions/LogoExtension.cs
Normal file
26
Infrastructure/WebExtensions/LogoExtension.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Infrastructure.Helper;
|
||||
using JinianNet.JNTemplate;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
|
||||
namespace Infrastructure
|
||||
{
|
||||
public static class LogoExtension
|
||||
{
|
||||
public static void AddLogo(this IServiceCollection services)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Blue;
|
||||
var contentTpl = JnHelper.ReadTemplate("", "logo.txt");
|
||||
var content = contentTpl?.Render();
|
||||
var url = AppSettings.GetConfig("urls");
|
||||
Console.WriteLine(content);
|
||||
Console.ForegroundColor = ConsoleColor.Blue;
|
||||
//Console.WriteLine("🎉源码地址: https://gitee.com/izory/DOANAdminNetCore");
|
||||
Console.WriteLine("📖官方文档:http://www.izhaorui.cn");
|
||||
Console.WriteLine("💰打赏作者:http://www.izhaorui.cn/vip");
|
||||
Console.WriteLine("📱移动端体验:http://demo.izhaorui.cn/h5");
|
||||
Console.WriteLine($"Swagger地址:{url}/swagger/index.html");
|
||||
Console.WriteLine($"初始化种子数据地址:{url}/common/InitSeedData");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user