1234567891011121314151617181920212223242526272829303132 |
- package routers
- import (
- "tmr-watch/http/handle/group"
- "github.com/gin-gonic/gin"
- )
- func GroupAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
- return func(s *gin.Engine) {
- for _, opt := range opts {
- opt(s)
- }
- apiPasture := s.Group("/pasture")
- apiPasture.POST("feed_formula/distribute", group.DistributeFeedFormula)
- apiPasture.POST("feed_formula/cancel/distribute", group.CancelDistributeFeedFormula)
- apiPasture.POST("feed_formula/detail_list", group.FeedFormulaDetailList)
- apiPasture.POST("feed_formula/edit_recode/list", group.EditRecodeFeedFormula)
- apiPasture.POST("feed_formula/is_modify", group.FeedFormulaIsModify)
- apiPasture.POST("feed_formula/async", group.FeedFormulaAsyncList)
- apiPasture.POST("feed/async", group.FeedAsyncList)
- apiPasture.POST("dashboard/accuracy_data", group.AnalysisAccuracy)
- apiPasture.POST("dashboard/process_analysis", group.ProcessAnalysis)
- apiPasture.POST("dashboard/sprinkle_statistics", group.SprinkleStatistics)
- apiPasture.POST("forage_category/distribute", group.ForageCategoryDistribute)
- apiPasture.POST("forage_category/delete", group.ForageCategoryDelete)
- apiPasture.POST("cattle_category/distribute", group.CowCategoryDistribute)
- apiPasture.POST("cattle_category/delete", group.CowCategoryDelete)
- apiPasture.POST("feed/usage", group.FeedUsage)
- apiPasture.POST("feed_formula/version", group.FeedFormulaVersion)
- }
- }
|