使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace RIZO_Application.Services.Interfaces
|
||||
{
|
||||
public interface IMessageService
|
||||
{
|
||||
string GetMessage();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using RIZO_Application.Infrastructure.CustomAttribute;
|
||||
using RIZO_Application.Infrastructure.Model;
|
||||
using RIZO_Application.Models;
|
||||
using RIZO_Application.Repository;
|
||||
using RIZO_Application.Services.Interfaces;
|
||||
|
||||
namespace RIZO_Application.Services
|
||||
{
|
||||
[AppService(ServiceType = typeof(IMessageService), Lifetime = ServiceLifetime.Transient)]
|
||||
public class MessageService : BaseRepository<User> ,IMessageService
|
||||
{
|
||||
public string GetMessage()
|
||||
{
|
||||
|
||||
return AppSettings.Current.AppName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user