33 lines
1.1 KiB
C#
Executable File
33 lines
1.1 KiB
C#
Executable File
using Microsoft.Extensions.DependencyInjection;
|
|
using Newtonsoft.Json.Linq;
|
|
using Opsoft.NetCore.O3App.Domain;
|
|
using Opsoft.NetCore.O3App.Domain.Interface;
|
|
using Opsoft.NetCore.O3App.Domain.UnitOfWork.Public.IRepositories;
|
|
using Opsoft.NetCore.O3App.Domain.UnitOfWork.Public.IServices;
|
|
using Opsoft.NetCore.O3App.Shared;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Opsoft.NetCore.O3App.Services.Public
|
|
{
|
|
[MapTo(typeof(IPublicService), ServiceLifetime.Transient)]
|
|
public class PublicService : ServiceBase<BaseEntity, IPublicRepository>, IPublicService
|
|
{
|
|
public PublicService(IPublicRepository repository) : base(repository)
|
|
{
|
|
Init(repository);
|
|
}
|
|
|
|
public Task<object> OpenWin(JObject request)
|
|
{
|
|
if (request == null)
|
|
{
|
|
throw new O3AppException("保存质检单参数不可为空", 400);
|
|
}
|
|
return (repository as IPublicRepository).OpenWin(request);
|
|
}
|
|
}
|
|
}
|