增加接口
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Tnb.BasicData.Entitys.Dto
|
||||
namespace Tnb.BasicData.Entities.Dto
|
||||
{
|
||||
public class EbomTreeOutput
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Tnb.BasicData.Entitys.Dto
|
||||
namespace Tnb.BasicData.Entities.Dto
|
||||
{
|
||||
public class EbomTreeQueryInput
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Security;
|
||||
|
||||
namespace Tnb.BasicData.Entitys.Dto.ProcessManage
|
||||
namespace Tnb.BasicData.Entities.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 工艺路线模版左侧树输出参数
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Mapster;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entitys.Dto.ProcessManage;
|
||||
using Tnb.BasicData.Entities.Dto;
|
||||
|
||||
namespace Tnb.BasicData.Entities
|
||||
{
|
||||
|
||||
9
BasicData/Tnb.BasicData.Interfaces/IBasEbomService.cs
Normal file
9
BasicData/Tnb.BasicData.Interfaces/IBasEbomService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Tnb.BasicData.Entities.Dto;
|
||||
|
||||
namespace Tnb.BasicData.Interfaces
|
||||
{
|
||||
public interface IBasEbomService
|
||||
{
|
||||
public Task<dynamic> GetTree(EbomTreeQueryInput queryInput);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Tnb.BasicData.Interfaces
|
||||
{
|
||||
public interface IBasMaterialService
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
BasicData/Tnb.BasicData.Interfaces/IBasMbomService.cs
Normal file
7
BasicData/Tnb.BasicData.Interfaces/IBasMbomService.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Tnb.BasicData.Interfaces
|
||||
{
|
||||
public interface IBasMbomService
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
17
BasicData/Tnb.BasicData.Interfaces/IBasRouteService.cs
Normal file
17
BasicData/Tnb.BasicData.Interfaces/IBasRouteService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Tnb.BasicData.Interfaces
|
||||
{
|
||||
public interface IBasRouteService
|
||||
{
|
||||
/// <summary>
|
||||
/// 发布工艺路线
|
||||
/// </summary>
|
||||
/// <param name="parameters">工艺路线id id</param>
|
||||
public Task Publish(Dictionary<string, string> parameters);
|
||||
|
||||
/// <summary>
|
||||
/// 复制工艺路线
|
||||
/// </summary>
|
||||
/// <param name="parameters">工艺路线id id</param>
|
||||
public Task<string> Copy(Dictionary<string, string> parameters);
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,9 @@ using JNPF.DynamicApiController;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entitys.Dto;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.BasicData.Entities.Dto;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
|
||||
namespace Tnb.BasicData
|
||||
{
|
||||
@@ -14,13 +15,13 @@ namespace Tnb.BasicData
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = ModuleConst.Tag, Area = ModuleConst.Area, Order = 1102)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
public class EbomService : IDynamicApiController, ITransient
|
||||
public class BasEbomService : IBasEbomService,IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<BasMaterial> _repository;
|
||||
private readonly DataBaseManager _dbManager;
|
||||
private readonly IDictionaryDataService _dictionaryDataService;
|
||||
|
||||
public EbomService(
|
||||
public BasEbomService(
|
||||
ISqlSugarRepository<BasMaterial> repository,DataBaseManager dbManager,IDictionaryDataService dictionaryDataService)
|
||||
{
|
||||
_repository = repository;
|
||||
@@ -5,6 +5,7 @@ using JNPF.Systems.Interfaces.System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
|
||||
namespace Tnb.BasicData
|
||||
{
|
||||
@@ -13,13 +14,13 @@ namespace Tnb.BasicData
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = ModuleConst.Tag, Area = ModuleConst.Area, Order = 1102)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
public class MaterialService : IDynamicApiController, ITransient
|
||||
public class BasMaterialService : IBasMaterialService,IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<BasMaterial> _repository;
|
||||
private readonly DataBaseManager _dbManager;
|
||||
private readonly IDictionaryDataService _dictionaryDataService;
|
||||
|
||||
public MaterialService(
|
||||
public BasMaterialService(
|
||||
ISqlSugarRepository<BasMaterial> repository,DataBaseManager dbManager,IDictionaryDataService dictionaryDataService)
|
||||
{
|
||||
_repository = repository;
|
||||
@@ -5,6 +5,7 @@ using JNPF.Systems.Interfaces.System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
|
||||
namespace Tnb.BasicData
|
||||
{
|
||||
@@ -13,13 +14,13 @@ namespace Tnb.BasicData
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = ModuleConst.Tag, Area = ModuleConst.Area, Order = 1102)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
public class MbomService : IDynamicApiController, ITransient
|
||||
public class BasMbomService : IBasMbomService,IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<BasMbom> _repository;
|
||||
private readonly DataBaseManager _dbManager;
|
||||
private readonly IDictionaryDataService _dictionaryDataService;
|
||||
|
||||
public MbomService(
|
||||
public BasMbomService(
|
||||
ISqlSugarRepository<BasMbom> repository,DataBaseManager dbManager,IDictionaryDataService dictionaryDataService)
|
||||
{
|
||||
_repository = repository;
|
||||
@@ -5,6 +5,7 @@ using JNPF.DynamicApiController;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
|
||||
namespace Tnb.BasicData
|
||||
{
|
||||
@@ -13,18 +14,16 @@ namespace Tnb.BasicData
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = ModuleConst.Tag, Area = ModuleConst.Area, Order = 701)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
public class RouteService : IDynamicApiController, ITransient
|
||||
public class BasRouteService : IBasRouteService,IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<BasRouteH> _repository;
|
||||
|
||||
private readonly UserManager _userManager;
|
||||
|
||||
public RouteService(
|
||||
public BasRouteService(
|
||||
UserManager userManager,
|
||||
ISqlSugarRepository<BasRouteH> repository)
|
||||
{
|
||||
_repository = repository;
|
||||
_userManager = userManager;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
Reference in New Issue
Block a user