25 lines
882 B
C#
25 lines
882 B
C#
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("苏州道安自动化网址:http://www.doan-tech.com");
|
||
Console.WriteLine($"Swagger地址:{url}/swagger/index.html");
|
||
Console.WriteLine($"初始化种子数据地址:{url}/common/InitSeedData");
|
||
}
|
||
}
|
||
}
|