55 lines
2.8 KiB
Go
55 lines
2.8 KiB
Go
// ==========================================================================
|
||
// GFast自动生成model操作代码。
|
||
// 生成日期:2024-05-15 17:30:14
|
||
// 生成路径: internal/app/system/model/todo_tasks.go
|
||
// 生成人:gfast
|
||
// desc:App-待办
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package model
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
"github.com/gogf/gf/v2/util/gmeta"
|
||
)
|
||
|
||
// TodoTasksInfoRes is the golang structure for table todo_tasks.
|
||
type TodoTasksInfoRes struct {
|
||
gmeta.Meta `orm:"table:todo_tasks"`
|
||
Id uint `orm:"id,primary" json:"id"` //
|
||
Role int `json:"role"`
|
||
MissingCardTime string `orm:"missing_card_time" json:"missingCardTime"` // 缺卡时间
|
||
Applicant int `orm:"applicant" json:"applicant"` // 申请人
|
||
ProjectId int `orm:"project_id" json:"projectId"` // 项目ID
|
||
TaskType int `orm:"task_type" json:"taskType"` // 0 补卡提醒 | 1 考勤审批
|
||
OrderId int `orm:"order_id" json:"orderId"` // 对应跳转的主键ID
|
||
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
|
||
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"`
|
||
UserId int `orm:"user_id" json:"userId"` // 用户ID
|
||
UserNameORM string `json:"userName" orm:"user_nickname" dc:"创建人的名称"` // 创建人的名称
|
||
BusName string `json:"busName" orm:"busName" dc:"微信实名"`
|
||
ProjectName string `json:"projectName" dc:"项目名称"` // 项目名称
|
||
Status int `json:"status"`
|
||
GangerTime string `json:"gangerTime" orm:"ganger_time" dc:"班组长处理时间"`
|
||
Opinion string `json:"opinion" dc:"处理意见 1未读 2同意 3拒绝"`
|
||
}
|
||
|
||
type TodoTasksListRes struct {
|
||
Id uint `json:"id"`
|
||
MissingCardTime string `json:"missingCardTime,omitempty"`
|
||
Applicant int `json:"applicant,omitempty"`
|
||
ProjectId int `json:"projectId"`
|
||
TaskType int `json:"taskType"`
|
||
OrderId int `json:"orderId"`
|
||
CreatedAt *gtime.Time `json:"createdAt"`
|
||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
||
UserId int `json:"userId"`
|
||
Role int `json:"role"`
|
||
UserName string `json:"userName" dc:"创建人的名称"` // 创建人的名称
|
||
ProjectName string `json:"projectName" dc:"项目名称"` // 项目名称
|
||
Status int `json:"status"`
|
||
GangerTime string `json:"gangerTime" orm:"ganger_time" dc:"班组长处理时间"`
|
||
Opinion string `json:"opinion" dc:"处理意见 1未读 2同意 3拒绝"`
|
||
}
|