-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
196 additions
and
9 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
13 changes: 13 additions & 0 deletions
13
src/main/java/ewha/lux/once/domain/home/dto/AnnounceFavoriteRequestDto.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,13 @@ | ||
package ewha.lux.once.domain.home.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class AnnounceFavoriteRequestDto { | ||
private String store; | ||
private String storeName; | ||
private double latitude; | ||
private double longitude; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/ewha/lux/once/domain/home/dto/BeaconRequestDto.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,17 @@ | ||
package ewha.lux.once.domain.home.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class BeaconRequestDto { | ||
private String proximityUUID; | ||
private Integer major; | ||
private Integer minor; | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/ewha/lux/once/domain/home/entity/Beacon.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,40 @@ | ||
package ewha.lux.once.domain.home.entity; | ||
|
||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Table(name="Beacon") | ||
@Getter | ||
@Setter | ||
@Builder | ||
@NoArgsConstructor(access= AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class Beacon { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "beaconId") | ||
private Long id; | ||
|
||
@Column(name = "proximityUUID", nullable = false) | ||
private String proximityUUID; | ||
|
||
@Column(name = "major") | ||
private Integer major; | ||
|
||
@Column(name = "minor") | ||
private Integer minor; | ||
|
||
@Column(name = "name") | ||
private String name; | ||
|
||
@Column(name = "store") | ||
private String store; | ||
|
||
@Column(name = "latitude") | ||
private String latitude; | ||
|
||
@Column(name = "longitude") | ||
private String longitude; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/ewha/lux/once/global/repository/BeaconRepository.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,7 @@ | ||
package ewha.lux.once.global.repository; | ||
|
||
import ewha.lux.once.domain.home.entity.Beacon; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
public interface BeaconRepository extends JpaRepository<Beacon, Long> { | ||
Beacon findAllByProximityUUIDAndMajorAndMinor(String uuid, int major, int minor); | ||
} |