Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct { Id int64 Bookcode string `orm:"size(20)"` Bookname string `orm:"unique;size(100)"` Borrowby string `orm:"size(12)"` Borrowtime time.Time `orm:"auto_now_add;type(datetime)"` Status int8 Borrowcount int64 Booktype string `orm:"size(45)"` }
用户表模型
func (*Book) Query ¶
func (m *Book) Query() orm.QuerySeter
type BookBorrowLog ¶
type BookBorrowLog struct { Id int64 Bookid int64 Borrowby string `orm:"size(20)"` Borrowtime time.Time `orm:"auto_now_add;type(datetime)"` }
用户表模型
func (*BookBorrowLog) Delete ¶
func (m *BookBorrowLog) Delete() error
func (*BookBorrowLog) Insert ¶
func (m *BookBorrowLog) Insert() error
func (*BookBorrowLog) Query ¶
func (m *BookBorrowLog) Query() orm.QuerySeter
func (*BookBorrowLog) Read ¶
func (m *BookBorrowLog) Read(fields ...string) error
func (*BookBorrowLog) TableName ¶
func (m *BookBorrowLog) TableName() string
func (*BookBorrowLog) Update ¶
func (m *BookBorrowLog) Update(fields ...string) error
Click to show internal directories.
Click to hide internal directories.