김예미

Edit Template 2

Showing 1 changed file with 31 additions and 18 deletions
......@@ -15,21 +15,21 @@ exports.greetingTemplate = () => {
"title":greetingTitle[0],
"payload":"CHOICE_BY_PROF",
"stat":"stat_0",
"rate":{};
"rate":{}
},
{
"type":"postback",
"title":greetingTitle[1],
"payload":"CHOICE_BY_LECT"
"payload":"CHOICE_BY_LECT",
"stat":"stat_0",
"rate":{};
"rate":{}
},
{
"type":"postback",
"title":greetingTitle[2],
"payload":"HELP"
"payload":"HELP",
"stat":"stat_0",
"rate":{};
"rate":{}
}
]
}
......@@ -39,44 +39,57 @@ exports.greetingTemplate = () => {
//payload === 'CHOICE_BY_PROF'
exports.getProfNameTemplate = (received) => {
return {
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text": "교수명을 입력하세요.",
"buttons":[
{
"type":"postback",
"title":"처음으로",
"payload":'Greeting',
"stat": 'stat_0',
"rate":{}
}
]
}
}
}
}
exports.choiceLectOfProfTemplate = (received) => {
//메세지
}
exports.rateTemplate = (received) => {
//버튼
}
//payload === 'CHOICE_BY_LECT'
exports.getLectNameTemplate = (received) => {
//버튼
}
exports.choiceLectTemplate= (received) => {
//메세지
}
exports.choiceProfOfLectTemplate= (received) => {
}
exports.rateTemplate= (received) => {
//버튼
}
exports.goToChoiceByProfTemplate= (received) => {
//버튼
}
//payload === 'HELP'
exports.howToTemplate= (received) => {
//버튼
}
exports.goToGreetTemplate = (received) => {
//버튼
}
......