zky_mandate/internal/app/system/model/sys_notice_read.go

64 lines
2.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-09 17:37:25
// 生成路径: internal/app/system/model/sys_notice_read.go
// 生成人gfast
// desc:已读记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
)
// SysNoticeReadInfoRes is the golang structure for table sys_notice_read.
type SysNoticeReadInfoRes struct {
gmeta.Meta `orm:"table:sys_notice_read"`
Id int64 `orm:"id,primary" json:"id" dc:"id"` // id
NoticeId int64 `orm:"notice_id" json:"noticeId" dc:"信息id"` // 信息id
UserId int64 `orm:"user_id" json:"userId" dc:"用户id"` // 用户id
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"阅读时间"` // 阅读时间
}
type SysNoticeReadListRes struct {
Id int64 `json:"id" dc:"id"`
NoticeId int64 `json:"noticeId" dc:"信息id"`
UserId int64 `json:"userId" dc:"用户id"`
CreatedAt *gtime.Time `json:"createdAt" dc:"阅读时间"`
}
// SysNoticeReadSearchReq 分页请求参数
type SysNoticeReadSearchReq struct {
comModel.PageReq
}
// SysNoticeReadSearchRes 列表返回结果
type SysNoticeReadSearchRes struct {
comModel.ListRes
List []*SysNoticeReadListRes `json:"list"`
}
// SysNoticeReadAddReq 添加操作请求参数
type SysNoticeReadAddReq struct {
NoticeId int64 `json:"noticeId" dc:"信息id"`
UserId int64 `json:"userId" dc:"用户id"`
CreatedAt *gtime.Time `json:"createdAt" dc:"阅读时间"`
}
// SysNoticeReadAddReq 添加操作请求参数
type SysNoticeReadNoticeReq struct {
NoticeId int64 `p:"noticeId" dc:"信息id"`
UserId int64
CreatedAt *gtime.Time
}
// SysNoticeReadEditReq 修改操作请求参数
type SysNoticeReadEditReq struct {
Id int64 `p:"id" v:"required#主键ID不能为空" dc:"id"`
}