package Ġcom . one hyper net . demo . controller Ċ Ċ import Ġcom . one hyper net . demo . command . Get My Balance Cmd Ċ import Ġcom . one hyper net . demo . component . security . Jwt Token Provider Ċ import Ġcom . one hyper net . demo . model . response . Amount Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . Request Header Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ import Ġspring fox . documentation . annotations . Api Ignore Ċ Ċ @ RestController Ċ @ RequestMapping (" balances ") Ċ class ĠBalance Controller ( ĊĠĠĠ Ġprivate Ġval Ġget My Balance Cmd : ĠGet My Balance Cmd , ĊĠĠĠ Ġprivate Ġval Ġtoken Provider : ĠJwt Token Provider Ċ ) Ġ{ ĊĠĠĠ Ġ@ GetMapping ("") ĊĠĠĠ Ġfun Ġget Balance ( ĊĠĠĠĠĠĠĠ Ġ@ Api Ignore ĊĠĠĠĠĠĠĠ Ġ@ Request Header (" Authorization ") Ġauth Header : ĠString , ĊĠĠĠ Ġ): ĠAmount Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget My Balance Cmd ( token Provider . resolve Id ( auth Header )) ĊĠĠĠ Ġ} Ċ }