-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: 사용자 GPS 위치 변경 및 온/오프라인 상태 변경 API 구현 (#79)
* Feat(#70): Member Entity 수정 * Feat(#70): 사용자 온 오프라인 API 구현 * Fix(#70): 오타 수정 * Feat(#70): GPS 갱신 API 구현 * Feat(#70): 온라인 전환 API 요청시 응답 값으로 멤버 id 반환 * Fix(#70): 위도, 경도 초기값 설정
- Loading branch information
Showing
5 changed files
with
104 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/com/numberone/backend/domain/member/dto/request/UpdateGpsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.numberone.backend.domain.member.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class UpdateGpsRequest { | ||
@Schema(defaultValue = "37.506136") | ||
@NotNull(message = "위도 정보는 null일 수 없습니다.") | ||
private Double latitude; | ||
|
||
@Schema(defaultValue = "126.922046") | ||
@NotNull(message = "경도 정보는 null일 수 없습니다.") | ||
private Double longitude; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/numberone/backend/domain/member/dto/response/MemberIdResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.numberone.backend.domain.member.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
public class MemberIdResponse { | ||
private Long memberId; | ||
|
||
public static MemberIdResponse of(long memberId){ | ||
return MemberIdResponse.builder() | ||
.memberId(memberId) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters