ESIpAddress.cs 638 B

123456789101112131415161718192021222324252627282930313233343536
  1. namespace JiaZhiQuan.Common.ElasticSearch.Models
  2. {
  3. /**
  4. *
  5. PUT /ip_addr
  6. {
  7. "mappings": {
  8. "properties": {
  9. "ip": {
  10. "type": "keyword"
  11. },
  12. "addr": {
  13. "type": "keyword"
  14. },
  15. "province": {
  16. "type": "keyword"
  17. },
  18. "city": {
  19. "type": "keyword"
  20. }
  21. }
  22. }
  23. }
  24. */
  25. /// <summary>
  26. /// ip地址/地址映射
  27. /// ip_addr
  28. /// </summary>
  29. public class ESIpAddress
  30. {
  31. public string ip { get; set; }
  32. public string addr { get; set; }
  33. public string province { get; set; }
  34. public string city { get; set; }
  35. }
  36. }