Documentation ¶
Index ¶
- func CurrentUser(c *gin.Context)
- func GetUsers(c *gin.Context)
- func Login(c *gin.Context)
- func LoginCheck(email string, password string) (string, error)
- func Register(c *gin.Context)
- func VerifyPassword(password, hashedPassword string) error
- type FactoryController
- type HospitalController
- type LoginInput
- type MockPatientController
- func (c *MockPatientController) CreatePatient(ctx *gin.Context)
- func (c *MockPatientController) DeletePatient(ctx *gin.Context)
- func (c *MockPatientController) GetAllPatients(ctx *gin.Context)
- func (c *MockPatientController) GetPatientByID(ctx *gin.Context)
- func (c *MockPatientController) UpdatePatient(ctx *gin.Context)
- type Patient
- type PatientController
- type RegisterInput
- type ShopController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
func VerifyPassword ¶
Types ¶
type FactoryController ¶
type FactoryController struct { }
func (*FactoryController) Create ¶
func (hc *FactoryController) Create(c *gin.Context)
func (*FactoryController) Delete ¶
func (hc *FactoryController) Delete(c *gin.Context)
func (*FactoryController) GetAll ¶
func (hc *FactoryController) GetAll(c *gin.Context)
func (*FactoryController) GetByID ¶
func (hc *FactoryController) GetByID(c *gin.Context)
func (*FactoryController) Update ¶
func (hc *FactoryController) Update(c *gin.Context)
type HospitalController ¶
type HospitalController struct { }
func (*HospitalController) Create ¶
func (hc *HospitalController) Create(c *gin.Context)
func (*HospitalController) Delete ¶
func (hc *HospitalController) Delete(c *gin.Context)
func (*HospitalController) GetAll ¶
func (hc *HospitalController) GetAll(c *gin.Context)
func (*HospitalController) GetByID ¶
func (hc *HospitalController) GetByID(c *gin.Context)
func (*HospitalController) Update ¶
func (hc *HospitalController) Update(c *gin.Context)
type LoginInput ¶
type MockPatientController ¶
type MockPatientController struct{}
func (*MockPatientController) CreatePatient ¶
func (c *MockPatientController) CreatePatient(ctx *gin.Context)
func (*MockPatientController) DeletePatient ¶
func (c *MockPatientController) DeletePatient(ctx *gin.Context)
func (*MockPatientController) GetAllPatients ¶
func (c *MockPatientController) GetAllPatients(ctx *gin.Context)
func (*MockPatientController) GetPatientByID ¶
func (c *MockPatientController) GetPatientByID(ctx *gin.Context)
func (*MockPatientController) UpdatePatient ¶
func (c *MockPatientController) UpdatePatient(ctx *gin.Context)
type Patient ¶
func CreateDummyPatient ¶
func CreateDummyPatient() *Patient
type PatientController ¶
type RegisterInput ¶
type RegisterInput struct { ID int `json:"patientId" binding:"required"` Name string `json:"fullName" binding:"required"` Age int `json:"age"` Address string `json:"address"` Email string `json:"email" binding:"required"` Password string `json:"password" binding:"required"` Role string `json:"role" binding:"required"` }
func GetUserByID ¶
func GetUserByID(uid int) (RegisterInput, error)
type ShopController ¶
type ShopController struct { }
func (*ShopController) Create ¶
func (hc *ShopController) Create(c *gin.Context)
func (*ShopController) Delete ¶
func (hc *ShopController) Delete(c *gin.Context)
func (*ShopController) GetAll ¶
func (hc *ShopController) GetAll(c *gin.Context)
func (*ShopController) GetByID ¶
func (hc *ShopController) GetByID(c *gin.Context)
func (*ShopController) Update ¶
func (hc *ShopController) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.