Documentation
¶
Index ¶
- type AcceptAdmins
- type AdminBookView
- type AdminData
- type Book
- type BookTemp
- type CheckIn
- type CheckOut
- type ClientBookView
- type ClientBookViewTransactions
- type ClientBookViewTransactionsInterpretable
- type CookieUser
- type LibraryData
- type Message
- type PageDataAdmin
- type PageDataClient
- type Transactions
- type User
- type UserLogin
- type UserRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptAdmins ¶
type AdminBookView ¶
type AdminBookView struct {
Book Book `json:"book"`
Transactions []ClientBookViewTransactionsInterpretable `json:"transactions"`
}
type AdminData ¶
type AdminData struct {
ConvertRequestClients []string `json:"convertrequestclients"`
CheckInApprovals []Transactions `json:"checkinapprovals"`
CheckOutApprovals []Transactions `json:"checkoutapprovals"`
}
type Book ¶
type Book struct {
B_Id int `json:"b_id"`
Title string `json:"title"`
Author string `json:"author"`
Genre string `json:"genre"`
DueTime int `json:"duetime"`
Quantity int `json:"quantity"`
NumberofCopies int `json:"numberofcopies"`
NumberofCopiesAvailable int `json:"numberofcopiesavailable"`
NumberofCopiesBorrowed int `json:"numberofcopiesborrowed"`
}
type BookTemp ¶
type BookTemp struct {
Title string `json:"title"`
Author string `json:"author"`
Genre string `json:"genre"`
DueTime string `json:"duetime"`
Quantity string `json:"quantity"`
B_Id string `json:"bookID"`
}
TODO: Try eliminating this struct
type ClientBookView ¶
type ClientBookView struct {
Book Book `json:"book"`
Transactions []ClientBookViewTransactionsInterpretable `json:"transactions"`
}
type ClientBookViewTransactions ¶
type ClientBookViewTransactions struct {
Title string `json:"title"`
UserName string `json:"username"`
CheckInAccepted sql.NullBool `json:"checkinaccepted"`
CheckOutAccepted sql.NullBool `json:"checkoutaccepted"`
DateBorrowed []uint8 `json:"dateborrowed"`
DateReturned []uint8 `json:"datereturned"`
DueTime int `json:"duetime"`
OverdueFine int `json:"overduefine"`
Author string `json:"author"`
}
type ClientBookViewTransactionsInterpretable ¶
type ClientBookViewTransactionsInterpretable struct {
Title string `json:"title"`
UserName string `json:"username"`
CheckInAccepted string `json:"checkinaccepted"`
CheckOutAccepted string `json:"checkoutaccepted"`
DateBorrowed string `json:"dateborrowed"`
DateReturned string `json:"datereturned"`
DueTime string `json:"duetime"`
OverdueFine string `json:"overduefine"`
Author string `json:"author"`
}
type CookieUser ¶
type LibraryData ¶
type PageDataAdmin ¶
type PageDataAdmin struct {
LibraryData LibraryData
AdminData AdminData
}
type PageDataClient ¶
type PageDataClient struct {
LibraryData LibraryData
Books []Book
Transactions []ClientBookViewTransactionsInterpretable
}
type Transactions ¶
type Transactions struct {
Title string `json:"title"`
T_Id int `json:"t_id"`
B_Id int `json:"b_id"`
UserName string `json:"username"`
CheckInAccepted sql.NullBool `json:"checkinaccepted"`
CheckOutAccepted sql.NullBool `json:"checkoutaccepted"`
DateBorrowed []uint8 `json:"dateborrowed"`
DateReturned []uint8 `json:"datereturned"`
DueTime int `json:"duetime"`
OverdueFine int `json:"overduefine"`
}
made changes to nullint16
Click to show internal directories.
Click to hide internal directories.