Documentation ¶
Index ¶
Constants ¶
View Source
const (
FrontEndURLVerify = "https://ceritanya-front-end.com/verify/"
)
Variables ¶
View Source
var JWTKey = []byte("my_secret_key")
Functions ¶
Types ¶
type Auth ¶
type Auth interface { SignIn(ctx context.Context, req *dto.SignInRequest) (*dto.SignInResponse, error) SignUp(ctx context.Context, req *dto.SignUpRequest) (*dto.SignUpResponse, error) VerifyEmail(ctx context.Context, code string) (*dto.SignInResponse, error) }
type Claims ¶
type Claims struct { ID uint jwt.StandardClaims }
type Product ¶
type Product interface { CreateProduct(ctx context.Context, req *dto.CreateProductRequest) (*dto.CreateProductResponse, error) UploadProductPhoto(ctx context.Context, fileHeader *multipart.FileHeader, id uint) error GetProductCatalog(ctx context.Context, userID uint, limit int, offset int) (*dto.ProductsResponse, error) FindProducts(ctx context.Context, search string, limit int, offset int) ([]*dto.ProductOverviewResponse, error) FindProductByID(ctx context.Context, id uint) (*dto.ProductDetailResponse, error) }
func NewProduct ¶
Click to show internal directories.
Click to hide internal directories.