Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateBorrows ¶
Types ¶
type Borrow ¶
type Borrow struct {
ID int64 `json:"id" gorm:"primary key;autoIncrement"`
BookID int64 `json:"BookId"`
UserID int64 `json:"UserId"`
StartDateSeconds int `json:"start_date_seconds"`
EndDateSeconds int `json:"end_date_seconds"`
StartDateNanoSec int `json:"start_date_nano_sec"`
EndDateNanoSec int `json:"end_date_nano_sec"`
Status string `json:"status"`
}
type BorrowRequest ¶
func NewBorrowRequest ¶
func NewBorrowRequest(bookID, userID int) *BorrowRequest
Click to show internal directories.
Click to hide internal directories.