rolepermission

package
v0.0.0-...-cd8b1d2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

@generated

@generated

@generated

Index

Constants

This section is empty.

Variables

View Source
var (
	// Type ...
	Type = graphql.NewObject(graphql.ObjectConfig{
		Name:        "RolePermission",
		Description: "This is type Feature",
		Fields: graphql.Fields{
			"id": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.Int),
				Description: "This is rolePermission's id",
			},
			"roleId": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.Int),
				Description: "This is rolePermission's roleId",
			},
			"permissionId": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.Int),
				Description: "This is rolePermission's permissionId",
			},
			"createdBy": &graphql.Field{
				Type:        graphql.String,
				Description: "This is rolePermission's createdBy",
			},
			"updatedBy": &graphql.Field{
				Type:        graphql.String,
				Description: "This is rolePermission's updatedBy",
			},
		},
	})
)

Functions

This section is empty.

Types

type HandlerImpl

type HandlerImpl struct {
	// contains filtered or unexported fields
}

HandlerImpl ...

func NewHandler

func NewHandler(rolepermission IRepository) *HandlerImpl

NewHandler ...

func (*HandlerImpl) Count

Count ...

func (*HandlerImpl) Delete

Delete ...

func (*HandlerImpl) GetByID

GetByID ...

func (*HandlerImpl) GetByIDs

GetByIDs ...

func (*HandlerImpl) GetByRoleID

func (h *HandlerImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)

GetByRoleID ...

func (*HandlerImpl) Insert

Insert ...

func (*HandlerImpl) List

List ...

func (*HandlerImpl) Update

Update ...

type IDatabase

type IDatabase interface {
	Ping() error
	Close() error
	PrepareContext(ctx context.Context, query string) (database.IStmt, error)
}

IDatabase ...

type IHandler

type IHandler interface {
	ICoreHandler
	GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
}

IHandler ...

type IRepository

type IRepository interface {
	ICoreRepository
	GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
}

IRepository ...

type RepositoryImpl

type RepositoryImpl struct {
	// contains filtered or unexported fields
}

RepositoryImpl ...

func NewRepository

func NewRepository(db database.IDB) *RepositoryImpl

NewRepository ...

func (*RepositoryImpl) Count

Count ...

func (*RepositoryImpl) Delete

Delete ...

func (*RepositoryImpl) GetByID

GetByID ...

func (*RepositoryImpl) GetByIDs

GetByIDs ...

func (*RepositoryImpl) GetByRoleID

func (r *RepositoryImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)

GetByRoleID ...

func (*RepositoryImpl) Insert

Insert ...

func (*RepositoryImpl) List

List ...

func (*RepositoryImpl) Update

Update ...

type ResolverImpl

type ResolverImpl struct {
	// contains filtered or unexported fields
}

ResolverImpl ...

func NewResolver

func NewResolver(rolepermission IHandler) *ResolverImpl

NewResolver ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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