Code Monkey home page Code Monkey logo

helloefcoremasterslave's Introduction

业务背景

某车企开展引荐活动送积分,需要提供一个服务对引荐信息进行管理,通过API接口提供引荐信息的管理能力。

简单架构示意图

涉及组件

  • MediatR
  • EntityFrameworkCore
  • Swashbuckle
  • MySqlConnector
  • Newtonsoft.Json

解决方案和分层

dotnet new sln -o HelloEfCoreMasterSlave

这里我们将采用面向领域驱动设计(DDD)的模式,先将解决方案中项目完成分组:

  • 0.Shared 共享项目,定义业务无关的基础代码和接口定义
  • 1.Infrastructure 基础层,定义仓储、Context
  • 2.Domain 领域层,定义领域模式和领域事件
  • 3.Application 应用层,定义命令和处理程序,协调调度任务
  • 4.Interface 接口层,定义API终结点、验证
  • 5.Test 应用测试,定义API终结点、验证

相关文章

helloefcoremasterslave's People

Contributors

taylorshi avatar

Watchers

 avatar

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.