50 lines
2.4 KiB
Go
50 lines
2.4 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成model操作代码。
|
|||
|
// 生成日期:2023-09-26 14:31:07
|
|||
|
// 生成路径: internal/app/system/model/plan_daily.go
|
|||
|
// 生成人:gfast
|
|||
|
// desc:日报
|
|||
|
// company:云南奇讯科技有限公司
|
|||
|
// ==========================================================================
|
|||
|
|
|||
|
package model
|
|||
|
|
|||
|
import (
|
|||
|
"github.com/gogf/gf/v2/os/gtime"
|
|||
|
"github.com/gogf/gf/v2/util/gmeta"
|
|||
|
)
|
|||
|
|
|||
|
// PlanDailyInfoRes is the golang structure for table plan_daily.
|
|||
|
type PlanDailyInfoRes struct {
|
|||
|
gmeta.Meta `orm:"table:plan_daily"`
|
|||
|
Id int64 `orm:"id,primary" json:"id"` // 主键ID
|
|||
|
ProjectId string `orm:"project_id" json:"projectId"` // 项目id
|
|||
|
SourceId string `orm:"source_id" json:"sourceId"` // 资源id
|
|||
|
Name string `orm:"name" json:"name"` // 资源名称
|
|||
|
Table string `orm:"table" json:"table"` // source_id的数据对应的数据表
|
|||
|
PlanName string `orm:"plan_name" json:"planName"` // 计划名称
|
|||
|
PlanId string `orm:"plan_id" json:"planId"` // 周id
|
|||
|
WeekRealityId int `orm:"week_reality_id" json:"weekRealityId"` // 周主键ID
|
|||
|
SourceType string `orm:"source_type" json:"sourceType"` // 资源类型
|
|||
|
Cnt int `orm:"cnt" json:"cnt"` // 资源数量
|
|||
|
DataTime string `orm:"data_time" json:"dataTime"` // 日计划时间
|
|||
|
Status int `orm:"status" json:"status"` // 工作状态
|
|||
|
CreateBy string `orm:"create_by" json:"createBy"` //
|
|||
|
UpdateBy string `orm:"update_by" json:"updateBy"` //
|
|||
|
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
|
|||
|
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` //
|
|||
|
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` //
|
|||
|
}
|
|||
|
|
|||
|
type PlanDailyListRes struct {
|
|||
|
Id int64 `json:"id"`
|
|||
|
ProjectId string `json:"projectId"`
|
|||
|
SourceId string `json:"sourceId"`
|
|||
|
Name string `json:"name"`
|
|||
|
SourceType string `json:"sourceType"`
|
|||
|
Cnt int `json:"cnt"`
|
|||
|
DataTime string `json:"dataTime"`
|
|||
|
Status int `json:"status"`
|
|||
|
CreatedAt *gtime.Time `json:"createdAt"`
|
|||
|
}
|