From fe97f03bc709ba2e5ab56dea833381e47b86bbc7 Mon Sep 17 00:00:00 2001 From: Lester Guerzon Date: Fri, 31 Oct 2025 12:10:00 +0800 Subject: [PATCH] Fix Swagger annotations for auth controller --- app/controllers/auth_controller.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/auth_controller.go b/app/controllers/auth_controller.go index 2499a93..eec0704 100644 --- a/app/controllers/auth_controller.go +++ b/app/controllers/auth_controller.go @@ -19,9 +19,7 @@ import ( // @Tags User // @Accept json // @Produce json -// @Param email body string true "Email" -// @Param password body string true "Password" -// @Param user_role body string true "User role" +// @Param user body models.SignUp true "User details" // @Success 200 {object} models.User // @Router /v1/user/sign/up [post] func UserSignUp(c *fiber.Ctx) error { @@ -115,8 +113,7 @@ func UserSignUp(c *fiber.Ctx) error { // @Tags User // @Accept json // @Produce json -// @Param email body string true "User Email" -// @Param password body string true "User Password" +// @Param credentials body models.SignIn true "Login credentials" // @Success 200 {string} status "ok" // @Router /v1/user/sign/in [post] func UserSignIn(c *fiber.Ctx) error {