feat 通行记录支持image
This commit is contained in:
@@ -69,6 +69,12 @@ public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
|
||||
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片base64 / URL
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
||||
public string Image { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(IndexGroupNameList = new[] { "idx_DeviceUploadLog_TenantId" })]
|
||||
public string TenantId { get; set; }
|
||||
|
||||
@@ -27,5 +27,10 @@ public class DeviceUploadLogUploadRequest
|
||||
/// </summary>
|
||||
public string SerialNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片base64 / URL
|
||||
/// </summary>
|
||||
public string Image { get; set; }
|
||||
|
||||
public bool? Status { get; set; }
|
||||
}
|
||||
@@ -81,6 +81,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
NeedUpload = needUpload,
|
||||
TenantId = device.TenantId,
|
||||
Status = request.Status ?? true,
|
||||
Image = request.Image,
|
||||
CreatedBy = 1,
|
||||
ModifiedBy = 1
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user