permission

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: 13 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:        "Permission",
		Description: "This is type Feature",
		Fields: graphql.Fields{
			"id": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.Int),
				Description: "This is permission's id",
			},
			"name": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.String),
				Description: "This is permission's name",
			},
			"description": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.String),
				Description: "This is permission's description",
			},
			"status": &graphql.Field{
				Type:        graphql.NewNonNull(graphql.String),
				Description: "This is permission's active",
			},
			"createdBy": &graphql.Field{
				Type:        graphql.String,
				Description: "This is permission's createdBy",
			},
			"updatedBy": &graphql.Field{
				Type:        graphql.String,
				Description: "This is permission's updatedBy",
			},
		},
	})
	// GetByIDTypeArgs ...
	GetByIDTypeArgs = graphql.FieldConfigArgument{
		"id": &graphql.ArgumentConfig{
			Type: graphql.NewNonNull(graphql.Int),
		},
	}
	// ListTypeArgs ...
	ListTypeArgs = graphql.FieldConfigArgument{
		"id": &graphql.ArgumentConfig{
			Type:        graphql.Int,
			Description: "This is permission's id",
		},
		"name": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's name",
		},
		"description": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's description",
		},
		"status": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's active",
		},
		"createdBy": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's createdBy",
		},
		"updatedBy": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's updatedBy",
		},
		"beginId": &graphql.ArgumentConfig{
			Type:         graphql.Int,
			Description:  "This is ID greater than",
			DefaultValue: 0,
		},
		"endId": &graphql.ArgumentConfig{
			Type:         graphql.Int,
			Description:  "This is ID less than",
			DefaultValue: 0,
		},
		"pageSize": &graphql.ArgumentConfig{
			Type:         graphql.Int,
			Description:  "This is feature pageSize",
			DefaultValue: 10,
		},
	}
	// InsertTypeArgs ...
	InsertTypeArgs = graphql.FieldConfigArgument{
		"name": &graphql.ArgumentConfig{
			Type:        graphql.NewNonNull(graphql.String),
			Description: "This is permission's name",
		},
		"description": &graphql.ArgumentConfig{
			Type:        graphql.NewNonNull(graphql.String),
			Description: "This is permission's description",
		},
		"status": &graphql.ArgumentConfig{
			Type:        graphql.NewNonNull(graphql.String),
			Description: "This is permission's active",
		},
		"createdBy": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's createdBy",
		},
		"updatedBy": &graphql.ArgumentConfig{
			Type:        graphql.String,
			Description: "This is permission's updatedBy",
		},
	}
)

Functions

This section is empty.

Types

type HandlerImpl

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

HandlerImpl ...

func NewHandler

func NewHandler(permission IRepository) *HandlerImpl

NewHandler ...

func (*HandlerImpl) Count

func (h *HandlerImpl) Count(ctx context.Context, params arguments.PermissionCount) (int64, error)

Count ...

func (*HandlerImpl) Delete

func (h *HandlerImpl) Delete(ctx context.Context, param arguments.PermissionDelete) (int64, error)

Delete ...

func (*HandlerImpl) GetByID

GetByID ...

func (*HandlerImpl) GetByIDs

GetByIDs ...

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
}

IHandler ...

type IRepository

type IRepository interface {
	ICoreRepository
}

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) 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(permission IHandler) *ResolverImpl

NewResolver ...

func (*ResolverImpl) Count

func (r *ResolverImpl) Count(params graphql.ResolveParams) (interface{}, error)

Count ...

func (*ResolverImpl) GetByID

func (r *ResolverImpl) GetByID(param graphql.ResolveParams) (interface{}, error)

GetByID ...

func (*ResolverImpl) Insert

func (r *ResolverImpl) Insert(params graphql.ResolveParams) (interface{}, error)

Insert ...

func (*ResolverImpl) List

func (r *ResolverImpl) List(params graphql.ResolveParams) (interface{}, error)

List ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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