10 changed files with 2451 additions and 28 deletions
-
90src/Shentun.Sms.Application.Contracts/SmsTasks/CreateThirdPartySmsTaskInputDto.cs
-
13src/Shentun.Sms.Application/Jobs/SmsSendJob.cs
-
46src/Shentun.Sms.Application/Jobs/SmsTaskJob.cs
-
63src/Shentun.Sms.Application/SmsTasks/SmsTaskAppService.cs
-
2src/Shentun.Sms.DbMigrator/appsettings.json
-
2src/Shentun.Sms.Domain/SmsTasks/SmsTask.cs
-
6src/Shentun.Sms.Domain/SmsTypes/SmsType.cs
-
2226src/Shentun.Sms.EntityFrameworkCore/Migrations/20240924021839_update_sms_type_template_id.Designer.cs
-
26src/Shentun.Sms.EntityFrameworkCore/Migrations/20240924021839_update_sms_type_template_id.cs
-
5src/Shentun.Sms.EntityFrameworkCore/Migrations/SmsDbContextModelSnapshot.cs
@ -0,0 +1,90 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace Shentun.Sms.SmsTasks |
|||
{ |
|||
public class CreateThirdPartySmsTaskInputDto |
|||
{ |
|||
/// <summary>
|
|||
/// 短信类别ID
|
|||
/// </summary>
|
|||
public Guid SmsTypeId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 人员ID
|
|||
/// </summary>
|
|||
public string PersonId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 姓名
|
|||
/// </summary>
|
|||
public string PersonName { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 手机号国家代码
|
|||
/// </summary>
|
|||
public string CountryCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 手机号
|
|||
/// </summary>
|
|||
public string MobileTelephone { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 短信内容
|
|||
/// </summary>
|
|||
public string Content { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 应用ID
|
|||
/// </summary>
|
|||
public Guid SmsAppId { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 第三方系统唯一ID
|
|||
/// </summary>
|
|||
public string? ThirdId { get; set; } |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 任务周期类别
|
|||
/// </summary>
|
|||
public char TaskCycleType { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 任务表达式
|
|||
/// </summary>
|
|||
public string? TaskCorn { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 停止执行时间
|
|||
/// </summary>
|
|||
public string? StopTime { get; set; } |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 发送者用户ID
|
|||
/// </summary>
|
|||
public string? SenderId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 发送者用户名
|
|||
/// </summary>
|
|||
public string? SenderName { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 计划发送时间集合
|
|||
/// </summary>
|
|||
public List<string> PlanSendTimes { get; set; } |
|||
|
|||
|
|||
|
|||
} |
|||
} |
|||
2226
src/Shentun.Sms.EntityFrameworkCore/Migrations/20240924021839_update_sms_type_template_id.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,26 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Sms.Migrations |
|||
{ |
|||
public partial class update_sms_type_template_id : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "template_id", |
|||
table: "sms_type", |
|||
type: "character varying(50)", |
|||
maxLength: 50, |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "template_id", |
|||
table: "sms_type"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue