Files
mtusi2026lab2/dto/list_chats.go
T
Khakimov Dmitrij 300ef7714e
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab2 done
2026-10-06 22:38:28 +03:00

19 lines
407 B
Go

package dto
type ListChatsRequest struct {
Limit int `json:"-"`
Cursor string `json:"-"`
}
type ListChatsResponse struct {
Items []ListChatsItem `json:"items"`
NextCursor *string `json:"next_cursor"`
}
type ListChatsItem struct {
ID string `json:"id"`
Title string `json:"title"`
MemberIDs []string `json:"member_ids"`
CreatedAt Timestamp `json:"created_at"`
}