34 lines
1.3 KiB
Go
34 lines
1.3 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成model操作代码。
|
|||
|
// 生成日期:2024-04-23 14:47:24
|
|||
|
// 生成路径: internal/app/system/model/comments.go
|
|||
|
// 生成人:gfast
|
|||
|
// desc:App通知公告评论
|
|||
|
// company:云南奇讯科技有限公司
|
|||
|
// ==========================================================================
|
|||
|
|
|||
|
package model
|
|||
|
|
|||
|
import (
|
|||
|
"github.com/gogf/gf/v2/os/gtime"
|
|||
|
"github.com/gogf/gf/v2/util/gmeta"
|
|||
|
)
|
|||
|
|
|||
|
// CommentsInfoRes is the golang structure for table comments.
|
|||
|
type CommentsInfoRes struct {
|
|||
|
gmeta.Meta `orm:"table:comments"`
|
|||
|
Id uint `orm:"id,primary" json:"id"` // 主键
|
|||
|
NotificationId int `orm:"notification_id" json:"notificationId"` // 关联的通知ID
|
|||
|
CommentText string `orm:"comment_text" json:"commentText"` // 评论内容
|
|||
|
CommentId string `orm:"comment_id" json:"commentId"` // 用户ID
|
|||
|
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
|
|||
|
}
|
|||
|
|
|||
|
type CommentsListRes struct {
|
|||
|
Id uint `json:"id"`
|
|||
|
CommentId string `json:"comment_id" dc:"用户的ID"`
|
|||
|
Name string `json:"name" orm:"user_nickname" dc:"用户名"`
|
|||
|
CommentText string `json:"comment_text" dc:"评论内容"`
|
|||
|
CreatedAt *gtime.Time `json:"createdAt" dc:"评论时间"`
|
|||
|
}
|