钉钉相关提醒接口

GogsCommits.cs 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System.Collections.Generic;
  2. namespace ddAlter.Models
  3. {
  4. public class GogsCommits
  5. {
  6. public string secret { get; set; }
  7. public string before { get; set; }
  8. public string after { get; set; }
  9. public string compare_url { get; set; }
  10. public List<Commit> commits { get; set; }
  11. public Repository repository { get; set; }
  12. public object pusher { get; set; }
  13. public object sender { get; set; }
  14. // "secret": "SEC47e4a832ec25fa46fe14f71cd00f4b3eb4077e3fa2e88d6a06e335e097580be4",
  15. //"ref": "refs/heads/master",
  16. //"before": "262e49a17e5146a9a0d0783d772fd8a0a1bf19e4",
  17. //"after": "30e3a34a3618feebcd8c71b886c35434c0d06858",
  18. //"compare_url"
  19. }
  20. public class Repository
  21. {
  22. public string name { get; set; }
  23. public string description { get; set; }
  24. }
  25. public class Commit
  26. {
  27. public string id { get; set; }
  28. public string message { get; set; }
  29. public string url { get; set; }
  30. public Author author { get; set; }
  31. public Committer committer { get; set; }
  32. public string timestamp { get; set; }
  33. }
  34. public class Author
  35. {
  36. public string name { get; set; }
  37. public string email { get; set; }
  38. public string username { get; set; }
  39. }
  40. public class Committer
  41. {
  42. public string name { get; set; }
  43. public string email { get; set; }
  44. public string username { get; set; }
  45. }
  46. }