package
0.0.0-20240223033935-56cf5033b461
Repository: https://github.com/kankanya45/go-gorm-db.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
ฟังก์ชันสำหรับเข้ารหัสรหัสผ่าน.
ทำหน้าที่สร้าง Instance ของ ItemRepository และส่งคืนกลับไป ให้เรียกใช้งานได้.
No description provided by the author
NewSubjectRepository creates a new instance of SubjectRepository.
No description provided by the author
ทำหน้าที่สร้าง Instance ของ UserRepository และส่งคืนกลับไป ให้เรียกใช้งานได้.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubjectRepository handles database operations related to the Subject model.
No description provided by the author
No description provided by the author
User คือโครงสร้างข้อมูลของผู้ใช้งาน สำหรับเก็บลงฐานข้อมูล
และใช้สำหรับการ Authenticate ผู้ใช้งาน หรือ Login
*/.
สร้าง struct ชื่อ UserRepository ที่มีฟิลด์ชื่อ Db เป็น pointer ของ gorm.DB.