完善功能
This commit is contained in:
24
internal/model/bookshelve.go
Normal file
24
internal/model/bookshelve.go
Normal file
@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type Bookshelve struct {
|
||||
g.Meta `orm:"table:bookshelves"`
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
UserId int64 `json:"userId" orm:"user_id"`
|
||||
BookId int64 `json:"bookId" orm:"book_id"`
|
||||
AddedAt int64 `json:"addedAt" orm:"added_at"`
|
||||
ReadStatus int `json:"readStatus" orm:"read_status"`
|
||||
}
|
||||
|
||||
type BookshelveAddIn struct {
|
||||
UserId int64
|
||||
BookId int64
|
||||
}
|
||||
type BookshelveDelIn struct {
|
||||
UserId int64
|
||||
BookIds []int64
|
||||
}
|
||||
type BookshelveCRUDOut struct {
|
||||
Success bool
|
||||
}
|
||||
Reference in New Issue
Block a user