team

package
v0.6.23 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PermissionType = func(modules co_interface.IConfig) *permissionType[co_interface.IConfig] {
		result := permissionTypeMap.GetOrSet(modules.GetConfig().KeyIndex, &permissionType[co_interface.IConfig]{
			modules:      modules,
			enumMap:      kmap.New[string, Permission](),
			ViewDetail:   base_permission.NewInIdentifier("ViewDetail", "详情", "查看团队详情"),
			List:         base_permission.NewInIdentifier("List", "列表", "查看团队列表"),
			Create:       base_permission.NewInIdentifier("Create", "新增", "新增团队信息"),
			Update:       base_permission.NewInIdentifier("Update", "更新", "更新团队信息"),
			Delete:       base_permission.NewInIdentifier("Delete", "删除", "删除团队信息"),
			MemberDetail: base_permission.NewInIdentifier("MemberDetail", "成员详情", "查看团队成员详情"),
			SetMember:    base_permission.NewInIdentifier("SetMember", "设置成员", "设置团队成员"),
			SetOwner:     base_permission.NewInIdentifier("SetOwner", "设置管理人", "设置团队管理人,可以不是团队成员"),
			SetCaptain:   base_permission.NewInIdentifier("SetCaptain", "设置队长或组长", "设置团队队长或小组组长,必须是团队成员"),
		})

		for k, v := range gconv.Map(result) {
			result.enumMap.Set(k, v.(Permission))
		}
		return result
	}
)
View Source
var Team = team{
	PermissionType: PermissionType,
}

Functions

This section is empty.

Types

type Permission

type Permission = base_permission.IPermission

Jump to

Keyboard shortcuts

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