fix: Change id type to int in ConversationParticipant

- hide Total field in UserCompact JSON
This commit is contained in:
Abhinav Raut
2025-09-15 01:01:51 +05:30
parent ae470be4c8
commit 71865e389e
2 changed files with 2 additions and 2 deletions

View File

@@ -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"`

View File

@@ -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 {