init: initial commit

This commit is contained in:
Blizzard
2026-02-06 14:44:06 +08:00
commit 3115b58cb2
133 changed files with 25889 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package plant
import (
"github.com/gin-gonic/gin"
)
type MyPlantRouter struct{}
func (c *MyPlantRouter) InitPlantRouter(Router *gin.RouterGroup) {
myPlantRouter := Router.Group("plant")
{
myPlantRouter.POST("add", myPlantApi.AddPlant) // 添加植物
myPlantRouter.POST("page", myPlantApi.PlantPage) // 分页获取植物
myPlantRouter.GET("detail", myPlantApi.PlantDetail) // 获取植物详情
myPlantRouter.POST("update", myPlantApi.UpdatePlant) // 修改基本信息
myPlantRouter.GET("todayTask", myPlantApi.TodayTask) // 获取今日任务
myPlantRouter.POST("completeTask", myPlantApi.CompleteTask) // 完成任务
}
}