ldj/epick/wcf/IServiceLight.cs

125 lines
4.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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}&userId={userId}&isValid={isValid}"
)]
FormatedResult lightSeed(int deskId,string seedsNo,string barcode,int userId, bool isValid);
[OperationContract]
[WebInvoke(
Method = "GET",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "lightDeskSeed?seedsNo={seedsNo}&barcode={barcode}&userId={userId}&isValid={isValid}"
)]
FormatedResult lightDeskSeed(string seedsNo, string barcode, int userId, bool isValid);
[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}&which={which}&port={port}"
)]
string turnOnLight(int id, byte which, int port);
/*
[OperationContract]
[WebInvoke(
Method = "GET",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "turnOffLight?id={id}&port={port}"
)]
string turnOffLight(int id, int port);
*/
[OperationContract]
[WebInvoke(
Method = "GET",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "turnOffLight?id={id}&which={which}&port={port}"
)]
string turnOffLight(int id, byte which, int port);
[OperationContract]
[WebInvoke(
Method = "GET",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "turnOnLightByScan?deskId={deskId}&barcode={barcode}"
)]
string turnOnLightByScan(int deskId, string barcode);
}
}