185 lines
7.1 KiB
C#
185 lines
7.1 KiB
C#
using CRM.Core.DTO.Res;
|
||
using System.IO;
|
||
using System.ServiceModel;
|
||
using System.ServiceModel.Web;
|
||
|
||
namespace ZXDService
|
||
{
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。
|
||
[ServiceContract]
|
||
public interface IResourceService
|
||
{
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "DoWork/get/{id}")]
|
||
JsonResult<string> DoWork(string id);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Join?content={content}&clientid={clientid}&sign={sign}")]
|
||
|
||
string Join(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "SynRfm?content={content}&clientid={clientid}&sign={sign}")]
|
||
string SynRfm(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 = "User/SyncReg?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream SyncRegUser(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/Bind?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream BindRegUser(string content, string clientid, string sign);
|
||
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/ResetPwd?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream PassWordReset(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/ResetMobile?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream ResetMobile(string content, string clientid, string sign);
|
||
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/UnBindQW?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream UnBindQW(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Sign/put?username={username}&signid={signid}")]
|
||
Stream Sign(string username, string signid);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/ComplainAdd?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream ComplainAdd(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/ComplainFlow?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream ComplainFlow(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "User/ComplainStatus?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream ComplainStatus(string content, string clientid, string sign);
|
||
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "ResId?content={content}&clientid={clientid}&sign={sign}")]
|
||
string ResId(string content, string clientid, string sign);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "SoftUser/Get?ResId={ResId}")]
|
||
JsonResult<string> GetSoftUser(string ResId);
|
||
|
||
|
||
[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 = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "MergeToUserCenter?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream MergeToUserCenter(string content, string clientid, string sign);
|
||
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "POST",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "UserEnter")]
|
||
Stream UserEnter(string mobile);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "POST",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "HandelLabel")]
|
||
Stream HandelLabel(TagDto dto);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "POST",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Activity/Add")]
|
||
JsonResult<string> AddActiveType(ActivityDto dto);
|
||
|
||
|
||
/// <summary>
|
||
/// 申请获取其他事业部的软件用户名(活动)
|
||
/// </summary>
|
||
/// <param name="content"></param>
|
||
/// <param name="clientid"></param>
|
||
/// <param name="sign"></param>
|
||
/// <returns></returns>
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "SoftUser/GetUserCheck?content={content}&clientid={clientid}&sign={sign}")]
|
||
Stream GetSoftUserCheck(string content, string clientid, string sign);
|
||
|
||
}
|
||
}
|