Documentation
¶
Index ¶
- Constants
- type Repo
- func (r *Repo) AddSingleProject(project *pb.AddSingleProjectReq) (int, error)
- func (r *Repo) CheckProjectActiveAndExist(projectID string) (*domain.SingleProject, *domain.Project, error)
- func (r *Repo) DeleteProject(req *pb.RemProjectReq) error
- func (r *Repo) EditSingleProject(req *pb.EditSingleProjectReq) (int, error)
- func (r *Repo) GetProjectOrder(orderID string) (*domain.ProjectOrders, error)
- func (r *Repo) ListMyProject(user_id string) ([]*pb.Project, error)
- func (r *Repo) ListOneProject(id string) (*pb.Project, error)
- func (r *Repo) ListProjects() ([]*pb.Project, error)
- func (r *Repo) OrderProject(project *domain.SingleProject, pro *domain.Project, userId string) error
- func (r *Repo) UpdateOrderPaymentStatus(orderID string) (*domain.ProjectOrders, error)
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 (*Repo) AddSingleProject ¶
func (r *Repo) AddSingleProject(project *pb.AddSingleProjectReq) (int, error)
func (*Repo) CheckProjectActiveAndExist ¶
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) OrderProject ¶
func (*Repo) UpdateOrderPaymentStatus ¶
func (r *Repo) UpdateOrderPaymentStatus(orderID string) (*domain.ProjectOrders, error)
Click to show internal directories.
Click to hide internal directories.