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

考虑接口重复提交的问题 #12

Closed
xinliangnote opened this issue Mar 3, 2021 · 0 comments
Closed

考虑接口重复提交的问题 #12

xinliangnote opened this issue Mar 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@xinliangnote
Copy link
Owner

xinliangnote commented Mar 3, 2021

1、优化 middlerware 包,新增 Resubmit 路由中间件:

  • 使用方式:在路由文件中这样写 middles.Resubmit() 即可。

2、优化 token 包,新增 UrlSign 签名方式:

  • UrlSign:基于 request body 进行加密生成的签名,此签名不可解密。
  • 基于 UrlSign 加密方式,编写同效果的 PHP 代码。

3、优化 core 包,新增方法:

  • RequestInputParams() url.Values ,获取请求中所有的参数;
  • RequestPostFormParams() url.Values,获取请求中所有的 PostForm 参数;

4、优化 redis 包,新增方法:

  • Exists(keys ...string) bool,判断 keys 是否存在;
@xinliangnote xinliangnote added the enhancement New feature or request label Mar 4, 2021
xinliangnote added a commit that referenced this issue Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant