portal.py 599 Bytes
# portal, provide apis for other system(function interface instead of rpc interface[api/xx/xx])

__all__ = [
    'create_reply_collect',
    'get_doctor_from_user_ids',
    'get_doctor_from_doctor_ids',
    'get_doctor_by_user_id',
    'update_diary_extra_info',
]

from .libs.reply import create_reply_collect
from .libs.diary import update_diary_extra_info
from .services.doctor import DoctorService

get_doctor_from_user_ids = DoctorService.get_doctor_from_user_ids
get_doctor_from_doctor_ids = DoctorService.get_doctor_from_doctor_ids
get_doctor_by_user_id = DoctorService.get_doctor_by_user_id