Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

86 Zeilen
3.0KB

  1. package main
  2. // {
  3. // "id": "595072499036b8a52",
  4. // "deleted": false,
  5. // "post": "another stream",
  6. // "data": {},
  7. // "type": "Post",
  8. // "isInternal": false,
  9. // "createdAt": "2017-06-26 02:32:41",
  10. // "modifiedAt": "2017-06-26 02:32:41",
  11. // "parentId": "595071f8450974b72",
  12. // "parentType": "Lead",
  13. // "attachmentsIds": [],
  14. // "createdById": "1"
  15. // }
  16. // {
  17. // "id": "595072499036b8a52",
  18. // "deleted": false,
  19. // "post": "another stream",
  20. // "data": {},
  21. // "type": "Post",
  22. // "targetType": null,
  23. // "number": 34,
  24. // "isGlobal": false,
  25. // "createdByGender": "",
  26. // "isInternal": false,
  27. // "createdAt": "2017-06-26 02:32:41",
  28. // "modifiedAt": "2017-06-26 02:50:58",
  29. // "parentId": "595071f8450974b72",
  30. // "parentType": "Lead",
  31. // "parentName": " \u5218\u5efa\u660e",
  32. // "relatedId": null,
  33. // "relatedType": null,
  34. // "attachmentsIds": [
  35. // "5950769075cd82e67"
  36. // ],
  37. // "attachmentsNames": {
  38. // "5950769075cd82e67": "flag_gb.png"
  39. // },
  40. // "createdById": "1",
  41. // "createdByName": "Admin",
  42. // "modifiedById": "1",
  43. // "modifiedByName": "Admin",
  44. // "superParentId": null,
  45. // "superParentType": null,
  46. // "attachmentsTypes": {
  47. // "5950769075cd82e67": "image\/png"
  48. // }
  49. // }
  50. type crmdStream struct {
  51. ID string `json:"id"`
  52. Deleted bool `json:"deleted"`
  53. Post string `json:"post"`
  54. //Data passed
  55. Type string `json:"type"`
  56. //targetType unknown, why null
  57. Number int `json:"number,omitempty"`
  58. IsGlobal bool `json:"isGlobal,omitempty"`
  59. CreatedByGender string `json:"createdByGender,omitempty"`
  60. IsInternal bool `json:"isInternal"`
  61. CreateAt string `json:"createdAt"`
  62. ModifiedAt string `json:"modifiedAt"`
  63. ParentID string `json:"parentId"`
  64. ParentType string `json:"parentType"`
  65. ParentName string `json:"parentName,omitempty"`
  66. RelatedID string `json:"relatedId,omitempty"`
  67. RelatedType string `json:"relatedType,omitempty"`
  68. AttachmentsIDs []string `json:"attachmentsIds"`
  69. AttachmentsNames map[string]string `json:"attachmentsNames,omitempty"`
  70. AttachmentsTypes map[string]string `json:"attachmentsTypes,omitempty"`
  71. CreatedByID string `json:"createdById"`
  72. CreatedByName string `json:"createdByName,omitempty"`
  73. ModifiedByID string `json:"modifiedById,omitempty"`
  74. ModifiedByName string `json:"modifiedByName,omitempty"`
  75. SuperParentID string `json:"superParentId,omitempty"`
  76. SuperParentType string `json:"superParentType,omitempty"`
  77. }
  78. //add note
  79. func add2Stream() {
  80. //url := "https://c.hitxy.org.au/api/v1/Note"
  81. }