GithubHelp home page GithubHelp logo

crm-sales's Introduction

快速开始

测试地址

应用启动后访问测试地址

新增一个客户(随机生成):

http://localhost:8080/customer/add

{"errCode":null,"errMessage":null,"success":true}

查询客户列表:

http://localhost:8080/customer/list

{"errCode":null,"errMessage":null,"total":5,"data":[{"extValues":{},"customerId":"832802","memberId":null,"customerName":null,"customerType":null,"companyName":"杭州XX公司","source":null},{"extValues":{},"customerId":"836874","memberId":null,"customerName":null,"customerType":null,"companyName":"杭州XX公司","source":null},{"extValues":{},"customerId":"838993","memberId":null,"customerName":null,"customerType":null,"companyName":"杭州XX公司","source":null},{"extValues":{},"customerId":"871459","memberId":null,"customerName":null,"customerType":null,"companyName":"杭州XX公司","source":null},{"extValues":{},"customerId":"89538","memberId":null,"customerName":null,"customerType":null,"companyName":"杭州XX公司","source":null}],"success":true}

主要工作是在脚手架的基础上,加入web功能和mysql连接

crm-sales-app
│   └── src
│       └── main
│           └── java
│               └── cn
│                   └── springcloud
│                       └── book
│                           └── crm
│                               └── sales
│                                   ├── assembler //防腐层
│                                   ├── command  // 放Command
│                                   │   ├── extension //扩展点实现
│                                   │   ├── extensionpoint //扩展点
│                                   │   └── query // 放Query
│                                   ├── event   // event事件
│                                   │   └── handler
│                                   ├── interceptor //基于Halo框架的Pre和Post拦截器
│                                   ├── service
│                                   └── validator  //校验
│                                       ├── extension //校验扩展点实现
│                                       └── extensionpoint //校验扩展点
crm-sales-domain
│   └── src
│       └── main
│           ├── java
│           │   └── cn
│           │       └── springcloud
│           │           └── book
│           │               └── crm
│           │                   └── sales
│           │                       └── domain
│           │                           └── customer
│           │                               ├── convertor //转换器
│           │                               │   ├── extension  //扩展点实现
│           │                               │   └── extensionpoint //扩展点
│           │                               ├── entity  //领域聚合
│           │                               ├── factory //创建领域实体的工厂
│           │                               ├── repository //持久化领域对象和Tunnel层交互
│           │                               ├── rule  //业务规则
│           │                               │   ├── extension // 业务规则扩展点实现
│           │                               │   └── extensionpoint //业务规则扩展点
│           │                               └── valueobject  //值对象
├── crm-sales-client
│   └── src
│       └── main
│           └── java
│               └── cn
│                   └── springcloud
│                       └── book
│                           └── crm
│                               └── sales
│                                   ├── api  //二方包接口
│                                   └── dto  //对应领域驱动框架中的Command对象
│                                       └── clientobject //客户端对象CO
├── crm-sales-infrastructure
│   └── src
│       └── main
│           ├── java
│           │   └── cn
│           │       └── springcloud
│           │           └── book
│           │               └── crm
│           │                   └── sales
│           │                       ├── common
│           │                       ├── config  //Halo框架等Spring Boot的java配置类
│           │                       ├── dao     //数据接口访问层
│           │                       └── tunnel  //数据通道层
│           │                           ├── dataobject //数据对象DO
│           │                           └── datatunnel //数据通道接口层
│           │                               └── impl   //数据通道接口对应的实现
│           └── resources
│               └── mapper // MyBitas的Mapper文件

crm-sales's People

Contributors

softwareking 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.