Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRole ¶
type UserRole struct { Id int64 `gorm:"not null;primaryKey;autoIncrement:false;comment:主键;snowFlake" json:"id"` Version int64 `gorm:"not null;index:fly_user_role_idx_version;comment:版本;version" json:"version"` UserId int64 `gorm:"not null;index:fly_user_role_idx_user_id;comment:用户主键" json:"userId"` RoleId int64 `gorm:"not null;index:fly_user_role_idx_role_id;comment:角色主键" json:"roleId"` CreatedAt time.Time `gorm:"not null;autoCreateTime;comment:创建时间" json:"createdAt"` UpdatedAt time.Time `gorm:"not null;autoCreateTime;autoUpdateTime;comment:更新时间" json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"index:fly_permission_idx_deleted_at;comment:删除时间" json:"deletedAt"` }
用户角色关联实体
func (UserRole) MarshalBinary ¶
MarshalBinary 实现BinaryMarshal接口
Click to show internal directories.
Click to hide internal directories.