12345678910111213141516171819202122232425262728293031323334353637 |
- syntax = "proto3";
- package ticket;
- // golang
- option go_package = "./ticket";
- // java
- option java_package = "com.gshopper.crm.ticket";
- option java_outer_classname = "proto";
- enum MessageProvider {
- UnknownMessageProvider = 0;
- EmailMessageProvider = 1;
- ChatMessageProvider = 2;
- GptMessageProvider = 3;
- ApiMessageProvider = 4;
- FunctionProvider = 5;
- }
- message Message {
- message Header {
- string key = 1;
- string value = 2;
- }
- string ticket_id = 1 [json_name = "ticket_id"];
- MessageProvider provider = 2 [json_name = "provider"];
- string body = 3 [json_name = "body"];
- int64 date = 4 [json_name = "date"];
- string raw = 5 [json_name = "raw"];
- repeated Header headers = 10 [json_name = "headers"];
- }
- message Ticket {
- string id = 1 [json_name= "id"];
- repeated Message thread = 10 [json_name = "thread"];
- }
|