package Ġcom . tester um . web _ backend . controllers . user Ċ Ċ import Ġcom . tester um . model . user . auth . Auth Request Ċ import Ġcom . tester um . model . user . auth . Auth Response Ċ import Ġcom . tester um . model . user . license . License Info Ċ import Ġcom . tester um . web _ backend . services . user . User Frontend Service Ċ import Ġcom . tester um . web _ backend . util . to File To Upload Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġorg . springframework . web . multipart . Multipart File Ċ Ċ @ RestController Ċ @ RequestMapping ("/ user ") Ċ class ĠUser Controller ( private Ġval Ġuser Frontend Service : ĠUser Frontend Service ) Ġ{ ĊĊĠĠĠ Ġ@ RequestMapping ( method Ġ= Ġ[ Request Method . GET ], Ġpath Ġ= Ġ["/ license - info "]) ĊĠĠĠ Ġ@ ResponseBody ĊĠĠĠ Ġfun Ġget License Info (): ĠLicense Info Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Frontend Service . get License Info () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ RequestMapping ( method Ġ= Ġ[ Request Method . POST ], Ġpath Ġ= Ġ["/ login / credentials "]) ĊĠĠĠ Ġ@ ResponseBody ĊĠĠĠ Ġfun Ġlogin With Credentials (@ RequestBody Ġauth Request : ĠAuth Request ): ĠAuth Response Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Frontend Service . login With Credentials ( auth Request ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ RequestMapping ( method Ġ= Ġ[ Request Method . POST ], Ġpath Ġ= Ġ["/ login / file "], Ġconsume s Ġ= Ġ[ MediaType . MULTI PART _ FORM _ DATA _ VALUE ]) ĊĠĠĠ Ġ@ ResponseBody ĊĠĠĠ Ġfun Ġlogin With License File (@ RequestParam (" license File ") Ġlicense File : ĠMultip art File ): ĠAuth Response Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Frontend Service . login With License File ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlicense File . to File To Upload () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ