relation

package
v0.0.0-...-7695f31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 3 Imported by: 0

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

func (ur UserRole) MarshalBinary() (data []byte, err error)

MarshalBinary 实现BinaryMarshal接口

func (UserRole) TableName

func (ur UserRole) TableName() string

TableName 表名

func (*UserRole) UnmarshalBinary

func (ur *UserRole) UnmarshalBinary(data []byte) (err error)

UnmarshalBinary 实现BinaryUnmarshal接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL