mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-16 23:09:01 +08:00
api2rpc
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user