Code Monkey home page Code Monkey logo

bidding_market's Introduction

拍卖系统实现

模块

1.User 用户

属性©
  • name 姓名
  • 学号(用于登陆)
  • 密码
  • 学院
  • 入学年份
接口
  • 注册
  • 登陆
  • 获取个人信息

2. 分类 Category

属性

分类名 顺序 position int

接口
  • 创建分类
  • 获取分类列表(对 position 排序)

3. 商品 Product;

属性
  • 名称
  • 描述内容
  • 图片
  • belongs_to category
  • belongs_to user
  • 起拍价 start_price
  • 当前价 curr_price
  • 状态 state (available 在售, sold 已成交)
  • 结束时间
  • 最后拍卖的用户 id
接口
  • 发布商品
  • 获取某个分类下的所有商品列表 (按从新到旧)
  • 商品详情

4. 拍卖纪录

属性
  • UserId
  • ProductId
  • price
接口
  • 提价: 对某个在售商品提价, 创建一条拍卖纪录,把用户设置为商品的最后拍卖用户
  • 当到达商品拍卖结束时间时,结束这个商品的拍卖, 按照最终价,生成订单
  • 支付订单

bidding_market's People

Contributors

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