package Ġnu . peg . demo . controller Ċ Ċ import Ġnu . peg . demo . data . transfer . Transfer Dto Ċ import Ġnu . peg . demo . service . transfer . Transfer Service Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ import Ġjava . util .* Ċ Ċ @ RestController Ċ @ RequestMapping ("/ api / transfer ") Ċ class ĠTransfer Controller Ġ@ Autowired Ġconstructor ( val Ġtransfer Service : ĠTransfer Service ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ("/ { from Id }/{ to Id }/{ amount }") ĊĠĠĠ Ġfun Ġtransfer Money (@ PathVariable Ġfrom Id : ĠLong , Ġ@ PathVariable Ġto Id : ĠLong , Ġ@ PathVariable Ġamount : ĠDouble ): ĠUUID ? Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtransfer Service . transfer ( from Id , Ġto Id , Ġamount ) ĊĊĠĠĠ Ġ@ GetMapping ("") ĊĠĠĠ Ġfun ĠfindAll Trans fers (): ĠList < Transfer Dto > Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtransfer Service . findAll () Ċ }