This commit is contained in:
withchao
2023-02-24 15:41:50 +08:00
parent ae8478dc5e
commit d7640ca864
11 changed files with 445 additions and 290 deletions
+15
View File
@@ -0,0 +1,15 @@
package api2rpc
import (
"context"
)
type Ignore struct{}
type ApiBind[A, B any] interface {
OperationID() string
OpUserID() (string, error)
Bind(*A) error
Context() context.Context
Resp(resp *B, err error)
}