authorizeDienenPermission method
학생에게 디넌 권한을 부여하는 함수입니다.
Implementation
authorizeDienenPermission(int studentUid) async {
try {
Response response = await _dio.post(
"$apiUrl/dalgeurak-management/permission",
options: Options(contentType: "application/json"),
data: {"sid": studentUid},
);
return {
"success": true,
"content": response.data['student']
};
} on DioError catch (e) {
return {
"success": false,
"content": e.response?.data["message"]
};
}
}