usecase

package
v0.0.0-...-ed03793 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name  string `json:"name"`
	Value any    `json:"value"`
}

type Seller

type Seller struct {
	ID        string    `json:"id"`
	UserID    string    `json:"userId"`
	ShopName  string    `json:"shopName"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type SellerExistsChecker

type SellerExistsChecker interface {
	CheckExists(ctx context.Context, fields []Field) (bool, error)
}

type SellerForm

type SellerForm struct {
	ShopName string `json:"shopName"`
}

type SellerFormValidator

type SellerFormValidator interface {
	Validate(ctx context.Context, form SellerForm) error
}

type SellerGetter

type SellerGetter interface {
	GetByUserID(ctx context.Context, userId string) (Seller, error)
}

type SellerRegisterer

type SellerRegisterer interface {
	Register(ctx context.Context, userId string, form SellerForm) error
}

Directories

Path Synopsis
Package usecasemock is a generated GoMock package.
Package usecasemock is a generated GoMock package.

Jump to

Keyboard shortcuts

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