begin course management
This commit is contained in:
2 files changed
+46
-1
No files matched your search
@@ -0,0 +1,45 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/SowinskiBraeden/school-management-api/database"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
)
|
||||
|
||||
var courseCollection *mongo.Collection = database.OpenCollection(database.Client, "courses")
|
||||
|
||||
func CreateCourse(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
|
||||
func DeleteCourse(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
|
||||
func UpdateCourseCode(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
|
||||
func UpdateCourseName(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
|
||||
func UpdateCourseCredit(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
|
||||
func UpdateCourseGradelevel(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
|
||||
"success": true,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user