Versions in this module Expand all Collapse all v0 v0.0.1 Sep 28, 2021 Changes in this version + type Menu struct + Actions MenuActions + Component string + CreatedBy string + Hidden int + ID string + Icon string + Name string + ParentID string + ParentPath string + Remark string + Router string + Sequence int + Status int + type MenuAction struct + Code string + ID string + MenuID string + Name string + Resources MenuActionResources + type MenuActionQueryParam struct + IDs []string + MenuID string + type MenuActionQueryResult struct + List MenuActions + Pagination *dto.Pagination + type MenuActionResource struct + ActionID string + ID string + Method string + Path string + type MenuActionResourceQueryParam struct + MenuID string + MenuIDs []string + type MenuActionResourceQueryResult struct + List MenuActionResources + Pagination *dto.Pagination + type MenuActionResources []*MenuActionResource + func (a MenuActionResources) ToActionIDMap() map[string]MenuActionResources + func (a MenuActionResources) ToMap() map[string]*MenuActionResource + type MenuActions []*MenuAction + func (a MenuActions) FillResources(maResources map[string]MenuActionResources) + func (a MenuActions) ToMap() map[string]*MenuAction + func (a MenuActions) ToMenuIDMap() map[string]MenuActions + type MenuQueryParam struct + Hidden int + IDs []string + IncludeActions bool + Name string + ParentID string + PrefixParentPath string + QueryValue string + Status int + Tree bool + type MenuQueryResult struct + List Menus + Pagination *dto.Pagination + type MenuTree struct + Actions MenuActions + Children MenuTrees + Component string + Hidden int + ID string + Icon string + Name string + ParentID string + ParentPath string + Router string + Sequence int + Status int + type MenuTrees []*MenuTree + func (a MenuTrees) ToTree() MenuTrees + type Menus []*Menu + func (a Menus) FillMenuAction(mActions map[string]MenuActions, mResources map[string]MenuActionResources) Menus + func (a Menus) Len() int + func (a Menus) Less(i, j int) bool + func (a Menus) SplitParentIDs() []string + func (a Menus) Swap(i, j int) + func (a Menus) ToIDs() []string + func (a Menus) ToMap() map[string]*Menu + func (a Menus) ToMenuTrees() MenuTrees + type Role struct + CreatedBy string + ID string + Name string + Remark string + RoleMenus RoleMenus + Sequence int + Status int + type RoleMenu struct + ActionID string + ID string + MenuID string + RoleID string + type RoleMenuQueryParam struct + RoleID string + RoleIDs []string + type RoleMenuQueryResult struct + List RoleMenus + Pagination *dto.Pagination + type RoleMenus []*RoleMenu + func (a RoleMenus) ToActionIDs() []string + func (a RoleMenus) ToMap() map[string]*RoleMenu + func (a RoleMenus) ToMenuIDs() []string + func (a RoleMenus) ToRoleIDMap() map[string]RoleMenus + type RoleQueryParam struct + IDs []string + Name string + QueryValue string + Status int + UserID string + type RoleQueryResult struct + List Roles + Pagination *dto.Pagination + type Roles []*Role + func (a Roles) ToMap() map[string]*Role + func (a Roles) ToNames() []string + type User struct + CreatedBy string + Email string + ID string + Password string + Phone string + Realname string + Status int + UserRoles UserRoles + Username string + func (a *User) CleanSecure() *User + type UserInfo struct + ID string + Realname string + Roles Roles + Username string + type UserQueryParam struct + QueryPassword bool + QueryValue string + Realname string + RoleIDs []string + Status int + Username string + type UserQueryResult struct + List Users + Pagination *dto.Pagination + type UserRole struct + ID string + RoleID string + UserID string + type UserRoleQueryParam struct + UserID string + UserIDs []string + type UserRoleQueryResult struct + List UserRoles + Pagination *dto.Pagination + type UserRoles []*UserRole + func (a UserRoles) ToMap() map[string]*UserRole + func (a UserRoles) ToRoleIDs() []string + func (a UserRoles) ToUserIDMap() map[string]UserRoles + type Users []*User + func (a Users) ToIDs() []string