공지 등록 및 전송

기능

  • 공지는 Redis에 저장됨

    • Notice = [ { Date, Title, Content }, ... ]

  • 서버 실행 중 공지 변경은 없다

로직

  1. 클라이언트 요청 받음

  2. 미들웨어 동작

  3. Redis에서 Notice 정보 불러오기

  4. 클라이언트에게 반환

사용 DB

Redis

  • Data Type : List

  • Key :

  • Value : [{string Title, string Content, dateTime Date}, {...} ]

API

POST /Notice

  • request

    {
        "PlayerId" : "int",
        "AuthToken" : "String",
        "AppVersion" : "String",
        "MasterDataVersion" : "String"
    }
  • response

    {
        "Result" : "ErrorCode",
        "Notices" : [
            {
                "Date" : "DateTime",
                "Title" : "string",
                "Content" : "string"
            }
        ]
    }

Last updated