feat: cbs message enhance

This commit is contained in:
zhangsz
2025-07-15 16:26:21 +08:00
parent f43adfdf6f
commit 81177be0ca
12 changed files with 147 additions and 36 deletions

View File

@@ -86,6 +86,7 @@ func (m *CBMessage) List(c *gin.Context) {
"neId": msg.NeId,
"messageJson": messageJson, // 这里是解析后的 JSON 对象
"status": msg.Status.Enum(),
"detail": msg.Detail,
"createdAt": msg.CreatedAt,
"updatedAt": msg.UpdatedAt,
}
@@ -274,6 +275,7 @@ func (m *CBMessage) GetById(c *gin.Context) {
"neId": data.NeId,
"messageJson": messageJson, // 这里是解析后的 JSON 对象
"status": data.Status.Enum(),
"detail": data.Detail,
"createdAt": data.CreatedAt,
"updatedAt": data.UpdatedAt,
}