Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRoleIdsByUserId ¶
func SaveOrCreateById ¶
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"` //
UserId uint64 `gorm:"column:user_id;type:bigint unsigned;not null;default:0;" json:"userId"` //
RoleId uint64 `gorm:"column:role_id;type:bigint unsigned;not null;default:0;" json:"roleId"` //
Effective int `gorm:"column:effective;type:int;not null;default:0;" json:"effective"` //
CreatedAt time.Time `gorm:"column:created_at;index;autoCreateTime;" json:"createdAt"` //
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func GetByUserId ¶
func GetByUserIdAndRoleId ¶
func GetByUserIds ¶
Click to show internal directories.
Click to hide internal directories.