ESUserCollectRecord.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. namespace JiaZhiQuan.Common.ElasticSearch.Models
  3. {
  4. /*
  5. PUT /user_collect_record
  6. {
  7. "mappings": {
  8. "properties": {
  9. "id": {
  10. "type": "keyword"
  11. },
  12. "userId": {
  13. "type": "long"
  14. },
  15. "postId": {
  16. "type": "long"
  17. },
  18. "authorId": {
  19. "type": "long"
  20. },
  21. "categoryType": {
  22. "type": "integer"
  23. },
  24. "enabled": {
  25. "type": "integer"
  26. },
  27. "createAt": {
  28. "type": "date",
  29. "format": "yyyy-MM-dd HH:mm:ss"
  30. },
  31. "updateAt": {
  32. "type": "date",
  33. "format": "yyyy-MM-dd HH:mm:ss"
  34. }
  35. }
  36. }
  37. }
  38. */
  39. /// <summary>
  40. /// user_collect_record
  41. /// </summary>
  42. public class ESUserCollectRecord
  43. {
  44. [ESId("_id")]
  45. public string id { get; set; }
  46. public long userId { get; set; }
  47. public long postId { get; set; }
  48. public long authorId { get; set; }
  49. public int categoryType { get; set; }
  50. public int enabled { get; set; }
  51. public DateTime createAt { get; set; }
  52. public DateTime updateAt { get; set; }
  53. }
  54. }