feat(crm): align shared attachment payloads

This commit is contained in:
2026-06-05 23:17:05 +08:00
parent ad5d864944
commit f8263a3402
10 changed files with 209 additions and 30 deletions
+2 -1
View File
@@ -1004,9 +1004,10 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
contacts.DELETE("/:contact_id", h.Contact.Delete)
contacts.DELETE("/:contact_id/avatar", h.Contact.DeleteAvatar)
// M4 G3: Contact extension routes (active, export, import, contactable_inboxes, custom_attributes)
// M4 G3: Contact extension routes (active, export, import, contactable_inboxes, attachments, custom_attributes)
contacts.GET("/:contact_id/conversations", h.Contact.ListConversations)
contacts.GET("/:contact_id/contactable_inboxes", h.Contact.ContactableInboxes)
contacts.GET("/:contact_id/attachments", h.Contact.ListAttachments)
contacts.GET("/:contact_id/labels", h.Contact.ListLabels)
contacts.GET("/:contact_id/labels/", h.Contact.ListLabels)
contacts.POST("/:contact_id/labels", h.Contact.UpdateLabels)