21 lines
422 B
Go
21 lines
422 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
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 time.Time `json:"created_at"`
|
|
}
|