Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDB ¶
type ActionDB struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` PermissionId int `gorm:"column:permission_id;type:int(11)" json:"permission_id"` Describe string `gorm:"column:describe;type:varchar(20)" json:"describe"` DefaultCheck int `gorm:"column:default_check;type:int(11)" json:"default_check"` Action string `gorm:"column:action;type:varchar(20)" json:"action"` }
func (*ActionDB) FindActions ¶
type PermissionDB ¶
type PermissionDB struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` PermissionName string `gorm:"column:permission_name;type:varchar(20)" json:"permission_name"` PermissionId string `gorm:"column:permission_id;type:varchar(20)" json:"permission_id"` Actions string `gorm:"column:actions;type:text" json:"actions"` RoleId string `gorm:"column:role_id;type:varchar(20)" json:"role_id"` }
func (*PermissionDB) FindPermissions ¶
func (p *PermissionDB) FindPermissions(ctx *gin.Context, tx *gorm.DB, search *PermissionDB) ([]*PermissionDB, error)
func (*PermissionDB) TableName ¶
func (p *PermissionDB) TableName() string
type RoleDB ¶
type RoleDB struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` Name string `gorm:"column:name;type:varchar(20)" json:"name"` RoleId string `gorm:"column:role_id;type:varchar(20)" json:"role_id"` Describe string `gorm:"column:describe;type:varchar(20)" json:"describe"` CreateAt time.Time `gorm:"column:create_at;type:datetime" json:"create_at"` CreateUser string `gorm:"column:create_user;type:varchar(20)" json:"create_user"` IsDeleted int `gorm:"column:is_deleted;type:int(11)" json:"is_deleted"` PermissionId int `gorm:"column:permission_id;type:int(11)" json:"permission_id"` }
RoleDB TRole 角色表
type UserGroupDB ¶
type UserGroupDB struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` RoleId int `gorm:"column:role_id;type:int(11)" json:"role_id"` GroupName string `gorm:"column:group_name;type:varchar(20)" json:"group_name"` Key string `gorm:"column:key;type:varchar(20)" json:"key"` }
UserGroupDB 用户组表
func (*UserGroupDB) Find ¶
func (u *UserGroupDB) Find(ctx *gin.Context, tx *gorm.DB, search *UserGroupDB) (*UserGroupDB, error)
func (*UserGroupDB) FindList ¶
func (u *UserGroupDB) FindList(ctx *gin.Context, tx *gorm.DB, search *UserGroupDB) ([]*UserGroupDB, error)
func (*UserGroupDB) TableName ¶
func (u *UserGroupDB) TableName() string
type UserInfo ¶
type UserInfo struct { Id int `gorm:"column:id;type:int(11);AUTO_INCREMENT;primary_key" json:"id"` Uid int `gorm:"column:uid;type:int(11)" json:"uid"` Avatar string `gorm:"column:avatar;type:varchar(255);comment:头像" json:"avatar"` CreateId string `gorm:"column:create_id;type:varchar(20);comment:创建用户" json:"create_id"` Email string `gorm:"column:email;type:varchar(30);comment:邮箱" json:"email"` Mobile string `gorm:"column:mobile;type:varchar(11);comment:手机号" json:"mobile"` Nickname string `gorm:"column:nickname;type:varchar(20);comment:别名" json:"nickname"` Introduction string `gorm:"column:introduction;type:varchar(255);comment:介绍" json:"introduction"` }
UserInfo 用户信息表
Click to show internal directories.
Click to hide internal directories.