This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
104 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
from django.http import JsonResponse | ||
from app.my_module.button import * | ||
import requests | ||
|
||
# 결과를 출력하고 다시 입력을 받기 위한 함수 | ||
def re_process(output) : | ||
|
||
return JsonResponse ( | ||
{ | ||
'message': | ||
{ | ||
'text': output | ||
}, | ||
'keyboard': | ||
{ | ||
'type': 'buttons', | ||
'buttons' : basic_button | ||
} | ||
} | ||
) | ||
|
||
# 학식 버튼을 눌렀을 때 세부 버튼을 받기 위한 함수 | ||
def food_sel_process() : | ||
|
||
return JsonResponse ( | ||
{ | ||
'message' : | ||
{ | ||
'text' : '어느 곳의 메뉴가 궁금하신가요?' | ||
}, | ||
'keyboard' : | ||
{ | ||
'type' : 'buttons', | ||
'buttons' : food_sel_process_button | ||
} | ||
} | ||
) | ||
|
||
def food_info_process() : | ||
|
||
return JsonResponse ( | ||
{ | ||
'message' : | ||
{ | ||
'text' : '[확인할 수 있는 정보]\n· 메뉴\n· 이용 시간' | ||
}, | ||
'keyboard' : | ||
{ | ||
'type' : 'buttons', | ||
'buttons' : food_info_button | ||
} | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters