mealCheckInByManager method
디넌이 수동으로 학생의 체크인을 진행하는 함수입니다.
Implementation
mealCheckInByManager(int studentUid) async {
try {
Response response = await _dio.post(
"$apiUrl/dalgeurak/entrance",
options: Options(contentType: "application/json"),
data: {"sid": studentUid},
);
return {
"success": true,
"content": response.data['mealStatus'].toString().convertMealStatusType
};
} on DioError catch (e) {
return {
"success": false,
"content": e.response?.data["message"]
};
}
}