初始
This commit is contained in:
33
internal/app/system/model/comments.go
Normal file
33
internal/app/system/model/comments.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ==========================================================================
|
||||
// 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:"评论时间"`
|
||||
}
|
Reference in New Issue
Block a user