110 lines
6.1 KiB
Go
110 lines
6.1 KiB
Go
// ==========================================================================
|
||
// GFast自动生成model操作代码。
|
||
// 生成日期:2025-08-07 10:19:19
|
||
// 生成路径: internal/app/businesses/model/species_name.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"
|
||
)
|
||
|
||
// SpeciesNameInfoRes is the golang structure for table species_name.
|
||
type SpeciesNameInfoRes struct {
|
||
gmeta.Meta `orm:"table:species_name"`
|
||
Id int `orm:"id,primary" json:"id" dc:"主键"` // 主键
|
||
SpeciesCode string `orm:"species_code" json:"speciesCode" dc:"物种编号"` // 物种编号
|
||
Name string `orm:"name" json:"name" dc:"物种名称"` // 物种名称
|
||
Content string `orm:"content" json:"content" 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:"数据核查日期"` // 数据核查日期
|
||
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
|
||
AuditStatus int `orm:"audit_status" json:"auditStatus" dc:""` //
|
||
AuditView string `orm:"audit_view" json:"auditView" 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 SpeciesNameListRes struct {
|
||
Id int `json:"id" dc:"主键"`
|
||
SpeciesCode string `json:"speciesCode" dc:"物种编号"`
|
||
Name string `json:"name" dc:"物种名称"`
|
||
Content string `json:"content" 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:"数据核查日期"`
|
||
Remark string `json:"remark" dc:"备注"`
|
||
AuditStatus int `json:"auditStatus" dc:""`
|
||
AuditView string `json:"auditView" dc:""`
|
||
Version int `json:"version" dc:""`
|
||
CreatedAt *gtime.Time `json:"createdAt" dc:""`
|
||
}
|
||
|
||
// SpeciesNameSearchReq 分页请求参数
|
||
type SpeciesNameSearchReq struct {
|
||
comModel.PageReq
|
||
Id string `p:"id" dc:"主键"` //主键
|
||
SpeciesCode string `p:"speciesCode" dc:"物种编号"` //物种编号
|
||
Name string `p:"name" dc:"物种名称"` //物种名称
|
||
Content string `p:"content" dc:"物种名称内容"` //物种名称内容
|
||
SourcesData string `p:"sourcesData" dc:"数据来源"` //数据来源
|
||
CreateUser string `p:"createUser" v:"createUser@integer#数据采集人需为整数" dc:"数据采集人"` //数据采集人
|
||
CreateDate []*gtime.Time `p:"createDate"` //数据采集信息
|
||
AuditUser string `p:"auditUser" v:"auditUser@integer#数据核查人需为整数" dc:"数据核查人"` //数据核查人
|
||
AuditDate []*gtime.Time `p:"auditDate"` //数据核查日期
|
||
AuditStatus string `p:"auditStatus" v:"auditStatus@integer#需为整数" dc:""` //
|
||
AuditView string `p:"auditView" dc:""` //
|
||
}
|
||
|
||
// SpeciesNameSearchRes 列表返回结果
|
||
type SpeciesNameSearchRes struct {
|
||
comModel.ListRes
|
||
List []*SpeciesNameListRes `json:"list"`
|
||
}
|
||
|
||
// SpeciesNameAddReq 添加操作请求参数
|
||
type SpeciesNameAddReq struct {
|
||
SpeciesCode string `p:"speciesCode" dc:"物种编号"`
|
||
Name string `p:"name" v:"required#物种名称不能为空" dc:"物种名称"`
|
||
Content string `p:"content" 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:"数据核查日期"`
|
||
Remark string `p:"remark" dc:"备注"`
|
||
//AuditStatus int `p:"auditStatus" v:"required#不能为空" dc:""`
|
||
//AuditView string `p:"auditView" dc:""`
|
||
//Version int `p:"version" dc:""`
|
||
}
|
||
|
||
// SpeciesNameEditReq 修改操作请求参数
|
||
type SpeciesNameEditReq struct {
|
||
Id int `p:"id" v:"required#主键ID不能为空" dc:"主键"`
|
||
SpeciesCode string `p:"speciesCode" dc:"物种编号"`
|
||
Name string `p:"name" v:"required#物种名称不能为空" dc:"物种名称"`
|
||
Content string `p:"content" 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:"数据核查日期"`
|
||
Remark string `p:"remark" dc:"备注"`
|
||
AuditStatus int `p:"auditStatus" v:"required#不能为空" dc:""`
|
||
AuditView string `p:"auditView" dc:""`
|
||
Version int `p:"version" dc:""`
|
||
}
|