mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
21 lines
463 B
Go
21 lines
463 B
Go
package helper
|
|
|
|
import (
|
|
"github.com/tengge1/shadoweditor/helper/authority"
|
|
"github.com/tengge1/shadoweditor/model/system"
|
|
)
|
|
|
|
// GetAllOperatingAuthorities Get all operatingAuthorities
|
|
func GetAllOperatingAuthorities() []system.OperatingAuthority {
|
|
authorities := []system.OperatingAuthority{}
|
|
|
|
for key, value := range authority.All {
|
|
authorities = append(authorities, system.OperatingAuthority{
|
|
ID: key,
|
|
Name: value,
|
|
})
|
|
}
|
|
|
|
return authorities
|
|
}
|