removeStudentInBlackListMealException method

dynamic removeStudentInBlackListMealException(
  1. int studentUid
)

학생을 선/후밥 블랙리스트에서 제거하는 함수입니다.

Implementation

removeStudentInBlackListMealException(int studentUid) async {
  try {
    Response response = await _dio.delete(
        "$apiUrl/dalgeurak/exception/blacklist",
        options: Options(contentType: "application/json"),
        data: {"sid": studentUid}
    );

    return {
      "success": true,
      "content": response.data
    };
  } on DioError catch (e) {
    return {
      "success": false,
      "content": e.response?.data["message"]
    };
  }
}