feat:完善项目
This commit is contained in:
18
app/common/model/sys_role_auth.go
Normal file
18
app/common/model/sys_role_auth.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
type SysRoleAuth struct {
|
||||
Model
|
||||
ModelTenant
|
||||
RoleID uint64 `gorm:"column:role_id;type:int;default:0;comment:角色ID" json:"-"`
|
||||
AuthID uint64 `gorm:"column:auth_id;type:int;default:0;comment:权限ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *SysRoleAuth) TableName() string {
|
||||
return m.NewTableName("sys_role_auth")
|
||||
}
|
||||
|
||||
func NewSysRoleAuth() *SysRoleAuth {
|
||||
return &SysRoleAuth{}
|
||||
}
|
Reference in New Issue
Block a user