初始化项目框架,完成部分接口开发
This commit is contained in:
19
internal/model/entity/book_ratings.go
Normal file
19
internal/model/entity/book_ratings.go
Normal file
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// BookRatings is the golang structure for table book_ratings.
|
||||
type BookRatings struct {
|
||||
Id int64 `json:"id" orm:"id" description:"评分ID"` // 评分ID
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
BookId int64 `json:"bookId" orm:"book_id" description:"小说ID"` // 小说ID
|
||||
Score float64 `json:"score" orm:"score" description:"评分(0~10)"` // 评分(0~10)
|
||||
Comment string `json:"comment" orm:"comment" description:"用户评论"` // 用户评论
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
}
|
||||
Reference in New Issue
Block a user