29 lines
991 B
C#
29 lines
991 B
C#
using System.ServiceModel;
|
||
using System.ServiceModel.Web;
|
||
using System.Threading.Tasks;
|
||
using WX.CRM.Model.DTO.wework;
|
||
|
||
namespace WxService
|
||
{
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IWeWorkService”。
|
||
[ServiceContract]
|
||
public interface IWeWorkService
|
||
{
|
||
[OperationContract]
|
||
[WebInvoke(Method = "POST",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "XposedMessage/Put")]
|
||
Task<JsonResult<string>> XposedMessage(weworkmsg msg);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "XposedAlive/Put")]
|
||
JsonResult<string> AlivePut(weworkalive content);
|
||
}
|
||
}
|