repository

package
v0.0.0-...-6346009 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK                  = http.StatusOK
	StatusBadRequest          = http.StatusBadRequest
	StatusInternalServerError = http.StatusInternalServerError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(db *gorm.DB) Repo

func (*Repo) AddSingleProject

func (r *Repo) AddSingleProject(project *pb.AddSingleProjectReq) (int, error)

func (*Repo) CheckProjectActiveAndExist

func (r *Repo) CheckProjectActiveAndExist(projectID string) (*domain.SingleProject, *domain.Project, error)

func (*Repo) DeleteProject

func (r *Repo) DeleteProject(req *pb.RemProjectReq) error

func (*Repo) EditSingleProject

func (r *Repo) EditSingleProject(req *pb.EditSingleProjectReq) (int, error)

func (*Repo) GetProjectOrder

func (r *Repo) GetProjectOrder(orderID string) (*domain.ProjectOrders, error)

func (*Repo) ListMyProject

func (r *Repo) ListMyProject(user_id string) ([]*pb.Project, error)

func (*Repo) ListOneProject

func (r *Repo) ListOneProject(id string) (*pb.Project, error)

func (*Repo) ListProjects

func (r *Repo) ListProjects() ([]*pb.Project, error)

func (*Repo) OrderProject

func (r *Repo) OrderProject(project *domain.SingleProject, pro *domain.Project, userId string) error

func (*Repo) UpdateOrderPaymentStatus

func (r *Repo) UpdateOrderPaymentStatus(orderID string) (*domain.ProjectOrders, error)

Jump to

Keyboard shortcuts

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