167 lines
10 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 09:34:44
// 生成路径: internal/app/businesses/model/host_botany.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"
)
// HostBotanyInfoRes is the golang structure for table host_botany.
type HostBotanyInfoRes struct {
gmeta.Meta `orm:"table:host_botany"`
Id int `orm:"id,primary" json:"id" dc:""` //
SpeciesCode string `orm:"species_code" json:"speciesCode" dc:"物种编码"` // 物种编码
ZhName string `orm:"zh_name" json:"zhName" dc:"中文学名"` // 中文学名
ZhSynonym string `orm:"zh_synonym" json:"zhSynonym" dc:"中文异名"` // 中文异名
EnName string `orm:"en_name" json:"enName" dc:"英文学名"` // 英文学名
LatinName string `orm:"latin_name" json:"latinName" dc:"拉丁学名"` // 拉丁学名
LatinSynonym string `orm:"latin_synonym" json:"latinSynonym" 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
Zhong string `orm:"zhong" json:"zhong" dc:"种"` // 种
Species string `orm:"species" json:"species" dc:"Species"` // Species
HostType string `orm:"host_type" json:"hostType" 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 HostBotanyListRes struct {
Id int `json:"id" dc:""`
SpeciesCode string `json:"speciesCode" dc:"物种编码"`
ZhName string `json:"zhName" dc:"中文学名"`
ZhSynonym string `json:"zhSynonym" dc:"中文异名"`
EnName string `json:"enName" dc:"英文学名"`
LatinName string `json:"latinName" dc:"拉丁学名"`
LatinSynonym string `json:"latinSynonym" 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"`
Zhong string `json:"zhong" dc:"种"`
Species string `json:"species" dc:"Species"`
HostType string `json:"hostType" 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:""`
}
// HostBotanySearchReq 分页请求参数
type HostBotanySearchReq struct {
comModel.PageReq
Id string `p:"id" dc:""` //
SpeciesCode string `p:"speciesCode" dc:"物种编码"` //物种编码
ZhName string `p:"zhName" dc:"中文学名"` //中文学名
ZhSynonym string `p:"zhSynonym" dc:"中文异名"` //中文异名
EnName string `p:"enName" dc:"英文学名"` //英文学名
LatinName string `p:"latinName" dc:"拉丁学名"` //拉丁学名
LatinSynonym string `p:"latinSynonym" 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
Zhong string `p:"zhong" dc:"种"` //种
Species string `p:"species" dc:"Species"` //Species
HostType string `p:"hostType" dc:"寄主类型"` //寄主类型
SourcesData string `p:"sourcesData" dc:"数据来源"` //数据来源
CreateUser string `p:"createUser" v:"createUser@integer#数据采集人需为整数" dc:"数据采集人"` //数据采集人
AuditStatus string `p:"auditStatus" v:"auditStatus@integer#核查需为整数" dc:"核查"` //核查
}
// HostBotanySearchRes 列表返回结果
type HostBotanySearchRes struct {
comModel.ListRes
List []*HostBotanyListRes `json:"list"`
}
// HostBotanyAddReq 添加操作请求参数
type HostBotanyAddReq struct {
Id int `p:"id" dc:""`
SpeciesCode string `p:"speciesCode" dc:"物种编码"`
ZhName string `p:"zhName" v:"required#中文学名不能为空" dc:"中文学名"`
ZhSynonym string `p:"zhSynonym" dc:"中文异名"`
EnName string `p:"enName" v:"required#英文学名不能为空" dc:"英文学名"`
LatinName string `p:"latinName" v:"required#拉丁学名不能为空" dc:"拉丁学名"`
LatinSynonym string `p:"latinSynonym" 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"`
Zhong string `p:"zhong" dc:"种"`
Species string `p:"species" dc:"Species"`
HostType string `p:"hostType" 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:"版本"`
}
// HostBotanyEditReq 修改操作请求参数
type HostBotanyEditReq struct {
Id int `p:"id" v:"required#主键ID不能为空" dc:""`
SpeciesCode string `p:"speciesCode" dc:"物种编码"`
ZhName string `p:"zhName" v:"required#中文学名不能为空" dc:"中文学名"`
ZhSynonym string `p:"zhSynonym" dc:"中文异名"`
EnName string `p:"enName" v:"required#英文学名不能为空" dc:"英文学名"`
LatinName string `p:"latinName" v:"required#拉丁学名不能为空" dc:"拉丁学名"`
LatinSynonym string `p:"latinSynonym" 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"`
Zhong string `p:"zhong" dc:"种"`
Species string `p:"species" dc:"Species"`
HostType string `p:"hostType" 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:"版本"`
}