ShortMessageUpdateDto.cs 767 B

123456789101112131415161718192021222324
  1. using System;
  2. using Abp.AutoMapper;
  3. using Abp.Application.Services.Dto;
  4. using System.ComponentModel.DataAnnotations;
  5. using ShwasherSys.NotificationInfo;
  6. namespace ShwasherSys.NotificationInfo.Dto
  7. {
  8. [AutoMapTo(typeof(ShortMessage))]
  9. public class ShortMessageUpdateDto: EntityDto<int>
  10. {
  11. [Required]
  12. [StringLength(ShortMessage.SendUserIDMaxLength)]
  13. public string SendUserID { get; set; }
  14. [StringLength(ShortMessage.TitleMaxLength)]
  15. public string Title { get; set; }
  16. [StringLength(ShortMessage.ContentMaxLength)]
  17. public string Content { get; set; }
  18. public DateTime? SendTime { get; set; }
  19. [StringLength(ShortMessage.RecieveUserIdsMaxLength)]
  20. public string RecieveUserIds { get; set; }
  21. }
  22. }