调整接口显示

This commit is contained in:
gongxh
2021-05-19 14:31:23 +08:00
parent a1b40b8c05
commit 2d0c2c1c13
9 changed files with 56 additions and 18 deletions

View File

@@ -101,8 +101,9 @@ namespace NX.ERP.WebAPi
// those comments into the generated docs and UI. You can enable this by providing the path to one or
// more Xml comment files.
//
// c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory));
c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory));
c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory));
// Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types
// exposed in your API. However, there may be occasions when more control of the output is needed.
// This is supported through the "MapType" and "SchemaFilter" options:
@@ -176,6 +177,8 @@ namespace NX.ERP.WebAPi
// alternative implementation for ISwaggerProvider with the CustomProvider option.
//
//c.CustomProvider((defaultProvider) => new CachingSwaggerProvider(defaultProvider));
})
.EnableSwaggerUi(c =>
{

View File

@@ -28,9 +28,14 @@ namespace NX.ERP.WebAPi.Controllers
var customerDAL = new CustomerDAL();
return customerDAL.GetList();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="Param"></param>
/// <returns></returns>
[Route("api/Customer/Query")]
[HttpPost]
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
{
var customerDAL = new CustomerDAL();

View File

@@ -6,9 +6,17 @@ using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
/// <summary>
/// 货位调整单
/// </summary>
public class BinChangeController : ApiController
{
/// <summary>
///添加货位调整单
/// </summary>
/// <param name="storeIn"></param>
/// <returns></returns>
[Route("api/BinChange/Add")]
[HttpPost]

View File

@@ -37,8 +37,7 @@
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<DocumentationFile>
</DocumentationFile>
<DocumentationFile>bin\NX.ERP.WebAPi.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@@ -5,11 +5,11 @@
-->
<configuration>
<appSettings>
<add key="server" value="10.0.0.12" />
<add key="AccId" value="u8-2@001" />
<add key="UserId" value="wx994" />
<add key="Password" value="1" />
<add key="EaiPort" value="80" />
<add key="server" value="192.168.1.14" />
<add key="AccId" value="002" />
<add key="UserId" value="0001" />
<add key="Password" value="123456" />
<add key="EaiPort" value="80" />
<add key="EaiPath" value="U8EAI/import.asp" />
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />