完善功能
This commit is contained in:
39
internal/model/user_read_record.go
Normal file
39
internal/model/user_read_record.go
Normal file
@ -0,0 +1,39 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type UserReadRecordModel struct {
|
||||
g.Meta `orm:"table:user_read_records"`
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
UserId int64 `json:"userId" orm:"user_id"`
|
||||
BookId int64 `json:"bookId" orm:"book_id"`
|
||||
ChapterId int64 `json:"chapterId" orm:"chapter_id"`
|
||||
Progress int `json:"progress" orm:"progress"`
|
||||
ReadAt int64 `json:"readAt" orm:"read_at"`
|
||||
}
|
||||
|
||||
type UserReadRecordListIn struct {
|
||||
Page int
|
||||
Size int
|
||||
UserId int64
|
||||
BookId int64
|
||||
ChapterId int64
|
||||
}
|
||||
type UserReadRecordListOut struct {
|
||||
Total int
|
||||
List []UserReadRecordModel
|
||||
}
|
||||
|
||||
type UserReadRecordAddIn struct {
|
||||
UserId int64
|
||||
BookId int64
|
||||
ChapterId int64
|
||||
Progress int
|
||||
}
|
||||
type UserReadRecordDelIn struct {
|
||||
UserId int64
|
||||
BookIds []int64
|
||||
}
|
||||
type UserReadRecordCRUDOut struct {
|
||||
Success bool
|
||||
}
|
||||
Reference in New Issue
Block a user