The system is battery powered. When the battery is low, the user can connect the AC/DC adaptor to the board, then the DC input can charge the battery through the charger circuit.
I don't have the problem in charger circuit design because there are a lot of examples on the internet. The issue is I don't know how to combine the battery charge and discharge circuit. I mean when the battery is charging, the current flows into it and vice verse. How can I control the current direction around the battery?
Edit: One of the solution to control the current direction according to the different scenario is Power Path. Take the BQ2403x of TI charge controller for example.
For the battery based handheld device, when the battery is low, the users connect AC adapter to the board. The FET Q1 and Q2 are both on. The current flow on Q2 is running into battery.

When the AC adapter is removed and the battery is not depleted, the battery powered the system. The FET Q1 is off and Q2 is on. In this case, the current flow on Q2 is running out of battery.

In a word, with the help of power path management, the battery controller can control the current running into or out of battery as required.
Unfortunately, I haven't found other solution without power path that can implement the same function. I would be very appreciated if anyone can share me a link with the different solution.