getMyConvenienceFoodApplicationInfo method

dynamic getMyConvenienceFoodApplicationInfo()

자신의 간편식 신청 현황 정보를 가져오는 함수입니다.

Implementation

getMyConvenienceFoodApplicationInfo() async {
  try {
    Response response = await _dio.get(
      "$apiUrl/dalgeurak/convenience/me",
      options: Options(contentType: "application/json"),
    );

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