Versions in this module Expand all Collapse all v1 v1.1.0 Dec 5, 2018 Changes in this version type IUser + QueryUserRoles func(ctx context.Context, params schema.UserRoleQueryParam) ([]*schema.UserRole, error) v1.0.0 Nov 30, 2018 Changes in this version + type IDemo interface + Check func(ctx context.Context, recordID string) (bool, error) + Create func(ctx context.Context, item *schema.Demo) error + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string) (*schema.Demo, error) + QueryPage func(ctx context.Context, param schema.DemoQueryParam, pageIndex, pageSize uint) (int64, []*schema.DemoQueryResult, error) + Update func(ctx context.Context, recordID string, info map[string]interface{}) error + type IMenu interface + Check func(ctx context.Context, recordID string) (bool, error) + CheckChild func(ctx context.Context, parentID string) (bool, error) + CheckCode func(ctx context.Context, code string, parentID string) (bool, error) + Create func(ctx context.Context, item *schema.Menu) error + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string) (*schema.Menu, error) + QueryLevelCodesByParentID func(parentID string) ([]string, error) + QueryPage func(ctx context.Context, params schema.MenuQueryParam, pageIndex, pageSize uint) (int64, []*schema.MenuQueryResult, error) + QuerySelect func(ctx context.Context, params schema.MenuSelectQueryParam) ([]*schema.MenuSelectQueryResult, error) + Update func(ctx context.Context, recordID string, info map[string]interface{}) error + UpdateWithLevelCode func(ctx context.Context, recordID string, info map[string]interface{}, ...) error + type IRole interface + Check func(ctx context.Context, recordID string) (bool, error) + CheckName func(ctx context.Context, name string) (bool, error) + Create func(ctx context.Context, item *schema.Role) error + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, includeMenuIDs bool) (*schema.Role, error) + QueryPage func(ctx context.Context, params schema.RoleQueryParam, pageIndex, pageSize uint) (int64, []*schema.RoleQueryResult, error) + QuerySelect func(ctx context.Context, params schema.RoleSelectQueryParam) ([]*schema.RoleSelectQueryResult, error) + Update func(ctx context.Context, recordID string, info map[string]interface{}) error + UpdateWithMenuIDs func(ctx context.Context, recordID string, info map[string]interface{}, ...) error + type IUser interface + Check func(ctx context.Context, recordID string) (bool, error) + CheckByRoleID func(ctx context.Context, roleID string) (bool, error) + CheckUserName func(ctx context.Context, userName string) (bool, error) + Create func(ctx context.Context, item *schema.User) error + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, includeRoleIDs bool) (*schema.User, error) + GetByUserName func(ctx context.Context, userName string, includeRoleIDs bool) (*schema.User, error) + QueryPage func(ctx context.Context, params schema.UserQueryParam, pageIndex, pageSize uint) (int64, []*schema.UserQueryResult, error) + Update func(ctx context.Context, recordID string, info map[string]interface{}) error + UpdateWithRoleIDs func(ctx context.Context, recordID string, info map[string]interface{}, ...) error