using MoYu.DataValidation;
using System.ComponentModel.DataAnnotations;
namespace SafeCampus.Application.Services.Business.CameraInfoService;
public class SetPushPersonGroupInput
{
///
/// 分组Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
[DataValidation(ValidationTypes.Numeric)]
public virtual long GroupId { get; set; }
///
/// 人员id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
[DataValidation(ValidationTypes.Numeric)]
public virtual long UserId { get; set; }
}
public class SetPushPersonInput
{
///
/// 人员id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
[DataValidation(ValidationTypes.Numeric)]
public virtual long UserId { get; set; }
///
/// 摄像头Id列表
///
[IdsNotNull(ErrorMessage = "IdList不能为空")]
public List Ids { get; set; } = new List();
}
public class SetPushPersonWarnInput
{
///
/// 告警类型编码
///
[IdNotNull(ErrorMessage = "告警类型编码")]
public virtual string WarnCode { get; set; }
///
/// 人员id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
[DataValidation(ValidationTypes.Numeric)]
public virtual long UserId { get; set; }
}