BulletinInfoUpdateDto.cs 805 B

123456789101112131415161718192021222324252627
  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(BulletinInfo))]
  9. public class BulletinInfoUpdateDto: EntityDto<int>
  10. {
  11. [Required]
  12. [StringLength(BulletinInfo.BulletinTypeMaxLength)]
  13. public string BulletinType { get; set; }
  14. [Required]
  15. [StringLength(BulletinInfo.TitleMaxLength)]
  16. public string Title { get; set; }
  17. [Required]
  18. public string Content { get; set; }
  19. [StringLength(BulletinInfo.PromulgatorMaxLength)]
  20. public string Promulgator { get; set; }
  21. public DateTime? PromulgatTime { get; set; }
  22. public DateTime? ExpirationDate { get; set; }
  23. }
  24. }