package Ġe commerce . transaction . controller Ċ Ċ import Ġe commerce . transaction . datab e an . Tr Place Order Info Vo Ċ import Ġe commerce . transaction . datab e an . Tr Payment Vo Ċ import Ġe commerce . transaction . service . IP ay For Order Service Ċ import Ġe commerce . transaction . service . I Place Order Service Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . web . bind . annotation .* Ċ Ċ /** Ċ Ġ* Ġ è®¢åįķ èµĦæºĲ Ċ Ġ*/ Ċ @ RestController Ċ @ RequestMapping ("/ order ") Ċ class ĠTr Place Order Controller { ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġplace Order Service : ĠI Place Order Service ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġpay For Order Service : ĠIP ay For Order Service ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ è®¢åįķ ä¸ĭ åįķ ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ PostMapping ("/ place order ") ĊĠĠĠ Ġfun Ġplace Order (@ RequestBody Ġorder Info : ĠTr Place Order Info Vo ){ ĊĠĠĠĠĠĠĠ Ġplace Order Service . place Order ( order Info ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ æĶ¯ä»ĺ è®¢åįķ ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ PostMapping ("/ pay for order ") ĊĠĠĠ Ġfun Ġpay For Order (@ RequestBody Ġpayment Vo : ĠTr Payment Vo ){ ĊĠĠĠĠĠĠĠ Ġpay For Order Service . pay For Order ( payment Vo ) ĊĠĠĠ Ġ} Ċ Ċ }