Documentation ¶
Index ¶
- Variables
- func AcceptPayment(ctx context.Context, paymentID string) error
- func CountCourses(ctx context.Context) (cnt int64, err error)
- func CountPayments(ctx context.Context, status []int) (cnt int64, err error)
- func CountUsers(ctx context.Context) (cnt int64, err error)
- func RejectPayment(ctx context.Context, paymentID string, message string) error
- type Course
- type Payment
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("admin: not found")
)
Functions ¶
Types ¶
type Course ¶
type Payment ¶
type Payment struct { ID string Image string Price float64 OriginalPrice float64 Code string Status int CreatedAt time.Time At time.Time User struct { ID string Username string Name string Email string Image string } Course struct { ID string Title string Image string URL string } }
Payment type
func GetPayments ¶
Click to show internal directories.
Click to hide internal directories.