using CRM.Core.DTO.Res; using System.IO; using System.ServiceModel; using System.ServiceModel.Web; using WX.CRM.Model.Entity; using WX.CRM.Model.QueryMap; namespace RiaServiceLibrary { [ServiceContract] public interface IResourceService { [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Join?content={content}&clientid={clientid}&sign={sign}")] string JoinActive(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Scene?content={content}&clientid={clientid}&sign={sign}")] string Scene(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Scene/Update?content={content}&clientid={clientid}&sign={sign}")] string UpdateSceneOnlineTime(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OpenOrder?content={content}&clientid={clientid}&sign={sign}")] retClass CreateAndOpenOrder(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "CanclOrder?content={content}&clientid={clientid}&sign={sign}")] retClass CancelActiveOrder(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "SimpleOpenOrder?content={content}&clientid={clientid}&sign={sign}")] retClass upAgentOpenOrder(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "SyncRegUser?content={content}&clientid={clientid}&sign={sign}")] Stream SyncRegUser(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "BindRegUser?content={content}&clientid={clientid}&sign={sign}")] Stream BindRegUser(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Merge?content={content}&clientid={clientid}&sign={sign}")] string Merge(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Distribute")] JsonResult Distribute(DisDto dto); [OperationContract] [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Dis?resid={resid}&eid={eid}")] JsonResult Dis(string resid, int eid); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Activity/Add")] JsonResult AddActivity(ActivityDto dto); [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Event/Put")] JsonResult Event(UserCenterEventDto dto); } }