feat: 百科
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
package request
|
||||
|
||||
import common "sundynix-go/model/commom/request"
|
||||
|
||||
// CreateWiki 创建百科植物库
|
||||
type CreateWiki struct {
|
||||
IsHot int `json:"isHot"` // 是否热门
|
||||
Name string `json:"name" binding:"required"` // 名称
|
||||
LatinName string `json:"latinName"` // 拉丁名
|
||||
Aliases string `json:"aliases"` // 别名
|
||||
DistributionArea string `json:"distributionArea"` // 分布区域
|
||||
Genus string `json:"genus"` // 属
|
||||
Difficulty int `json:"difficulty"` // 种植难度 1-5级
|
||||
LifeCycle string `json:"lifeCycle"` // 生命周期
|
||||
GrowthHabit string `json:"growthHabit"` // 生长习性
|
||||
ReproductionMethod string `json:"reproductionMethod"` // 繁殖方法
|
||||
PestsDiseases string `json:"pestsDiseases"` // 常见病虫害
|
||||
LightIntensity string `json:"lightIntensity"` // 光照强度
|
||||
LightType string `json:"lightType"` // 光照类型(直射,散射等)
|
||||
OptimalTempPeriod string `json:"optimalTempPeriod"` //最佳温度区间
|
||||
Stem string `json:"stem"` //茎
|
||||
Fruit string `json:"fruit"` //果
|
||||
FoliageType string `json:"foliageType"` // 叶型
|
||||
FoliageColor string `json:"foliageColor"` // 叶色
|
||||
FoliageShape string `json:"foliageShape"` // 叶形
|
||||
Height int `json:"height"` // 高度(cm)
|
||||
FloweringPeriod string `json:"floweringPeriod"` // 开花期
|
||||
FloweringColor string `json:"floweringColor"` // 花色
|
||||
FloweringShape string `json:"floweringShape"` // 花形
|
||||
FlowerDiameter int `json:"flowerDiameter"` // 花直径(cm)
|
||||
RelatedWikiIds []string `json:"relatedWikiIds"` //相关推荐
|
||||
OssIds []string `json:"ossIds"` // 图片
|
||||
ClassIds []string `json:"classIds"` //分类id
|
||||
}
|
||||
|
||||
type UpdateWiki struct {
|
||||
Id string `json:"id" binding:"required"`
|
||||
Name string `json:"name"` // 名称
|
||||
LatinName string `json:"latinName"` // 拉丁名
|
||||
Aliases string `json:"aliases"` // 别名
|
||||
DistributionArea string `json:"distributionArea"` // 分布区域
|
||||
Genus string `json:"genus"` // 属
|
||||
Difficulty int `json:"difficulty"` // 种植难度 1-5级
|
||||
LifeCycle string `json:"lifeCycle"` // 生命周期
|
||||
GrowthHabit string `json:"growthHabit"` // 生长习性
|
||||
PestsDiseases string `json:"pestsDiseases"` // 常见病虫害
|
||||
LightIntensity string `json:"lightIntensity"` // 光照强度
|
||||
LightType string `json:"lightType"` // 光照类型(直射,散射等)
|
||||
OptimalTempPeriod string `json:"optimalTempPeriod"` //最佳温度区间
|
||||
Stem string `json:"stem"` //茎
|
||||
Fruit string `json:"fruit"` //果
|
||||
FoliageType string `json:"foliageType"` // 叶型
|
||||
FoliageColor string `json:"foliageColor"` // 叶色
|
||||
FoliageShape string `json:"foliageShape"` // 叶形
|
||||
Height int `json:"height"` // 高度(cm)
|
||||
FloweringPeriod string `json:"floweringPeriod"` // 开花期
|
||||
FloweringColor string `json:"floweringColor"` // 花色
|
||||
FloweringShape string `json:"floweringShape"` // 花形
|
||||
FlowerDiameter int `json:"flowerDiameter"` // 花直径(cm)
|
||||
}
|
||||
|
||||
// WikiPage 列表
|
||||
type WikiPage struct {
|
||||
common.PageInfo
|
||||
Name string `json:"name"` // 植物名称
|
||||
IsHot *int `json:"isHot"` // 是否热门 0否 1是
|
||||
ClassIdIs []string `json:"classId"` // 分类id
|
||||
}
|
||||
|
||||
type AlterHot struct {
|
||||
common.IdsReq
|
||||
IsHot int `json:"isHot"` // 是否热门 1是 2否
|
||||
}
|
||||
Reference in New Issue
Block a user