mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 08:26:37 +08:00
短信发送
This commit is contained in:
15
Yi.Framework/Yi.Framework.Common/Const/RabbitConst.cs
Normal file
15
Yi.Framework/Yi.Framework.Common/Const/RabbitConst.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class RabbitConst
|
||||
{
|
||||
private const string prefix = "Yi.Framework.";
|
||||
public const string SMS_Exchange = prefix+"SMS.Exchange";
|
||||
public const string SMS_Queue_Send = prefix+ "SMS.Queue.Send";
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,8 @@ namespace Yi.Framework.Common.IOCOptions
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
public int Port { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class RabbitMQConsumerModel
|
||||
|
||||
18
Yi.Framework/Yi.Framework.Common/IOCOptions/SMSOptions.cs
Normal file
18
Yi.Framework/Yi.Framework.Common/IOCOptions/SMSOptions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.IOCOptions
|
||||
{
|
||||
public class SMSOptions
|
||||
{
|
||||
|
||||
public string ID { get; set; }
|
||||
public string Secret { get; set; }
|
||||
public string Sign { get; set; }
|
||||
public string Template { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
14
Yi.Framework/Yi.Framework.Common/QueueModel/SMSQueueModel.cs
Normal file
14
Yi.Framework/Yi.Framework.Common/QueueModel/SMSQueueModel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.QueueModel
|
||||
{
|
||||
public class SMSQueueModel
|
||||
{
|
||||
public string code { get; set; }
|
||||
public string phone { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user