feat: create session. (also print the x-rid into the log)

This commit is contained in:
Muyao CHEN
2024-10-11 23:24:29 +02:00
parent be7f57d5a1
commit a3c2ade9fb
10 changed files with 105 additions and 36 deletions

View File

@ -33,6 +33,7 @@ type Context interface {
// Request
Bind(obj any) error
GetHeader(key string) string
// Response
JSON(code int, obj any)