Skip to content

移动前端api 怎么实现 #155

Open
@Mu-tou

Description

@Mu-tou

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

Activity

gopkg-dev

gopkg-dev commented on May 5, 2024

@gopkg-dev
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Mu-tou@gopkg-dev

        Issue actions

          移动前端api 怎么实现 · Issue #155 · LyricTian/gin-admin