-
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.
- Loading branch information
1 parent
19f9f2d
commit 829d1aa
Showing
4 changed files
with
14 additions
and
78 deletions.
There are no files selected for viewing
59 changes: 2 additions & 57 deletions
59
app/backend/src/main/java/br/com/streampix/app/models/checkout/Checkout.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 |
---|---|---|
@@ -1,74 +1,19 @@ | ||
package br.com.streampix.app.models.checkout; | ||
|
||
import jakarta.persistence.Id; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.io.Serializable;; | ||
|
||
@RedisHash("checkout") | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
public class Checkout implements Serializable { | ||
|
||
@Id | ||
private Long id; | ||
private String nickname; | ||
private String message; | ||
private String value; | ||
private String expTime; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getNickname() { | ||
return nickname; | ||
} | ||
|
||
public void setNickname(String nickname) { | ||
this.nickname = nickname; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getExpTime() { | ||
return expTime; | ||
} | ||
|
||
public void setExpTime(String expTime) { | ||
this.expTime = expTime; | ||
} | ||
|
||
public Map<String, Object> toMap() { | ||
Map<String, Object> map = new HashMap<>(); | ||
map.put("id", id); | ||
map.put("nickname", nickname); | ||
map.put("message", message); | ||
map.put("value", value); | ||
map.put("expTime", expTime); | ||
return map; | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
app/backend/src/main/java/br/com/streampix/app/repositories/CheckoutRepositoryRedis.java
This file was deleted.
Oops, something went wrong.
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