Giter Site home page Giter Site logo

member_invitation's Introduction

개요

회원 초대 링크 생성 프로젝트

초대

초대 코드 생성

  • ID를 이용해 DB에 존재 하는 지 확인
    • EXCEPTION:
      • 이미 생성된 ID가 존재 할 경우
  • MEMBER(ID, EMAIL, PHONE_NUM, STATUS(0)) 객체를 DB에 임시 저장
  • 초대 코드 생성 후 REDIS에 저장
    • K-V <초대 코드:ID>
    • TTL 설정

초대 코드 승인

  • CODE를 이용해 REDIS 조회
    • EXCETPTION
      • 초대 코드가 존재 하지 않을 경우
  • ID를 이용해 DB (ID, STATUS(1)) 객체 업데이트
  • 해당 초대 코드를 REDIS에서 삭제

그룹(워크스페이스) 초대

POST /invite

Request Body

{
  "inviteGroupId" : 0,
  "inviteMemberName": "String",
  "inviteMemberPhoneNumber": "String",
  "inviteMemberEmail": "String"
}

Response Body

{
  "inviteCode" : 0 
}

초대 승인

GET /accept/{code}

Response Body

{
  "msg" : "초대가 성공적으로 완료되었습니다."
}

맴버 조회

GET /member/{id}

Response Body

{
  "id":1,
  "name":"soon",
  "phoneNumber":"00000000000",
  "email":"[email protected]"
}

아키텍처

Alt text

member_invitation's People

Contributors

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