package model import "github.com/gogf/gf/v2/frame/g" type UserReadHistory struct { g.Meta `orm:"table:user_read_history"` 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"` ReadAt int64 `json:"readAt" orm:"read_at"` } type UserReadHistoryAddIn struct { UserId int64 BookId int64 ChapterId int64 } type UserReadHistoryDelIn struct { UserId int64 BookIds []int64 } type UserReadHistoryCRUDOut struct { Success bool }