Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Order ¶
type Order struct { Id uint `json:"id"` FirstName string `json:"-"` LastName string `json:"-"` Name string `json:"name" gorm:"-"` Total float32 `json:"total" gorm:"-"` Email string `json:"email"` UpdatedAt string `json:"updated_at"` CreateAt string `json:"create_at"` OrderItems []OrderItem `json:"order_items" gorm:"foreignKey:OrderId"` }
type Permission ¶
type Product ¶
type Role ¶
type Role struct { Id uint `json:"id"` Name string `json:"name"` Permissions []Permission `json:"permissions" gorm:"many2many:role_permissions"` }
type User ¶
type User struct { Id uint `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email" gorm:"unique"` Password []byte `json:"-"` RoleId uint `json:"role_Id"` //(role_id) -> roles (id) Role Role `json:"role" gorm:"foreignKey:RoleId"` }
func (*User) ComparePassword ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.