Added some more commands and mades some quality of life improvements
All checks were successful
Build / build (push) Successful in 4m27s
All checks were successful
Build / build (push) Successful in 4m27s
This commit is contained in:
parent
3a23118036
commit
3cb5795ca5
17 changed files with 432 additions and 75 deletions
17
models.go
17
models.go
|
|
@ -1,9 +1,10 @@
|
|||
package main
|
||||
|
||||
type TextSpan struct {
|
||||
Text string `json:"text"`
|
||||
Pos int `json:"pos"`
|
||||
Len int `json:"len"`
|
||||
Text string `json:"text"`
|
||||
Pos int `json:"pos"`
|
||||
Len int `json:"len"`
|
||||
Append bool `json:"append"`
|
||||
}
|
||||
|
||||
type ProcessTextRequest struct {
|
||||
|
|
@ -11,6 +12,16 @@ type ProcessTextRequest struct {
|
|||
Input []TextSpan `json:"input"`
|
||||
}
|
||||
|
||||
type ListProcessorsResponse struct {
|
||||
Name string `json:"name"`
|
||||
Label string `json:"label"`
|
||||
}
|
||||
|
||||
type SetStatusbarMessage struct {
|
||||
Message string `json:"message"`
|
||||
Error bool `json:"error"`
|
||||
}
|
||||
|
||||
type ProcessTextResponse struct {
|
||||
Output []TextSpan `json:"output"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue