Documentation ¶
Index ¶
- func AddGroup(upd Groups) error
- func AddGroupsPermission(upd GroupsPermission) error
- func AddGroupsUser(upd GroupsUser) error
- func AddPermission(upd Permissions) error
- func CountGroup(condArr map[string]string) int64
- func CountPermission(condArr map[string]string) int64
- func DeleteGroup(ids string) error
- func DeleteGroupsPermission(id int64) error
- func DeleteGroupsPermissionForGroupid(groupid int64) error
- func DeleteGroupsUser(id int64) error
- func DeletePermission(ids string) error
- func GetPermissiontName(id int64) string
- func UpdateGroup(id int64, upd Groups) error
- func UpdatePermission(id int64, upd Permissions) error
- type Groups
- type GroupsPermission
- type GroupsUser
- type GroupsUserName
- type GroupsUserPermission
- type Permissions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGroupsPermission ¶
func AddGroupsPermission(upd GroupsPermission) error
func AddGroupsUser ¶
func AddGroupsUser(upd GroupsUser) error
func AddPermission ¶
func AddPermission(upd Permissions) error
func CountGroup ¶
func CountPermission ¶
func DeleteGroup ¶
func DeleteGroupsPermission ¶
func DeleteGroupsUser ¶
func DeletePermission ¶
func GetPermissiontName ¶
func UpdateGroup ¶
func UpdatePermission ¶
func UpdatePermission(id int64, upd Permissions) error
Types ¶
type Groups ¶
type Groups struct { Id int64 `orm:"pk;column(groupid);"` Name string Summary string Created int64 Changed int64 }
type GroupsPermission ¶
func ListGroupsPermission ¶
func ListGroupsPermission(groupid int64) (ops []GroupsPermission)
func (*GroupsPermission) TableName ¶
func (this *GroupsPermission) TableName() string
type GroupsUser ¶
func ListGroupsUser ¶
func ListGroupsUser(groupid int64, page, offset int) (ops []GroupsUser)
func (*GroupsUser) TableName ¶
func (this *GroupsUser) TableName() string
type GroupsUserName ¶
func ListGroupsUserAndName ¶
func ListGroupsUserAndName(groupid int64) (num int64, err error, user []GroupsUserName)
type GroupsUserPermission ¶
func ListGroupsUserPermission ¶
func ListGroupsUserPermission(groupid string) (num int64, err error, ops []GroupsUserPermission)
type Permissions ¶
type Permissions struct { Id int64 `orm:"pk;column(permissionid);"` Parentid int64 Name string Ename string Type int Weight int Icon string }
func GetPermission ¶
func GetPermission(id int64) (Permissions, error)
func ListPermission ¶
func (*Permissions) TableName ¶
func (this *Permissions) TableName() string
Click to show internal directories.
Click to hide internal directories.