This commit is contained in:
withchao
2023-02-24 19:16:26 +08:00
parent d7640ca864
commit c019dd5f1e
12 changed files with 239 additions and 211 deletions
+8
View File
@@ -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)
}