replace id type
This commit is contained in:
@@ -13,24 +13,24 @@ type Event struct {
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
Author User `json:"author" gorm:"-"`
|
||||
AuthorId uint `json:"-"`
|
||||
AuthorId uuid.UUID `json:"-"`
|
||||
Employee User `json:"employee" gorm:"-"`
|
||||
EmployeeId uint `json:"-"`
|
||||
EmployeeId uuid.UUID `json:"-"`
|
||||
Member PD `json:"member" gorm:"-"`
|
||||
MemberId uint `json:"-"`
|
||||
MemberId uuid.UUID `json:"-"`
|
||||
Status string `json:"status"`
|
||||
MedicalCard Card `json:"medicalCard" gorm:"-"`
|
||||
MedicalCardId uint `json:"-"`
|
||||
MedicalCardId uuid.UUID `json:"-"`
|
||||
Services pq.Int32Array `json:"services" gorm:"type:integer[]"`
|
||||
OrgId uint `json:"-"`
|
||||
OrgId uuid.UUID `json:"-"`
|
||||
}
|
||||
|
||||
type CreateEvent struct {
|
||||
Start time.Time `json:"start"`
|
||||
End time.Time `json:"end"`
|
||||
EmployeeId uint `json:"employee_id"`
|
||||
MemberId uint `json:"member_id"`
|
||||
EmployeeId uuid.UUID `json:"employee_id"`
|
||||
MemberId uuid.UUID `json:"member_id"`
|
||||
Status string `json:"status"`
|
||||
MedicalCardId uint `json:"medical_card_id"`
|
||||
MedicalCardId uuid.UUID `json:"medical_card_id"`
|
||||
Services []int32 `json:"services"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user