GithubHelp home page GithubHelp logo

hubaimaster / pass Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 4.59 MB

직장인들아! 돈 쓰는데, 시간까지 쓸꺼야? 신개념 핀테크 서비스, 사장님! 저흰 Pass 할게요!

License: MIT License

Swift 83.34% Ruby 0.49% JavaScript 16.17%

pass's Introduction

Pass

To do list

1. Model 정의

  • User

  • id: String (UUID4)
  • creationDate: Int (Unixtime)
  • password: String
  • group: "user" | "manager"
  • email: String (로그인할때 사용)
  • money: Int
  • Market

  • id: String (UUID4)
  • creationDate: Int (Unixtime)
  • name: String
  • bankName: String
  • accountNumber: String
  • lat (Double)
  • lng (Double)
  • userId (String)
  • Pass

  • id: String (UUID4)
  • creationDate: Int (Unixtime)
  • userId: String
  • marketId: String
  • money: Int

2. Interface (API) 정의

  • User

    • Post: 유저 회원가입

    • route: /user/register
    • request: {email:String, password:String, group:"user" | "manager"}
    • response: {success:Boolean}
    • Post: 유저 로그인

    • route: /user/login
    • request: {email:String, password:String}
    • response: {id: String, creationDate: Int, name: String, password: String, group: String, email: String, money: Int, marketId: String}
  • Market

    • Post: 사업장생성

    • request: {userId:String, name:String, bankName:String, accountNumber:String, lat:Double, lng:Double}
    • response: {success:Boolean}
    • Get: 사업장정보가져오기

    • request: {marketId:String}
    • response: {id:String, creationDate:Int, name:String, bankName:String, accountNumber:String, lat:Double, lng:Double, userId: String}
    • Patch: 가까운 사업장 리스트 가져오기 (market id list)

    • route: /market/near
    • request: {lat:Double, lng:Double}
    • response: {items: [String, ...]}
    • Patch: user의 사업장 리스트 가져오기 (market id list)

    • route: /market/users
    • request: {userId:String}
    • response: {items: [String, ...]}
  • Pass

    • Post: 결제 이벤트 발생

    • request: {userId:String, marketId:String, money:Int, tableName:String}
    • response: {success:Boolean}
    • Get: 결제 기록 가져오기

    • request: {passId: String}
    • response: {id: String, creationDate: Int, userId: String, marketId: String, money: Int}
    • Patch: 결제 기록 리스트 가져오기 (최근순)

    • request: {marketId:String}
    • response: {items: [String, ...]}
    • Delete: 결제 기록 삭제 (결제 확인)

    • request: {passId: String}
    • response: {success: Boolean}
  1. 클라이언트 API 정의 후 구현 ( 100 % )
  2. 서버 API 정의 후 구현 ( 100 % )

pass's People

Contributors

hubaimaster avatar lamfsanguk avatar sjlee2016 avatar spirospica avatar

Stargazers

Hyomin Nam avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

sjlee2016

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.