初始化项目框架,完成部分接口开发
This commit is contained in:
36
internal/model/read_record.go
Normal file
36
internal/model/read_record.go
Normal file
@ -0,0 +1,36 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type ReadRecord struct {
|
||||
g.Meta `orm:"table:read_records"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
BookId int64 `json:"bookId"`
|
||||
ChapterId int64 `json:"chapterId"`
|
||||
ReadAt int64 `json:"readAt"`
|
||||
}
|
||||
|
||||
type ReadRecordListIn struct {
|
||||
Page int
|
||||
Size int
|
||||
UserId int64
|
||||
BookId int64
|
||||
ChapterId int64
|
||||
}
|
||||
type ReadRecordListOut struct {
|
||||
Total int
|
||||
List []ReadRecord
|
||||
}
|
||||
|
||||
type ReadRecordAddIn struct {
|
||||
UserId int64
|
||||
BookId int64
|
||||
ChapterId int64
|
||||
}
|
||||
type ReadRecordDelIn struct {
|
||||
Id int64
|
||||
}
|
||||
type ReadRecordCRUDOut struct {
|
||||
Success bool
|
||||
}
|
||||
Reference in New Issue
Block a user