123 lines
7.5 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操作代码。
// 生成日期2025-08-11 10:15:42
// 生成路径: internal/app/businesses/model/prevention.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"
)
// PreventionInfoRes is the golang structure for table prevention.
type PreventionInfoRes struct {
gmeta.Meta `orm:"table:prevention"`
Id int `orm:"id,primary" json:"id" dc:""` //
SpeciesCode string `orm:"species_code" json:"speciesCode" dc:"物种编码"` // 物种编码
BotanyQuarantine string `orm:"botany_quarantine" json:"botanyQuarantine" dc:"植物检疫"` // 植物检疫
Physics string `orm:"physics" json:"physics" dc:"物理防治"` // 物理防治
Chemistry string `orm:"chemistry" json:"chemistry" dc:"化学防治"` // 化学防治
Biology string `orm:"biology" json:"biology" dc:"生物防治"` // 生物防治
Other string `orm:"other" json:"other" dc:"其他防控措施"` // 其他防控措施
SourcesData string `orm:"sources_data" json:"sourcesData" dc:"数据来源"` // 数据来源
CreateUser int `orm:"create_user" json:"createUser" dc:"数据采集人"` // 数据采集人
CreateDate *gtime.Time `orm:"create_date" json:"createDate" dc:"数据采集日期"` // 数据采集日期
AuditUser int `orm:"audit_user" json:"auditUser" dc:"数据核查人"` // 数据核查人
AuditDate *gtime.Time `orm:"audit_date" json:"auditDate" dc:"数据核查日期"` // 数据核查日期
AuditStatus int `orm:"audit_status" json:"auditStatus" dc:"核查"` // 核查
AuditView string `orm:"audit_view" json:"auditView" dc:"核查意见"` // 核查意见
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Version int `orm:"version" json:"version" dc:"版本"` // 版本
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:""` //
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:""` //
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:""` //
}
type PreventionListRes struct {
Id int `json:"id" dc:""`
SpeciesCode string `json:"speciesCode" dc:"物种编码"`
BotanyQuarantine string `json:"botanyQuarantine" dc:"植物检疫"`
Physics string `json:"physics" dc:"物理防治"`
Chemistry string `json:"chemistry" dc:"化学防治"`
Biology string `json:"biology" dc:"生物防治"`
Other string `json:"other" dc:"其他防控措施"`
SourcesData string `json:"sourcesData" dc:"数据来源"`
CreateUser int `json:"createUser" dc:"数据采集人"`
CreateDate *gtime.Time `json:"createDate" dc:"数据采集日期"`
AuditUser int `json:"auditUser" dc:"数据核查人"`
AuditDate *gtime.Time `json:"auditDate" dc:"数据核查日期"`
AuditStatus int `json:"auditStatus" dc:"核查"`
AuditView string `json:"auditView" dc:"核查意见"`
Remark string `json:"remark" dc:"备注"`
Version int `json:"version" dc:"版本"`
CreatedAt *gtime.Time `json:"createdAt" dc:""`
}
// PreventionSearchReq 分页请求参数
type PreventionSearchReq struct {
comModel.PageReq
Id string `p:"id" dc:""` //
SpeciesCode string `p:"speciesCode" dc:"物种编码"` //物种编码
BotanyQuarantine string `p:"botanyQuarantine" dc:"植物检疫"` //植物检疫
Physics string `p:"physics" dc:"物理防治"` //物理防治
Chemistry string `p:"chemistry" dc:"化学防治"` //化学防治
Biology string `p:"biology" dc:"生物防治"` //生物防治
Other string `p:"other" dc:"其他防控措施"` //其他防控措施
SourcesData string `p:"sourcesData" dc:"数据来源"` //数据来源
CreateUser string `p:"createUser" v:"createUser@integer#数据采集人需为整数" dc:"数据采集人"` //数据采集人
CreateDate []*gtime.Time `p:"createDate" dc:"数据采集日期"` //数据采集日期
AuditStatus string `p:"auditStatus" v:"auditStatus@integer#核查需为整数" dc:"核查"` //核查
}
// PreventionSearchRes 列表返回结果
type PreventionSearchRes struct {
comModel.ListRes
List []*PreventionListRes `json:"list"`
}
// PreventionAddReq 添加操作请求参数
type PreventionAddReq struct {
Id int `p:"id" dc:""`
SpeciesCode string `p:"speciesCode" dc:"物种编码"`
BotanyQuarantine string `p:"botanyQuarantine" dc:"植物检疫"`
Physics string `p:"physics" dc:"物理防治"`
Chemistry string `p:"chemistry" dc:"化学防治"`
Biology string `p:"biology" dc:"生物防治"`
Other string `p:"other" dc:"其他防控措施"`
SourcesData string `p:"sourcesData" dc:"数据来源"`
CreateUser int `p:"createUser" dc:"数据采集人"`
CreateDate *gtime.Time `p:"createDate" dc:"数据采集日期"`
//AuditUser int `p:"auditUser" dc:"数据核查人"`
//AuditDate *gtime.Time `p:"auditDate" dc:"数据核查日期"`
AuditStatus int `p:"auditStatus" dc:"核查"`
//AuditView string `p:"auditView" dc:"核查意见"`
Remark string `p:"remark" dc:"备注"`
//Version int `p:"version" dc:"版本"`
}
// PreventionEditReq 修改操作请求参数
type PreventionEditReq struct {
Id int `p:"id" v:"required#主键ID不能为空" dc:""`
SpeciesCode string `p:"speciesCode" dc:"物种编码"`
BotanyQuarantine string `p:"botanyQuarantine" dc:"植物检疫"`
Physics string `p:"physics" dc:"物理防治"`
Chemistry string `p:"chemistry" dc:"化学防治"`
Biology string `p:"biology" dc:"生物防治"`
Other string `p:"other" dc:"其他防控措施"`
SourcesData string `p:"sourcesData" dc:"数据来源"`
CreateUser int `p:"createUser" dc:"数据采集人"`
CreateDate *gtime.Time `p:"createDate" dc:"数据采集日期"`
//AuditUser int `p:"auditUser" dc:"数据核查人"`
//AuditDate *gtime.Time `p:"auditDate" dc:"数据核查日期"`
AuditStatus int `p:"auditStatus" v:"required#核查不能为空" dc:"核查"`
//AuditView string `p:"auditView" dc:"核查意见"`
Remark string `p:"remark" dc:"备注"`
Version int `p:"version" dc:"版本"`
}