Giter VIP home page Giter VIP logo

Comments (1)

JoeCao avatar JoeCao commented on August 29, 2024

因为这是一个demo项目,为了简化,很多常规业务流程没有做(比如用户注册绑定手机、订单支付、订单取消等等)。demo核心业务逻辑主要集中在意向单和司机的匹配上,这正是Intention领域的逻辑,很多方法都在Intention这个根对象上面体现出来了。
https://github.com/JoeCao/qbike/blob/master/intention/src/main/java/club/newtech/qbike/intention/domain/core/root/Intention.java
你看所有的候选司机都是在这个根对象里面的,就是为了方便做匹配的业务逻辑,这是一个典型的充血模型。
对于其他的业务逻辑,可以自行扩展。分析哪些方法在根对象中,主要是用“Event Stoming”、“贴身职责”的方式来进行。

from qbike.

Related Issues (8)

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.