17 lines
295 B
Go
17 lines
295 B
Go
|
package main
|
||
|
|
||
|
type TextSpan struct {
|
||
|
Text string `json:"text"`
|
||
|
Pos int `json:"pos"`
|
||
|
Len int `json:"len"`
|
||
|
}
|
||
|
|
||
|
type ProcessTextRequest struct {
|
||
|
Action string `json:"action"`
|
||
|
Input []TextSpan `json:"input"`
|
||
|
}
|
||
|
|
||
|
type ProcessTextResponse struct {
|
||
|
Output []TextSpan `json:"output"`
|
||
|
}
|