All Projects → snowlyg → go-tenancy

snowlyg / go-tenancy

Licence: other
快速实现 SaaS 多租户平台项目

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-tenancy

iris-gorm-demo
iris+gorm+mysql的restful api项目起手式
Stars: ✭ 92 (-41.4%)
Mutual labels:  gorm, iris
iris-admin
Web admin for iris-go framwork
Stars: ✭ 602 (+283.44%)
Mutual labels:  gorm, iris
bizbook-client
The repository of bizbook client project
Stars: ✭ 28 (-82.17%)
Mutual labels:  saas
sqlext
extend gorm and gocql
Stars: ✭ 16 (-89.81%)
Mutual labels:  gorm
gorm-neo4j
GORM for Neo4j
Stars: ✭ 16 (-89.81%)
Mutual labels:  gorm
saas-react-starter-kit-boilerplate
SaaStr is a React SaaS boilerplate to kickstart your new SaaS adventure as fast as possible. Built on top of Adonis JS for the BackEnd and React Starter Kit for the Front-End
Stars: ✭ 100 (-36.31%)
Mutual labels:  saas
awesome-hosting
List of awesome hosting
Stars: ✭ 134 (-14.65%)
Mutual labels:  saas
aws-marketplace-serverless-saas-integration
Example of serverless integration for SaaS products listed on the AWS Marketplace.
Stars: ✭ 79 (-49.68%)
Mutual labels:  saas
laya-template
服务基本框架,template
Stars: ✭ 13 (-91.72%)
Mutual labels:  gorm
web-marisa
🍄 白丝魔理沙网页版
Stars: ✭ 65 (-58.6%)
Mutual labels:  iris
gothic
🦇 Gothic is a user registration and authentication SWT/JWT microservice. It supports REST, gRPC, and gRPC Web API, reCAPTCHA & a variety of DBs with Gorm.
Stars: ✭ 65 (-58.6%)
Mutual labels:  gorm
automile-net
Automile offers a simple, smart, cutting-edge telematics solution for businesses to track and manage their business vehicles.
Stars: ✭ 24 (-84.71%)
Mutual labels:  saas
steedos-app-oa
开源协同办公系统,基于华炎魔方开发,可自主随心定制。
Stars: ✭ 24 (-84.71%)
Mutual labels:  saas
hawk
Fast and lightweight errors tracking service
Stars: ✭ 85 (-45.86%)
Mutual labels:  saas
pinax-stripe-light
a payments Django app for Stripe
Stars: ✭ 670 (+326.75%)
Mutual labels:  saas
sunraster
A SunPy-affiliated package which provides tools to analyze data from spectral data from any solar mission.
Stars: ✭ 19 (-87.9%)
Mutual labels:  iris
ginadmin
基于Gin开发的后台管理系统,集成了、数据库操作、日志管理、权限分配管理、多模板页面、自动分页器、数据库迁移和填充、Docker集成部署等功能、静态资源打包
Stars: ✭ 149 (-5.1%)
Mutual labels:  gorm
go-webapp-sample
golang, echo, gorm
Stars: ✭ 194 (+23.57%)
Mutual labels:  gorm
backend
A REST web-service sample project written in Golang using go-fiber, GORM and PostgreSQL
Stars: ✭ 27 (-82.8%)
Mutual labels:  gorm
automile-php
Automile offers a simple, smart, cutting-edge telematics solution for businesses to track and manage their business vehicles.
Stars: ✭ 28 (-82.17%)
Mutual labels:  saas

GoTenancy

Wercker status Code Coverage Go Report Card GoDoc Licenses
多商户管理平台

注意:项目已经转为公司内部项目,项目更新将会暂停. 如果有问题和建议,可以发布到issues

价格逻辑

商品价格

  • 商品售价 price
  • 商品原价 ot_price
  • 商品成本价 cost

订单价格

  • 订单商品总价 total_price
  • 订单邮费 total_postage
  • 订单支付总价 pay_price = total_price+total_postage
  • 订单支付邮费 pay_postage = total_postage
  • 订单平台手续费 commission_rate
  • 订单成本价 cost = 商品成本价
支付宝沙箱调试
接口测试

GO TEST

在 tests 目录下增加 password.txt 文件,内容填写数据库密码,如果redis和mysql 密码不一样,需要处理一下获取到的文本内容;

 pwds := strings.Split(password, ";")
 // pwds[1] mysql密码
 // pwds[2] redis密码

全局测试

 go test -timeout 60s -run [^TestInitDB$] github.com/snowlyg/go-tenancy/tests 

迁移数据库,填充数据

使用 vscode 执行测试

  • 用 vscode 打开项目 =》 终端 =》 运行任务 =》 选择对应任务执行
  • init db 初始化数据库,填充数据
  • test all 执行接口单元测试
  • build linux 编译 linux 版本
  • apidoc 更新接口文档
使用第三方库
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].