go2o

command module
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: GPL-2.0 Imports: 15 Imported by: 0

README

Go2o

Build Status

What's Go2o?

Go2o is Google Go language binding domain-driven design (DDD) O2O open source implementation. Support Online Store , Offline stores; multi-channel (businesses), multi-store, merchandise, snapshots, orders, sales, payment, distribution and other functions.

Project by a management center (including platform management center, business background, store background), online store (PC shop, Handheld shops, micro-channel), the member center, open API in four parts.

Go2o using domain-driven design for business depth abstract, theoretical support in most sectors O2O scenarios. Through open API, you can seamlessly integrate into legacy systems.

Go2o 介绍

Go2o是使用Golang语言结合领域驱动设计(DDD)的O2O实现。支持线上商店,线下门店;多渠道

(商户)、多门店、商品、规格SKU、快照、订单、促销、支付、配送等功能。

项目由管理中心(包括平台管理中心、商户后台、门店后台)、线上商店(PC商店、手持设备商店、微信)、

会员中心和通行证、服务四部分组成。

Go2o使用领域驱动设计对业务深度抽象,支持常见的O2O应用场景。通过Socket服务,可以开发安卓和IOS,

使用RPC服务可以方便与其他系统进行集成。

Go2o

贡献代码请看: todo list | bug list

========================================

感谢以下哥们和匿名捐助的朋友:

  • *巍
  • zhu***@126.com
  • 职业码农
  • 奋斗富三代

QQ群:338164725

**特别感谢: 领域驱动设计的专家-(腾讯)王立老师,我的良师益友;没有他,就没有这个项目!

运行

准备运行环境

  • 安装PostgreSQL并创建名为go2o的数据库, 下载数据备份文件:go2o.sql进行还原
  • 安装nats
  • 安装etcd,单机创建单节点既可

### 编译运行

git clone https://github.com/ixre/go2o.git ./go2o
cd go2o && go mod tidy 
go run go2o-serve.go

指定参数,请参考:

Usage of go2o-serve:
  -apiport int
        api service port (default 1428)
  -conf string
         (default "app.conf")
  -d    run daemon
  -debug
        enable debug
  -endpoint etcd endpoints
  -help
        command usage
  -mqs string
        mq cluster address, like: 192.168.1.1:4222,192.168.1.2:4222 (default "127.0.0.1:4222")
  -port int
        gRPC service port (default 1427)
  -trace
        enable trace
  -v    print version

推荐使用docker-compose一键运行

docker-compose up -f container/docker-compose.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
api
HTTP API v1.0 ----------------------- 约定参数名称: api : 接口名称 api_key : 接口用户 sign : 签名 sign_type : 签名类型 app : 应用编码 -----------------------
HTTP API v1.0 ----------------------- 约定参数名称: api : 接口名称 api_key : 接口用户 sign : 签名 sign_type : 签名类型 app : 应用编码 -----------------------
daemon
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
pub
tcpserve
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
util
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
v1/api
HTTP API v1.0 ----------------------- 约定参数名称: api : 接口名称 api_key : 接口用户 sign : 签名 sign_type : 签名类型 app : 应用编码 -----------------------
HTTP API v1.0 ----------------------- 约定参数名称: api : 接口名称 api_key : 接口用户 sign : 签名 sign_type : 签名类型 app : 应用编码 -----------------------
v1/restapi
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
dao
* * This file is auto generated by tto v0.4.5 ! * If you want to modify this code, please read the guide * to modify code template.
* * This file is auto generated by tto v0.4.5 ! * If you want to modify this code, please read the guide * to modify code template.
dao/impl
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
domain
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/ad
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/after-sales
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/content
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/delivery
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/express
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/ad
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/after-sales
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/content
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/delivery
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/interface/domain/enum
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/express
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/item
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/interface/member
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/merchant
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/merchant/shop
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/merchant/user
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/interface/mss
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/mss/notify
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/payment
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
domain/interface/personfinance
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/product
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/promotion
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/shipment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/valueobject
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/interface/wallet
create for src 29/11/2017 ( jarrysix@gmail.com )
create for src 29/11/2017 ( jarrysix@gmail.com )
domain/item
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/member
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/merchant
create for src 30/11/2017 ( jarrysix@gmail.com ) * * Copyright 2015 @ 56x.net.
create for src 30/11/2017 ( jarrysix@gmail.com ) * * Copyright 2015 @ 56x.net.
domain/merchant/shop
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/merchant/user
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/mss
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/mss/notify
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/order
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/personfinance
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/product
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/promotion
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/shipment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain/tmp
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
dto
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/domain
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
infrastructure/domain/util
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/format
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/gen
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/gen/rsc
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/gen/rsc/gf256
Package gf256 implements arithmetic over the Galois Field GF(256).
Package gf256 implements arithmetic over the Galois Field GF(256).
infrastructure/gen/rsc/qr
Package qr encodes QR codes.
Package qr encodes QR codes.
infrastructure/gen/rsc/qr/coding
Package coding implements low-level QR coding details.
Package coding implements low-level QR coding details.
infrastructure/mss
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/payment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/payment/alipay
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/tool
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/tool/sms
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/tool/sms/aliyu
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
infrastructure/tool/sms/cl253
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
module
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
msq
query
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
repos
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
service
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
service/impl
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
service/parser
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
variable
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
ti
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL