The Division of functions of mvc in mvc Framework

scenario:
write an order (order master record and order detail record) json

backend
service layer has added api

order_master
       func: add
       
order_detail
       func: add

ask whether the detail record in json is inserted by controller calling order_detail
, or is it simply thrown to order_master, to insert it?

Jul.09,2021
Menu