package types // type User struct { // ID int `db:"id" json:"id"` // FirstName string `db:"firstName" json:"firstName"` // LastName string `db:"lastName" json:"lastName"` // Email string `db:"email" json:"email"` // Password string `db:"password" json:"-"` // CreatedAt time.Time `db:"createdAt" json:"createdAt"` // } type UserStore interface { GetUserByID(id int) (*User, error) CreateUser(User) error } type RegisterUserPayload struct { FirstName string `json:"firstName" validate:"required"` LastName string `json:"lastName" validate:"required"` Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required,min=8,max=130"` } type User struct { M_UserID int `json:"M_UserID" db:"M_UserID"` M_UserEmail string `json:"M_UserEmail" db:"M_UserEmail"` M_UserUsername string `json:"M_UserUsername" db:"M_UserUsername"` M_UserGroupDashboard string `json:"M_UserGroupDashboard" db:"M_UserGroupDashboard"` M_UserDefaultTSampleStationID string `json:"M_UserDefaultT_SampleStationID" db:"M_UserDefaultT_SampleStationID"` M_StaffName string `json:"M_StaffName" db:"M_StaffName"` Is_Courier string `json:"is_courier" db:"is_courier"` Time_Autologout string `json:"time_autologout" db:"time_autologout"` Type_Akun string `json:"Type_Akun"` }