Documentation ¶
Index ¶
- type Repository
- type Service
- func (s *Service) AgeIncrement(ctx context.Context, id string) (*model.User, error)
- func (s *Service) DeleteByID(ctx context.Context, id string) error
- func (s *Service) Get(ctx context.Context, id string) (*model.User, error)
- func (s *Service) Insert(ctx context.Context, user *model.User) error
- func (s *Service) Update(ctx context.Context, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Get(ctx context.Context, id string) (*model.User, error) Insert(ctx context.Context, user *model.User) error Update(ctx context.Context, user *model.User) error DeleteByID(ctx context.Context, id string) error }
Repository - User repository
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service - user service
func (*Service) AgeIncrement ¶
AgeIncrement - user age incrementation
func (*Service) DeleteByID ¶
DeleteByID - user deletion by id
Click to show internal directories.
Click to hide internal directories.