JSON ข้อความ · Message objectflexlay-realestate-maintenance-request.json
{
"type": "flex",
"altText": "ใบแจ้งซ่อม MT-2569-0832 แอร์ไม่เย็น ห้อง 1205 ช่างนัดเข้าซ่อม 18 ธ.ค. 10:00 น.",
"contents": {
"type": "bubble",
"size": "kilo",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "lg",
"contents": [
{
"type": "text",
"size": "md",
"text": "แอร์ห้องนอนไม่เย็น มีน้ำหยด",
"wrap": true,
"color": "#111827",
"weight": "bold"
},
{
"type": "box",
"layout": "baseline",
"margin": "md",
"contents": [
{
"type": "text",
"size": "sm",
"text": "●",
"flex": 0,
"color": "#15803D"
},
{
"type": "text",
"size": "sm",
"text": "รับเรื่องแล้ว",
"color": "#111827",
"margin": "md",
"weight": "regular"
},
{
"type": "text",
"size": "xs",
"text": "16 ธ.ค. 09:12",
"flex": 0,
"align": "end",
"color": "#5F6673"
}
]
},
{
"type": "box",
"layout": "baseline",
"margin": "md",
"contents": [
{
"type": "text",
"size": "sm",
"text": "●",
"flex": 0,
"color": "#15803D"
},
{
"type": "text",
"size": "sm",
"text": "มอบหมายช่าง",
"color": "#111827",
"margin": "md",
"weight": "regular"
},
{
"type": "text",
"size": "xs",
"text": "16 ธ.ค. 11:40",
"flex": 0,
"align": "end",
"color": "#5F6673"
}
]
},
{
"type": "box",
"layout": "baseline",
"margin": "md",
"contents": [
{
"type": "text",
"size": "sm",
"text": "◉",
"flex": 0,
"color": "#B45309"
},
{
"type": "text",
"size": "sm",
"text": "นัดเข้าซ่อม",
"color": "#111827",
"margin": "md",
"weight": "bold"
},
{
"type": "text",
"size": "xs",
"text": "18 ธ.ค. 10:00",
"flex": 0,
"align": "end",
"color": "#5F6673"
}
]
},
{
"type": "box",
"layout": "baseline",
"margin": "md",
"contents": [
{
"type": "text",
"size": "sm",
"text": "○",
"flex": 0,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "ซ่อมเสร็จ",
"color": "#111827",
"margin": "md",
"weight": "regular"
},
{
"type": "text",
"size": "xs",
"text": "—",
"flex": 0,
"align": "end",
"color": "#5F6673"
}
]
},
{
"type": "separator",
"color": "#EEF0F3",
"margin": "lg"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ช่าง",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "คุณสมชาย (แอร์)",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "เบอร์ติดต่อ",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "02-000-1205",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "horizontal",
"spacing": "sm",
"paddingAll": "lg",
"paddingTop": "none",
"contents": [
{
"type": "button",
"flex": 1,
"color": "#111827",
"style": "primary",
"height": "sm",
"action": {
"type": "postback",
"data": "action=mt_confirm&ticket=MT-2569-0832",
"label": "ยืนยันเวลา",
"displayText": "ยืนยันเวลานัดซ่อม"
}
},
{
"type": "button",
"flex": 1,
"style": "secondary",
"height": "sm",
"action": {
"type": "datetimepicker",
"data": "action=mt_reschedule&ticket=MT-2569-0832",
"mode": "datetime",
"label": "เลื่อนนัด"
}
}
]
},
"header": {
"type": "box",
"layout": "vertical",
"paddingAll": "lg",
"backgroundColor": "#111827",
"contents": [
{
"type": "text",
"size": "md",
"text": "ใบแจ้งซ่อม MT-2569-0832",
"color": "#FFFFFF",
"weight": "bold"
},
{
"type": "text",
"size": "xs",
"text": "นิติบุคคลอาคารริเวอร์ไลน์ · ห้อง 1205",
"color": "#FFFFFF",
"margin": "xs"
}
]
}
}
}