employee

package
v0.6.24 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 Employee = employee{
	PermissionType: PermissionType,
}
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", "详情", "查看员工详情"),
			MoreDetail:    base_permission.NewInIdentifier("MoreDetail", "更多详情", "查看员工更多详情含手机号等"),
			ViewMobile:    base_permission.NewInIdentifier("ViewMobile", "查看手机号", ""),
			List:          base_permission.NewInIdentifier("List", "列表", "查看员工列表"),
			Create:        base_permission.NewInIdentifier("Create", "新增", "新增员工信息"),
			Update:        base_permission.NewInIdentifier("Update", "更新", "更新员工信息"),
			Delete:        base_permission.NewInIdentifier("Delete", "删除", "删除员工信息"),
			SetMobile:     base_permission.NewInIdentifier("SetMobile", "设置手机号", "修改员工手机号"),
			SetAvatar:     base_permission.NewInIdentifier("SetAvatar", "设置头像", "设置员工头像"),
			SetRoles:      base_permission.NewInIdentifier("SetRoles", "设置员工角色", "设置员工角色"),
			SetState:      base_permission.NewInIdentifier("SetState", "设置状态", "设置员工任职状态"),
			ViewLicense:   base_permission.NewInIdentifier("ViewLicense", "查看认证信息", "查看员工认证信息"),
			AuditLicense:  base_permission.NewInIdentifier("AuditLicense", "审核认证信息", "审核员工认证信息"),
			UpdateLicense: base_permission.NewInIdentifier("UpdateLicense", "更新认证信息", "更新员工认证信息"),
		})

		for k, v := range gconv.Map(result) {
			result.enumMap.Set(k, v.(Permission))
		}
		return result
	}
)

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