feat:add context interface, and change core.writeresponse function to use it

This commit is contained in:
Muyao CHEN
2024-10-04 23:40:45 +02:00
parent 321b4704a2
commit 4794137d42
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
package core
type Context interface {
JSON(code int, obj any)
}