TG.WXCRM.V4/WxService/IWeWorkService.cs

29 lines
991 B
C#
Raw 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.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);
}
}