Git Product home page Git Product logo

streamliveproject's Introduction

BuyBuyGo Facebook直播購物優化系統

專案目的

線上直播交易平台,方便Facebook直播賣家統計買家留言+1的問題、買家的購買清單及寄送資訊; 買家也能直接再App上購買商品、結帳,解決傳統Facebook直播買賣家的使用上的不便,例如:

  • 買家無法選取物品數量
  • 訂單量太大時,賣家統計訂單時比較不便
  • 賣家無法查看歷史銷售紀錄,或系統化的管理訂單

使用Facebook登入後,使用者可選擇買家或賣家身份,賣家輸入直播間網址創建交易房間;買家則輸入賣家提供的網址,就能進入賣家所在的房間進行交易。


主要功能

共同:

  • 取得使用者Facebook資訊

買家:

  • 直播歷史紀錄
  • 新增商品
  • 推播商品(開始直播、結束直播)
  • 修改商品
  • 刪除商品
  • 訂單管理
  • 取得使用者之收貨地址

賣家:

  • 取得上架商品資訊
  • 新增收貨人地址
  • 更新收貨人地址
  • 加入直播
  • 取得直播中商品內容
  • 下單

團隊夥伴

iOS

Andriod

Web

Backend

streamliveproject's People

Contributors

chelsealin88 avatar

Watchers

James Cloos avatar

streamliveproject's Issues

第一次 Code Review

優點:變數命名有規律,有持續紀錄版本、版本命名可以知道修改目的。

缺點:重複率過高、說明類型的註解次數過少

  1. 建議使用 guard let <#some#> = ..., let <#some#> = ..., 縮減重複的指令,屏用換行增加閱讀性。
    guard let iFrame = history["iFrame"].string else { return }
 guard let iFrame = history["iFrame"].string,
                        guard let description = history["channel_description"].string,
                        let id = history["user_id"].int,
                        let startTime = history["started_at"].string,
                        let endTime = history["ended_at"].string
 else { return }
  1. 碼源同上,解析JSON的行為散佈在多個檔案,容易造成更改的不方便。
    假設情境:後端通知更改 responsereturn,如果使用 cmd + f,可能會很複雜

  2. 請考慮使用 func Request(httpMethod: String,...) ,並使用判斷邏輯 switch Method

    static func postAPI(api: String, header: [String:String], _ body: [String: Any], callBack: @escaping (_ data: Data, _ statusCode: Int) -> Void) {

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.