IdPk.cs 684 B

123456789101112131415161718192021222324252627
  1. using ProtoBuf;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Net;
  7. using System.Threading.Tasks;
  8. namespace TEAMModelOS.SDK.Module.AzureCosmosDBV3
  9. {
  10. [ProtoContract]
  11. public class IdPk
  12. {
  13. [ProtoMember(1)]
  14. [Required(ErrorMessage = "{0} 必须填写")]
  15. public string id { get; set; }
  16. [ProtoMember(2)]
  17. public string pk { get; set; }
  18. /// <summary>
  19. /// 删除状态 NoContent(删除成功),NotFound(未找到,删除失败)
  20. /// </summary>
  21. [ProtoMember(3)]
  22. public HttpStatusCode StatusCode { get;set;}
  23. }
  24. }