2024-09-15 20:39:58 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"time"
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
"github.com/gin-gonic/gin"
|
2024-09-15 20:39:58 +00:00
|
|
|
)
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
func UserLoginController(ctx *gin.Context) {
|
2024-09-26 20:58:55 +00:00
|
|
|
time.Sleep(10 * time.Second)
|
2024-09-28 09:13:18 +00:00
|
|
|
ctx.JSON(http.StatusOK, "ok")
|
2024-09-16 16:25:09 +00:00
|
|
|
}
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
func SubjectDelController(ctx *gin.Context) {
|
|
|
|
ctx.JSON(http.StatusAccepted, "deleted")
|
2024-09-16 16:25:09 +00:00
|
|
|
}
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
func SubjectUpdateController(ctx *gin.Context) {
|
|
|
|
ctx.JSON(http.StatusAccepted, "updated")
|
2024-09-16 16:25:09 +00:00
|
|
|
}
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
func SubjectGetController(ctx *gin.Context) {
|
|
|
|
ctx.JSON(http.StatusAccepted, "got")
|
2024-09-16 16:25:09 +00:00
|
|
|
}
|
|
|
|
|
2024-09-28 09:13:18 +00:00
|
|
|
func SubjectListController(ctx *gin.Context) {
|
|
|
|
ctx.JSON(http.StatusAccepted, "list")
|
2024-09-16 16:25:09 +00:00
|
|
|
}
|