Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an api for updating user information #43

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

Kaiser-Yang
Copy link
Contributor

During development, we found that the Long can not be expressed correctly in the Swagger document, so we use String to represent the id and convert it to Long when we use it as the field of UserPO.

We also found that the HttpServletRequest's getReader() and getInputStream() can only be called once, so we need to cache the request body in the JwtFilter to make it can be read multiple times.

During this commit, we update the header parameter Token with the Access-Token and Refresh-Token to make it more clear.

See #32.

@Kaiser-Yang Kaiser-Yang added the feature A new feature label Sep 15, 2024
@Kaiser-Yang Kaiser-Yang force-pushed the kaiser-crud branch 2 times, most recently from c03485f to f1d97b7 Compare September 15, 2024 12:52
During development, we found that the `Long` can not be expressed
correctly in the `Swagger` document, so we use `String` to represent the
`id` and convert it to `Long` when we use it as the field of `UserPO`.

We also found that the `HttpServletRequest`'s `getReader()` and
`getInputStream()` can only be called once, so we need to cache the
request body in the `JwtFilter` to make it can be read multiple times.

During this commit, we update the header parameter `Token` with the
`Access-Token` and `Refresh-Token` to make it more clear.

See #32.
@Kaiser-Yang Kaiser-Yang merged commit a229af2 into develop Sep 16, 2024
1 check passed
@Kaiser-Yang Kaiser-Yang changed the title Add an api for update user information Add an api for updating user information Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants