37 lines
1.6 KiB
Go
37 lines
1.6 KiB
Go
package request
|
|
|
|
type CarePlan struct {
|
|
Icon string `json:"icon"` // icon信息
|
|
Name string `json:"name"` // 农事名称
|
|
Period int `json:"period"` // 周期
|
|
}
|
|
|
|
// CreateMyPlant 创建植物
|
|
type CreateMyPlant struct {
|
|
Name string `json:"name"` // 植物名称
|
|
PlantTime string `json:"plantTime"` // 种植时间
|
|
PotMaterial string `json:"potMaterial"` //花盆材质
|
|
PotSize string `json:"potSize"` // 花盆大小 如直径 20cm × 高度 18cm
|
|
Placement string `json:"placement"` //摆放位置
|
|
Sunlight string `json:"sunlight"` //光照条件如每日12小时
|
|
PlantingMaterial string `json:"plantingMaterial"` //植料(即土的材质)
|
|
OssIds []string `json:"ossIds"` // 图片ids
|
|
CarePlans []*CarePlan `json:"carePlans"` // 养护计划
|
|
}
|
|
|
|
// UpdateMyPlant 修改植物
|
|
type UpdateMyPlant struct {
|
|
Id string `json:"id" binding:"required"`
|
|
Name string `json:"name"` // 植物名称
|
|
PotMaterial string `json:"potMaterial"` // 花盆材质
|
|
PotSize string `json:"potSize"` // 花盆大小 如直径 20cm × 高度 18cm
|
|
Placement string `json:"placement"` // 摆放位置
|
|
Sunlight string `json:"sunlight"` // 光照条件如每日12小时
|
|
PlantingMaterial string `json:"plantingMaterial"` // 植料(即土的材质)
|
|
}
|
|
|
|
type CompleteTask struct {
|
|
TaskId string `json:"taskId" binding:"required"`
|
|
Remark string `json:"remark"`
|
|
}
|