Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使 BodyMap Set func 支持链式调用? #83

Closed
WenyXu opened this issue Dec 2, 2020 · 4 comments
Closed

使 BodyMap Set func 支持链式调用? #83

WenyXu opened this issue Dec 2, 2020 · 4 comments

Comments

@WenyXu
Copy link
Contributor

WenyXu commented Dec 2, 2020

body.Set("out_biz_no", out_biz_no)
body.Set("payee_type", "ALIPAY_LOGONID")

e.g.

func (bm BodyMap) Set(key string, value interface{}) BodyMap {
    ...
    return bm
}
body.Set("out_biz_no", out_biz_no).Set("payee_type", "ALIPAY_LOGONID")
@iGoogle-ink
Copy link
Member

merged

@iGoogle-ink
Copy link
Member

但是我看你那个,好像也不是链式调用,而是深入层级set

@iGoogle-ink
Copy link
Member

我再你的基础上,又重新优化过了一版

@WenyXu
Copy link
Contributor Author

WenyXu commented Dec 4, 2020

但是我看你那个,好像也不是链式调用,而是深入层级set

对的,PR 那个没有上链式

@WenyXu WenyXu closed this as completed Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants