system-sekkei / isolating-the-domain

architecture sample using : Spring Boot gradle, Spring MVC, Thymeleaf, and MyBatis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

終了時刻の24時を超える表記変換をプレゼン層、ドメイン層どちらに置くか

SAMMY7th opened this issue · comments

終了時刻は日を跨いだ際、26:00 といった表記で入出力を行っている。
24時制との変換を、入力時はプレゼン層( https://github.com/system-sekkei/isolating-the-domain/blob/master/webapp/src/main/java/example/presentation/controller/timerecord/InputEndTime.java#L28 ) 、出力時はドメイン層 (https://github.com/system-sekkei/isolating-the-domain/blob/master/webapp/src/main/java/example/domain/model/timerecord/timefact/EndDateTime.java#L39)

で行っているが、このロジックを

・ただの表記の問題であるとみなし、プレゼン層に置く
・業界によっては業務知識であるとみなし、ドメイン層に置く

か統一する必要がある。

このサンプルは、どの業界向けのどういう人を管理するためのシステムなのかの定義が必要