mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-23 05:11:57 +00:00
fix: Change id type to int in ConversationParticipant
- hide Total field in UserCompact JSON
This commit is contained in:
@@ -173,7 +173,7 @@ type PreviousConversationContact struct {
|
||||
}
|
||||
|
||||
type ConversationParticipant struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
ID int `db:"id" json:"id"`
|
||||
FirstName string `db:"first_name" json:"first_name"`
|
||||
LastName string `db:"last_name" json:"last_name"`
|
||||
AvatarURL null.String `db:"avatar_url" json:"avatar_url"`
|
||||
|
@@ -41,7 +41,7 @@ type UserCompact struct {
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
||||
|
||||
Total int `db:"total" json:"total"`
|
||||
Total int `db:"total" json:"-"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
Reference in New Issue
Block a user