Giter VIP home page Giter VIP logo

matchhere-backend's People

Contributors

smileostrich avatar

Watchers

 avatar

matchhere-backend's Issues

[feat] 스터디 가입 신청/승인 알람 전송 api 개발

요구사항

  • 알림 전송
    • 신청자가 스터디 가입 신청시, 스터디 호스트에게 가입 신청 알림 전송
    • 호스트가 가입 신청 승인/거절시, 신청자에게 신청 결과 알림 전송
  • 알림 확인
    • 수신한 알림 목록 출력
    • 읽은 알림 / 읽지 않은 알림 구분
    • 알림 선택시 읽음 처리

Features

  • RDB에 알림 테이블 추가
    • SCHEME
    CREATE TABLE member_alarm (
        id BIGINT NOT NULL AUTO_INCREMENT,
        member_id BIGINT NOT NULL,
        alarm_topic VARCHAR(50) NOT NULL,
        alarm_content VARCHAR(200),
        is_read TINYINT NOT NULL DEFAULT 0,
        regist_ymdt DATETIME NOT NULL,
        PRIMARY KEY (member_id, id)
    );
  • 스터디 가입 신청 / 신청 승인 api 로직에 알림 로직 추가
  • 알림 목록 조회 api 개발
    • api interface : /alarm
    • member_alarm 테이블 조회
    • 표시할 알람 개수 논의 필요
  • 알림 읽음 처리 api 개발
    • alarm_no, member_id 로 member_alarm 테이블 PK search 하여 is_read = 1 로 update
  • 오래된 알림 삭제
    • regist_ymdt, is_read 값을 기준으로 생성된지 n일 지나고, 읽음 처리된 알람은 자동 삭제
    • member_alarm 테이블 regist_ymdt, is_read 인덱스 추가

See also

https://velog.io/@skygl/FCM-Spring-Boot%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC-%EC%9B%B9-%ED%91%B8%EC%8B%9C-%EA%B8%B0%EB%8A%A5-%EA%B5%AC%ED%98%84%ED%95%98%EA%B8%B0

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.