removeStudentInBlackListConvenienceFood method

dynamic removeStudentInBlackListConvenienceFood(
  1. int studentUid
)

학생을 간편식 블랙리스트에서 제거하는 함수입니다.

Implementation

removeStudentInBlackListConvenienceFood(int studentUid) async {
  try {
    Response response = await _dio.delete(
        "$apiUrl/dalgeurak/convenience/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"]
    };
  }
}