ldj/WcfServiceErp/IErpOrgDoc.cs

68 lines
2.3 KiB
C#
Raw Permalink Normal View History

2023-09-04 22:41:19 +08:00
/// <summary>
///WCF service
///Interface FOR TABLE t_erpOrgDoc
///By wm
///on 07/21/2023
/// </summary>
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using DeiNiu.wms.Data.Model.Wcf;
using DeiNiu.Wcf.erp.wcfData;
using DeiNiu.Utils;
namespace DeiNiu.Wcf
{
[ServiceContract]
public interface IErpOrgDoc
{
//http://localhost:8080/T_ERPORGDOC.svc/getobj?id=1
[OperationContract]
[WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json,
UriTemplate = "getObj?id={id}")]
WcfErpOrgDoc getObj(int id);
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "add")]
Result add(WcfErpOrgDoc obj);
/*
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "update")]
Result update(WcfErpOrgDoc obj);
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "delete")]
Result delete(WcfErpOrgDoc obj);
[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "where?condition={condition}&pageno={pageno}")]
WcfErpOrgDocList query(string condition, int pageno);
/*
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "addList")]
List<Result> addList(List<WcfErpOrgDoc> objs);
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "updateList")]
List<Result> updateList(List<WcfErpOrgDoc> objs);
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
UriTemplate = "deleteList")]
List<Result> deleteList(List<WcfErpOrgDoc> objs);
*/
}
}