ComplianceServer/oldcode/ZXDService/ISmsService.cs

45 lines
1.3 KiB
C#
Raw Permalink 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;
namespace ZXDService
{
// 注意: 使用“重构”菜单上的“重命名”命令可以同时更改代码和配置文件中的接口名“ISmsService”。
[ServiceContract]
public interface ISmsService
{
//[OperationContract]
//[WebInvoke(Method = "POST",
// RequestFormat = WebMessageFormat.Json,
// ResponseFormat = WebMessageFormat.Json,
// BodyStyle = WebMessageBodyStyle.Bare,
// UriTemplate = "PutSms")]
//JsonResult<string> PutSms(Message message);
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "PutSms")]
JsonResult<string> PutSms(Message2 message);
}
public class Message
{
public string message { get; set; }
public string resid { get; set; }
public string mobile { get; set; }
//public string typeCode { get; set; }
//public string subTypeCode { get; set; }
//public int createuser { get; set; }
}
public class Message2
{
public string message { get; set; }
public string[] mobile { get; set; }
}
}