GithubHelp home page GithubHelp logo

simple-mall-go's Introduction

simple-mall-go

  • simple-mall 接口服务

主要技术栈

  • go 、 gin 、mysql 、redis

redis

swagger

  • 生成 swag init
  • 注释格式化 swag fmt

打包

  • 执行 make buildCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

docker 打包

  • 打包 docker build . -t mall
  • 测试 docker run -p 127.0.0.1:8080:8080/tcp mall

部署

  • 将文件上传至服务器
  • 首次部署在部署目录创建如下文件
    • 创建 config.yaml 配置文件
    • 执行 mkdir tmp 创建目录
    • 执行 touch logs errors 创建 log 目录
  • 将仓库 run_mall.sh 上传至部署目录,执行 chmod 777 ./run_mall.sh 增加文件的执行权限
  • 上传打包后的文件至部署目录
  • 执行 sh ./run_mall.sh

订单状态

  • 待支付(Pending Payment):顾客下单后,订单状态为待支付,等待顾客完成支付操作。
  • 已支付(Paid):顾客完成支付后,订单状态更新为已支付,表示订单支付成功。
  • 处理中(Processing):订单支付成功后,商家开始处理订单,执行备货、打包等操作,订单状态更新为处理中。
  • 已发货(Shipped):商家将商品交付给物流公司并更新订单状态为已发货,同时提供物流追踪信息供顾客查看。
  • 已完成(Completed):顾客收到商品后,确认无误并满意,将订单状态更新为已完成。
  • 已取消(Cancelled):在任何阶段,顾客或系统都可以取消订单,将订单状态更新为已取消。
  • 退款中(Refunding):顾客发起退款请求后,商家开始退款流程,将订单状态更新为退款中。
  • 已退款(Refunded):退款流程完成后,商家将订单状态更新为已退款,并完成退款操作。
  • 异常(Exception):在购物流程中,如果出现异常情况,例如库存不足、商品损坏等,订单状态可能被设置为异常状态,并进行相应的处理和调查。
  • 超时未支付(overdue payment):顾客下单后没有在规定时间内支付完成。

simple-mall-go's People

Contributors

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