๐Ÿ“Œย ๋ฏธ์…˜ ๋‚ด์šฉ

10์ฃผ์ฐจ ๋ฏธ์…˜ - ์ธ์ฆ๊ณผ ์ธ๊ฐ€, ํŽ˜์ด์ง• ์ฒ˜๋ฆฌ

JWT

ํŽ˜์ด์ง• ์ฒ˜๋ฆฌ

public List<GetStoreResponse> getStores(long lastId) {
    String sql = "select store.store_id, store.name, store.category, store_delivery.delivery_tip_max, store_delivery.least_order_price " +
            "from store, store_delivery " +
            "where store.store_id = store_delivery.store_id " +
            "and store.store_id > :lastId limit 10";

    Map<String, Object> param = Map.of("lastId", lastId);

    return jdbcTemplate.query(sql, param,
            (rs, rowNum) -> new GetStoreResponse(
                    rs.getLong("store_id"),
                    rs.getString("name"),
                    rs.getString("category"),
                    rs.getInt("delivery_tip_max"),
                    rs.getInt("least_order_price"))
    );
}

Refresh Token ํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ ๊นœ๋นกํ–ˆ๋‹ค ! ! ! ๋‚˜์ค‘์— . . .