ticket.proto 839 B

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. package ticket;
  3. // golang
  4. option go_package = "./ticket";
  5. // java
  6. option java_package = "com.gshopper.crm.ticket";
  7. option java_outer_classname = "proto";
  8. enum MessageProvider {
  9. UnknownMessageProvider = 0;
  10. EmailMessageProvider = 1;
  11. ChatMessageProvider = 2;
  12. GptMessageProvider = 3;
  13. ApiMessageProvider = 4;
  14. FunctionProvider = 5;
  15. }
  16. message Message {
  17. message Header {
  18. string key = 1;
  19. string value = 2;
  20. }
  21. string ticket_id = 1 [json_name = "ticket_id"];
  22. MessageProvider provider = 2 [json_name = "provider"];
  23. string body = 3 [json_name = "body"];
  24. int64 date = 4 [json_name = "date"];
  25. string raw = 5 [json_name = "raw"];
  26. repeated Header headers = 10 [json_name = "headers"];
  27. }
  28. message Ticket {
  29. string id = 1 [json_name= "id"];
  30. repeated Message thread = 10 [json_name = "thread"];
  31. }