Documentation ¶
Index ¶
- type ItemService
- func (is *ItemService) Create(ctx context.Context, req *dto.ItemInBody) (int64, error)
- func (is *ItemService) GetTotalAmountByExpenses(ctx context.Context, userId uint64) (float64, error)
- func (is *ItemService) GetTotalAmountByIncome(ctx context.Context, userId uint64) (float64, error)
- func (is *ItemService) List(ctx context.Context, req *dto.ItemListQueries) (*page.Page[*model.Item], error)
- type TagService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemService ¶
type ItemService struct {
// contains filtered or unexported fields
}
func NewItemService ¶
func NewItemService(data *data.Data) *ItemService
func (*ItemService) Create ¶
func (is *ItemService) Create(ctx context.Context, req *dto.ItemInBody) (int64, error)
func (*ItemService) GetTotalAmountByExpenses ¶
func (*ItemService) GetTotalAmountByIncome ¶
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func NewTagService ¶
func NewTagService(data *data.Data) *TagService
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func (*UserService) FindOrCreate ¶
func (us *UserService) FindOrCreate(ctx context.Context, req *dto.UserInBody) (*dto.UserOutBody, error)
func (*UserService) GetCurrentUser ¶
func (us *UserService) GetCurrentUser(ctx context.Context, userId string) (*dto.UserProfileResp, error)
func (*UserService) SendVerificationCode ¶
func (us *UserService) SendVerificationCode(ctx context.Context, email string) (err error)
Click to show internal directories.
Click to hide internal directories.