auto logout

This commit is contained in:
Sas Andy
2024-12-12 09:53:29 +07:00
parent ecc5dfd9c0
commit 66333ea727
13 changed files with 611 additions and 23 deletions

16
types/staff.types.go Normal file
View File

@@ -0,0 +1,16 @@
package types
type StaffStore interface {
GetStaff(name string) (*Staff, error)
}
type Staff struct {
M_StaffID int `json:"M_StaffID" db:"M_StaffID"`
M_StaffName string `json:"M_StaffName" db:"M_StaffName"`
M_StaffEmail string `json:"M_StaffEmail" db:"M_StaffEmail"`
M_StaffNakesID string `json:"M_StaffNakesID" db:"M_StaffNakesID"`
M_StaffIsActive string `json:"M_StaffIsActive" db:"M_StaffIsActive"`
}
type GetStaffPayload struct {
StaffName string `json:"staffname"`
}