mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-03 08:35:59 +08:00
api2rpc
This commit is contained in:
@@ -13,3 +13,11 @@ type ApiBind[A, B any] interface {
|
||||
Context() context.Context
|
||||
Resp(resp *B, err error)
|
||||
}
|
||||
|
||||
type Api interface {
|
||||
OperationID() string
|
||||
OpUserID() string
|
||||
Context() context.Context
|
||||
Bind(req any) error
|
||||
Resp(resp any, err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user