GithubHelp home page GithubHelp logo

Comments (4)

jo-wu avatar jo-wu commented on May 17, 2024 2

我想说的是水平分层,独立出一个./api/user.js
把(user)用户相关的ajax调用都抽出来放到里面,
大概是这个意思。

from new-bee.

nonacosa avatar nonacosa commented on May 17, 2024

@jo-wu 哦?这位小哥哥能说的具体一点吗,是后端API加个前缀,还是前端router按模块划分呢?

from new-bee.

nonacosa avatar nonacosa commented on May 17, 2024

@jo-wu ok 我明白了,谢谢你提的意见

from new-bee.

nonacosa avatar nonacosa commented on May 17, 2024

@jo-wu

我暂时整理了 user相关目前的前端 api commit
看起来是这样的

后续的 更多 api 可以都这样处理并修改一下拦截器,比较清晰

公司中午网络不好用的流量😭 再次感谢~ 顺便求个 star 🤓

from new-bee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.