92 lines
2.9 KiB
C#
92 lines
2.9 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Runtime.Serialization;
|
|||
|
using System.ServiceModel;
|
|||
|
using System.Text;
|
|||
|
using System.ServiceModel.Web;
|
|||
|
namespace DeiNiu.wms.win
|
|||
|
{
|
|||
|
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IServiceLight”。
|
|||
|
[ServiceContract]
|
|||
|
public interface IServiceLight
|
|||
|
{
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "getLabel/Id={Id}"
|
|||
|
)]
|
|||
|
ELabel getLabel(string Id);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "lightLabels")]
|
|||
|
string lightLabels(List<ELabel> labels);
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "lightLabels2")]
|
|||
|
string lightLabels2(String s);
|
|||
|
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "lightLabel/Id={Id}"
|
|||
|
)]
|
|||
|
string lightLabel(string Id);
|
|||
|
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "startSeeds?deskId={deskId}&seedsNo={seedsNo}"
|
|||
|
)]
|
|||
|
string startSeeds(int deskId,string seedsNo);
|
|||
|
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "lightSeed?deskId={deskId}&seedsNo={seedsNo}&barcode={barcode}"
|
|||
|
)]
|
|||
|
string lightSeed(int deskId,string seedsNo,string barcode);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "POST",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "uploadSeeds"
|
|||
|
)]
|
|||
|
string uploadSeeds(List<SeedsItem> seeds);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "turnOnLight?id={id}&color={color}&port={port}"
|
|||
|
)]
|
|||
|
string turnOnLight(int id, byte color, int port);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(
|
|||
|
Method = "GET",
|
|||
|
RequestFormat = WebMessageFormat.Json,
|
|||
|
ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "turnOffLight?id={id}&port={port}"
|
|||
|
)]
|
|||
|
string turnOffLight(int id, int port);
|
|||
|
}
|
|||
|
}
|