company

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Company = company{
	PermissionType: PermissionType,
}
View Source
var (
	PermissionType = func(modules co_interface.IModules) *permissionType[co_interface.IModules] {
		result := permissionTypeMap.GetOrSet(modules.GetConfig().KeyIndex, &permissionType[co_interface.IModules]{
			modules:       modules,
			enumMap:       kmap.New[string, Permission](),
			ViewDetail:    permission.NewInIdentifier("ViewDetail", "查看明细", ""),
			Create:        permission.NewInIdentifier("Create", "新增", ""),
			Update:        permission.NewInIdentifier("Update", "更新", ""),
			List:          permission.NewInIdentifier("List", "列表", ""),
			SetLogo:       permission.NewInIdentifier("SetLogo", "设置LOGO", ""),
			SetState:      permission.NewInIdentifier("SetState", "设置状态", ""),
			SetAdminUser:  permission.NewInIdentifier("SetAdminUser", "设置管理员", ""),
			ViewLicense:   permission.NewInIdentifier("ViewLicense", "查看认证信息", "查看公司认证信息"),
			AuditLicense:  permission.NewInIdentifier("AuditLicense", "审核认证信息", "审核公司认证信息"),
			UpdateLicense: 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 = *sys_model.SysPermissionTree

Jump to

Keyboard shortcuts

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