Giter Club home page Giter Club logo

boss-raid's Introduction

PVE Game Boss Raid server

NestJS MySQL

Test Status Test Coverage

요구사항 분석

유저

  • 보스레이드 구현 후 수정

보스레이드

  • 입장 가능 상태, 현제 진행 유저 정보 등이 있다.
  • 한 번에 한 명의 유저만 진행할 수 있다.
  • 이전에 시작 기록이 있다면 레이드 종료 혹은 레이드 제한 시간 경과해야 시작할 수 있다.
API
  • 보스 레이드 상태 조회
  • 보스 레이드 랭킹 조회
    • totalScore 내림차순, score, userid를 포함
  • 보스 레이드 시작
    • 시작할 수 있으면 레이드 레코드를 생성한다.
  • 보스 레이드 종료
    • 레이드 level에 따른 score를 반영한다.
    • 레이드 중인 사용자가 아니면 예외 처리
    • 제한 시간이 경과한 경우 예외 처리

설계도

보스 레이드 상태 조회

분류 내용
method GET
path {BASE_URL}/bossRaid
response { canEnter: boolean, enteredUserId?: number }

보스 레이드 랭킹 조회

분류 내용
method GET
path {BASE_URL}/bossRaid/topRankerList
body { userId: number }
response { topRankerInfoList: RankingInfo[], myRankingInfo: RankingInfo }
interface RankingInfo {
  ranking: number; // 1 ranking 0 . userId: number;
  totalScore: number;
}

보스 레이드 시작

분류 내용
method POST
path {BASE_URL}/bossRaid/enter
body { userId: number, level: number }
response { isEntered: boolean, raidRecordId?: number }

boss_raid_enter

보스 레이드 종료

분류 내용
method PATCH
path {BASE_URL}/bossRaid/end
body { userId: number, raidRecordId: number }
response {}

boss_raid_end

API 문서

진행상황

  • 보스 레이드 API 구현
  • 유저 API 구현
  • caching system 도입
  • staticData 웹서버 캐싱

boss-raid's People

Contributors

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