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" ) // BiologyEcologyInfoRes is the golang structure for table biology_ecology. type BiologyEcologyInfoRes struct { gmeta.Meta `orm:"table:biology_ecology"` Id int `orm:"id,primary" json:"id" dc:""` // SpeciesCode string `orm:"species_code" json:"speciesCode" dc:"编码"` // 编码 LifeHistory string `orm:"life_history" json:"lifeHistory" dc:"生活史/侵染循环"` // 生活史/侵染循环 Character string `orm:"character" json:"character" dc:"发生与危害特性"` // 发生与危害特性 HabitatType string `orm:"habitat_type" json:"habitatType" dc:"生境类型"` // 生境类型 ZoologyDescribe string `orm:"zoology_describe" json:"zoologyDescribe" dc:"生态、经济和社会影响描述"` // 生态、经济和社会影响描述 SpecimenGather string `orm:"specimen_gather" json:"specimenGather" dc:"模式标本采集地"` // 模式标本采集地 SpecimenSave string `orm:"specimen_save" json:"specimenSave" dc:"模式标本保存地"` // 模式标本保存地 IntroduceDesc string `orm:"introduce_desc" json:"introduceDesc" dc:"首次发现或引入的地点及时间"` // 首次发现或引入的地点及时间 Diffuse string `orm:"diffuse" json:"diffuse" dc:"传播与扩散途径"` // 传播与扩散途径 RiskAssessment string `orm:"risk_assessment" json:"riskAssessment" 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 BiologyEcologyListRes struct { Id int `json:"id" dc:""` SpeciesCode string `json:"speciesCode" dc:"编码"` LifeHistory string `json:"lifeHistory" dc:"生活史/侵染循环"` Character string `json:"character" dc:"发生与危害特性"` HabitatType string `json:"habitatType" dc:"生境类型"` ZoologyDescribe string `json:"zoologyDescribe" dc:"生态、经济和社会影响描述"` SpecimenGather string `json:"specimenGather" dc:"模式标本采集地"` SpecimenSave string `json:"specimenSave" dc:"模式标本保存地"` IntroduceDesc string `json:"introduceDesc" dc:"首次发现或引入的地点及时间"` Diffuse string `json:"diffuse" dc:"传播与扩散途径"` RiskAssessment string `json:"riskAssessment" 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:""` } // BiologyEcologySearchReq 分页请求参数 type BiologyEcologySearchReq struct { comModel.PageReq Id string `p:"id" dc:""` // SpeciesCode string `p:"speciesCode" dc:"编码"` //编码 LifeHistory string `p:"lifeHistory" dc:"生活史/侵染循环"` //生活史/侵染循环 HabitatType string `p:"habitatType" dc:"生境类型"` //生境类型 SpecimenGather string `p:"specimenGather" dc:"模式标本采集地"` //模式标本采集地 SpecimenSave string `p:"specimenSave" dc:"模式标本保存地"` //模式标本保存地 IntroduceDesc string `p:"introduceDesc" dc:"首次发现或引入的地点及时间"` //首次发现或引入的地点及时间 Diffuse string `p:"diffuse" dc:"传播与扩散途径"` //传播与扩散途径 RiskAssessment string `p:"riskAssessment" dc:"风险评估结果"` //风险评估结果 SourcesData string `p:"sourcesData" dc:"数据来源"` //数据来源 CreateUser string `p:"createUser" dc:"数据采集人"` //数据采集人 AuditStatus string `p:"auditStatus" v:"auditStatus@integer#核查需为整数" dc:"核查"` //核查 } // BiologyEcologySearchRes 列表返回结果 type BiologyEcologySearchRes struct { comModel.ListRes List []*BiologyEcologyListRes `json:"list"` } // BiologyEcologyAddReq 添加操作请求参数 type BiologyEcologyAddReq struct { SpeciesCode string `p:"speciesCode" dc:"编码"` LifeHistory string `p:"lifeHistory" dc:"生活史/侵染循环"` Character string `p:"character" dc:"发生与危害特性"` HabitatType string `p:"habitatType" dc:"生境类型"` ZoologyDescribe string `p:"zoologyDescribe" dc:"生态、经济和社会影响描述"` SpecimenGather string `p:"specimenGather" dc:"模式标本采集地"` SpecimenSave string `p:"specimenSave" dc:"模式标本保存地"` IntroduceDesc string `p:"introduceDesc" dc:"首次发现或引入的地点及时间"` Diffuse string `p:"diffuse" dc:"传播与扩散途径"` RiskAssessment string `p:"riskAssessment" 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:"版本"` } // BiologyEcologyEditReq 修改操作请求参数 type BiologyEcologyEditReq struct { Id int `p:"id" v:"required#主键ID不能为空" dc:""` SpeciesCode string `p:"speciesCode" dc:"编码"` LifeHistory string `p:"lifeHistory" dc:"生活史/侵染循环"` Character string `p:"character" dc:"发生与危害特性"` HabitatType string `p:"habitatType" dc:"生境类型"` ZoologyDescribe string `p:"zoologyDescribe" dc:"生态、经济和社会影响描述"` SpecimenGather string `p:"specimenGather" dc:"模式标本采集地"` SpecimenSave string `p:"specimenSave" dc:"模式标本保存地"` IntroduceDesc string `p:"introduceDesc" dc:"首次发现或引入的地点及时间"` Diffuse string `p:"diffuse" dc:"传播与扩散途径"` RiskAssessment string `p:"riskAssessment" 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:"版本"` }