Giter VIP home page Giter VIP logo

newresk's Introduction

架构

用户接口层(apis):用户接口层用来存储协议, 网络交互适配层相关的代码
  • -web:存放web接口

    1. account.go
    2. envelopo.go
  • -thrift


应用层(services):封装了所有的业务逻辑
  • 结构
    1. accounts.go
    2. envelopes.go

核心领域层(core):存放业务逻辑的代码,是业务系统的核心。包含一个或多个核心业务领域
  • 用于业务领域 users

  • 红包业务领域 envelopes

    1. po_goods.go 商品订单
    2. po_item.go 商品详情
    3. dao_goods.go 商品数据库
    4. dao_item.go 商品详情
    5. domain_goods.go
    6. domain_item.go
    7. domains.go
  • 账户业务领域 accounts

    1. po_account.go 持久结构体文件
    2. po_account_log.go 账户流水
    3. dao_account.go
    4. dao_account_log.go
    5. domain_account.go
    6. domain_account_log.go
    7. domains.go
    8. service.go

基础设施层(infra):存放数据库、缓存、消息队列、算法、工具函数等,和业务无关的基础代码

doc:存储项目文档

brun:存储项目的main函数和其他相关工具以及相关文件的内容,编译之后的二进制代码都在这里运行
  1. main.go

public:存放css、js、图片、html模板、静态文件

  1. core 核心应用层、领域、持久层
  2. apis :用户接口层
  3. brun :应用程序
  4. doc :文档
  5. infra :基础设施
  6. services :应用层接口:应用服务

newresk's People

Contributors

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