Code Monkey home page Code Monkey logo

koa_bicycle's Introduction

用 Koa 实现类似摩拜单车的项目

模块

1.User 用户

属性©
  • name 名称
  • cellphone 手机号(唯一)
  • password 密码
  • account 账户余额 (需要添加)
  • 头像 (需要添加)
  • 性别 (需要添加)
接口
  • 注册
  • 登陆
  • 获取个人信息©
  • 修改个人信息©
  • 列表(admin)©

2. 服务网点 ServicePoint ©

属性
  • name 名称
  • 经度
  • 纬度
接口
  • 创建(admin)
  • 列表(admin)
  • 详情(admin)
  • 修改(admin)
  • 绑定单车到网点(admin)
  • 查询这个网点的所有单车 (admin)

3. 骑行订单 order ©

属性
  • 订单号 唯一
  • 租赁时间
  • belongs_to bike
  • belongs_to user
  • 单价
  • 租赁时间
  • 总价
接口
  • 创建订单 (相当于扫码开始租单车)
  • 结束订单 (相当于归还单车)
  • 用户的所有订单列表
  • 系统里所有订单列表(admin)
  • 详情

4. 共享单车 bike

属性
  • 编号 唯一
  • 经度
  • 纬度
  • 状态
  • 单价
  • has_many order
  • belongs_to 服务网点
接口
  • 创建单车 (admin)
  • 修改 (admin)
  • 所有单车列表(admin)
  • 用户附近的单车列表
  • 预约(预约不是租赁,单车处于预约状态时,其他人无法租赁或预约。预约人需要 5 分钟内创建订单,否则预约失效)

koa_bicycle's People

Contributors

donaldding avatar mrcaiwq avatar donalddinglt avatar

Stargazers

 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.