change json key names
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-03 14:50:44 +11:00
parent 35583b5f86
commit f6602f2823
2 changed files with 23 additions and 9 deletions

View File

@@ -1,19 +1,19 @@
package models
import (
"smt/utils/token"
"errors"
"log"
"net/http"
"smt/utils/token"
"github.com/gin-gonic/gin"
"golang.org/x/crypto/bcrypt"
)
type User struct {
UserId int `db:"UserId"`
RoleId int `db:"RoleId"`
UserName string `db:"UserName"`
UserId int `db:"UserId" json:"userId"`
RoleId int `db:"RoleId" json:"roleId"`
UserName string `db:"UserName" json:"userName"`
Password string `db:"Password" json:"-"`
}