仓库和仓位接口

This commit is contained in:
18942506660
2023-10-30 15:22:03 +08:00
parent 74d62aaea7
commit ed5dc43e42
10 changed files with 260 additions and 34 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.SingleData
{
/// <summary>
/// 名称请求对象
/// </summary>
public class NameRequest:SingleDataRequest
{
public NameRequest() { }
public NameRequest(string name,int companyId)
{
this.Name = name;
this.CompanyId = companyId;
}
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.SingleData
{
/// <summary>
/// 仓位
/// </summary>
public class SubStockRequest:NameRequest
{
public SubStockRequest() { }
public SubStockRequest(int stockId,string name,int companyId)
{
this.StockId = stockId;
this.Name = name;
this.CompanyId = companyId;
}
/// <summary>
/// 仓库ID
/// </summary>
public int StockId { get; set; }
}
}

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Basics
namespace WMS.Web.Core.Dto.SingleData
{
/// <summary>
/// 员工响应

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace WMS.Web.Core.Dto.SingleData
{
/// <summary>
/// 仓库响应
/// </summary>
public class UcStockResponse
{
/// <summary>
/// id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 是否禁用true为禁用false为启用
/// </summary>
public bool Disable { get; set; }
}
}