Documentation
¶
Index ¶
- func NewUserCURDService(p UserServiceParamFx) (service_api.UserServiceAPI, error)
- type UserImplServiceFx
- func (r *UserImplServiceFx) Create(ctx context.Context, user service_attr.UserCreate) error
- func (r *UserImplServiceFx) Delete(ctx context.Context, id string) error
- func (r *UserImplServiceFx) Read(ctx context.Context, id string) (*service_attr.User, error)
- func (r *UserImplServiceFx) ReadAll(ctx context.Context, limit int, offset int) ([]service_attr.User, error)
- func (r *UserImplServiceFx) Update(ctx context.Context, user service_attr.User) error
- type UserServiceParamFx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserCURDService ¶
func NewUserCURDService(p UserServiceParamFx) (service_api.UserServiceAPI, error)
Types ¶
type UserImplServiceFx ¶
type UserImplServiceFx struct {
// contains filtered or unexported fields
}
func (*UserImplServiceFx) Create ¶
func (r *UserImplServiceFx) Create(ctx context.Context, user service_attr.UserCreate) error
func (*UserImplServiceFx) Delete ¶
func (r *UserImplServiceFx) Delete(ctx context.Context, id string) error
func (*UserImplServiceFx) Read ¶
func (r *UserImplServiceFx) Read(ctx context.Context, id string) (*service_attr.User, error)
func (*UserImplServiceFx) ReadAll ¶
func (r *UserImplServiceFx) ReadAll(ctx context.Context, limit int, offset int) ([]service_attr.User, error)
func (*UserImplServiceFx) Update ¶
func (r *UserImplServiceFx) Update(ctx context.Context, user service_attr.User) error
type UserServiceParamFx ¶
type UserServiceParamFx struct { fx.In RDB *redis.Client UserRepo repo_api.UserRepoAPI `optional:"false"` }
Click to show internal directories.
Click to hide internal directories.