Documentation ¶
Index ¶
- Constants
- type GetAppAuthData
- func (auth GetAppAuthData) HasAllFieldAuthOfTable(tableIdStr string) bool
- func (auth GetAppAuthData) HasFieldViewAuth(tableIdStr string, field string) bool
- func (auth GetAppAuthData) HasFieldWriteAuth(tableIdStr string, field string) bool
- func (auth GetAppAuthData) HasOrgRootPermission() bool
- func (auth GetAppAuthData) IsAdmin() bool
Constants ¶
View Source
const ( Read = 1 //可见 Write = 2 //可编辑 Masking = 4 //脱敏 ReadAndWrite = 3 //可见,可编辑 ReadAndMasking = 5 //可见,脱敏 WriteAndMasking = 6 //可编辑,脱敏 ReadAndWriteAndMasking = 7 //可见,可编辑,脱敏 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAppAuthData ¶
type GetAppAuthData struct { AppAuth []string `json:"appAuth"` LangCode *string `json:"langCode"` AppId int64 `json:"appId,string"` AppOwner bool `json:"appOwner"` OrgOwner bool `json:"orgOwner"` SysAdmin bool `json:"sysAdmin"` HasAppRootPermission bool `json:"hasAppRootPermission"` FieldAuth map[string]map[string]int `json:"fieldAuth"` OptAuth []string `json:"optAuth"` TableAuth []string `json:"tableAuth"` }
func (GetAppAuthData) HasAllFieldAuthOfTable ¶
func (auth GetAppAuthData) HasAllFieldAuthOfTable(tableIdStr string) bool
func (GetAppAuthData) HasFieldViewAuth ¶
func (auth GetAppAuthData) HasFieldViewAuth(tableIdStr string, field string) bool
查看权限
func (GetAppAuthData) HasFieldWriteAuth ¶
func (auth GetAppAuthData) HasFieldWriteAuth(tableIdStr string, field string) bool
编辑权限
func (GetAppAuthData) HasOrgRootPermission ¶
func (auth GetAppAuthData) HasOrgRootPermission() bool
func (GetAppAuthData) IsAdmin ¶
func (auth GetAppAuthData) IsAdmin() bool
Click to show internal directories.
Click to hide internal directories.