mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Generate typesafe typescript and go clients, examples (#194)
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
type Sentiment struct{}
|
||||
|
||||
func (e *Sentiment) Analyze(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
|
||||
func (e *Sentiment) Analyze(ctx context.Context, req *pb.AnalyzeRequest, rsp *pb.AnalyzeResponse) error {
|
||||
if len(req.Text) == 0 {
|
||||
return errors.BadRequest("sentiment.analyze", "text is blank")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user