Skip to content

v0.5.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jpham005 jpham005 released this 21 Jul 10:36
· 144 commits to main since this release

์‹ ๊ทœ ๊ธฐ๋Šฅ โœจ

  • ๋กœ๊ทธ์ธ ๊ด€๋ จ mutation ์ถ”๊ฐ€
type LinkedAccount {
  platform: String!
  id: String!
  email: String
  linkedAt: DateTime!
}

type Account {
  userId: Int!
  linkedAccounts: [LinkedAccount!]!
}

type LoginSuccess {
  accessToken: String!
  refreshToken: String!
  userId: Int!
  message: String!
}

type LoginNotLinked {
  message: String!
}

union LoginResult = LoginSuccess | LoginNotLinked

type GoogleLoginInput {
  clientId: String!
  credential: String!
}
  • ftLogin ์ถ”๊ฐ€
  mutation ftLogin (ftCode: "example"): LoginSuccess!
  • googleLogin ์ถ”๊ฐ€
mutation googleLogin (google: GoogleLoginInput, ftCode: "example"): LoginResult!
  • linkGoogle ์ถ”๊ฐ€
mutation linkGoogle (google: GoogleLoginInput): Account!
  • unlinkAccount ์ถ”๊ฐ€
mutation unlinkAccount (targetPlatform: String!): Account!
  • refreshToken ์ถ”๊ฐ€
mutation refreshToken (refreshToken: String!): LoginSuccess!
  • logout ์ถ”๊ฐ€
mutation logout: Int!
  • deleteAccount ์ถ”๊ฐ€
mutation deleteAccount: Int!
  • getSetting ์ถ”๊ฐ€
getSetting: Account
  • getPersonalVersus ์ถ”๊ฐ€
# login, userId ๋ชจ๋‘ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค
getPersonalVersus (login: "example", userId: 12345) {
  levelRank {
    rank
    value
  }
  totalScoreRank {
    rank
    value
  }
  totalEvalCountRank {
    rank
    value
  }
  currWeekExpIncreamentRank {
    rank
    value
  }
  currWeekScoreRank {
    rank
    value
  }
  currWeekEvalCountRank {
    rank
    value
  }
}

๊ธฐ์กด api ๋ณ€๊ฒฝ ์‚ฌํ•ญ โ™ป๏ธ

  • getPersonalGeneral ์˜ character ๋ฅผ ๋ฐฑ์—”๋“œ์—์„œ ์บ๋ฆญํ„ฐ๊นŒ์ง€ ํŠน์ •ํ•ด์„œ ๋ฐ˜ํ™˜ํ•˜๋„๋ก ์ˆ˜์ •
getPersonalGeneral (login: "example") {
  character {
    name
    types {
      name
      description
      color
    }
    imgUrl
  }
}
  • getPersonalEval ์˜ totalCount ๋ฅผ countByDateTemplate ๊ณผ ํ†ตํ•ฉ, ๊ธฐ์กด totalCount ๋Š” ๋‹ค์Œ release ์— ์‚ญ์ œ ์˜ˆ์ •
  • graphql complexity ๋ฅผ ํ†ตํ•ด, ํ•œ๋ฒˆ์— ๋„ˆ๋ฌด ๋งŽ์€ field ๋ฅผ ์š”์ฒญํ•˜๋ฉด ์—๋Ÿฌ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋„๋ก ์ˆ˜์ •

๋ฒ„๊ทธ ์ˆ˜์ • ๐Ÿ›

์„ธ๋ถ€ ๋ณ€๊ฒฝ ์‚ฌํ•ญ ๐Ÿ“

  • feat โœจ complexity by @jpham005 in #228
  • refactor โ™ป๏ธ character by @jpham005 in #231
  • feat โœจ versus by @jpham005 in #233
  • feat โœจ login & setting page by @niamu01 in #218
  • refactor: โ™ป๏ธ ์žฌ๋Šฅ ์ตœ๋Œ€ ๊ตฌ์—ญ์˜ ์œ ์ € ๋ถ„ํฌ๊ฐ€ ๊ณผ๋„ํ•˜๊ฒŒ ์ ์€ ๋ฌธ์ œ ์ˆ˜์ • by @jpham005 in #234
  • refactor: โ™ป๏ธ ์บ์‹œ ํ•  ํ•„์š” ์—†๋˜ ๋ถ€๋ถ„ private ํ•จ์ˆ˜๋กœ ๋ณ€๊ฒฝ, cache max, ttl ์„ค์ • ๋ณ€๊ฒฝ by @jpham005 in #236
  • chore: ๐Ÿš€ v0.5.0 by @jpham005 in #237

Full Changelog: v0.4.0...v0.5.0