company

package
v0.0.0-...-1b63b6c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *gorm.DB) *Repository

func (*Repository) FindOne

func (r *Repository) FindOne(id int) (*model.Company, error)

type Service

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

func NewService

func NewService(db *gorm.DB) *Service

func (Service) Create

func (s Service) Create(ctx context.Context, r *pb.Company) (*pb.Company, error)

func (Service) Delete

func (s Service) Delete(ctx context.Context, r *pb.OneCompanyRequest) (*types.Empty, error)

func (Service) Get

func (Service) List

func (Service) Update

func (s Service) Update(ctx context.Context, r *pb.Company) (*pb.Company, error)

Jump to

Keyboard shortcuts

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