46 lines
2.4 KiB
Go
46 lines
2.4 KiB
Go
// ==========================================================================
|
||
// GFast自动生成model操作代码。
|
||
// 生成日期:2024-05-14 14:55:52
|
||
// 生成路径: internal/app/system/model/reminders.go
|
||
// 生成人:gfast
|
||
// desc:App-消息-提醒
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package model
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
"github.com/gogf/gf/v2/util/gmeta"
|
||
)
|
||
|
||
// RemindersInfoRes is the golang structure for table reminders.
|
||
type RemindersInfoRes struct {
|
||
gmeta.Meta `orm:"table:reminders"`
|
||
Id uint `orm:"id,primary" json:"id"` //
|
||
UserId int `orm:"user_id" json:"userId"` // 消息接收者ID
|
||
ReminderType int `orm:"reminder_type" json:"reminderType"` // 提醒类型 0 安全整改 | 1 质量整改 | 2 AI | 3 打卡
|
||
Title string `orm:"title" json:"title"` // 标题
|
||
ViolationType string `orm:"violation_type" json:"violationType"` // 违章类型
|
||
ProjectId int `orm:"project_id" json:"projectId"` // 项目ID
|
||
ProjectName string `orm:"project_name"`
|
||
Status int `orm:"status" json:"status" dc:"0 提醒 | 1 整改 | 2 复检"` // 状态 0 未读 | 1 已读
|
||
OrderId int `orm:"order_id" json:"orderId" dc:"需要跳转的具体工单ID"` // 对应管理的OrderID
|
||
UserName string `json:"userName" orm:"user_nickname" dc:"创建人的名称"` // 创建人的名称
|
||
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
|
||
}
|
||
|
||
type RemindersListRes struct {
|
||
Id uint `json:"id"`
|
||
UserId int `json:"userId"`
|
||
ReminderType int `json:"reminderType"`
|
||
Title string `json:"title"`
|
||
ViolationType string `json:"violationType"`
|
||
ProjectId int `json:"projectId"`
|
||
ProjectName string `orm:"project_name"`
|
||
Status int `orm:"status" json:"status" dc:"0 提醒 | 1 整改 | 2 复检"` // 状态 0 未读 | 1 已读
|
||
OrderId int `orm:"order_id" json:"orderId" dc:"需要跳转的具体工单ID"` // 对应管理的OrderID
|
||
UserName string `json:"userName" orm:"user_nickname" dc:"创建人的名称"` // 创建人的名称
|
||
CreatedAt *gtime.Time `json:"createdAt"`
|
||
}
|