规划mesh请求的框架结构, 细节待完善

This commit is contained in:
2025-03-28 17:40:51 +08:00
parent 93a855d1ae
commit d9da985da5
4 changed files with 212 additions and 76 deletions

View File

@ -7,12 +7,15 @@
// Date : 2024-05-24 17:09
package define
import "context"
// Request 请求配置
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 17:10 2024/5/24
type Request struct {
Ctx context.Context `json:"-"` // 请求上下文
PathParam map[string]string `json:"path_param"` // 替换url中的占位符
Body map[string]any `json:"body"` // 请求Body
Header map[string]string `json:"header"` // 请求Header