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

移动前端api 怎么实现 #155

Open
Mu-tou opened this issue May 5, 2024 · 1 comment
Open

移动前端api 怎么实现 #155

Mu-tou opened this issue May 5, 2024 · 1 comment

Comments

@Mu-tou
Copy link

Mu-tou commented May 5, 2024

现有的生成的模块 都生成在mods下,前端生成后 , 走得中间件 和解析的userid. 不是 前端用户的数据 怎么能更好的处理?

@gopkg-dev
Copy link
Contributor

应该也是一样写,在 auth 和 casbin 中间件里面SkippedPathPrefixes配置跳过你 api 的路由就好了, 如果有需要你再自己写个中间件来单独处理你移动端的 API 的参数校验之类的

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