generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
89871ac
commit a6a4d2f
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
service-api/src/main/java/greencity/dto/user/ChatLinkDto.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,12 +1,12 @@ | ||
package greencity.dto.user; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
public record ChatLinkDto( | ||
Long userId, | ||
@JsonProperty("link") @Length(max = 255) @NotBlank @Pattern(regexp = "^https://my\\.binotel\\.ua.*", | ||
@JsonProperty("link") @Length(max = 255) @NotNull @Pattern(regexp = "^https://my\\.binotel\\.ua.*", | ||
message = "Link must start with 'https://my.binotel.ua'") String link) { | ||
} |
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 |
---|---|---|
|
@@ -113,6 +113,7 @@ | |
import greencity.dto.tariff.GetTariffLimitsDto; | ||
import greencity.dto.tariff.GetTariffsInfoDto; | ||
import greencity.dto.tariff.SetTariffLimitsDto; | ||
import greencity.dto.user.ChatLinkDto; | ||
import greencity.dto.user.PersonalDataDto; | ||
import greencity.dto.user.UserInfoDto; | ||
import greencity.dto.user.UserPointsAndAllBagsDto; | ||
|
@@ -5702,4 +5703,8 @@ public static Employee createTestEmployee(Long id) { | |
employee.setEmail("[email protected]"); | ||
return employee; | ||
} | ||
|
||
public static ChatLinkDto getChatLinkDto(String link) { | ||
return new ChatLinkDto(1L, link); | ||
} | ||
} |
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