gpt4 book ai didi

go - 在 Postman 中填写请求正文

转载 作者:行者123 更新时间:2023-12-01 22:40:40 24 4
gpt4 key购买 nike

请求的主体被解码为我自己的 go 结构。

// The go struct.
type NewUser struct {
User string `json:"user" validate:"required"`
Password string `json:"password" validate:"required"`
PasswordConfirm string `json:"password_confirm" validate:"eqfield=Password"`
}

---

// the web request with body will be decoded into this struct.
var nu NewUser
if err := web.Decode(r, &nu); err != nil {
return errors.Wrap(err, "")
}

我应该如何将这个 body 传递给 postman 。

最佳答案

您的问题不符合 StackOverflow 规则。

这是基本缺乏桌面用户体验。

screen

关于go - 在 Postman 中填写请求正文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60227703/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com