ESUserThumbsupRecord.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. namespace JiaZhiQuan.Common.ElasticSearch.Models
  3. {
  4. /*
  5. PUT /user_thumbsup_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_thumbsup_record
  41. /// </summary>
  42. public class ESUserThumbsupRecord {
  43. [ESId("_id")]
  44. public string id { get; set; }
  45. public long userId { get; set; }
  46. public long postId { get; set; }
  47. public long authorId { get; set; }
  48. public int categoryType { get; set; }
  49. public int enabled { get; set; }
  50. public DateTime createAt { get; set; }
  51. public DateTime updateAt { get; set; }
  52. }
  53. }