ESUserModel.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace JiaZhiQuan.Common.ElasticSearch.Models
  5. {
  6. /*
  7. DELETE /user
  8. PUT /user
  9. {
  10. "mappings": {
  11. "properties": {
  12. "id": {
  13. "type": "long"
  14. },
  15. "alias": {
  16. "type": "text",
  17. "analyzer": "ik_max_word"
  18. },
  19. "username": {
  20. "type": "keyword"
  21. },
  22. "sex": {
  23. "type": "short"
  24. },
  25. "authType": {
  26. "type": "short"
  27. },
  28. "authName": {
  29. "type": "keyword"
  30. },
  31. "domainTalent": {
  32. "type": "keyword"
  33. },
  34. "headImage": {
  35. "type": "text",
  36. "index": false
  37. },
  38. "description": {
  39. "type": "text",
  40. "analyzer": "ik_max_word"
  41. },
  42. "fansCount": {
  43. "type": "integer"
  44. }
  45. }
  46. }
  47. }
  48. */
  49. /// <summary>
  50. /// ES中记录未禁用的用户
  51. /// </summary>
  52. public class ESUserModel
  53. {
  54. public long id { get; set; }
  55. public string alias { get; set; }
  56. public string username { get; set; }
  57. public short sex { get; set; }
  58. public short authType { get; set; }
  59. public string[] authName { get; set; }
  60. public string[] domainTalent { get; set; }
  61. public short vip { get; set; }
  62. public string headImage { get; set; }
  63. public string description { get; set; }
  64. public int fansCount { get; set; }
  65. }
  66. }