1111
This commit is contained in:
@@ -30,6 +30,24 @@ public class OnboardingPublicContractSourceInput
|
||||
public long TaskContractId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工端预览已上传材料参数。
|
||||
/// </summary>
|
||||
public class OnboardingPublicMaterialSourceInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工填写链接中的明文 Token。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.DataAnnotations.Required]
|
||||
public string Token { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务材料记录 Id。
|
||||
/// </summary>
|
||||
[IdNotNull(ErrorMessage = "任务材料Id不能为空")]
|
||||
public long TaskMaterialId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工端保存固定基础信息参数。
|
||||
/// </summary>
|
||||
@@ -162,12 +180,73 @@ public class OnboardingPublicMaterialOutput
|
||||
/// </summary>
|
||||
public int MaxFileCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单个文件最大大小,单位为 MB;为空表示不限制。
|
||||
/// </summary>
|
||||
public int? MaxFileSizeMb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否必填、必传或必签。
|
||||
/// </summary>
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工端已上传材料展示信息。
|
||||
/// </summary>
|
||||
public class OnboardingPublicTaskMaterialOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务材料记录 Id。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 材料类型 Id。
|
||||
/// </summary>
|
||||
public long MaterialTypeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 材料显示名称。
|
||||
/// </summary>
|
||||
public string MaterialName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统文件 Id。
|
||||
/// </summary>
|
||||
public long FileId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户上传时的原始文件名。
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件扩展名,不包含点号。
|
||||
/// </summary>
|
||||
public string FileSuffix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 格式化后的文件大小。
|
||||
/// </summary>
|
||||
public string FileSizeInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 材料上传时间。
|
||||
/// </summary>
|
||||
public DateTime UploadedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 材料审核状态。
|
||||
/// </summary>
|
||||
public string ReviewStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 材料审核意见。
|
||||
/// </summary>
|
||||
public string ReviewRemark { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工端入职任务完整详情。
|
||||
/// </summary>
|
||||
@@ -206,7 +285,7 @@ public class OnboardingTaskPublicDetailOutput
|
||||
/// <summary>
|
||||
/// 候选人已上传材料列表。
|
||||
/// </summary>
|
||||
public List<ObTaskMaterial> Materials { get; set; }
|
||||
public List<OnboardingPublicTaskMaterialOutput> Materials { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合同中由员工填写的扩展变量。
|
||||
|
||||
@@ -112,6 +112,7 @@ public class OnboardingTaskService : IOnboardingTaskService
|
||||
{
|
||||
Id = global::SimpleAdmin.Core.Utils.CommonUtils.GetSingleId(),
|
||||
TaskId = taskId,
|
||||
PlainToken = token,
|
||||
TokenHash = Convert.ToHexString(global::System.Security.Cryptography.SHA256.HashData(
|
||||
global::System.Text.Encoding.UTF8.GetBytes(token))),
|
||||
ExpiresAt = expiresAt
|
||||
|
||||
Reference in New Issue
Block a user