UNPKG

phx-node

Version:

PHX NODE

18 lines (17 loc) 1.13 kB
import { ConfigService } from "@nestjs/config"; import { HttpService } from "@nestjs/axios"; export declare class PHXInternalParentService { private readonly configService; private readonly httpService; private readonly logger; constructor(configService: ConfigService, httpService: HttpService); /** * Lấy danh sách học sinh (con) của phụ huynh theo số điện thoại từ các trường khác nhau. * Gửi yêu cầu POST tới API nội bộ `/contacts/internal/parent/children` thông qua `INTERNAL_API_GATEWAY`. * * @param {string} phoneNumber - Số điện thoại của phụ huynh. * @returns {Promise<{ data: { children: Array<{ id: number, full_name: string, user_code: string, school_id: number, school_name: string, class_name: string, avatar_url: string | null, educational_code: string, hostname: string }> } }>} * Đối tượng chứa danh sách phẳng các học sinh, bao gồm thông tin chi tiết từng học sinh cùng thông tin trường học của học sinh đó. */ getParentChildrenByPhone(phoneNumber: string): Promise<any>; }