// ========================================================================== // GFast自动生成model操作代码。 // 生成日期:2025-08-11 10:08:28 // 生成路径: internal/app/businesses/model/natural_enemy_insect.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" ) // NaturalEnemyInsectInfoRes is the golang structure for table natural_enemy_insect. type NaturalEnemyInsectInfoRes struct { gmeta.Meta `orm:"table:natural_enemy_insect"` Id int `orm:"id,primary" json:"id" dc:""` // SpeciesCode string `orm:"species_code" json:"speciesCode" dc:"物种编码(入侵种)"` // 物种编码(入侵种) ZhName string `orm:"zh_name" json:"zhName" dc:"中文名称(天敌)"` // 中文名称(天敌) LatinName string `orm:"latin_name" json:"latinName" dc:"拉丁学名(天敌)"` // 拉丁学名(天敌) Mu string `orm:"mu" json:"mu" dc:"目"` // 目 OrderTitle string `orm:"order_title" json:"orderTitle" dc:"Order"` // Order Ke string `orm:"ke" json:"ke" dc:"科"` // 科 Family string `orm:"family" json:"family" dc:"Family"` // Family Shu string `orm:"shu" json:"shu" dc:"属"` // 属 Genus string `orm:"genus" json:"genus" dc:"Genus"` // Genus SourceArea string `orm:"source_area" json:"sourceArea" dc:"原产地"` // 原产地 Source string `orm:"source" json:"source" dc:"来源地"` // 来源地 StudyPlot string `orm:"study_plot" json:"studyPlot" dc:"释放地/实验地"` // 释放地/实验地 ExperimentDate *gtime.Time `orm:"experiment_date" json:"experimentDate" dc:"引进时间/实验时间"` // 引进时间/实验时间 Selectivity string `orm:"selectivity" json:"selectivity" dc:"专一性"` // 专一性 FeedingHarm string `orm:"feeding_harm" json:"feedingHarm" dc:"取食/危害阶段"` // 取食/危害阶段 FeedingPart string `orm:"feeding_part" json:"feedingPart" dc:"取食/危害部位"` // 取食/危害部位 AnswerIndicator string `orm:"answer_indicator" json:"answerIndicator" dc:"响应指标"` // 响应指标 ReleaseRecord string `orm:"release_record" json:"releaseRecord" dc:"释放记录"` // 释放记录 IsCreateGroup int `orm:"is_create_group" json:"isCreateGroup" dc:"是否建群"` // 是否建群 FeedingStage string `orm:"feeding_stage" json:"feedingStage" dc:"取食阶段"` // 取食阶段 IsTarget int `orm:"is_target" json:"isTarget" dc:"有无非目标影响"` // 有无非目标影响 FeedingDate *gtime.Time `orm:"feeding_date" json:"feedingDate" 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 NaturalEnemyInsectListRes struct { Id int `json:"id" dc:""` SpeciesCode string `json:"speciesCode" dc:"物种编码(入侵种)"` ZhName string `json:"zhName" dc:"中文名称(天敌)"` LatinName string `json:"latinName" dc:"拉丁学名(天敌)"` Mu string `json:"mu" dc:"目"` OrderTitle string `json:"orderTitle" dc:"Order"` Ke string `json:"ke" dc:"科"` Family string `json:"family" dc:"Family"` Shu string `json:"shu" dc:"属"` Genus string `json:"genus" dc:"Genus"` SourceArea string `json:"sourceArea" dc:"原产地"` Source string `json:"source" dc:"来源地"` StudyPlot string `json:"studyPlot" dc:"释放地/实验地"` ExperimentDate *gtime.Time `json:"experimentDate" dc:"引进时间/实验时间"` Selectivity string `json:"selectivity" dc:"专一性"` FeedingHarm string `json:"feedingHarm" dc:"取食/危害阶段"` FeedingPart string `json:"feedingPart" dc:"取食/危害部位"` AnswerIndicator string `json:"answerIndicator" dc:"响应指标"` ReleaseRecord string `json:"releaseRecord" dc:"释放记录"` IsCreateGroup int `json:"isCreateGroup" dc:"是否建群"` FeedingStage string `json:"feedingStage" dc:"取食阶段"` IsTarget int `json:"isTarget" dc:"有无非目标影响"` FeedingDate *gtime.Time `json:"feedingDate" 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:""` } // NaturalEnemyInsectSearchReq 分页请求参数 type NaturalEnemyInsectSearchReq struct { comModel.PageReq Id string `p:"id" dc:""` // SpeciesCode string `p:"speciesCode" dc:"物种编码(入侵种)"` //物种编码(入侵种) ZhName string `p:"zhName" dc:"中文名称(天敌)"` //中文名称(天敌) LatinName string `p:"latinName" dc:"拉丁学名(天敌)"` //拉丁学名(天敌) Mu string `p:"mu" dc:"目"` //目 OrderTitle string `p:"orderTitle" dc:"Order"` //Order Ke string `p:"ke" dc:"科"` //科 Family string `p:"family" dc:"Family"` //Family Shu string `p:"shu" dc:"属"` //属 Genus string `p:"genus" dc:"Genus"` //Genus SourceArea string `p:"sourceArea" dc:"原产地"` //原产地 Source string `p:"source" dc:"来源地"` //来源地 StudyPlot string `p:"studyPlot" dc:"释放地/实验地"` //释放地/实验地 Selectivity string `p:"selectivity" dc:"专一性"` //专一性 FeedingHarm string `p:"feedingHarm" dc:"取食/危害阶段"` //取食/危害阶段 FeedingPart string `p:"feedingPart" dc:"取食/危害部位"` //取食/危害部位 AnswerIndicator string `p:"answerIndicator" dc:"响应指标"` //响应指标 ReleaseRecord string `p:"releaseRecord" dc:"释放记录"` //释放记录 FeedingStage string `p:"feedingStage" dc:"取食阶段"` //取食阶段 SourcesData string `p:"sourcesData" dc:"数据来源"` //数据来源 CreateUser string `p:"createUser" v:"createUser@integer#数据采集人需为整数" dc:"数据采集人"` //数据采集人 AuditStatus string `p:"auditStatus" v:"auditStatus@integer#核查需为整数" dc:"核查"` //核查 } // NaturalEnemyInsectSearchRes 列表返回结果 type NaturalEnemyInsectSearchRes struct { comModel.ListRes List []*NaturalEnemyInsectListRes `json:"list"` } // NaturalEnemyInsectAddReq 添加操作请求参数 type NaturalEnemyInsectAddReq struct { Id int `p:"id" dc:""` SpeciesCode string `p:"speciesCode" dc:"物种编码(入侵种)"` ZhName string `p:"zhName" v:"required#中文名称(天敌)不能为空" dc:"中文名称(天敌)"` LatinName string `p:"latinName" v:"required#拉丁学名(天敌)不能为空" dc:"拉丁学名(天敌)"` Mu string `p:"mu" dc:"目"` OrderTitle string `p:"orderTitle" dc:"Order"` Ke string `p:"ke" dc:"科"` Family string `p:"family" dc:"Family"` Shu string `p:"shu" dc:"属"` Genus string `p:"genus" dc:"Genus"` SourceArea string `p:"sourceArea" dc:"原产地"` Source string `p:"source" dc:"来源地"` StudyPlot string `p:"studyPlot" dc:"释放地/实验地"` ExperimentDate *gtime.Time `p:"experimentDate" dc:"引进时间/实验时间"` Selectivity string `p:"selectivity" dc:"专一性"` FeedingHarm string `p:"feedingHarm" dc:"取食/危害阶段"` FeedingPart string `p:"feedingPart" dc:"取食/危害部位"` AnswerIndicator string `p:"answerIndicator" dc:"响应指标"` ReleaseRecord string `p:"releaseRecord" dc:"释放记录"` IsCreateGroup int `p:"isCreateGroup" dc:"是否建群"` FeedingStage string `p:"feedingStage" dc:"取食阶段"` IsTarget int `p:"isTarget" dc:"有无非目标影响"` FeedingDate *gtime.Time `p:"feedingDate" 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:"版本"` } // NaturalEnemyInsectEditReq 修改操作请求参数 type NaturalEnemyInsectEditReq struct { Id int `p:"id" v:"required#主键ID不能为空" dc:""` SpeciesCode string `p:"speciesCode" dc:"物种编码(入侵种)"` ZhName string `p:"zhName" v:"required#中文名称(天敌)不能为空" dc:"中文名称(天敌)"` LatinName string `p:"latinName" v:"required#拉丁学名(天敌)不能为空" dc:"拉丁学名(天敌)"` Mu string `p:"mu" dc:"目"` OrderTitle string `p:"orderTitle" dc:"Order"` Ke string `p:"ke" dc:"科"` Family string `p:"family" dc:"Family"` Shu string `p:"shu" dc:"属"` Genus string `p:"genus" dc:"Genus"` SourceArea string `p:"sourceArea" dc:"原产地"` Source string `p:"source" dc:"来源地"` StudyPlot string `p:"studyPlot" dc:"释放地/实验地"` ExperimentDate *gtime.Time `p:"experimentDate" dc:"引进时间/实验时间"` Selectivity string `p:"selectivity" dc:"专一性"` FeedingHarm string `p:"feedingHarm" dc:"取食/危害阶段"` FeedingPart string `p:"feedingPart" dc:"取食/危害部位"` AnswerIndicator string `p:"answerIndicator" dc:"响应指标"` ReleaseRecord string `p:"releaseRecord" dc:"释放记录"` IsCreateGroup int `p:"isCreateGroup" dc:"是否建群"` FeedingStage string `p:"feedingStage" dc:"取食阶段"` IsTarget int `p:"isTarget" dc:"有无非目标影响"` FeedingDate *gtime.Time `p:"feedingDate" 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:"版本"` }