feat:add context interface, and change core.writeresponse function to use it
This commit is contained in:
5
internal/pkg/core/context.go
Normal file
5
internal/pkg/core/context.go
Normal file
@ -0,0 +1,5 @@
|
||||
package core
|
||||
|
||||
type Context interface {
|
||||
JSON(code int, obj any)
|
||||
}
|
||||
Reference in New Issue
Block a user