Documentation ¶
Index ¶
- type Repository
- type Service
- func (s Service) Create(ctx context.Context, r *pb.Company) (*pb.Company, error)
- func (s Service) Delete(ctx context.Context, r *pb.OneCompanyRequest) (*types.Empty, error)
- func (s Service) Get(ctx context.Context, r *pb.OneCompanyRequest) (*pb.Company, error)
- func (s Service) List(ctx context.Context, r *pb.ListCompanyRequest) (*pb.ListCompanyResponse, error)
- func (s Service) Update(ctx context.Context, r *pb.Company) (*pb.Company, error)
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
Click to show internal directories.
Click to hide internal directories.