add interface of friend module and modify api.md