-
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
Showing
146 changed files
with
833 additions
and
764 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
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
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
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
9 changes: 9 additions & 0 deletions
9
apps/foo/src/main/java/smecalculus/bezmen/core/SepulkaConverterImpl.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,9 @@ | ||
package smecalculus.bezmen.core; | ||
|
||
import smecalculus.bezmen.messaging.client.SepulkaRegRes; | ||
|
||
public class SepulkaConverterImpl implements SepulkaConverter { | ||
public SepulkaRegRes toRegRes(Sepulka sepulka) { | ||
return new SepulkaRegRes(sepulka.id(), sepulka.name()); | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
...ezmen/domain/impl/SepulkaServiceImpl.java → ...culus/bezmen/core/SepulkaServiceImpl.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
11 changes: 0 additions & 11 deletions
11
apps/foo/src/main/java/smecalculus/bezmen/domain/impl/SepulkaConverterImpl.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
apps/foo/src/main/java/smecalculus/bezmen/messaging/SepulkaClientImpl.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,22 @@ | ||
package smecalculus.bezmen.messaging; | ||
|
||
import lombok.NonNull; | ||
import smecalculus.bezmen.core.Sepulka; | ||
import smecalculus.bezmen.core.SepulkaConverter; | ||
import smecalculus.bezmen.core.SepulkaService; | ||
import smecalculus.bezmen.messaging.client.SepulkaClient; | ||
import smecalculus.bezmen.messaging.client.SepulkaRegReq; | ||
import smecalculus.bezmen.messaging.client.SepulkaRegRes; | ||
import smecalculus.bezmen.validation.EdgeValidator; | ||
|
||
public record SepulkaClientImpl( | ||
@NonNull EdgeValidator validator, @NonNull SepulkaService service, @NonNull SepulkaConverter converter) | ||
implements SepulkaClient { | ||
|
||
@Override | ||
public SepulkaRegRes register(SepulkaRegReq request) { | ||
validator.validate(request); | ||
Sepulka sepulka = service.register(request); | ||
return converter.toRegRes(sepulka); | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
...zmen/messaging/spec/SepulkaMsgMapper.java → ...us/bezmen/messaging/SepulkaMsgMapper.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
2 changes: 1 addition & 1 deletion
2
...zmen/messaging/spec/SepulkaRegReqMsg.java → ...us/bezmen/messaging/SepulkaRegReqMsg.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,4 +1,4 @@ | ||
package smecalculus.bezmen.messaging.spec; | ||
package smecalculus.bezmen.messaging; | ||
|
||
import lombok.Data; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...zmen/messaging/spec/SepulkaRegResMsg.java → ...us/bezmen/messaging/SepulkaRegResMsg.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,4 +1,4 @@ | ||
package smecalculus.bezmen.messaging.spec; | ||
package smecalculus.bezmen.messaging; | ||
|
||
import lombok.Data; | ||
|
||
|
22 changes: 0 additions & 22 deletions
22
apps/foo/src/main/java/smecalculus/bezmen/messaging/impl/SepulkaClientImpl.java
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...ing/impl/springmvc/SepulkaController.java → ...essaging/springmvc/SepulkaController.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
4 changes: 2 additions & 2 deletions
4
...calculus/bezmen/data/spec/SepulkaDao.java → ...mecalculus/bezmen/storage/SepulkaDao.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
9 changes: 3 additions & 6 deletions
9
...s/bezmen/data/impl/SepulkaDaoMyBatis.java → ...lus/bezmen/storage/SepulkaDaoMyBatis.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
9 changes: 3 additions & 6 deletions
9
...ezmen/data/impl/SepulkaDaoSpringData.java → .../bezmen/storage/SepulkaDaoSpringData.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
2 changes: 1 addition & 1 deletion
2
...calculus/bezmen/data/spec/SepulkaRec.java → ...mecalculus/bezmen/storage/SepulkaRec.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
4 changes: 2 additions & 2 deletions
4
...us/bezmen/data/spec/SepulkaRecMapper.java → ...ulus/bezmen/storage/SepulkaRecMapper.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
4 changes: 2 additions & 2 deletions
4
...n/data/spec/mybatis/SepulkaSqlMapper.java → ...men/storage/mybatis/SepulkaSqlMapper.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
4 changes: 2 additions & 2 deletions
4
...ta/spec/springdata/SepulkaRepository.java → ...storage/springdata/SepulkaRepository.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,6 +1,6 @@ | ||
package smecalculus.bezmen.data.spec.springdata; | ||
package smecalculus.bezmen.storage.springdata; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
import smecalculus.bezmen.data.spec.SepulkaRec; | ||
import smecalculus.bezmen.storage.SepulkaRec; | ||
|
||
public interface SepulkaRepository extends CrudRepository<SepulkaRec, String> {} |
Oops, something went wrong.